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
Returns the higher location of this cuboid.
public Location3D getHighLoc() { return highPoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTop() {\n return position[0] - (size - 1) / 2;\n }", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "public Point getupperRigth() {\n Point upperRigth = new Point(this.upperLeft.getX() + this.getWidth(), this.upperLeft.getY());\n return upperRigth;\n }", "public Coords getUpperLeft()\r\n {\r\n return new Coords(x, y);\r\n }", "public double getBoundingBoxTop() {\n return boundingBoxTop;\n }", "private Point getUpper() {\n int upperX;\n int upperY;\n upperY = (int) (gameCanvas.getHeight() + mapOffsetY * 2);\n upperX = (int) (gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(upperX, upperY);\n }", "public double Top(){\n\t\treturn (y);\n\t}", "public Cell highestCell() {\n for (Cell c : this.board) {\n if (c.height == ForbiddenIslandWorld.ISLAND_SIZE / 2 && !c.isCoastCell()) {\n return c;\n }\n }\n return highestCell();\n }", "public Point getMax () {\r\n\r\n\treturn getB();\r\n }", "public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}", "public float getTop() {\n return internalGroup.getTop();\n }", "public int getZ() {\n\t\treturn -150;\n\t}", "public Point getUpperPoint() {\n return upper;\n }", "public Coords getUpperRight()\r\n {\r\n return new Coords(x + width, y);\r\n }", "public int getBottom() {\n return position[0] + (size - 1) / 2;\n }", "public Point getUpperLeft() {\n return this.upperLeft;\n }", "public ILocation top()\n {\n EmptyStackException ex = new EmptyStackException();\n if (top <= 0)\n {\n throw ex;\n }\n else\n {\n return stack.get(top - 1);\n }\n }", "Location getTop() {\n // -\n if(!isEmpty())\n return top.getLocation();\n return null;\n }", "Point getTopXY();", "public Vector2f getUpperLeftCorner() {\n return upperLeftCorner;\n }", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "public Coordinate peek(){\r\n return arr[size - 1];\r\n }", "public int getTop(){\n\t\treturn platformHitbox.y;\n\t}", "public Card getTopCard() {\r\n\t\tthis.sort();\r\n\t\treturn this.getCard(2); //Center card will always be part of quad after sorting, so has to be highest card\r\n\t}", "public int getSquareLocation()\n\t\t{\n\t\t\treturn location; // return location of square\n\t\t}", "public Square getLastSquare() {\n\t\treturn squares.get(squares.size()-1);\n\t}", "public double getTop() {\n return this.yT;\n }", "@Override\n public double getPosY() {\n return this.pos[1];\n }", "@Pure\n public QuadTreeNode<D> getUpperLeftChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[1];\n }\n return _get;\n }", "public float getUpperRightX()\n {\n return ((COSNumber)rectArray.get(2)).floatValue();\n }", "public Location3D getLowLoc() {\n\t\treturn lowPoint;\n\t}", "public Point3D getpoint_BlockTopRight() {\r\n\t\treturn point_BlockTopRight;\r\n\t}", "public float getUpperRightY()\n {\n return ((COSNumber)rectArray.get(3)).floatValue();\n }", "public double getMaxCoordinateValue() {\n if (this.max_x > this.max_y)\n return this.max_x;\n else\n return this.max_y;\n }", "@Pure\n public QuadTreeNode<D> getUpperRightChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[3];\n }\n return _get;\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 Location findLargest() {\n int max = -1;\n\n final LinkedList<Location> loc = new LinkedList<>();\n\n for (int r = 0; r < board.length; r++)\n for (int c = 0; c < board[0].length; c++)\n if (board[r][c] > max) {\n loc.clear();\n max = board[r][c];\n loc.add(new Location(r, c));\n } else if (board[r][c] == max)\n loc.add(new Location(r, c));\n\n Collections.shuffle(loc);\n\n return loc.pop();\n }", "public Coords getJumpPathHighestPoint() {\n Coords highestCoords = null;\n int highestElevation = 0;\n for (MoveStep step : steps) {\n if (getGame().getBoard().getHex(step.getPosition()).getLevel() > highestElevation) {\n highestElevation = step.getElevation();\n highestCoords = step.getPosition();\n }\n }\n return highestCoords;\n }", "public float getY(){\n return hitBox.top;\n }", "public int getY(){\n return this.position[1];\n }", "public int getY() { return loc.y; }", "public double getBboxLongestSide() {\n return getDouble(\"tlong\");\n }", "public E findMax() {\r\n\t\treturn heap.get(0);\r\n\t}", "private double getPosY() {\n\t\treturn this.posX.get();\n\t}", "public int upperBoundary(){\r\n\t\treturn yStart - Constants.FLOOR_HEIGHT;\r\n\t}", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "public int top() {\n return top.value;\n }", "public double Bottom(){\n\t\tdouble fary = y + sizeY - 1;\n\t\treturn (fary);\n\t}", "Square getCurrentPosition();", "public int theHighest() {\r\n\t\tint highest = 0;\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\tif(game[i][j].getValue() > highest)\r\n\t\t\t\t\thighest = game[i][j].getValue();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn highest;\r\n\t}", "public int getYTop() {\n return yTop;\n }", "public int getYLeftUpper() {\n return yLeftUpper;\n }", "Point3D getLeftUpperBackCorner();", "public static SuffixLattice getTop() {\n\t\treturn TOP;\n\t}", "public Coord maxCell()\n {\n\t int maxX = getGrid().keySet().stream().mapToInt(Coord::getX).max().orElse(0);\n\n\t int maxY = getGrid().keySet().stream().mapToInt(Coord::getY).max().orElse(0);\n\n\t return new Coord(maxX, maxY);\n }", "public Object getLocation() {\n return leftSide.getLocation();\n }", "@Basic @Immutable\n\tpublic double getVerticalLocation() {\n\t\treturn this.verticalLocation;\n\t}", "public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }", "public int getTop() {\n\t\treturn this.top;\n\t}", "@Nullable\n public DpProp getTop() {\n if (mImpl.hasTop()) {\n return DpProp.fromProto(mImpl.getTop());\n } else {\n return null;\n }\n }", "public static Coordinates getTopRightCorner() {\n\t\treturn topRightCorner;\n\t}", "public DoubleSolenoid.Value getPosition() {\n return m_ballholder.get();\n }", "public int getLocY() {\n return locY;\n }", "double rightmost_alien_x() {\n double max_x = 0;\n for (Alien alien : aliens) {\n if (alien.x_position > max_x) {\n max_x = alien.x_position;\n }\n }\n return max_x;\n }", "public TakPiece getTop(Point p){\n return stacks[p.x][p.y].top();\n }", "public int getLocY() {\n return locY;\n }", "public Point topMiddle() {\n return this.topLeft.add(new Vector2D(getWidth() / 2, 0)).asPoint();\n }", "public Pixel topRight() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.right;\n }\n }", "public int getY()\r\n {\r\n return yLoc;\r\n }", "public int top() {\n return p.val;\n }", "public float getMaxX(){\n return points.get(points.size()-1).getX();\n }", "public int getTopY() {\n\t\treturn 0;\r\n\t}", "public Point getBottomRight() {\n return location.bottomRight();\n }", "public int getHighestVariable() {\n\t\treturn HighestVariable;\n\t}", "public Disc top()\n\t{\n\t\tint poleSize = pole.size();\n\n\t\t// If the pole is empty, return nothing\n\t\tif(poleSize == 0)\n\t\t\treturn null;\n\n\t\t// Otherwise return the top disc\n\t\treturn pole.get(poleSize - 1);\n\t}", "public Location getCornerB() {\n return cornerB;\n }", "public float getLowerLeftY()\n {\n return ((COSNumber)rectArray.get(1)).floatValue();\n }", "@Override\n\tpublic int getPosY() {\n\t\treturn Y_LAND;\n\t}", "public final double getY() { return location.getY(); }", "public int getY() {\r\n\t\t\r\n\t\treturn topY;\r\n\t}", "private Integer getHighestYAt(Location locationIncludingYmax, int minY) {\n int y = locationIncludingYmax.getBlockY();\n while (y >= minY) {\n locationIncludingYmax.setY(y);\n Block block = locationIncludingYmax.getBlock();\n if (block.getType().isSolid())\n return y;\n y--;\n }\n return -1;\n }", "public double getHeight() {\n return location.height();\n }", "public int getY() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.y();\n }", "Coordinate getMinY();", "public Rectangle getBoundsBigger() {\n return new Rectangle(x-32,y-32,128,128);\n }", "public E3DVector2F getTextureCoordDetail0B(){\r\n return vertices[1].getTextureCoordDetail0();\r\n }", "public Vector2f getLocation() {\r\n\t\treturn location.getLocation();\r\n\t}", "public int top() {\n return q1.getFirst();\n }", "public E3DVector2F getTextureCoordDetail0C(){\r\n return vertices[2].getTextureCoordDetail0();\r\n }", "public Item max() {\n return heap[0];\n }", "public Coordinate max( final Coordinate c) {\r\n\r\n return( c.singleton() > singleton() ? c : this );\r\n }", "public int getBlock(){\n return this.position.getCurrentBlock();\n }", "public Integer getTop() {\n return top;\n }", "public Point getTailLocation ()\r\n {\r\n if (tailLocation == null) {\r\n computeLocations();\r\n }\r\n\r\n return tailLocation;\r\n }", "public int top() {\n return objects.peek();\n }", "public int getBlockZ()\n\t {\n\t\t if(z >= 0.0) return (int)z;\n\t\t return -1 + (int)(z);\n\t }", "public E calculateMaximum() {\n return FindMaximum.calculateMaximum(x , y , z);\n }", "public Point getXUpper()\n {\n return (Point)xUpp.clone();\n }", "public double max()\n\n {\n double max=xyValueArray.get(0).getY();\n\n for (int i = 0; i < xyValueArray.size(); i++) {\n if (xyValueArray.get(i).getY() > max) {\n max = xyValueArray.get(i).getY();\n }\n }\n return max;\n }", "public double getYPos() {\n\t\treturn this.position[1];\n\t}" ]
[ "0.6821495", "0.66545254", "0.65303624", "0.6442324", "0.6426414", "0.641488", "0.6383671", "0.6325022", "0.6282772", "0.62820643", "0.6258359", "0.62482256", "0.6246873", "0.6231947", "0.62113494", "0.62001735", "0.6176709", "0.6169921", "0.6159904", "0.61379576", "0.6118217", "0.6113861", "0.61123955", "0.6068224", "0.6064212", "0.6044758", "0.60365283", "0.6033012", "0.6014867", "0.59893346", "0.59802496", "0.59776014", "0.59708387", "0.59662324", "0.594787", "0.59424824", "0.5939259", "0.5933474", "0.59234524", "0.59178275", "0.5916176", "0.5910628", "0.5890168", "0.5887985", "0.58842796", "0.5874224", "0.58610886", "0.58485746", "0.584133", "0.5836141", "0.5821686", "0.58160657", "0.5802946", "0.5797893", "0.5790487", "0.57885987", "0.5777167", "0.5776182", "0.5776109", "0.577455", "0.57641315", "0.5756868", "0.5753606", "0.5747294", "0.57471085", "0.57462204", "0.5743024", "0.5736052", "0.5733528", "0.5728215", "0.572549", "0.5721155", "0.5719299", "0.5716998", "0.5716699", "0.5709704", "0.5708983", "0.57071614", "0.5702271", "0.5701032", "0.5688231", "0.568794", "0.56855714", "0.5676367", "0.5672921", "0.56681544", "0.5658354", "0.5657796", "0.56570613", "0.5656345", "0.56457114", "0.56423026", "0.56405", "0.56380457", "0.5633684", "0.5631769", "0.5631365", "0.5626671", "0.5623826", "0.5621255" ]
0.7111427
0
Returns the lower location of this cuboid.
public Location3D getLowLoc() { return lowPoint; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }", "private Point getLower() {\n int lowerX;\n int lowerY;\n lowerY = (int) (-gameCanvas.getHeight() + mapOffsetY * 2);\n lowerX = (int) (-gameCanvas.getWidth() + mapOffsetX * 2);\n return new Point(lowerX, lowerY);\n }", "public Point getLowerPoint() {\n return lower;\n }", "public Point getXLower()\n {\n return (Point)xLow.clone();\n }", "public float getLowerLeftX()\n {\n return ((COSNumber)rectArray.get(0)).floatValue();\n }", "public float getLowerLeftY()\n {\n return ((COSNumber)rectArray.get(1)).floatValue();\n }", "public Point getLocalPosition() {\n return getLocalLowerLeft();\n }", "public Coords getLowerRight()\r\n {\r\n return new Coords(x + width, y + height);\r\n }", "public Point getTopLeft() {\n return location.topLeft();\n }", "public int lowerBoundary(){\r\n\t\treturn this.ypoints[0];\r\n\t}", "public Pixel topLeft() {\n if (this.up == null) {\n return null;\n }\n else {\n return this.up.left;\n }\n }", "Coordinate getMinX();", "public Shard getLowerNeighbor() {\r\n double middleLat = south + Math.abs(north - south) / 2;\r\n double nextLat = middleLat - Math.abs(north - south);\r\n\r\n return new Shard(new Coordinates(nextLat, coordinates.getLon()), zoom);\r\n }", "@Basic @Immutable\n\tpublic double getHorizontalLocation() {\n\t\treturn this.horizontalLocation;\n\t}", "public int minY()\n\t{\n\t\tint m = coords[0][1];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min(m, coords[i][1]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "public Object getLocation() {\n return leftSide.getLocation();\n }", "@Pure\n public QuadTreeNode<D> getLowerLeftChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[0];\n }\n return _get;\n }", "public Point getXMin()\n {\n return (Point)xMin.clone();\n }", "public Coords getUpperLeft()\r\n {\r\n return new Coords(x, y);\r\n }", "public BoardCoordinate getLeft() {\n return new BoardCoordinate(x-1, y);\n }", "public int getLowerBound() {\r\n return lowerBound;\r\n }", "public Point getCorner() {\r\n\t\treturn basePoly.getBounds().getLocation();\r\n\t}", "public Point getUpperLeft() {\n return this.upperLeft;\n }", "@Override\n public int getMinX() {\n return this.minX;\n }", "public Point getMinimapLocation() {\n Actor c = getAccessor();\n int cX = methods.client.getBaseX() + (c.getLocalLocation().getX() / 32 - 2) / 4;\n int cY = methods.client.getBaseY() + (c.getLocalLocation().getY() / 32 - 2) / 4;\n return methods.calc.worldToMinimap(cX, cY);\n }", "public float getMinX(){\n return points.get(0).getX();\n }", "public Point getMin () {\r\n\r\n\treturn getA();\r\n }", "public double lower()\n\t{\n\t\treturn _dblLower;\n\t}", "public String getLower() {\n return lowerBound;\n }", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "public int getLowerBound ()\n\t{\n\t\treturn getRelationshipImpl().getLowerBound();\n\t}", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public int minX()\n\t{\n\t\tint m = coords[0][0];\n\t\t\n\t\tfor (int i=0; i<4; i++)\n\t\t{\n\t\t\tm = Math.min (m, coords[i][0]);\n\t\t}\n\t\t\n\t\treturn m;\n\t}", "double leftmost_alien_x() {\n double min_x = scene_width;\n for (Alien alien : aliens) {\n if (alien.x_position < min_x) {\n min_x = alien.x_position;\n }\n }\n return min_x;\n }", "public Location north()\r\n {\r\n\r\n return new Location(x, y - 1);\r\n }", "public double getLeft(double min) {\n return min - this.size; \n }", "public Vector3f getOrigin() {\r\n\t\treturn new Vector3f(mOrigin);\r\n\t}", "public Point getFrontPoint() {\n\t\treturn this.gun;\n\t}", "public Location3D getCenter() {\n\t\treturn new Location3D(world, lowPoint.getBlockX() + getXSize() / 2, lowPoint.getBlockY() + getYSize() / 2, lowPoint.getBlockZ() + getZSize() / 2);\n\t}", "public int getTop() {\n return position[0] - (size - 1) / 2;\n }", "public double getLowerValue() {\n return this.lowerMeasure.getValue();\n }", "public Location left() {\n return new Location(row, column - 1);\n }", "public V getLowerBound();", "public Coord minCell()\n {\n\t int minX = getGrid().keySet().stream().mapToInt(Coord::getX).min().orElse(0);\n\n\t int minY = getGrid().keySet().stream().mapToInt(Coord::getY).min().orElse(0);\n\n\t return new Coord(minX, minY);\n }", "@Override\r\n public Integer minLowerBound() {\r\n return this.getImpl().minLowerBound();\r\n }", "@Pure\n public QuadTreeNode<D> getLowerRightChild() {\n QuadTreeNode<D>[] _children = this.children;\n QuadTreeNode<D> _get = null;\n if (_children!=null) {\n _get=_children[2];\n }\n return _get;\n }", "@Override\n\tpublic float getX() {\n\t\treturn lilyPosX;\n\t}", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public Location west()\r\n {\r\n return new Location(x - 1, y);\r\n }", "@Override\n public double getPosX() {\n return this.pos[0];\n }", "public double getMinX() {\n\treturn minX;\n }", "public int getXOrigin() {\n return ic.getXOrigin();\n }", "public Point getMinPoint() {\r\n int minX = children.get(0).getShapeStartingPoint().getX();\r\n int minY = children.get(0).getShapeStartingPoint().getY();\r\n for(IShape shape: children) {\r\n if(minX > shape.getShapeStartingPoint().getX()) {\r\n minX = shape.getShapeStartingPoint().getX();\r\n }\r\n if(minY > shape.getShapeStartingPoint().getY()) {\r\n minY = shape.getShapeStartingPoint().getY();\r\n }\r\n }\r\n minPoint = new Point(minX,minY);\r\n return minPoint;\r\n }", "public int getXLeftUpper() {\n return xLeftUpper;\n }", "public int getMinX() {\n return scroller.getMinX();\n }", "public Location getLeft()\n\t{\n\t\tif(checkLeft())\n\t\t{\n\t\t\treturn new Location(row,col-1);\n\t\t}\n\t\treturn this;\n\t}", "int getXMin();", "public double getLeft(double min) {\n return Math.min(min, min + (this.length * Math.sin(Math.toRadians(this.theta)))\n ); \n }", "@NotNull\n public Location<World> getCenterBlock() {\n int centerX = getMinChunk().getX() + 16;\n int centerZ = getMinChunk().getZ() + 16;\n return Tungsten.INSTANCE.getIslandWorld().getLocation(centerX * 16, 86, centerZ * 16);\n }", "public float getX()\n {\n return getBounds().left + positionAnchor.x;\n }", "public double getLeft() {\n return this.xL;\n }", "private Point findTopLeftCornerPoint() {\n return new Point(origin.getX(), origin.getY() + width);\n }", "public final double getX() { return location.getX(); }", "public double getX() {\n return origin.getX();\n }", "Point3D getLeftUpperBackCorner();", "public Measure<?, ?> getLowerMeasure() {\n return this.lowerMeasure;\n }", "public ILocation north()\n {\n Location north = new Location(x, y - 1);\n return north;\n }", "public ILocation west()\n {\n Location west = new Location(x - 1, y);\n return west;\n }", "public double getXPos() {\n\t\treturn this.position[0];\n\t}", "public Vector2f getUpperLeftCorner() {\n return upperLeftCorner;\n }", "public double getLeft() {\r\n\t\treturn -left.getRawAxis(1);\r\n\t}", "public int getXcoord(){\n\t\treturn this.coordinates[0];\n\t}", "public double getX() {\n return position.getX();\n }", "public int getX() {\n return (int) this.center.getX();\n }", "public float getLimit_lin_x_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 24);\n\t\t}\n\t}", "public float getMinOffset() {\n return this.mMinOffset;\n }", "@Basic\n\t@Raw\n\t@Immutable\n\tpublic static double getVelocityLowerBound() {\n\t\treturn VELOCITYLOWERBOUND;\n\t}", "@Override\n\tpublic int getLowZ()\n\t{\n\t\treturn zoneZ1;\n\t}", "public List<Enemy> lowestLine() {\r\n List<Enemy> low = new ArrayList<>();\r\n for (Double x : this.xOfEachCol()) {\r\n List<Enemy> colList = new ArrayList<>();\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getUpperLeft().getX() == x) {\r\n colList.add(e);\r\n }\r\n }\r\n low.add(this.lowestEnemyInCol(colList));\r\n }\r\n return low;\r\n }", "public double getLatitude()\n\t{\n\t\treturn this.realBin.getLocation().getLatitude();\n\t}", "public double obterXmin() {\n\t\treturn xmin;\n\t}", "public void setLowerPoint(Point lower) {\n this.lower = lower;\n }", "public double getX() {\n\t\tRectangle2D bounds = _parentFigure.getBounds();\n\t\tdouble x = bounds.getX() + (_xt * bounds.getWidth());\n\t\treturn x;\n\t}", "public int getX() {\r\n\t\t\r\n\t\treturn topX;\r\n\t}", "public Vector3f getOccluderPosition();", "private double getPosX() {\n\t\treturn this.posX.get();\n\t}", "public double getBoundingBoxTop() {\n return boundingBoxTop;\n }", "public double getBoundingBoxLeft() {\n return boundingBoxLeft;\n }", "public float min3DX() {\n return Math.min(stop3D.x, start3D.x);\n }", "public int getxMin() {\n\t\treturn xMin;\n\t}", "private Point2D.Double leftSensorLocation() {\n double dx = getSize() * Math.cos(getOrientation() + Math.PI / 4);\n double dy = -getSize() * Math.sin(getOrientation() + Math.PI / 4);\n return new Point2D.Double(getX() + dx * 2, getY() + dy * 2);\n }", "public Point getOrigin() {\n checkWidget();\n if (content == null)\n return new Point(0, 0);\n Point location = content.getLocation();\n return new Point(-location.x, -location.y);\n }", "Point getTopXY();", "public float getX() {\n return pos.x;\n }", "@Basic\n\t@Immutable\n\tpublic abstract double getRadiusLowerBound();", "public int getX() {\n return (int) center.getX();\n }", "Coordinate getMinY();", "public Point getdownLeft() {\n Point downLeft = new Point(this.upperLeft.getX(), this.upperLeft.getY() + this.getHeight());\n return downLeft;\n }", "public long getLowerTBound() {\n\t\treturn this.lowerTBound;\n\t}", "public Square getStartSquare() {\n\t\treturn squares.get(0);\n\t}" ]
[ "0.75424755", "0.74845064", "0.73584247", "0.7102272", "0.6986803", "0.69386554", "0.6744325", "0.6695404", "0.66816473", "0.6640992", "0.6617851", "0.65984106", "0.6514343", "0.64579815", "0.6443528", "0.64410853", "0.6436918", "0.6417898", "0.63637626", "0.6339685", "0.63043904", "0.6285478", "0.62733144", "0.6268997", "0.6242602", "0.6220174", "0.62121433", "0.6185941", "0.6159571", "0.6138939", "0.61317194", "0.6128943", "0.6125503", "0.61188895", "0.61061937", "0.60925996", "0.6080661", "0.60576475", "0.6046455", "0.6039037", "0.6029918", "0.6020893", "0.6020728", "0.6000085", "0.5990362", "0.5984119", "0.5966867", "0.5964344", "0.59631944", "0.59602284", "0.5955654", "0.5951481", "0.59480697", "0.5942186", "0.5939157", "0.5929667", "0.5927812", "0.592284", "0.590428", "0.59018207", "0.587555", "0.5875344", "0.5875269", "0.58740336", "0.58657825", "0.58586013", "0.58583826", "0.5857626", "0.5855681", "0.5847175", "0.58435357", "0.5838593", "0.5835018", "0.58291495", "0.58184874", "0.58177465", "0.58171475", "0.5815538", "0.5804656", "0.5796626", "0.5793849", "0.5793462", "0.5791292", "0.5788149", "0.578553", "0.57820725", "0.57791126", "0.57786614", "0.5772663", "0.57650644", "0.5761728", "0.5758474", "0.5755099", "0.5749662", "0.57496446", "0.57484746", "0.57401556", "0.5738919", "0.57333046", "0.5727636" ]
0.70674896
4
Returns the world this cuboid is in.
public String getWorldName() { return world; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameData getWorld() {\r\n return world;\r\n }", "public World getWorld() {\n return location.getWorld();\n }", "public World getWorld() {\n\t\treturn world;\n\t}", "public static World getWorld() {\n\t\treturn world;\n\t}", "public World getWorld () {\n\t\treturn world;\n\t}", "public final World getWorld() {\n\t\treturn location.getWorld();\n\t}", "public World getWorld() {\n return world;\n }", "public World getWorld() {\n return world;\n }", "public String getWorld() {\r\n\t\treturn mainSpawn.getWorld().toString();\r\n\t}", "public World getWorld()\n {\n if (worldData == null)\n {\n return null;\n }\n\n return worldData.getWorld();\n }", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "public World getWorld() {\n\t\treturn Bukkit.getWorld(world);\n\t}", "public World getWorld();", "public final World getWorld() {\n\t\treturn baseTile.getWorld();\n\t}", "World getWorld();", "@NotNull\r\n World getWorld();", "public HashMap<String, Location> getWorld() {\r\n\t\treturn this.world;\r\n\t}", "public ThingNode getWorld()\n {\n return world;\n }", "public static World getWorld() {\n\t\treturn ModLoader.getMinecraftInstance().theWorld;\n\t}", "public long getWorldId() {\n return worldId_;\n }", "public World getWorld ( ) {\n\t\treturn invokeSafe ( \"getWorld\" );\n\t}", "public long getWorldId() {\n return worldId_;\n }", "@Override\n\tpublic World getWorld() { return world; }", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public Level getWorld() {\r\n return this;\r\n }", "public mat4 getMatrix() {\n return worldMatrix;\n }", "public World getCurrentWorld() {\n\t\tassert levelIndex >= 0 && levelIndex < levels.size();\n\t\treturn levels.get(levelIndex);\n\t}", "public byte getWorldId()\r\n\t{\r\n\t\treturn mWorldId;\r\n\t}", "public World getClientWorld()\n {\n return null;\n }", "public static World getWorld(){\n Optional<World> worldOptional = Sponge.getServer().getWorld(\"world\");\n if(worldOptional.isPresent()){\n return worldOptional.get();\n }\n return null;\n }", "public int[][] getworld(){\n return world;\n }", "public World getParent() {\r\n return ocean;\r\n }", "public OdorWorldPanel getWorldPanel() {\n return worldPanel;\n }", "public MBMWorld getWorld(int num){\n return worlds.get(num);\n }", "long getWorldId();", "public static World readWorld() {\n\t\treturn null;\n\t}", "public World getWorld(String worldName);", "public static World getMainWorld() {\n\t\tif (!mainWorld.isEmpty()) {\n\t\t\tWorld world = Bukkit.getWorld(mainWorld);\n\t\t\tif (world != null) {\n\t\t\t\treturn world;\n\t\t\t}\n\t\t}\n\t\treturn WorldUtil.getWorlds().iterator().next();\n\t}", "public Vector2F getWorldLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "public static List<World> getWorlds() {\n\t\treturn worlds;\n\t}", "long getWorldid();", "long getWorldid();", "public Vector getWorldPosition(){\n\t\treturn this.absPos;\n\t}", "public WorldConfig getSingleWorldConfiguration() {\n\t\treturn SingleWorldConfig;\n\t}", "public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}", "public static World getInstance() {\n return instance;\n }", "public Pane getWorldDisplay() {\n return worldDisplay;\n }", "public int getCurrentWorldIndex() {\n\t\treturn levelIndex;\n\t}", "public World getWorld(int dim) {\n\t\treturn DimensionManager.getWorld(dim);\n\t}", "public static World getWorld(NetworkManager network) {\n\t\treturn getWorld();\n\t}", "public WorldServer getWorldServer()\r\n {\r\n return this.theWorldServer;\r\n }", "private GameWorld getGameWorld(){\n\t\tHashMap<String, Location> locations = new HashMap<String, Location>();\n\t\tHashMap<Avatar, Location> avatarLocations = new HashMap<Avatar, Location>();\n\t\tArrayList<Avatar> avatars = new ArrayList<Avatar>();\n\t\t\n\t\tLocation testLocation = new Location(\"Test Location\");\n\t\tAvatar testAvatar = new Avatar(\"Slim\", 1);\n\t\t\n\t\tlocations.put(\"testLocation\", testLocation);\n\t\tavatarLocations.put(testAvatar, testLocation);\n\t\tavatars.add(testAvatar);\n\t\t\n\t\treturn new GameWorld(locations, avatarLocations, avatars);\n\t}", "@Nonnull\n Texture getWorldMap();", "public long getWorldTime()\n {\n return worldTime;\n }", "public ArrayList<MBMWorld> getWorldList(){\n return worlds;\n }", "public Location getLocation()\n {\n if (worldData == null || position == null)\n {\n // Must have a world and position to make a location;\n return null;\n }\n\n if (orientation == null)\n {\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ());\n }\n\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ(), orientation.getYaw(), orientation.getPitch());\n }", "public static World getInstance() {\n\t\tif (world == null) {\n\t\t\tworld = new World();\n\t\t}\n\t\treturn world;\n\t}", "public Continuous2D getGeographySpace() {\n return obstacleSpace;\n }", "WorldGenerator getForWorld(World world);", "public World getWorld(String name) {\n String world = cfg.getString(name + \".World\");\n if (world != null)\n return Bukkit.getWorld(world);\n return null;\n }", "@NotNull\n public Location<World> getCenterBlock() {\n int centerX = getMinChunk().getX() + 16;\n int centerZ = getMinChunk().getZ() + 16;\n return Tungsten.INSTANCE.getIslandWorld().getLocation(centerX * 16, 86, centerZ * 16);\n }", "public Texture getWorldTexture() {\n return frameBuffer.getTexture(0);\n }", "public SbVec3f getPoint() {\n \t return worldPoint; \n }", "public WorldLoader getWorldLoader() {\n\t\treturn loader;\n\t}", "@Basic @Raw\n\tpublic World getSuperWorld() {\n\t\treturn this.superWorld;\n\t}", "public World getWorld(int i) {\n\t\treturn levels.get(i);\n\t}", "public int getWorldLimit() {\n\t\treturn worldLimit;\n\t}", "public String getWorldName() {\n\t\treturn MinecraftServer.getServer().worldServers[0].getSaveHandler()\n\t\t\t\t.getWorldDirectoryName();\n\t}", "public String getWorldName()\n {\n return levelName;\n }", "public static synchronized World getWorld() {\n\t\tif (worldInstance == null) {\n\t\t\tworldInstance = new World();\n\t\t\ttry {\n\t\t\t\tworldInstance.wl = new WorldLoader();\n\t\t\t\ttry {\n\t\t\t\t\tServer.print(\"Loading World Data\", false);\n\t\t\t\t\tworldInstance.wl.loadWorld(worldInstance);\n\t\t\t\t\tworldInstance.loadScripts();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tServer.print(\"ERROR\", true);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tServer.print(\"COMPLETE\", true);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tServer.print(\"Loading Objects\", false);\n\t\t\t\t\tworldInstance.getDB().loadObjects(worldInstance);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tServer.print(\"ERROR\", true);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tServer.print(\"COMPLETE\", true);\n\t\t\t\t}\n\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tLogger.error(e);\n\t\t\t}\n\t\t}\n\t\treturn worldInstance;\n\t}", "public long[] getWorldCoordinate(int screenX, int screenY);", "WorldCoordinates getWCSCenter();", "@PersistField\n public WorldData getWorldData()\n {\n return worldData;\n }", "public static World getWorld(CommandContext<?> ctx, String argName) throws CommandSyntaxException {\n if(BrigadierWrapper.useFallbackDimensionArgument()) {\n return INSTANCE.dynamicStringToWorld(ctx, argName);\n } else {\n return INSTANCE.getDimension(ctx, argName);\n }\n }", "public static World readWorld(GlowServer server, CompoundTag compound) {\n World world = compound\n .tryGetUniqueId(\"WorldUUIDMost\", \"WorldUUIDLeast\")\n .map(server::getWorld)\n .orElseGet(() -> compound.tryGetString(\"World\")\n .map(server::getWorld)\n .orElse(null));\n if (world == null) {\n world = compound\n .tryGetInt(\"Dimension\")\n .map(World.Environment::getEnvironment)\n .flatMap(env -> server.getWorlds().stream()\n .filter(serverWorld -> env == serverWorld.getEnvironment())\n .findFirst())\n .orElse(null);\n }\n return world;\n }", "public World makeWorld() {\n World world = new World(1000, 1000);\n world.createEntity().addComponent(new CursorComponent());\n \n ProjectileSystem projectileSystem = new ProjectileSystem();\n world.addSystem(projectileSystem, 1);\n \n return world;\n }", "public Location getLobbyLocation() {\n return gameLocations.get(GameLocation.LOBBY);\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public void setWorld(GameData world) {\r\n this.world = world;\r\n }", "public void setWorld(World world) {\n this.world = world;\n }", "public GridCoord getCoord() {\n return coord;\n }", "public int numWorlds(){\n return worlds.size();\n }", "public Room getCurrentRoom(){\n\treturn rooms[gx][gy];\n }", "public int getGameBoundary() {\n\t\treturn gameEngine.getBoundary();\n\t}", "public GridCoord getCoord() {\n\t\treturn this.coord;\n\t}", "public String getWorldName() {\n String worldname = getMapName();\n if (worldname.equals(\"MpServer\")) {\n //This removes the port\n String[] split = getServerName().toLowerCase().split(\":\");\n worldname = split[0];\n }\n return worldname;\n }", "public World() {\n\t\tblockIDArray = new byte[WORLD_SIZE][WORLD_HEIGHT][WORLD_SIZE];\n\t\tentities\t = new ArrayList<Entity>();\n\t\trand\t\t = new Random();\n\t\t\n new GravityThread(this);\n\t\t\t\t\n\t\tgenerateWorld();\n\t}", "public double[] getWorldCoordinateWGS84(int screenX, int screenY);", "public Room getCurrentRoom() {\r\n return player.getCurrentRoom();\r\n }", "public World[] getAllWorlds() {\n\t\treturn levels.toArray(new World[levels.size()]);\n\t}", "public Vector3f getPhysicsLocation() {\n return getPhysicsLocation(null);\n }", "public GuiPositions getPosWorldAge() {\r\n\t\treturn posWorldAge;\r\n\t}", "public long getTime(){\r\n\t\treturn world.getWorldTime();\r\n\t}", "public Location getCenter() {\n return new Location(location.getWorld(), (float) getRectangle().getCenterX(), (float) getRectangle().getCenterY());\n }", "public Guild getGuild() { return config.getGuild(); }", "public String getPassworld() {\n return passworld;\n }" ]
[ "0.7903951", "0.78264934", "0.78014106", "0.77426255", "0.77420133", "0.7738254", "0.7702058", "0.7702058", "0.7668604", "0.76180017", "0.75766706", "0.75766706", "0.7482748", "0.741754", "0.7390469", "0.7362376", "0.7343821", "0.73284566", "0.7282942", "0.72767246", "0.7242137", "0.72107893", "0.720436", "0.71963966", "0.70522416", "0.70522416", "0.7018339", "0.7018339", "0.6972011", "0.69589", "0.6884107", "0.6815332", "0.68084276", "0.6795371", "0.67862463", "0.6762192", "0.67567426", "0.67303604", "0.6691198", "0.6588803", "0.6576711", "0.64910275", "0.6475194", "0.6372347", "0.63700384", "0.63700384", "0.6346479", "0.62938374", "0.6292877", "0.6272141", "0.6265217", "0.6251878", "0.62054515", "0.6196161", "0.61937237", "0.61480784", "0.6135529", "0.6029521", "0.60080475", "0.59704375", "0.59602314", "0.5958415", "0.5948912", "0.5939326", "0.5920417", "0.5917776", "0.5882907", "0.5859002", "0.58081025", "0.5803919", "0.57663924", "0.57654154", "0.57487", "0.5724716", "0.5710535", "0.57039607", "0.56997055", "0.5689794", "0.5667693", "0.5654908", "0.56464344", "0.5616077", "0.5614417", "0.5612676", "0.557172", "0.5554927", "0.5554841", "0.55369043", "0.55287856", "0.55059224", "0.55025303", "0.5501597", "0.5497743", "0.549114", "0.5486473", "0.548437", "0.5468942", "0.54495454", "0.54366237", "0.5428396" ]
0.7142523
24
Returns the world of the region. Might return null when the world was deleted after the creation of the region.
public World getWorld() { return Bukkit.getWorld(world); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public World getWorld()\n {\n if (worldData == null)\n {\n return null;\n }\n\n return worldData.getWorld();\n }", "public final World getWorld() {\n\t\treturn location.getWorld();\n\t}", "public World getWorld() {\n return location.getWorld();\n }", "public static World getWorld() {\n\t\treturn world;\n\t}", "public World getWorld() {\n\t\treturn world;\n\t}", "public static World getWorld(){\n Optional<World> worldOptional = Sponge.getServer().getWorld(\"world\");\n if(worldOptional.isPresent()){\n return worldOptional.get();\n }\n return null;\n }", "@NotNull\r\n World getWorld();", "public World getWorld ( ) {\n\t\treturn invokeSafe ( \"getWorld\" );\n\t}", "public World getWorld () {\n\t\treturn world;\n\t}", "public World getWorld() {\n return world;\n }", "public World getWorld() {\n return world;\n }", "public static World getWorld() {\n\t\treturn ModLoader.getMinecraftInstance().theWorld;\n\t}", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "@Basic\n\tpublic World getWorld() {\n\t\treturn this.world;\n\t}", "public GameData getWorld() {\r\n return world;\r\n }", "public static World readWorld() {\n\t\treturn null;\n\t}", "public final World getWorld() {\n\t\treturn baseTile.getWorld();\n\t}", "public HashMap<String, Location> getWorld() {\r\n\t\treturn this.world;\r\n\t}", "public String getWorld() {\r\n\t\treturn mainSpawn.getWorld().toString();\r\n\t}", "public OdorWorldPanel getWorldPanel() {\n return worldPanel;\n }", "public ThingNode getWorld()\n {\n return world;\n }", "public World getWorld();", "@Override\n\tpublic World getWorld() { return world; }", "public String getWorldName() {\n\t\treturn world;\n\t}", "public long getWorldId() {\n return worldId_;\n }", "private Location getRegion() {\n Set<? extends Location> locations = blobStore.listAssignableLocations();\n if (!(swiftRegion == null || \"\".equals(swiftRegion))) {\n for (Location location : locations) {\n if (location.getId().equals(swiftRegion)) {\n return location;\n }\n }\n }\n if (locations.size() != 0) {\n return get(locations, 0);\n } else {\n return null;\n }\n }", "public WorldRegions getWorldRegions()\n {\n return regions;\n }", "public long getWorldId() {\n return worldId_;\n }", "public World getWorld(String worldName);", "public File getWorldRegionFolder(String worldName);", "World getWorld();", "public static List<World> getWorlds() {\n\t\treturn worlds;\n\t}", "public World getClientWorld()\n {\n return null;\n }", "public World getCurrentWorld() {\n\t\tassert levelIndex >= 0 && levelIndex < levels.size();\n\t\treturn levels.get(levelIndex);\n\t}", "public World getWorld(String name) {\n String world = cfg.getString(name + \".World\");\n if (world != null)\n return Bukkit.getWorld(world);\n return null;\n }", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public MBMWorld getWorld(int num){\n return worlds.get(num);\n }", "public Level getWorld() {\r\n return this;\r\n }", "public long getWorldid() {\n return worldid_;\n }", "public long getWorldid() {\n return worldid_;\n }", "public LocalRegion getRegion() {\n\t\treturn this.region;\n\t}", "public static synchronized World getWorld() {\n\t\tif (worldInstance == null) {\n\t\t\tworldInstance = new World();\n\t\t\ttry {\n\t\t\t\tworldInstance.wl = new WorldLoader();\n\t\t\t\ttry {\n\t\t\t\t\tServer.print(\"Loading World Data\", false);\n\t\t\t\t\tworldInstance.wl.loadWorld(worldInstance);\n\t\t\t\t\tworldInstance.loadScripts();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tServer.print(\"ERROR\", true);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tServer.print(\"COMPLETE\", true);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tServer.print(\"Loading Objects\", false);\n\t\t\t\t\tworldInstance.getDB().loadObjects(worldInstance);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tServer.print(\"ERROR\", true);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tServer.print(\"COMPLETE\", true);\n\t\t\t\t}\n\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tLogger.error(e);\n\t\t\t}\n\t\t}\n\t\treturn worldInstance;\n\t}", "IRegion getRegion();", "public static World getMainWorld() {\n\t\tif (!mainWorld.isEmpty()) {\n\t\t\tWorld world = Bukkit.getWorld(mainWorld);\n\t\t\tif (world != null) {\n\t\t\t\treturn world;\n\t\t\t}\n\t\t}\n\t\treturn WorldUtil.getWorlds().iterator().next();\n\t}", "@Nonnull\n Texture getWorldMap();", "public int[][] getworld(){\n return world;\n }", "public Location getLocation(){\n\t\tWorld w = Bukkit.getWorld(worldName);\n\t\tif(w==null){\n\t\t\tSystem.out.println(\"Error, null world in Location from SQL\");\n\t\t\treturn null;\n\t\t}\n\t\treturn new Location(w, x+0.5, y, z+0.5);\n\t\t\n\t}", "public mat4 getMatrix() {\n return worldMatrix;\n }", "public World getWorld(int dim) {\n\t\treturn DimensionManager.getWorld(dim);\n\t}", "public static World getInstance() {\n\t\tif (world == null) {\n\t\t\tworld = new World();\n\t\t}\n\t\treturn world;\n\t}", "public Location getLocation()\n {\n if (worldData == null || position == null)\n {\n // Must have a world and position to make a location;\n return null;\n }\n\n if (orientation == null)\n {\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ());\n }\n\n return new Location(worldData.getWorld(), position.getX(), position.getY(), position.getZ(), orientation.getYaw(), orientation.getPitch());\n }", "public ArrayList<MBMWorld> getWorldList(){\n return worlds;\n }", "public byte getWorldId()\r\n\t{\r\n\t\treturn mWorldId;\r\n\t}", "public static World getInstance() {\n return instance;\n }", "public Vector2F getWorldLocation() {\n\t\treturn new Vector2F(xPos, yPos);\n\t}", "public WorldLoader getWorldLoader() {\n\t\treturn loader;\n\t}", "public WorldServer getWorldServer()\r\n {\r\n return this.theWorldServer;\r\n }", "public static World getWorld(NetworkManager network) {\n\t\treturn getWorld();\n\t}", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "public static World readWorld(GlowServer server, CompoundTag compound) {\n World world = compound\n .tryGetUniqueId(\"WorldUUIDMost\", \"WorldUUIDLeast\")\n .map(server::getWorld)\n .orElseGet(() -> compound.tryGetString(\"World\")\n .map(server::getWorld)\n .orElse(null));\n if (world == null) {\n world = compound\n .tryGetInt(\"Dimension\")\n .map(World.Environment::getEnvironment)\n .flatMap(env -> server.getWorlds().stream()\n .filter(serverWorld -> env == serverWorld.getEnvironment())\n .findFirst())\n .orElse(null);\n }\n return world;\n }", "public kr.pik.message.Profile.HowMe.Region getRegion() {\n kr.pik.message.Profile.HowMe.Region result = kr.pik.message.Profile.HowMe.Region.valueOf(region_);\n return result == null ? kr.pik.message.Profile.HowMe.Region.UNRECOGNIZED : result;\n }", "private GameWorld getGameWorld(){\n\t\tHashMap<String, Location> locations = new HashMap<String, Location>();\n\t\tHashMap<Avatar, Location> avatarLocations = new HashMap<Avatar, Location>();\n\t\tArrayList<Avatar> avatars = new ArrayList<Avatar>();\n\t\t\n\t\tLocation testLocation = new Location(\"Test Location\");\n\t\tAvatar testAvatar = new Avatar(\"Slim\", 1);\n\t\t\n\t\tlocations.put(\"testLocation\", testLocation);\n\t\tavatarLocations.put(testAvatar, testLocation);\n\t\tavatars.add(testAvatar);\n\t\t\n\t\treturn new GameWorld(locations, avatarLocations, avatars);\n\t}", "long getWorldId();", "@PersistField\n public WorldData getWorldData()\n {\n return worldData;\n }", "public MWC.GenericData.WorldArea getBounds()\r\n\t{\n\t\treturn null;\r\n\t}", "public Region getRegion() {\n return region;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.utils.Matrix.MatrixUint64 getRegionLocationMatrix() {\n return regionLocationMatrix_ == null ? com.clarifai.grpc.api.utils.Matrix.MatrixUint64.getDefaultInstance() : regionLocationMatrix_;\n }", "public Pane getWorldDisplay() {\n return worldDisplay;\n }", "public World getParent() {\r\n return ocean;\r\n }", "public static World getInstance() {\n try {\n mWorldLock.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n if (instance == null) {\n ObjectInputStream ois;\n try {\n ois = new ObjectInputStream(new FileInputStream(\"world.save\"));\n try {\n instance = (World) ois.readObject();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (instance == null) {\n instance = new World();\n }\n }\n mWorldLock.release();\n return instance;\n }", "public CoordinateRadius getRegion();", "public File getWorldFolder(String worldName);", "public Rectangle2D.Float getRegion() {\n\t\t\treturn new Rectangle2D.Float(origin.x, origin.y, width, height);\n\t\t}", "public String getWorldName() {\n\t\treturn MinecraftServer.getServer().worldServers[0].getSaveHandler()\n\t\t\t\t.getWorldDirectoryName();\n\t}", "public static WrapperWorld getWrapperFor(World world){\r\n\t\tif(world != null){\r\n\t\t\tWrapperWorld wrapper = worldWrappers.get(world);\r\n\t\t\tif(wrapper == null || world != wrapper.world){\r\n\t\t\t\twrapper = new WrapperWorld(world);\r\n\t\t\t\tworldWrappers.put(world, wrapper);\r\n\t\t\t}\r\n\t\t\treturn wrapper;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "WorldCoordinates getWCSCenter();", "public Region getCurrentRegion() {\n\n return currentRegion;\n }", "@NotNull\n public Location<World> getCenterBlock() {\n int centerX = getMinChunk().getX() + 16;\n int centerZ = getMinChunk().getZ() + 16;\n return Tungsten.INSTANCE.getIslandWorld().getLocation(centerX * 16, 86, centerZ * 16);\n }", "public World getWorld(int i) {\n\t\treturn levels.get(i);\n\t}", "public TypeOfRegion getRegion();", "public String getRegion() {\n return this.region;\n }", "public java.lang.String getREGION()\n {\n \n return __REGION;\n }", "public long getWorldTime()\n {\n return worldTime;\n }", "public Texture getWorldTexture() {\n return frameBuffer.getTexture(0);\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public String getRegion() {\n return region;\n }", "public int getCurrentWorldIndex() {\n\t\treturn levelIndex;\n\t}", "public Long getRegionId() {\n return this.regionId;\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public String getRegion() {\r\n return region;\r\n }", "public Vector getWorldPosition(){\n\t\treturn this.absPos;\n\t}", "public com.clarifai.grpc.api.utils.Matrix.MatrixUint64 getRegionLocationMatrix() {\n if (regionLocationMatrixBuilder_ == null) {\n return regionLocationMatrix_ == null ? com.clarifai.grpc.api.utils.Matrix.MatrixUint64.getDefaultInstance() : regionLocationMatrix_;\n } else {\n return regionLocationMatrixBuilder_.getMessage();\n }\n }", "WorldGenerator getForWorld(World world);", "public static World getWorld(CommandContext<?> ctx, String argName) throws CommandSyntaxException {\n if(BrigadierWrapper.useFallbackDimensionArgument()) {\n return INSTANCE.dynamicStringToWorld(ctx, argName);\n } else {\n return INSTANCE.getDimension(ctx, argName);\n }\n }" ]
[ "0.7955111", "0.76791793", "0.76398987", "0.75790274", "0.7532052", "0.74957633", "0.7443069", "0.7434299", "0.7414822", "0.73981446", "0.73981446", "0.737676", "0.7360836", "0.7360836", "0.7342421", "0.7178261", "0.7169353", "0.7126538", "0.70280534", "0.69462866", "0.68959916", "0.6865594", "0.6825786", "0.6782139", "0.67796224", "0.67718416", "0.673818", "0.6721987", "0.6709939", "0.6642907", "0.6636837", "0.65883905", "0.6552124", "0.6541501", "0.6527155", "0.65123546", "0.65123546", "0.64968705", "0.6493367", "0.64544356", "0.64544356", "0.64313954", "0.64142823", "0.6339573", "0.6333602", "0.63228387", "0.631536", "0.6299106", "0.6277838", "0.6259849", "0.61270547", "0.61180454", "0.61163956", "0.61088", "0.60975313", "0.60937166", "0.60450554", "0.6039946", "0.6035108", "0.6021804", "0.60074836", "0.59932244", "0.59929395", "0.5970925", "0.59490705", "0.5909443", "0.5889329", "0.5868879", "0.58625126", "0.58560944", "0.584214", "0.58377", "0.58254254", "0.58137214", "0.57603145", "0.5721152", "0.57126254", "0.5701623", "0.5686294", "0.5679482", "0.56756467", "0.5664878", "0.5653695", "0.5646202", "0.56390727", "0.5613668", "0.5605975", "0.5605975", "0.5605975", "0.5605975", "0.5605975", "0.560247", "0.5598876", "0.5590035", "0.5590035", "0.5590035", "0.5587151", "0.55826974", "0.5555531", "0.5545925" ]
0.736047
14
Returns a raw representation that is easy to read for Java.
public String toRaw() { return new StringBuilder(world).append(",").append(lowPoint.getBlockX()).append(",").append(lowPoint.getBlockY()).append(",").append(lowPoint.getBlockZ()).append(",").append(highPoint.getBlockX()).append(",").append(highPoint.getBlockY()).append(",").append(highPoint.getBlockZ()).toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRaw();", "java.lang.String getAboutRaw();", "public abstract String serialise();", "@Override\n public String toString() {\n //https://github.com/google/gson/issues/388\n\n String src = super.toString();\n StringBuilder builder = new StringBuilder(src.length() * 4);\n for (char c : src.toCharArray()) {\n if (c >= 0x80) {\n // 为所有非ASCII字符生成转义的unicode字符\n writeUnicodeEscape(builder, c);\n } else {\n // 为ASCII字符中前128个字符使用转义的unicode字符\n int code = (c < ESCAPE_CODES.length ? ESCAPE_CODES[c] : 0);\n if (code == 0) {\n // 此处不用转义\n builder.append(c);\n } else if (code < 0) {\n // 通用转义字符\n writeUnicodeEscape(builder, (char) (-code - 1));\n } else {\n // 短转义字符 (\\n \\t ...)\n builder.append(\"\\\\\").append((char) code);\n }\n }\n }\n return builder.toString();\n }", "String serialize();", "@Override\n public native String toString();", "public native String toString();", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "protected String toStringAsCode() {\r\n \t\treturn \"<\"+toStringAsElement()+\">\";\r\n \t}", "public String represent();", "@Override\n\tpublic String toString() {\n\t\treturn rawValue;\n\t}", "public String toString() {\n\t String outPut = \"byteValue(): \" + byteValue()\n\t \t\t+ \"\\nshortValue(): \" + shortValue()\n\t \t\t+ \"\\nintValue(): \" + intValue()\n\t \t\t+ \"\\nlongValue(): \" + longValue()\n\t \t\t+ \"\\nfloatValue(): \" + floatValue()\n\t \t\t+ \"\\ndoubleValue(): \" + doubleValue();\n\t \n\t return outPut;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn new String(bytes);\n\t}", "public abstract String rawGraphToString();", "public String toString() { return stringify(this, true); }", "@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }", "@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }", "@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }", "public ByteBuffer raw() {\n\n\t\t// Allocate buffer\n\t\tByteBuffer b = ByteBuffer.allocate(rawLength()).order(ByteOrder.LITTLE_ENDIAN);\n\n\t\t// Populate buffer\n\t\tb.put(length.raw());\n\t\tb.put(s.getBytes(Charset.forName(\"UTF-8\")));\n\n\t\t// Return rewinded buffer\n\t\tb.rewind();\n\n\t\t// Return buffer\n\t\treturn b;\n\t}", "public String toString()\n\t{\n\t\tField[] fields = this.getClass().getDeclaredFields();\n\t\tint i, max = fields.length;\n\t\tString fieldName = \"\";\n\t\tString fieldType = \"\";\n\t\tString ret = \"\";\n\t\tString value = \"\";\n\t\tboolean skip = false;\n\t\tint j = 0;\n\t\tfor(i = 0; i < max; i++)\n\t\t{\n\t\t\tfieldName = fields[i].getName().toString();\n\t\t\tfieldType = fields[i].getType().toString();\n\t\t\tif(i == 0)\n\t\t\t{\n\t\t\t\tret += \"{\";\n\t\t\t}\n\t\t\tif(fieldType.equals(\"int\") || fieldType.equals(\"long\") || fieldType.equals(\"float\") || fieldType.equals(\"double\") || fieldType.equals(\"boolean\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = fields[i].get(this).toString();\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"0\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse if(fieldType.contains(\"String\"))\n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+Utility.escapeJSON((String) fields[i].get(this))+\"\\\"\";\n\t\t\t\t} \n\t\t\t\tcatch (Exception e) \n\t\t\t\t{\n\t\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\t}\n\t\t\t\tskip = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tvalue = \"\\\"\"+\"\\\"\";\n\t\t\t\tskip = true;\n\t\t\t}\n\t\t\tif(!skip)\n\t\t\t{\n\t\t\t\tif(j > 0)\n\t\t\t\t{\n\t\t\t\t\tret += \",\";\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tret += \"\\r\\n\\t\\\"\"+fieldName+\"\\\":\"+value;\n\t\t\t}\n\t\t\tif(i == max-1)\n\t\t\t{\n\t\t\t\tret += \"\\r\\n}\";\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "public static String create()\n\t{\n\t\treturn new String(B64Code.encode(createBytes()));\n\t}", "@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String getRepresentation();", "String toJSON();", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "public Object getRawValue();", "@Nonnull\n public String toBuf() {\n Buf buf = new Buf();\n Error.throwIfNeeded(jniToBuf(buf, getRawPointer()));\n return buf.getString().orElse(\"\");\n }", "public String toString() {\n\treturn createString(data);\n }", "public Object writeReplace() {\n return new SerializedForm(this.prototype.getAlgorithm(), this.bytes, this.toString);\n }", "@Override\n public String toString() {\n String result = \"\";\n byte[] data = buffer.data;\n for (int i = 0; i < (buffer.end - buffer.start) / bytes; i++) {\n if (i > 0) result += \", \";\n result += get(i).toString();\n }\n return type + \"[\" + result + \"]\";\n }", "public String toJava() {\n return String.valueOf(getValue());\n }", "@JsMethod(name = \"toString\")\n\tpublic native String toSource();", "public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }", "public String getDumpString() {\n return \"[clazz = \" + clazz + \" , name = \" + name + \" , elementType = \" + elementType + \" , primitivePointerType = \" + primitivePointerType + \"]\";\n }", "public String toDebugString();", "com.google.protobuf.ByteString\n getAboutRawBytes();", "public String toString() {\n // TODO\n return \"Plain\";\n }", "public String toString()\n\t{\n\t\treturn \"java\";\n\t}", "public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn Base64.encode(mByteList);\r\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "public final String toString ()\r\n\t{\r\n\t\tStringBuffer retVal = new StringBuffer ();\r\n\t\tif (codeset != null)\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < prolog.size (); i++)\r\n\t\t\t{\r\n\t\t\t\tConcreteElement e = (ConcreteElement)prolog.elementAt (i);\r\n\t\t\t\tretVal.append (e.toString (getCodeset ()) + \"\\n\");\r\n\t\t\t}\r\n\t\t\tif (content != null)\r\n\t\t\t\tretVal.append (content.toString (getCodeset ()));\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < prolog.size (); i++)\r\n\t\t\t{\r\n\t\t\t\tConcreteElement e = (ConcreteElement)prolog.elementAt (i);\r\n\t\t\t\tretVal.append (e.toString () + \"\\n\");\r\n\t\t\t}\r\n\t\t\tif (content != null)\r\n\t\t\t\tretVal.append (content.toString ());\r\n\t\t}\r\n\t\t/**\r\n * FIXME: The other part of the version hack! Add the version\r\n * declaration to the beginning of the document.\r\n */\r\n\t\treturn versionDecl + retVal.toString ();\r\n\t}", "public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}", "public String toClassicRepresentation(){\n try {\n return LegacyMarshaller.getInstance().marshal(getComponents()).toString();\n } catch (ServiceException exception) {\n throw new RuntimeServiceException(exception);\n }\n }", "public String getStringRepresentation() {\n return m_StringRepresentation;\n }", "public static String create()\n\t{\n\t\tBASE64Encoder\tencoder = new BASE64Encoder();\n\n\t\treturn encoder.encode(createBytes());\n\t}", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "public String encodeJava()\n {\n return '\"' + val + '\"';\n }", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "public String prettyPrint()\n {\n return prettyPrint(\"\");\n }", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString() {\n\t\treturn toString(true);\n\t}", "public String toString()\n\t{\n\t\treturn (new String(wLocalBuffer)) ;\n\t}", "public String f() {\n StringWriter stringWriter = new StringWriter();\n dump(\"\", null, new PrintWriter(stringWriter), null);\n return stringWriter.toString();\n }", "public java.lang.String getAboutRaw() {\n java.lang.Object ref = aboutRaw_;\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 aboutRaw_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String serialize() {\n switch (type) {\n case LIST:\n return serializeList();\n\n case OBJECT:\n return serializeMap();\n\n case UNKNOWN:\n return serializeUnknown();\n }\n return \"\";\n }", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "protected String toStringInternal() {\n return \"{\"\n + \"name='\" + name + '\\''\n + \", valueClassName='\" + valueClassName + '\\''\n + \", isInterface='\" + isInterface + '\\''\n + \", description='\" + description() + '\\''\n + \", implementingInterface='\" + implementingInterface + '\\''\n + \", listFieldDefinitions=\" + listSchemaFieldDefinitions + '}';\n }", "public String toString()\r\n\t{\r\n\t\treturn toCharSequence().toString();\r\n\t}", "public java.lang.String toDebugString () { throw new RuntimeException(); }", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();", "String toString();" ]
[ "0.6729485", "0.6516035", "0.6404967", "0.6203778", "0.6162423", "0.61481065", "0.613962", "0.6080757", "0.60796106", "0.60507953", "0.6038531", "0.60377055", "0.5981564", "0.59785897", "0.59506303", "0.59151095", "0.58930224", "0.5862004", "0.5860492", "0.5855631", "0.5850102", "0.58221316", "0.5819554", "0.58084786", "0.5798055", "0.5798055", "0.57480973", "0.57297057", "0.5702099", "0.57016754", "0.5699971", "0.5695588", "0.56920743", "0.5690943", "0.56874967", "0.567273", "0.5664993", "0.5656494", "0.56476367", "0.5647619", "0.56334215", "0.5633018", "0.5624609", "0.5617449", "0.5614743", "0.5609431", "0.5606919", "0.5606919", "0.56057346", "0.55946857", "0.5594682", "0.5590379", "0.5586228", "0.5585659", "0.5580115", "0.557359", "0.5567697", "0.5557109", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.5556178", "0.55560124", "0.5549165", "0.55426675", "0.55424166", "0.553714", "0.55282646", "0.5522037", "0.5520738", "0.55195624", "0.551909", "0.551909", "0.551909", "0.551909", "0.551909", "0.551909", "0.551909", "0.551909", "0.551909", "0.551909", "0.551909" ]
0.5527739
86
insert a number into trie
private void insert(int N, TrieNode root) { TrieNode curr = root; for (int i = 30; i >= 0; i--) { int bit = ((N & (1 << i)) > 0) ? 1 : 0; if (curr.children[bit] == null) { curr.children[bit] = new TrieNode(); } else { curr.children[bit].freq++; } curr = curr.children[bit]; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void insert(String mappedNumber, String word);", "void insertDigit(int digit);", "static void insert(String key)\n {\n \n int len=key.length();\n trie_node crawl=root;\n for(int i=0;i<len;i++)\n {\n int idx=key.charAt(i);\n if(crawl.child[idx]==null)\n crawl.child[idx]=new trie_node();\n else\n crawl.child[idx].f++;\n\n crawl=crawl.child[idx];\n } \n \n \n }", "public void insert(int data) { \n\t\troot = insert(root, data);\t\n\t}", "private void insertRecursive(TrieNode current, String word, int index) {\n\t\t\n\t\tif(index == word.length()) {\n\t\t\tcurrent.isLeaf = true;\n\t\t\treturn;\n\t\t}\n\t\t Character ch = word.charAt(index);\t \n\t\t\tif (!current.getChild().containsKey(ch)) {\n\t\t\t\tTrieNode newNode = new TrieNode();\n\t\t\t\tcurrent.getChild().put(ch, newNode);\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.getChild().get(ch);\n\t\t\t\n insertRecursive(current, word, index++);\n\t}", "void insert(int data) { \n root = insertRec(root, data); \n }", "public void insert(int data)\r\n {\r\n root = insert(root, data);\r\n }", "public void insert(int key) {\n\t\tprivateInsert(key, root, null, new Ref<Integer>(1));\n\t}", "public void insert(int data) {\n root = insert(root, data, null);\n }", "public void insert(int value){\r\n\t\tNode node = new Node<>(value);\r\n\t\t//If the tree is empty\r\n\t\tif ( root == null ) {\r\n\t\t\troot = node;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tinsertRec(root, node);\r\n\t}", "public void insert(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(!tn.hm.containsKey(c)){\n tn = new TrieNode();\n tn.hm.put(c, temp);\n }\n tn = temp;\n }\n tn.flag = true;\n }", "public static void insert(String key)\n\t{\n\t\tint level;\n\t\tint length=key.length();\n\t\tint index;\n\t\tTrieNode pCrawl=root;\n\t\tfor(level=0;level<length;level++)\n\t\t{\n\t\t\tindex=key.charAt(level)-'a';\n\t\t\t\n\t\t\tif(pCrawl.children[index]==null)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tpCrawl.children[index]=new TrieNode();\n\t\t\t}\n\t\t\tpCrawl=pCrawl.children[index];\n\t\t\tpCrawl.freq++;\n\t\t}\n\t\tpCrawl.isEndOfWord=true;\n\t}", "public void insert(int val) {\n root = insertRec(root, val);\n }", "public void insert(int key)\n {\n root = insertRec(root,key);\n }", "public void insert(String word) {\n\t\tTrieNode node = root;\n\t\tfor (char c: word.toCharArray()) {\n\t\t\tif (!node.containsKey(c)) {\n\t\t\t\tnode.put(c);\n\t\t\t}\n\t\t\tnode = node.get(c);\n\t\t}\n\t\tnode.setEnd();\n\t}", "public void insert(String word) \n\t {\n\t \tTrieNode p = root;\n\t for(int i=0; i<word.length(); ++i)\n\t {\n\t \tchar c = word.charAt(i);\n\t \tif(p.children[c-'a']==null)\n\t \t\tp.children[c-'a'] = new TrieNode(c);\n\t \tp = p.children[c-'a'];\n\t }\n\t p.mark = true;\n\t }", "public void insertNode(int data){\r\n\t\troot = insert(data, root);\r\n\t}", "public void insertByNumber(String name, String sname, String no){\n\t\troot = insertByNumber(root, name, sname, no);\n\t}", "public void insert(String word){\n //initially curr is root\n TrieNode curr = root;\n for(int i=0; i<word.length(); i++){\n char c = word.charAt(i);\n //if char doesnot exist, add new trienode\n if(curr.children[c-'a'] == null){\n curr.children[c-'a'] = new TrieNode();\n }\n //curr++\n curr = curr.children[c-'a'];\n }\n //set curr.word to the word\n curr.word = word;\n }", "public void insert(int number) {\r\n\t\tif (root == null) {\r\n\t\t\troot = new Node(number, null, null, null);\r\n\t\t}\r\n\t\telse {\t\t\r\n\t\t\trecursiveInsert(number, root);\r\n\t\t}\r\n\t}", "protected int insert(int toAdd){\n\n tnode object = new tnode();\n\n return object.insert(toAdd);\n\n }", "public void insert(String word) {\n \tTrieNode cur=root;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\t\tint ch=word.charAt(i)-'a';\n \t\t\tif(cur.next[ch]==null) {\n \t\t\t\tcur.next[ch]=new TrieNode();\n \t\t\t}\n \t\t\tcur=cur.next[ch];\n \t\t}\n \tcur.val=word;\n \tcur.isEnd=true;\n }", "public void insert(String word) {\n\t\t\n\t\tTrieNode current = root;\n\t\t\t\t\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\n\t\t\tCharacter ch = word.charAt(i);\n\t\t\t\n\t\t\tif (!current.getChild().containsKey(ch)) {\n\t\t\t\tTrieNode newNode = new TrieNode();\n\t\t\t\tcurrent.getChild().put(ch, newNode);\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.getChild().get(ch);\t\n\t\t}\n\t\t\n\t\tcurrent.isLeaf = true;\t \n\t}", "public void insert(String word) {\n TrieNode curr=root;\n for(int i=0;i<word.length();i++){\n char c = word.charAt(i);\n TrieNode node=curr.hmap.get(c);\n if(node==null){\n node=new TrieNode();\n curr.hmap.put(c, node);\n }\n curr=node;\n }\n curr.endOfWord=true;\n }", "public void insert(String word) {\n TrieNode node = root;\n\n for (char c: word.toCharArray()) {\n if (node.children[c - 'a'] == null) \n node.children[c - 'a'] = new TrieNode();\n\n node = node.children[c - 'a'];\n }\n\n node.word = word;\n }", "void insert(int val){\n\t\tthis.root = insertHelper(root, val);\n\t}", "public void insert(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n}", "public void insert(int data) {\n root = insert(root, data);\n size++;\n }", "public void insert(HuffmanTree node);", "public void insert(String word) {\n TrieNode current = root;\n for(char c : word.toCharArray()){\n int index = c - 'a';\n if(current.childrens[index] == null)\n current.childrens[index] = new TrieNode(c);\n current = current.childrens[index];\n }\n current.eow = true;\n }", "public void insert(int data) {\n this.root = this.insertRec(this.root, data);\n }", "public void insert(int val) throws DifferentOrderTrees {\r\n \tMonceau monceauTemp = new Monceau();\r\n \t\r\n \tmonceauTemp.arbres.add(new Node(val));\r\n \tthis.fusion(monceauTemp);\r\n }", "public void insert(String word) {\n\n\t\tTrieNode temp = root;\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tint c = word.charAt(i) - 'a';\n\t\t\tif (temp.childrens[c] == null) {\n\t\t\t\ttemp.childrens[c] = new TrieNode();\n\t\t\t}\n\n\t\t\ttemp = temp.childrens[c];\n\t\t}\n\n\t\ttemp.isLeafNode = true;\n\t}", "public void insert(int key,int value){\n\t\tif(map.containsKey(key)){\n\t\t\tNode n = map.get(key);\n\t\t\tdeleteNode(n);\n\t\t\taddToHead(n);\n\t\t} else {\n\t\t\tif(count > capacity){\n\t\t\t\tint key1 = tail.key;\n\t\t\t\tmap.remove(key1);\n\t\t\t\tdeleteTail();\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t} else {\n\t\t\t\tNode n = new Node(key,value);\n\t\t\t\tmap.put(key, n);\n\t\t\t\taddToHead(n);\n\t\t\t}\n\t\t}\n\t}", "public void insert(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n cur.map[ind] = new TreeNode();\n }\n cur = cur.map[ind];\n }\n cur.end = true;\n }", "public void insert(String word) {\n Trie root = this;\n for (char c : word.toCharArray()) {\n if (root.next[c - 'a'] == null) {\n root.next[c - 'a'] = new Trie();\n }\n root = root.next[c - 'a'];\n }\n root.word = word;\n }", "public void testInsert02() {\r\n\t\tBTree<String, Integer> bt = new BTree<String, Integer>(10);\r\n\t\tList<String> words = TestUtils.randomWords(5000, 31);\r\n\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tbt.set(words.get(i), i);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < words.size(); i++) {\r\n\t\t\tassertEquals(bt.get(words.get(i)), Integer.valueOf(i));\r\n\t\t}\r\n\t}", "public void insert(String word) {\n\t\tTrie curr = this;\n\t\tfor(Character ch : word.toCharArray()) {\n\t\t\tTrie n = curr.nodes[ch - 'a'];\n\t\t\t\n\t\t\tif (n == null) {\n\t\t\t\tn = new Trie();\n\t\t\t\tn.isWord = false;\n\t\t\t\tcurr.nodes[ch - 'a'] = n;\n\t\t\t}\n\t\t\t\n\t\t\tcurr = n;\n\t\t}\n\t\tcurr.isWord = true;\n\t}", "public void insert(int data) {\r\n \r\n // call the private insert method with root and data\r\n root = insert(root, data);\r\n }", "public void insert(String word) {\n if (word == null || word.length() == 0)\n return;\n TrieNode node = root;\n char [] letters = word.toCharArray();\n for (int i=0; i < letters.length; i++) {\n int pos = letters[i] - 'a';\n if (node.son[pos] == null) {\n node.son[pos] = new TrieNode();\n node.son[pos].val = letters[i];\n }\n node = node.son[pos];\n }\n node.isEnd = true;\n }", "public void insert(String word) {\n \tHashMap<Character, TrieNode> children=root.children;\n \tfor(int i=0;i<word.length();i++)\n \t{\n \t\tchar c=word.charAt(i);\n \t\tTrieNode t;\n \t\tif(children.get(c)!=null)\n \t\t{\n \t\t\tt=children.get(c);\n \t\t}\n \t\telse\n \t\t{\n \t\t\tt=new TrieNode(c);\n \t\t\tchildren.put(c, t);\n \t\t}\n \t\tchildren=t.children;\n \t\tif(i==word.length()-1)\n \t\t\tt.leaf=true;\n \t}\n }", "public void insert(String word) {\n\t\tcur = root;\n\t\tfor (char c : word.toCharArray()) {\n\t\t\tif (cur.children[c - 'a'] == null) {\n\t\t\t\tcur.children[c - 'a'] = new TrieNode(c);\n\t\t\t}\n\t\t\tcur = cur.children[c - 'a'];\n\t\t}\n\t\tcur.isWord = true;\n\t}", "public void insert(String word) {\n TrieNode p = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n if (p.arr[index] == null) {\n TrieNode temp = new TrieNode();\n p.arr[index] = temp;\n p = temp;\n } else {\n p = p.arr[index];\n }\n }\n p.isEnd = true;\n }", "public void insert(String word) {\n TrieNode parent = root;\n for(int i=0; i<word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n\n // Character doesn't exist at the current level\n if (parent.children[index] == null) {\n TrieNode node = new TrieNode();\n parent.children[index] = node;\n parent = node;\n } else {\n parent = parent.children[index];\n }\n }\n parent.isLeaf = true;\n }", "public void insert(String word) {\n\n int length = word.length();\n TrieNode node = root;\n for(int i=0; i<length; i++) {\n char curr = word.charAt(i);\n if(!node.containsKey(curr)){\n node.put(curr, new TrieNode());\n }\n node = node.get(curr);\n }\n node.setEnd();\n }", "public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree.\n Random rn = new Random();\n\n\n for (int i = 0; i < 10; ++i)\n {\n insert(3);\n insert(5);\n insert(9);\n insert(5);\n insert(8);\n insert(1);\n insert(7);\n insert(4);\n insert(3);\n }\n return 1;\n }", "public void insert(String word) {\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (node.ch[c - 'a'] == null) {\n node.ch[c - 'a'] = new TrieNode();\n }\n node = node.ch[c - 'a'];\n }\n node.word = word;\n }", "public void insert(String word) {\n TrieNode ptr = root;\n for(int i = 0;i < word.length();i++) {\n char c = word.charAt(i);\n if(ptr.child[c - 'a'] == null) {\n ptr.child[c - 'a'] = new TrieNode();\n }\n ptr = ptr.child[c - 'a'];\n }\n ptr.is_end = true;\n }", "public void insert(String word) {\n TrieNode n = root;\n for(char c : word.toCharArray()) {\n if(n.children[c]==null) {\n n.children[c] = new TrieNode();\n }\n n = n.children[c];\n }\n n.isWord = true;\n n.word = word;\n }", "public void insert(String word) {\n TrieNode cur = root;\n for(int i=0; i<word.length(); i++){\n int index = word.charAt(i)-'a';\n if(cur.children[index] == null)\n cur.children[index] = new TrieNode(word.charAt(i));\n cur = cur.children[index];\n if(i == word.length()-1)\n cur.isEnd = true;\n }\n }", "public void insert(int key){\n\t\tif(this.root == null){\n\t\t\tNode r = new Node(key);\n\t\t\tthis.root = r;\t\n\t\t}else{\n\t\t\t//if not recursively insert the node\n\t\t\trecInsert(this.root, key);\n\t\t}\n\t\treturn;\n\t}", "public void Insert(char ch)\n {\n Integer cnt= (Integer) map.get(ch);\n if(cnt==null){\n map.put(ch,1);\n }else{\n map.put(ch,cnt+1);\n }\n list.add(ch);\n }", "public void insert(String word) {\n TrieNode p = root;\n for (char c : word.toCharArray()) {\n int childIndex = (int)(c - 'a');\n if (p.children[childIndex] == null) {\n p.children[childIndex] = new TrieNode();\n }\n p = p.children[childIndex];\n }\n p.isWord = true;\n }", "public void insert(String word) {\n TrieNode cur = root;\n for (int i = 0 ; i < word.length(); i ++) {\n char ch = word.charAt(i);\n if (! cur.children.containsKey(ch)) {\n TrieNode child = new TrieNode(ch);\n cur.children.put(ch, child);\n }\n cur = cur.children.get(ch);\n }\n cur.isEnd = true;\n }", "public static void insertElement(int numToInsert) {\n\n\t\t// Use hash function to find index\n\t\tint index = hashFunction(numToInsert);\n\t\tnodeAtIndex = hashTable[index];\n\n\t\tNode newNode = bst.new Node(numToInsert, null, null, null);\n\n\t\t// If there is no collision\n\t\tif (hashTable[index] == null) {\n\t\t\thashTable[index] = newNode;\n\t\t} \n\t\t// If there is a collision, use the nodeAtIndex as root to insert the node into the binary search tree\n\t\telse {\n\t\t\tbst.insertNode(newNode, nodeAtIndex);\n\t\t}\n\t}", "public void insert(int data)\n\t{\n\t\tSystem.out.println(\"Inserting in: \" + data);\n\t\troot = insert(root, data);\n\t}", "public void insert(String word) {\n\t\t\tTrieNode curr = root;\n\t\t\tfor (char c : word.toCharArray()) {\n\t\t\t\tif (!curr.children.containsKey(c))\n\t\t\t\t\tcurr.children.put(c, new TrieNode());\n\t\t\t\tcurr = curr.children.get(c);\n\t\t\t}\n\t\t\tcurr.isWord = true;\n\t\t}", "public void insert(String word) {\n Node node = root;\n char[] chars = word.toCharArray();\n for (char c: chars) {\n int idx = c - 'a';\n Node next = node.children[idx];\n if (next == null) {\n next = new Node(null);\n node.children[idx] = next;\n }\n node = next;\n }\n node.val = word;\n }", "public void insert(String word) {\n TrieNode curr = root;\n for(char c : word.toCharArray()) {\n int idx = c - 'a';\n if(curr.children[idx] == null) {\n curr.children[idx] = new TrieNode();\n }\n curr = curr.children[idx];\n }\n curr.isWord = true;\n }", "@Override\n public void insert(final String word) {\n TrieNode p = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n if (p.arr[index] == null) {\n final TrieNode temp = new TrieNode();\n p.arr[index] = temp;\n p = temp;\n } else {\n p = p.arr[index];\n }\n }\n p.isEnd = true;\n }", "public void insert(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n int idx = c - 'a';\n if (curr.children[idx] == null) {\n curr.children[idx] = new TrieNode();\n }\n curr = curr.children[idx];\n }\n curr.isWord = true;\n }", "public void insert(Node n);", "public void insertNode(int val)\r\n {\r\n temp=new TriLinkNode();\r\n temp.v1=val;\r\n temp.d1=false;\r\n temp.i1=true;\r\n if(root==null)\r\n {\r\n root=temp;\r\n }else\r\n {\r\n recInsertNode(root);\r\n }\r\n \r\n }", "void insert(String s, int index) {\n Node curr = root;//lets start by root node and insert\n for (int i = 0; i < s.length(); i++) {\n\n // we dont want to override existing key only add new key thats what putifabsent do..\n curr.childrens.putIfAbsent(s.charAt(i), new Node(s.charAt(i)));\n curr.childrens.get(s.charAt(i));\n }\n curr.end = index;\n }", "public void insert(char i);", "protected void insertFromLeaf(Node node, Page page){\n if(!node.isFull()){\n // basta inserir \n if (node instanceof Leaf){\n Entry e = new Entry<Page>(page.getKey(), page);\n node.inserir(e);\n }else{\n Entry e = new Entry<IntNode>(page.getKey());\n //e.setKey(node.getEntry(node.size-1).getKey());\n node.inserir(e);\n }\n\n }else{\n \n Node nodep;\n if(node instanceof Leaf){\n nodep = new Leaf(n);\n }else{\n nodep = new IntNode(n);\n }\n\n node.split(nodep);\n\n // a chave dessa entrada deve ser o maximo do left\n\n Node pai;\n Entry e1;\n if(!node.hasPai()){\n \n pai = new IntNode(n);\n \n int at = 0;\n if(node.size > 0){\n at = node.size-1;\n } \n\n e1 = new Entry<Node>(node.getEntry(at).getKey(), node, nodep);\n e1.setKey(node.getEntry(node.size-1).getKey());\n \n pai.inserir(e1);\n \n node.setPai((IntNode) pai);\n head = pai;\n \n }else{ \n pai = node.pai;\n e1 = new Entry<Node>(node.getKey(node.size - 1), node, nodep);\n \n pai.inserir(e1);\n }\n nodep.setPai((IntNode) pai);\n\n // decidindo se insere no node ou nodep\n int i = node.find(page.getKey());\n if(i >= node.size){\n nodep.inserir(e1);\n }else{ \n node.inserir(e1);\n }\n\n //down(pai, page);\n //insertFromLeaf(pai, page);\n }\n }", "public void insert(char location, Node toInsert)\n {\n if (location >= 'a' && location <= 'z')\n {\n nexts[location - 97] = toInsert;\n }\n if (location >= 'A' && location <= 'Z')\n {\n nexts[location - 10] = toInsert;\n }\n }", "public void insert(String word) {\n if (word == null) {\n return;\n }\n TrieNode parent = root;\n char[] charArr = word.toCharArray();\n for (int n = 0; n < charArr.length; n++) {\n Map<Character, TrieNode> currentMap = parent.children;\n if (!currentMap.containsKey(charArr[n])) {\n currentMap.put(charArr[n], new TrieNode(charArr[n]));\n }\n parent = currentMap.get(charArr[n]);\n }\n parent.children.put('\\0', null);\n }", "public void insert(String word) {\n TrieNode node = root;\n\n // for each char in the word, add to the TrieNode\n for (char c: word.toCharArray()) {\n // if there are no such child, then we add it\n if (node.children[c - 'a'] == null) {\n node.children[c - 'a'] = new TrieNode(c);\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n\n }\n // mark the isWord\n node.isWord = true;\n }", "public void insert(String word) {\n char[] chars = word.toCharArray();\n int length = chars.length;\n\n Map<Character,Node> map = this.root.map;\n for(int i = 0;i < length;i++){\n if(map.containsKey(chars[i])){\n Node node = map.get(chars[i]);\n }else{\n map.put(chars[i],new Node(chars[i]));\n }\n\n if(i == length - 1){\n map.get(chars[i]).isWordEnd = true;\n }\n map = map.get(chars[i]).map;\n }\n }", "public void insert(int val)\n {\n try\n {\n a[index++] = val;\n n=index;\n }\n catch(Exception e)\n {\n System.out.println(�e.getMessage�);\n }\n }", "void insert(int idx, int val);", "public void insert(String word) {\n Trie cur = this;\n int i = 0;\n while(i < word.length()) {\n int c = word.charAt(i) - 'a';\n if(cur.tries[c] == null) {\n cur.tries[c] = new Trie();\n }\n cur = cur.tries[c];\n i++;\n }\n cur.hasWord = true;\n }", "public void insert(String word) {\n var node = root;\n for(char currentChar : word.toCharArray()){\n if(!node.containsKey(currentChar)) {\n node.put(currentChar, new Node());\n }\n node = node.get(currentChar);\n }\n node.setEnd();\n }", "public int insert(int k, String i) {\n\t\tif (this.empty()) {// empty tree\n\t\t\tthis.root = new AVLNode(k, i, 0); // set node as tree's root\n\t\t\treturn 0;\n\t\t}\n\t\tAVLNode root = (AVLNode) this.root;\n\t\tAVLNode parent = root.insFindNode(k);\n\t\tif (parent == null) { // nothing to insert\n\t\t\treturn -1;\n\t\t}\n\t\tAVLNode newNode = new AVLNode(k, i, 0);\n\t\tif (!parent.isLeaf()) { \n\t\t\treturn this.caseB(newNode, parent);\n\t\t} else {\n\t\t\treturn this.caseA(newNode, parent);\n\t\t}\n\t}", "public void insert(String word) {\n char[] chars = word.toCharArray();\n Node theNode = root;\n for (char c : chars) {\n if (!theNode.leaf) theNode.leaf = false;\n if (theNode.children.containsKey(c)) {\n theNode = theNode.children.get(c);\n } else {\n Node newNode = new Node(c);\n theNode.children.put(c, newNode);\n theNode = newNode;\n }\n }\n theNode.leaf = true;\n }", "public void insert(String word) { \n char[] w = word.toCharArray(); \n insert(root, w, 0); \n }", "public void put(int key) { root = put(root, key); }", "public void insert(int index, char data)\n {\n if(index >= 0 && index <= numNodes){\n if(index == 0)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }\n else\n {\n //find your previous and your current\n Node curr = find(index);\n Node prev = find(index - 1);\n \n //add the new node with current as the successor and previous as the \n //predecessor\n Node node = new Node(data, curr);\n prev.next = node;\n }\n numNodes++;\n }\n else\n {\n throw new IndexOutOfBoundsException();\n }\n }", "public void insert(String word) {\n TrieNode cur = root;\n HashMap<Character, TrieNode> curChildren = root.children;\n char[] wordArray = word.toCharArray();\n for(int i = 0; i < wordArray.length; i++){\n char wc = wordArray[i];\n if(curChildren.containsKey(wc)){\n cur = curChildren.get(wc);\n } else {\n TrieNode newNode = new TrieNode(wc);\n curChildren.put(wc, newNode);\n cur = newNode;\n }\n curChildren = cur.children;\n if(i == wordArray.length - 1){\n cur.hasWord= true;\n }\n }\n }", "public void insert(int key){\n\t\tBSTNode currentNode = root;\n\t\tBSTNode parent = null;\n\t\twhile (currentNode != null){\n\t\t\tif (currentNode.getKey() == key){\n\t\t\t\tSystem.out.println(\"This value already exists in the tree!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparent = currentNode;\n\t\t\tif (key < currentNode.getKey()){\n\t\t\t\tcurrentNode = currentNode.getLeft();\n\t\t\t}else{\n\t\t\t\tcurrentNode = currentNode.getRight();\n\t\t\t}\n\t\t}\n\t\t// once we reached the bottom of the tree, we insert the new node.\n\t\t// to do that we need to know the leaf node which is stored in the BSTNode parent\n\t\t// by comparing with its value, we know which side to insert the new node.\n\t\tif (key < parent.getKey()){\n\t\t\tparent.setLeft(new BSTNode(key, null, null));\n\t\t}else{\n\t\t\tparent.setRight(new BSTNode(key, null, null));\n\t\t}\n\t\tsize++;\n\t}", "public void insert(int value){\n linkedList.insertLast(value);\n }", "public void insert(int key) {\n\t\t// Make sure that the key is not present.\n\t\tassert (!find(key));\n\t\t\n\t\tif (head == null || key < head.key) {\n\t\t\thead = new IntNode(key, head);\n\t\t\treturn;\n\t\t}\n\n\t\tIntNode curr;\n\t\tfor (curr = head; curr.next != null && curr.next.key < key; curr = curr.next);\n\t\tcurr.next = new IntNode(key, curr.next);\n\t}", "public void insert(String word) {\n char [] words=word.toCharArray();\n CharTree t=root;\n for (char c : words) {\n if(t.next[c-97]==null){\n t.next[c-97]=new CharTree();\n }\n t=t.next[c-97];\n }\n t.isend=true;\n }", "public void insert(Integer key){\r\n\t\tint start=this.root;\r\n\t\tint currentPos=avail;\r\n\t\tint temp=-1;\r\n\t\twhile(increaseCompares() && start!=-1) {\r\n\t\t\ttemp=start;\r\n\t\t\tcompares++;\r\n\t\t\tif(increaseCompares() && key<getKey(start)) {\r\n\t\t\t\tstart=getLeft(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstart=getRight(start);\r\n\t\t\t\tcompares++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Tree is empty. New Node is now root of tree\r\n\t\tif(increaseCompares() && temp==-1) {\r\n\t\t\tsetRoot(0);\r\n\t\t\tcompares++;\r\n\t\t\tsetKey(avail, key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\t//Compare values and place newNode either left or right of previous Node\r\n\t\telse if(increaseCompares() && key<getKey(temp)) {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetLeft(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//Set previous (parent) Node of new inserted Node\r\n\t\t\tsetRight(temp, currentPos);\r\n\t\t\tcompares++;\r\n\t\t\t//Initialize line of new Node\r\n\t\t\tsetKey(currentPos,key);\r\n\t\t\tcompares++;\r\n\t\t\tavail=getRight(currentPos);\r\n\t\t\tcompares++;\r\n\t\t\tsetRight(currentPos,-1);\r\n\t\t\tcompares++;\r\n\t\t}\r\n\t}", "public void addToNode(String word, int val) {\n\t\tString signature = wordToSignature(word);\n\t\tdictionary.add(word); // add word to my dictionary\n\n\t\t// base case - terminate when the value exceeds the length of the word\n\t\tif (val < word.length()) {\n\n\t\t\tint characterVal = Integer.parseInt(signature.substring(val, val + 1)); // retrieve signature value\n\t\t\tval++;\n\n\t\t\t// if the node is empty populate it with a new TreeDictionary\n\t\t\tif (nodes[characterVal - 2] == null) {\n\t\t\t\tnodes[characterVal - 2] = new TreeDictionary();\n\t\t\t}\n\n\t\t\tnodes[characterVal - 2].addToNode(word, val);\n\t\t}\n\n\t}", "private void addToRBTree(int node, int index) {\n \n // runtime complexity is O(1)\n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n assert(map != null);\n \n Integer key = Integer.valueOf(node);\n \n // runtime complexity is O(log_2(w))\n Integer multiplicity = map.get(key);\n \n if (multiplicity == null) {\n multiplicity = Integer.valueOf(1);\n } else {\n multiplicity = Integer.valueOf(1 + multiplicity.intValue());\n }\n \n map.put(key, multiplicity); \n }", "public void insert(double key, Double value){\n\tif(search(key)!=null){\r\n\t\tLeaf Leaf = (Leaf)Search(root, key);\r\n\t\t\r\n\t\tfor(int i=0; i<Leaf.keyvalues.size(); i++) {\r\n\t\t\tif(key==Leaf.getKeyValue(i).getKey()) {\r\n\t\t\t\t\tLeaf.getKeyValue(i).values.add(value);\r\n\t\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\r\n\tLeaf newleaf = new Leaf(key, value);\r\n\t\r\n\tPair<Double,Node> entry=new Pair<Double, Node>(key,newleaf);\r\n\r\n\tif(root == null ) {\r\n\t\troot = entry.getValue();\r\n\t}\r\n\t\r\n\r\n\tPair<Double, Node> newChildEntry = getChildEntry(root, entry, null);\r\n\t\r\n\tif(newChildEntry == null) {\r\n\t\treturn;\r\n\t} else {\r\n\t\tIntrnlNode newRoot = new IntrnlNode(newChildEntry.getKey(), root, newChildEntry.getValue());\r\n\t\troot = newRoot;\r\n\t\treturn;\r\n\t}\r\n}", "void insert(Object value, int position);", "public int insert(int k, String i) {\r\n\t\t WAVLNode parentToInsert;\r\n\t\t if(this.root == null)\r\n\t\t {\r\n\t\t\t this.root = new WAVLNode (k,i,this.getExternalNode());\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t parentToInsert = this.root.placeToInsert(k);\r\n\t\t\t //System.out.println(parentToInsert.getKey());\r\n\t\t\t WAVLNode nodeToInsert = new WAVLNode(k,i,this.getExternalNode());\r\n\t\t\t if(parentToInsert == null)\r\n\t\t\t {\r\n\t\t\t\t return -1;\r\n\t\t\t }\r\n\t\t\t if(this.min == null || k < this.min.getKey())\r\n\t\t\t {\r\n\t\t\t\t this.min = nodeToInsert;\r\n\t\t\t }\r\n\t\t\t if(this.max == null || k > this.max.getKey())\r\n\t\t\t {\r\n\t\t\t\t this.max = nodeToInsert;\r\n\t\t\t }\r\n\t\t\t if(parentToInsert.getKey() > k)\r\n\t\t\t {\r\n\t\t\t\t parentToInsert.setLeft(nodeToInsert);\r\n\t\t\t\t nodeToInsert.setParent(parentToInsert);\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t parentToInsert.setRight(nodeToInsert);\r\n\t\t\t\t nodeToInsert.setParent(parentToInsert);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t WAVLNode currentNode = nodeToInsert;\r\n\t\t\t while(currentNode.getParent() != null)\r\n\t\t\t {\r\n\t\t\t\t currentNode = currentNode.getParent();\r\n\t\t\t\t currentNode.setSubTreeSize(currentNode.getSubTreeSize()+1);\r\n\t\t\t\t //System.out.println(\"Changed \" +currentNode.getKey()+ \" To \" + (currentNode.getSubTreeSize()));\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t int numRebalance = parentToInsert.rebalanceInsert();\r\n\t\t\t while(this.root.getParent() != null)\r\n\t\t\t {\r\n\t\t\t\t //System.out.println(this.root.getKey());\r\n\t\t\t\t this.setRoot(this.root.getParent());\r\n\t\t\t }\r\n\t\t\t return numRebalance;\r\n\t\t }\r\n\t }", "public void insert(int value){\n head = new Node(value,head);\n size++;\n }", "public void insert(String word) {\n TrieTree point = root;\n for(int i = 0; i < word.length(); i++){\n char ch = word.charAt(i);\n if(point.getChild(ch - 'a') == null){\n point.setChild(ch - 'a', ch);\n }\n point = point.getChild(ch - 'a');\n }\n point.setIsWord();\n }", "public void insert(String word) {\n Node temp = this.root;\n while(word.length()!=0){\n char c = word.charAt(0);\n word = word.substring(1);\n int index = (int)c -97;\n if(temp.children[index]==null){\n temp.children[index] = new Node(c);\n }\n temp = temp.children[index];\n }\n temp.isEnd = true;\n \n }", "public void put_node_id(long node_id, long number) {\n ptr_buff[(int) (number * POINTER_LENGTH / ptr_parts_size[0])].putLong((int) (number * POINTER_LENGTH % ptr_parts_size[0]), node_id);\n }", "public void insertNode(int d){\n if(root == null){\n root = new TreeNode(d);\n }\n else{\n root.insert(d);\n }\n }", "public void insert(int value) {\n var node = new Node(value);\n\n if (root == null) {\n root = node;\n return;\n }\n\n var current = root;\n while (true) {\n if (value < current.value) {\n if (current.leftChild == null) {\n current.leftChild = node;\n break;\n }\n current = current.leftChild;\n } else {\n if (current.rightChild == null) {\n current.rightChild = node;\n break;\n }\n current = current.rightChild;\n }\n }\n }", "public void insert(int val, Node ptr) { // not sure\n\t\tif (full()) {\n\t\t\tNode nextNode = this.getNext();\n\t\t\tInternalNode newNode = new InternalNode(degree, null, val, ptr, nextNode, this);\n\t\t\tthis.next = newNode;\n\t\t\tif (nextNode != null) {\n\t\t\t\tnextNode.prev = newNode;\n\t\t\t}\n\t\t\tint newKey = this.redistribute();\n\n\t\t\tReference theParent = this.getParent();\n\t\t\tif (theParent == null) {\n\t\t\t\tnew InternalNode(degree, this, newKey, newNode, null, null);\n\t\t\t} else {\n\t\t\t\tNode parentNode = theParent.getNode();\n\t\t\t\tparentNode.insert(newKey, newNode);\n\t\t\t}\n\t\t} else {\n\t\t\tint index = findKeyIndex(val);\n\t\t\tif (val > keys[lastindex]) {\n\t\t\t\tindex = this.getLast() + 1;\n\t\t\t}\n\t\t\tthis.insertSimple(val, ptr, index);\n\t\t}\n\t}", "void insert(int pos, String s);", "public void insert(String word) {\n if(word==null)\n return;\n int wordLen=word.length();\n if(wordLen==0)\n return;\n char []wordArr=word.toCharArray();\n Node tempNode=root;\n for(int i=0;i<wordLen && Character.isLetter(wordArr[i]);i++){ //只能插入小写字母\n if(tempNode.subNode(wordArr[i])==null){\n Node newNode=new Node(wordArr[i]);\n newNode.number=1;\n if(i==wordLen-1)\n newNode.isEnd=true;\n tempNode.childList.add(newNode);\n tempNode=newNode;\n }else{\n Node oldNode=tempNode.subNode(wordArr[i]);\n oldNode.number++;\n tempNode=oldNode;\n }\n }\n }", "public TrieNode insert(Character key) {\n if (children.containsKey(key)) {\n return null;\n }\n\n TrieNode next = new TrieNode();\n next.key = key;\n children.put(key, next);\n\n return next;\n }" ]
[ "0.7164661", "0.7011751", "0.6947512", "0.65714025", "0.6509007", "0.64924836", "0.6491146", "0.6403201", "0.63961333", "0.63768804", "0.63372976", "0.63368374", "0.63220435", "0.63151103", "0.6301588", "0.62948954", "0.6274392", "0.62656045", "0.6256759", "0.6256", "0.62535584", "0.62490875", "0.6235772", "0.6235434", "0.62336195", "0.6229886", "0.62263936", "0.6224018", "0.6222128", "0.62198985", "0.6219882", "0.61927086", "0.6185779", "0.6164971", "0.61642283", "0.6145685", "0.6129865", "0.61167514", "0.6113066", "0.61109793", "0.61059326", "0.6105142", "0.61029094", "0.6101696", "0.61008394", "0.6096596", "0.6088921", "0.60683554", "0.6068287", "0.60662526", "0.605719", "0.6054818", "0.60507774", "0.60491467", "0.6048727", "0.6037706", "0.60122526", "0.6009287", "0.6005876", "0.59984314", "0.59934586", "0.5993009", "0.59786814", "0.5957003", "0.59552044", "0.5939521", "0.5921506", "0.5916098", "0.59146416", "0.5907451", "0.5898036", "0.5891882", "0.5883873", "0.5871105", "0.5868631", "0.58327997", "0.58318347", "0.5830698", "0.58179575", "0.58112437", "0.57963806", "0.5796214", "0.5782877", "0.57739544", "0.5752936", "0.5752904", "0.5740682", "0.57386696", "0.5729067", "0.5711629", "0.57115364", "0.5704182", "0.57003564", "0.5697992", "0.569379", "0.56881803", "0.56843513", "0.56828505", "0.5664438", "0.56609744" ]
0.63378435
10
Sets the window's layout.
private void setScene(int selected) { int y = 1; GridPane layout = new GridPane(); layout.setPadding(new Insets(10, 10, 10, 10)); HashMap<FieldName, TextField> input = new HashMap<>(); Label source = new Label("Source:"); GridPane.setConstraints(source, 0, y); TextField setSource = new TextField(ref.getClass().getSimpleName()); GridPane.setConstraints(setSource, 1, y++); setSource.setEditable(false); setSource.setDisable(true); Label required = new Label("Required fields"); required.getStyleClass().add("header"); GridPane.setConstraints(required, 0, y++); Label citkey = new Label("Citation key"); citkey.getStyleClass().add("header"); GridPane.setConstraints(citkey, 0, y); TextField citation = new TextField(ref.getCitationKey()); GridPane.setConstraints(citation, 1, y++); citation.setEditable(false); citation.setDisable(true); for (FieldName fn : ref.getRequiredFields()) { y = createInputFields(fn, y, layout, input); } Label alternative = new Label("Alternative fields"); alternative.getStyleClass().add("header"); GridPane.setConstraints(alternative, 0, y++); for (FieldName fn : ref.getAlternativeFields()) { y = createInputFields(fn, y, layout, input); } Label optional = new Label("Optional fields"); optional.getStyleClass().add("header"); GridPane.setConstraints(optional, 0, y++); for (FieldName fn : ref.getOptionalFields()) { y = createInputFields(fn, y, layout, input); } Label tags = new Label("Tags"); tags.getStyleClass().add("header"); GridPane.setConstraints(tags, 0, y); TextField tagwords = new TextField(ref.getTags().replace(',', ' ')); GridPane.setConstraints(tagwords, 1, y++); Label taginfo = new Label("Tags are keywords separated by whitespace."); taginfo.getStyleClass().add("label"); GridPane.setRowIndex(taginfo, y++); GridPane.setColumnSpan(taginfo, 2); Button close = new Button("Cancel"); GridPane.setConstraints(close, 0, y); close.setOnAction(e -> window.close()); Button edit = new Button("Save changes"); GridPane.setConstraints(edit, 1, y++); edit.setOnAction(e -> { if (validator.validateInput(input, citation, ref)) { if (validator.checkTagField(tagwords.getText())) { ref.setTags(tagwords.getText()); App.getLogic().edit(ref); validator.getAlertGenerator().alert("Confirmation", "Reference has been saved."); App.getGUI().setScene(); window.close(); App.getGUI().setScene(); } } //validator.getAlertGenerator().alert("Confirmation", "Reference has been saved."); // App.getGUI().setScene(); // window.close(); // App.getGUI().setScene(); }); layout.getChildren().addAll(source, setSource, close, edit, optional, required, citkey, citation, tags, tagwords, taginfo); if (!ref.getAlternativeFields().isEmpty()) { layout.getChildren().add(alternative); } layout.setVgap(8); layout.setHgap(10); layout.setPadding(new Insets(10, 10, 10, 10)); Scene scene = new Scene(layout, 400, y * 35); scene.getStylesheets().add("style.css"); window.setResizable(false); window.setScene(scene); window.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "@Override\n\tpublic void setLayout(java.lang.String layout) {\n\t\t_scienceApp.setLayout(layout);\n\t}", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "public void setLayout( final Layout layout ) {\n checkWidget();\n // ignore - CTabFolder manages its own layout\n }", "public void setLayout(FrameLayout layout) {\r\n mLayout = layout;\r\n }", "@Override\n public void setLayout(Layout layout) {\n checkWidget();\n return;\n }", "private void setLayoutManager() {\r\n this.setLayout(new BorderLayout());\r\n }", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "@JsOverlay\n public final void layout() {\n Dagre.get().layout(this);\n }", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}", "public BattleMatLayout() {\n\t\tcreateConent();\n\t\tinitWidget(dockPanel);\n\t\t// ensure this widget takes up as much space as possible\n\t\tthis.setSize(\"100%\", \"100%\");\n\t\tsetupEventHandler();\n\t}", "private void setupWindow() {\n\t\tgetContentPane().setLayout(null);\t\t\t\t\n\n\t\t// Set title\n\t\tsetTitle(\"Gallhp\");\n\n\t\t// Set location and size\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\t\n\t\tsetSize(800, 600);\n\t\tsetResizable(false);\n\n\t}", "public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}", "private void init(){\r\n\t\tsetLayout(new FlowLayout());\r\n\t\tsetPreferredSize(new Dimension(40,40));\r\n\t\tsetVisible(true);\r\n\t}", "public void setupLayout() {\n // left empty for subclass to override\n }", "public void setLayoutNeeded() {\n if (WindowManagerDebugConfig.DEBUG_LAYOUT) {\n Slog.w(TAG, \"setLayoutNeeded: callers=\" + Debug.getCallers(3));\n }\n this.mLayoutNeeded = true;\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 void setLayout (){\r\n /* define placeholders for content*/\r\n HBox mainFrame= new HBox(); //the Main frame component.\r\n root.getChildren().add(mainFrame); //add it to the scene\r\n \r\n \r\n \r\n mainFrame.getChildren().addAll(leftPane,rightPane);\r\n \r\n Rectangle leftR= new Rectangle(600.0, 900.0);\r\n leftR.setFill(Color.WHITE);\r\n Rectangle rightR= new Rectangle(300.0, 900.0);\r\n rightR.setFill(Color.RED);\r\n rightPane.getChildren().add(rightR);\r\n leftPane.getChildren().add(leftR);\r\n \r\n \r\n }", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void setLayout(BorderLayout borderLayout) {\n\t\t\n\t}", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.NORTH, queryButton, 70, SpringLayout.NORTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, queryButton, 49, SpringLayout.WEST, this);\n\t}", "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 }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "public void windowsConfiguration() {\n\t\tthis.setTitle(\"Segaleo\");\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}", "private void setLayout(ColumnInfo[] layout)\n\t{\n\t\tthis.m_layout = layout;\n\t\tgetModel().setNoColumns(m_layout.length);\n\n\t\treturn;\n\t}", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "@Override\n public final void setLayout(JQLayout layout)\n {\n this.layout = layout;\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t225,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t957,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1188,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t603,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t549,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_execute,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t48,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_view,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t955,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_revert))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t893,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttf_name,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t466, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tta_header,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t44,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_tree,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t211,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "@Override\r\n\tprotected void pack() {\r\n\r\n\t\tRectangle displayarea = shell.getDisplay().getPrimaryMonitor().getBounds();\r\n\t\tRectangle windowarea = shell.getBounds();\r\n\t\tshell.setBounds((displayarea.width - windowarea.width) / 2,\r\n\t\t\t\t(displayarea.height - windowarea.height) / 2,\r\n\t\t\t\twindowarea.width, windowarea.height);\r\n\t}", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "private void configureWindow() {\n\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n background.setBackground(Color.BLACK);\n setSize(initialWindowWidth, initialWindowHeight);\n setVisible(true);\n }", "private void layoutGame() {\n\t\tthis.doLayoutGame();\r\n\t\tthis.doLayoutGame();\r\n\t}", "public void init() {\n setLayout(new BorderLayout());\n }", "public void setWindow(Rectangle.Double w) {\n this.setWindow(w.x, w.y, w.width, w.height);\n }", "public void setLayout(@Nullable final LayoutType layout) {\n mLayout = layout;\n }", "private void setLayout() {\n if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n recyclerView.setLayoutManager(new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL));\n\n } else if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) {\n recyclerView.setLayoutManager(new LinearLayoutManager(getApplicationContext()));\n }\n }", "public void fixLayout() {\n splitPane.setDividerLocation(getWidth() / 2);\n }", "private void doTheLayout(){\n\n\t JPanel top = new JPanel();\n\t JPanel center = new JPanel();\n\t JPanel bottom = new JPanel();\n\n\t top.setLayout( new FlowLayout());\n\t top.add(label1);\n\t top.add(field1);\n\n\t center.setLayout( new FlowLayout());\n\t center.add(label2);\n\t center.add(field2);\n\n\t bottom.setLayout( new FlowLayout());\n\t bottom.add(SortButton);\n\t bottom.add(CloseButton);\n\n\t setLayout( new BorderLayout());\n\t add(top, \"North\");\n\t add(center, \"Center\");\n\t add(bottom, \"South\");\n\n\t }", "public void setWindow(GWindow w) {\r\n window = w;\r\n }", "public Dialog setLayout(int layout) {\n this.setContentView(layout);\n txtclose = (TextView) this.findViewById(R.id.dialog_close);\n txtclose.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dismiss();\n }\n });\n\n this.setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n getOwnerActivity().finish();\n }\n });\n\n this.setCanceledOnTouchOutside(false);\n this.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n\n return this;\n }", "private void geometry()\n\t\t{\n\t\t// JComponent : Instanciation\n\t\tjTextFieldIp = new JTextField(ChatPreferences.getIp());\n\t\tjTextFieldPort = new JTextField(ChatPreferences.getPort());\n\t\t// Layout : Specification\n\t\t\t{\n\t\t\tFlowLayout flowlayout = new FlowLayout(FlowLayout.CENTER);\n\t\t\tsetLayout(flowlayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\n\t\t}", "private void setDialog()\n {\n //this.setSize(350,500);\n this.setTitle(Constant.getTextBundle(\"ปฏิกิริยาต่อกัน\"));\n Toolkit thekit = this.getToolkit(); \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation((screenSize.width-this.getSize().width)/2, (screenSize.height-this.getSize().height)/2);\n }", "public void loadLayout() {\n\t\ttry {\n\t\t\tsetLayout(FileManager.loadLayout(fc3.getSelectedFile().toString()));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed To Load Layout\");\n\t\t}\n\t}", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }", "private void setupFrame() {\n this.setTitle(TITRE);\n this.setPreferredSize(new Dimension(TAILLE_FRAME[1], TAILLE_FRAME[0]));\n this.setResizable(false);\n \n this.getContentPane().setBackground(new Color(0,153,0));\n this.getContentPane().setLayout(new GridLayout(3,1)); \n \n this.pack();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setVisible(true);\n }", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "@Override\n\tpublic int setLayout() {\n\t\treturn R.layout.activity_main;\n\t}", "public void onSetLayoutDirection() {\n }", "private void setFrame()\r\n\t{\r\n\t\tthis.setName(\"Project 3\");\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setSize(300, 300);\r\n\t\tthis.setLocation(650, 100);\r\n\t\tthis.setVisible(false);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.add(panel, BorderLayout.CENTER);\r\n\t}", "public void layoutForSimView()\n {\n preferredSize = new Dimension(982, 476);\n ((ViewableComponent)withName(\"bridge3\")).setPreferredLocation(new Point(359, 193));\n ((ViewableComponent)withName(\"station1\")).setPreferredLocation(new Point(156, 93));\n ((ViewableComponent)withName(\"bridge2\")).setPreferredLocation(new Point(83, 256));\n ((ViewableComponent)withName(\"bridge1\")).setPreferredLocation(new Point(88, 182));\n ((ViewableComponent)withName(\"station3\")).setPreferredLocation(new Point(367, 269));\n ((ViewableComponent)withName(\"TObs\")).setPreferredLocation(new Point(153, 4));\n ((ViewableComponent)withName(\"station2\")).setPreferredLocation(new Point(148, 362));\n }", "@Override\r\n\tprotected void setLayout() {\n\t\tsetContentView(R.layout.edit_trace_info_activity);\r\n\t}", "public void layout(final GraphView myView) {\n \t\tif (myView == null || myView.nodeCount() == 0) {\n \t\t\treturn;\n \t\t}\n \n \t\t// Set background clolor\n \t\tif (backgroundColor != null) {\n \t\t\tmyView.setBackgroundPaint(getColor(backgroundColor));\n \t\t}\n \t\t// Layout nodes\n \t\tlayoutNode(myView);\n \n \t\t// Layout edges\n \t\tlayoutEdge(myView);\n \n \t\t// Build Style if needed.\n \t\tif (vsbSwitch != null) {\n \t\t\tif (vsbSwitch.equals(\"on\")) {\n \t\t\t\tVisualStyleBuilder vsb = new VisualStyleBuilder(networkName\n \t\t\t\t\t\t+ \".style\", nodeGraphicsMap, edgeGraphicsMap, null);\n \t\t\t\tvsb.buildStyle();\n \t\t\t}\n \t\t}\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 abstract void doLayout();", "private void setWindowDefaultSize(UserPrefs prefs) {\n primaryStage.setHeight(prefs.getGuiSettings().getWindowHeight());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"165\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setWidth(prefs.getGuiSettings().getWindowWidth());\n\t\tTemplateClass.instrum(\"LineNumber: \",\"166\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n if (prefs.getGuiSettings().getWindowCoordinates() != null) {\n primaryStage.setX(prefs.getGuiSettings().getWindowCoordinates().getX());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"168\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n primaryStage.setY(prefs.getGuiSettings().getWindowCoordinates().getY());\n\t\t\tTemplateClass.instrum(\"LineNumber: \",\"169\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }\n\t\tTemplateClass.instrum(\"LineNumber: \",\"167\", \"Type: \",\"org.eclipse.jdt.core.dom.IfStatement\", \"Method: \",\"setWindowDefaultSize\", \"Class: \",\"MainWindow\");\n }", "@Before\n public void setDimension() {\n this.view.setDimension(new Dimension(WITDH, HEIGHT));\n }", "public void setWindow(double x, double y, double width, double height) {\n xWindow = x;\n yWindow = y;\n widthWindow = width;\n heightWindow = height;\n nWindowUpdates++;\n setScaleFactor();\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "public void layoutAndAssignWindowLayersIfNeeded() {\n this.mWmService.mWindowsChanged = true;\n setLayoutNeeded();\n if (HwPCUtils.isPcCastModeInServer() && HwPCUtils.isValidExtDisplayId(this.mDisplayId)) {\n this.mWmService.updateFocusedWindowLocked(3, false);\n assignWindowLayers(false);\n } else if (!this.mWmService.updateFocusedWindowLocked(3, false)) {\n assignWindowLayers(false);\n }\n this.mInputMonitor.setUpdateInputWindowsNeededLw();\n this.mWmService.mWindowPlacerLocked.performSurfacePlacement();\n this.mInputMonitor.updateInputWindowsLw(false);\n }", "public void onAttachedToWindow() {\n super.onAttachedToWindow();\n this.mFirstLayout = true;\n }", "public static void setBounds() {\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\r\n\t\t// Determine the new location of the window\r\n\t\tint w = gameFrame.getSize().width;\r\n\t\tint h = gameFrame.getSize().height;\r\n\t\tint x = (dim.width/2)-(w/2);\r\n\t\tint y = (dim.height/2)-(h/2);\r\n\t\t// Move the window\r\n\t\tgameFrame.setLocation(x, y);\r\n\t\tgameFrame.setVisible(true);\r\n\t}", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Pepoview.class.getResource(\"MainWindow.fxml\"));\n rootLayout = (SplitPane) loader.load(); \n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void initUI(int width, int height) {\n\t\tsetSize(width, height);\n\t\tsetTitle(ClientParameters.WINDOW_TITLE);\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(ClientParameters.IS_RESIZABLE);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t// adding components\n\t\tpane.setLayout(new BorderLayout());\n\t\tpane.add(host, BorderLayout.NORTH);\n\t\tpane.add(portNumber, BorderLayout.CENTER);\n\t\tpane.add(connectButton, BorderLayout.SOUTH);\n\t}", "public void setupGUIWindow()\n { \n// _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n// exitOnClose(); \n// createButtonGrid(); \n// addButtonPanel(); \n \n\t //setSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize())); \n \n\t _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t _frame.addComponentListener(new WindowListener());\n\t exitOnClose(); \n\t createShipPlacementButton();\n\t createButtonGrid(_displayPanel, _buttonGrid2, null); // player\n\t createButtonGrid(_buttonPanel, _buttonGrid, new GridListener(_buttonGrid)); // enemy\n\t addButtonPanel(); \n }", "@VisibleForTesting\n protected void maybeUpdateLayout() {\n try {\n Object attributes = getWindowAttributes();\n\n int layoutValue =\n attributes.getClass().getDeclaredField(getDisplayCutoutMode()).getInt(null);\n\n attributes.getClass()\n .getDeclaredField(\"layoutInDisplayCutoutMode\")\n .setInt(attributes, layoutValue);\n\n setWindowAttributes(attributes);\n } catch (Exception ex) {\n // API is not available.\n return;\n }\n }", "public MainWindow() {\n Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();\n this.setBounds(screenSize.width/2-150, screenSize.height/2-75, 300, 150);\n initComponents();\n }", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "protected void init(Glk glk, Window oldw, Window neww, int method, int size) {\n \t\tmWaitingForLayout = false;\n \t\t_glk = glk;\n \t\tLinearLayout l = _view = new _View(glk.getContext());\n \t\tfinal PairWindow parent = oldw.getParent();\n \t\tsetParent(parent);\n \t\tif (parent != null)\n \t\t\tparent.mChildren[parent.mChildren[0] == oldw ? 0 : 1] = this;\n \n \t\tint dir = (int) method & Window.WINMETHOD_DIRMASK; \n \t\t\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tl.setOrientation(LinearLayout.VERTICAL);\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tdefault:\n \t\t\tl.setOrientation(LinearLayout.HORIZONTAL);\n \t\t}\n \n \t\tView oldv = oldw.getView();\n \t\tWindow first, second;\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tfirst = oldw;\n \t\t\tsecond = neww;\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tdefault:\n \t\t\tfirst = neww;\n \t\t\tsecond = oldw;\n \t\t}\n \t\t\n \t\t// transfer layout params of the split window to the pair\n \t\tl.setLayoutParams(oldv.getLayoutParams());\n \t\toldv.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT, 0));\n \n \t\tViewGroup oldParent = (ViewGroup) oldv.getParent();\n \t\tassert(oldParent != null);\n \t\t\n \t\t// swap the pair in\n \t\tint parentIndex = (oldParent.getChildAt(0) == oldv) ? 0 : 1;\n \t\toldParent.removeView(oldv);\n \t\toldParent.addView(l, parentIndex);\n \t\t\n \t\toldw.setParent(this);\n \t\tneww.setParent(this);\n \t\tmChildren = new Window[] { first, second };\n \t\t\n \t\tl.addView(first.getView());\n \t\tl.addView(second.getView());\n \t\t\n \t\tdoSetArrangement(method, size, neww);\n \t}", "protected void CreateWindow(){\n\t\tdouble[] colWeight = {1,1,1,1,1,1};\n\t\tdouble[] rowWeight = {5,1,1,1,1};\n\t\tint[] colWidth = {1,1,1,1,1,1};\n\t\tint[] rowHeight = {5,1,1,1,1};\n\t\t\n\t\t//creates new GridBagLayout and the Constraints for it\n\t\tGridBagLayout normal = new GridBagLayout();\n\t\t\n\t\tGridBagConstraints constrain = new GridBagConstraints();\n\t\t\n\t\tnormal.rowHeights = rowHeight;\n\t\tnormal.columnWidths = colWidth;\n\t\tnormal.columnWeights = colWeight;\n\t\tnormal.rowWeights = rowWeight;\n\t\t\n\t\tsetBounds(100,100,400,600);\n\t\tsetLayout(normal);\n\t\t\n\t\t//create messagefield. set the Grid Layout for it.\n\t\tchatDisplay.messageField.setSize(300, 500);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 5;\n\t\tconstrain.gridheight = 18;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 0;\n\t\tnormal.setConstraints(chatDisplay.messageField, constrain);\n\t\t\n\t\t//create input. set the Grid Layout for it.\n\t\tthis.input.setSize(450, 20);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 4;\n\t\tconstrain.gridheight = 2;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 0;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.input, constrain);\n\t\t\n\t\t//create send button. set the Grid Layout for it.\n\t\tthis.send.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 18;\n\t\tnormal.setConstraints(this.send, constrain);\n\t\t\n\t\tthis.quit.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 19;\n\t\tnormal.setConstraints(this.quit, constrain);\n\t\t\n\t\tthis.server.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 20;\n\t\tnormal.setConstraints(this.server, constrain);\n\t\t\n\t\tthis.client.setSize(50, 5);\n\t\tconstrain.weightx = 1;\n\t\tconstrain.weighty = 1;\n\t\tconstrain.gridwidth = 1;\n\t\tconstrain.gridheight = 1;\n\t\tconstrain.fill = 1;\n\t\tconstrain.gridx = 4;\n\t\tconstrain.gridy = 21;\n\t\tnormal.setConstraints(this.client, constrain);\n\t\t\n\t\t//add the fields...\n\t\tadd(this.input);\n\t\tadd(chatDisplay.messageField);\n\t\tadd(this.send);\n\t\tadd(this.quit);\n\t\tadd(this.server);\n\t\tadd(this.client);\n\t\t\n\t\t//set windowlistener and set the window resizability to true\n\t\taddWindowListener(this);\n\t\tsetResizable(true);\n\t\t\n\t\t//adds action listeners for use later on.\n\t\tinput.addActionListener(this);\n\t\tsend.addActionListener(this);\n\t\tquit.addActionListener(this);\n\t\tserver.addActionListener(this);\n\t\tclient.addActionListener(this);\n\t\t\n\t\tthis.setVisible(true);\n\t\t\n\t\trun();\n\t}", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "private void setProperties(String windowName) {\n\t\tsetSize(WIDTH, HEIGHT);\n\t\tsetTitle(windowName);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void setForm() {\n this.setSize(FORM_WIDTH, FORM_HEIGHT);\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n this.setVisible(true);\n }", "private static void setupWindow() {\n window.setSize((2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n window.add(canvas);\n window.setVisible(true);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n canvas.createBufferStrategy(2);\n }", "private void init() {\n\t\tsetModal(true);\n\t\t\n\t\tsetResizable(false);\n\t\tgetContentPane().setLayout(new GridBagLayout());\n\t\tc = new GridBagConstraints();\n\t\tc.insets = new Insets(10, 10, 10, 10);\n\t\tc.gridx = 0;\n\t\tc.gridy = 0;\n\t}", "public void assignWindowLayers(boolean setLayoutNeeded) {\n Trace.traceBegin(32, \"assignWindowLayers\");\n assignChildLayers(getPendingTransaction());\n if (setLayoutNeeded) {\n setLayoutNeeded();\n }\n scheduleAnimation();\n Trace.traceEnd(32);\n }", "public void showWindows() {\n\t\t pack();\n\t setResizable(false);\n\t setLocationRelativeTo(null);\n\t setVisible(true);\n\t\t\n\t}", "private void setWindowWidth(int width) {\n this.width = width;\n }", "private void createLayout() {\n\t\t\n\t\tmenu = new JMenuBar();\n\t\tfile = new JMenu(\"Arquivo\");\n\t\tedit = new JMenu(\"Editar\");\n\t\tmenu.add(file);\n\t\tmenu.add(edit);\n\n\t\tnewfile = new JMenuItem(\"Novo\");\n\t\tnewfile.addActionListener(new NewFileListener());\n\t\tfile.add(newfile);\n\t\t\n\t\tcopy = new JMenuItem(\"Copiar\");\n\t\tcopy.addActionListener(new CopyListener());\n\t\tedit.add(copy);\n\t\t\n\t\tcut = new JMenuItem(\"Cortar\");\n\t\tcut.addActionListener(new CutListener());\n\t\tedit.add(cut);\n\t\t\n\t\tpaste = new JMenuItem(\"Colar\");\n\t\tpaste.addActionListener(new PasteListener());\n\t\tedit.add(paste);\n\n \n edit.add(undoAction);\n edit.add(redoAction);\n \n \t\topen = new JMenuItem(\"Abrir\");\n\t\topen.addActionListener(new OpenFileListener());\n\t\tfile.add(open);\n\n\t\texit = new JMenuItem(\"Sair\");\n\t\texit.addActionListener(new ExitFileListener());\n\t\tfile.add(exit);\n\t\tframe.setJMenuBar(menu);\n\t\t\n\t\tcaret = new DefaultCaret();\n\t\tarea = new JTextArea(25, 65);\n\t\tarea.setLineWrap(true);\n\t\tarea.setText(documentText);\n\t\tarea.setWrapStyleWord(true);\n\t\t\n\t\t\n\t\tarea.setCaret(caret);\n\t\tdocumentListener = new TextDocumentListener();\n\t\tarea.getDocument().addDocumentListener(documentListener); \n\t\t\n area.getDocument().addUndoableEditListener(new UndoListener());\n \n\t\tscrollpane = new JScrollPane(area);\n\t\tscrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tGroupLayout layout = new GroupLayout(this);\n\t\tsetLayout(layout);\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\n\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t\tlayout.setVerticalGroup(layout.createSequentialGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t}", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "public SetDisplayLayoutResponse() {\r\n super(\"SetDisplayLayout\");\r\n }", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }", "private void setUpFrame() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout());\n rootPanel.setBackground(Color.darkGray);\n }", "protected void directUpdateLayout() {\n updateLayout();\n }", "@Override\r\n\tprotected void initializeLayout() {\r\n\t\tlayout = GraphLayoutFactory.createLayout(layoutType, graph, 250, 250, properties, AttributeMapSet.PROCEDURES);\r\n\t}", "protected void layoutImpl()\n {\n // Set chart area height first, since height can effect yaxis label width\n double pw = getWidth(), ph = getHeight();\n double ah = _xaxis.isVisible()? _xaxis.getPrefHeight() : 0;\n _chartArea.setHeight(ph - ah);\n \n // Now set bounds of areay, xaxis and yaxis\n double aw = _yaxis.isVisible()? _yaxis.getPrefWidth(ph - ah) : 0;\n double cw = pw - aw, ch = ph - ah;\n _chartArea.setBounds(aw,0,cw,ch);\n _xaxis.setBounds(aw,ch,cw,ah);\n _yaxis.setBounds(0,0,aw,ch);\n }", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "public void initMainLayout() {\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApp.class.getResource(\"view/MainLayout.fxml\"));\n\t\t\trootLayout = (BorderPane) loader.load();\n\n\t\t\t// Show the scene containing the root layout.\n\t\t\tScene scene = new Scene(rootLayout);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\n\t\t\tMainLayoutController mainLayoutController = loader.getController();\n\t\t\tmainLayoutController.setMainApp(this);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t\n\t\t}\n\t}", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public GUIBusqueda() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n this.setExtendedState(this.MAXIMIZED_BOTH); \r\n }", "private void setupWindow() {\n // Some visual tweaks - first, modify window width based on screen dp. Height handled\n // later after the adapter is populated\n WindowManager.LayoutParams params = getWindow().getAttributes();\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n if (isSmallTablet(metrics)) {\n params.width = (metrics.widthPixels * 2 / 3);\n params.height = (metrics.heightPixels * 3 / 5);\n }\n // For phone screens, we won't adjust the window dimensions\n\n // Don't dim the background while the activity is displayed\n params.alpha = 1.0f;\n params.dimAmount = 0.0f;\n\n getWindow().setAttributes(params);\n\n // Set dialog title\n Set<String> preferredLines =\n PreferenceManager.getDefaultSharedPreferences(this).getStringSet(DashTubeExtension.FAVOURITE_LINES_PREF, null);\n setTitle((preferredLines != null && preferredLines.size() > 0)\n ? R.string.expanded_title_filtered\n : R.string.expanded_title);\n\n // Updated time text\n String updatedStr = String.format(getString(R.string.updated_at),\n getIntent().getStringExtra(DashTubeExtension.TUBE_STATUS_TIMESTAMP));\n\n TextView time = (TextView) findViewById(R.id.updated_at);\n time.setText(updatedStr);\n }", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\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 }", "private void setLayout(){\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar1);\n setSupportActionBar(toolbar);\n\n drawerLayoutgesamt = (DrawerLayout) findViewById(R.id.drawerlayoutgesamt);\n drawerToggle = new ActionBarDrawerToggle(MenueDrawer.this,drawerLayoutgesamt,R.string.auf, R.string.zu);\n drawerLayoutgesamt.addDrawerListener(drawerToggle);\n }", "private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }" ]
[ "0.7221645", "0.70843565", "0.6826474", "0.6691326", "0.649864", "0.64236194", "0.6413851", "0.63284355", "0.6283041", "0.62497586", "0.62132007", "0.62043446", "0.620171", "0.6164649", "0.6155376", "0.6140016", "0.60369337", "0.6001912", "0.59893376", "0.59146446", "0.5888768", "0.58830434", "0.5862353", "0.58595115", "0.5841951", "0.5840639", "0.5820271", "0.5818382", "0.58178616", "0.5815154", "0.5808245", "0.5802165", "0.5796598", "0.57891756", "0.57614475", "0.5758695", "0.570956", "0.57048357", "0.5701278", "0.5661094", "0.56340367", "0.56337816", "0.5627838", "0.5627557", "0.5602023", "0.559736", "0.55956984", "0.55948716", "0.5583244", "0.5572805", "0.55618155", "0.5557854", "0.55566716", "0.5536143", "0.5534126", "0.5513652", "0.5510653", "0.5507119", "0.5504132", "0.54930407", "0.54924536", "0.5484319", "0.5481463", "0.54693085", "0.5463907", "0.5458408", "0.5457243", "0.544834", "0.5445103", "0.5438833", "0.5432169", "0.54179084", "0.5414291", "0.5413403", "0.54118395", "0.5405173", "0.5398849", "0.5398479", "0.53855103", "0.5377459", "0.5374552", "0.5371331", "0.5365112", "0.5347256", "0.53364795", "0.5327189", "0.5324389", "0.5315828", "0.53116864", "0.53092104", "0.5304519", "0.52999747", "0.5296071", "0.52959293", "0.52887505", "0.52872187", "0.52856266", "0.5281619", "0.5281102", "0.52798694", "0.527668" ]
0.0
-1
We avoid changing prop when the button is just changing from our display update
@Override public void stateChanged(ChangeEvent e) { if (!updating && button.isSelected()) { model.set(db); } if (!useRadioButtons) { label.setForeground(button.isSelected() ? selectedForeground : unselectedForeground); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateButton(JButton button) {\n\t\tbutton.setFocusPainted(comboBox.isEditable());\n\t}", "private void updateButtonStateEpson(boolean state) {\n }", "@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}", "private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }", "public void updateStartButton(){\n if (getPrimHasRun() == true){\n startButton.setAlpha(0.5f);\n startButton.setClickable(false);\n } else {\n startButton.setAlpha(1f);\n startButton.setClickable(true);\n }\n }", "public void updateButtonVisibility() {\n mLocationBarMediator.updateButtonVisibility();\n }", "private Component updateButton(){\n return updatePersonButton = new Button(\"updateButton\"){\n @Override\n public void onSubmit() {\n super.onSubmit();\n }\n };\n }", "@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}", "private void m125717l() {\n mo69207a(this.f88312j, (StateListener) null);\n for (StatefulButton statefulButton : this.f90232y) {\n statefulButton.updateStatus(FollowStatusUtils.m82614a(this.f90217G.mo110110f()), false);\n }\n }", "private void updateUI() {\n updateTrackDetails();\n //Disable Prev or Next or both button based on the current Index and number of tracks available\n if (mPlayingIndex == 0) {\n mPlayPrevBtn.setClickable(false);\n }\n if (mPlayingIndex == mTracks.size() - 1) {\n mPlayNextBtn.setClickable(false);\n }\n if (mPlayingIndex > 0 && mPlayingIndex < mTracks.size() - 1) {\n mPlayNextBtn.setClickable(true);\n mPlayPrevBtn.setClickable(true);\n }\n }", "public void updateUiState() {\n if (meetingJoined) {\n this.joinMeetingButton.setText(R.string.leave_meeting);\n } else {\n this.joinMeetingButton.setText(R.string.join_meeting);\n }\n }", "private void synchronizePlayPauseButton() {\n\t\tFloatingActionButton button = getPlayStopButton();\n\t\tint currentPlayingStatus = mService.getCurrentPlayingStatus();\n\t\tif (mService.whatIsPlaying() != null) {\n\t\t\tboolean isOnPrepare = mService.isOnPrepare();\n\t\t\tswitch (currentPlayingStatus) {\n\t\t\t\tcase MediaPlayerService.CURRENT_PLAYING_STATUS_NONE:\n\t\t\t\tcase MediaPlayerService.CURRENT_PLAYING_STATUS_PAUSE:\n\t\t\t\t\tbutton.setImageResource(R.drawable.ic_media_play);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MediaPlayerService.CURRENT_PLAYING_STATUS_PLAY:\n\t\t\t\t\tbutton.setImageResource(R.drawable.ic_media_pause);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbutton.setImageResource(isOnPrepare ? R.drawable.ic_media_pause : R.drawable.ic_media_play);\n\t\t\t}\n\t\t\t/*if (isOnPrepare)\n\t\t\t\tbutton.setVisibility(View.GONE);\n\t\t\telse if (button.getVisibility() != View.VISIBLE)\n\t\t\t\tbutton.setVisibility(View.VISIBLE);*/\n\t\t} else\n\t\t\tbutton.setImageResource(R.drawable.ic_media_play);//button.setVisibility(View.GONE);\n\t\tif (button.getVisibility() != View.VISIBLE)\n\t\t\tbutton.setVisibility(View.VISIBLE);\n\t}", "private void changeDonateButton(int displayState) {\n \tButton donateButton = (Button)findViewById(R.id.Donate_Button_Donate);\n\n \tswitch (displayState) {\n \tcase DONATE_BUTTON_WORKING:\n \tdonateButton.setText(getString(R.string.donate_donation_button_working));\n \tdonateButton.setEnabled(false); \t\n \t\tbreak;\n \tcase DONATE_BUTTON_DONE:\n \tdonateButton.setText(getString(R.string.donate_donation_button_done));\n \tdonateButton.setEnabled(false); \t\n \t\tbreak;\n \tdefault:\t// NORMAL or other\n \tdonateButton.setText(getString(R.string.donate_donation_button_donate));\n \tdonateButton.setEnabled(true); \t\n \t}\n }", "@Override\r\n protected void updateView() {\r\n putValue(ActionUtil.SELECTED_KEY,\r\n getActiveView() != null &&\r\n ! getActiveView().isPropertiesPanelVisible()\r\n );\r\n }", "@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }", "@Override\r\n public void updateUI() {\r\n }", "private void updateUI() {\n if (mAccount != null) {\n signInButton.setEnabled(false);\n signOutButton.setEnabled(true);\n callGraphApiInteractiveButton.setEnabled(true);\n callGraphApiSilentButton.setEnabled(true);\n currentUserTextView.setText(mAccount.getUsername());\n } else {\n signInButton.setEnabled(true);\n signOutButton.setEnabled(false);\n callGraphApiInteractiveButton.setEnabled(false);\n callGraphApiSilentButton.setEnabled(false);\n currentUserTextView.setText(\"None\");\n }\n\n deviceModeTextView.setText(mSingleAccountApp.isSharedDevice() ? \"Shared\" : \"Non-shared\");\n }", "@Override\n public void update(@NotNull AnActionEvent e) {\n e.getPresentation().setEnabledAndVisible(false);\n }", "private void setBtnState(){\n recordBtn.setEnabled(!recording);\n stopBtn.setEnabled(recording);\n pauseBtn.setEnabled(playing & !paused);\n resumeBtn.setEnabled(paused);\n }", "public void updateVoiceButtonState() {\n if (!this.mVoiceButtonEnabled || !TextUtils.isEmpty(this.mEditText.getText().toString())) {\n this.mVoiceButton.setVisibility(8);\n } else {\n this.mVoiceButton.setVisibility(0);\n }\n }", "public void changeActive(Button btn) {\n mainController.setCenter();\n\n String text = btn.getText();\n System.out.println(text);\n\n //save old order\n if (activeOrder != null)\n orderController.newOrder(mainController.getRightController().getTransactionList().getItems(), activeOrder);\n\n\n\n\n mainController.getCenterController().clearUndermenu();\n\n activeOrders.getChildren().forEach((v)-> setBtnStyle((Button)v));\n\n setActiveBtnStyle(btn);\n\n activeOrder = text;\n items.clear();\n mainController.getRightController().clearSelected();\n items.setAll(orderController.loadOrder(text));\n }", "public void setVisible(boolean aValue)\n{\n if(isVisible()==aValue) return; // If value already set, just return\n firePropertyChange(\"Visible\", _visible, _visible = aValue, -1); // Set value and fire PropertyChange\n}", "@FXML\n private void handleButtonAction(MouseEvent event)\n {\n\n if(event.getTarget() == btn_bcconfig)\n {\n pane_bcconf.setVisible(false);\n pane_rtread.setVisible(false);\n gp_bc.setVisible(false);\n }\n else if (event.getTarget() == btn_bcread)\n {\n pane_bcconf.setVisible(true);\n pane_rtread.setVisible(false);\n if (cb_bcrt.isSelected() == true)\n {\n gp_bc.setVisible(true);\n }\n else\n {\n \t gp_bc.setVisible(false);\n }\n }\n else if (event.getTarget() == btn_rtread)\n {\n pane_bcconf.setVisible(false);\n pane_rtread.setVisible(true);\n }\n }", "public void setButtonVisibility() {\n if (MankomaniaGame.getMankomaniaGame().getLocalClientPlayer().getPlayerIndex() == MankomaniaGame.getMankomaniaGame().getGameData().getCurrentPlayerTurnIndex()) {\n cheatButton.setText(\"Cheat\");\n playerAtTurn.setVisible(true);\n playerNotAtTurn.setVisible(false);\n } else {\n cheatButton.setText(\"Assume Cheating\");\n playerAtTurn.setVisible(false);\n playerNotAtTurn.setVisible(true);\n }\n }", "@Override\n public void update(Integer pushValue) {\n List cells = gridPane.getChildren();\n if (orientation.equals(\"HORIZONTAL\")){\n Button button = (Button) cells.get(10*row + column + pushValue);\n button.setStyle(\"-fx-background-color: #ff0000\");\n System.out.println(\"HIT\");\n }\n if (orientation.equals(\"VERTICAL\")){\n Button button = (Button) cells.get(10*(row + pushValue) + column);\n button.setStyle(\"-fx-background-color: #ff0000\");\n System.out.println(\"HIT\");\n }\n }", "private void customUpdateView() {\n\t\tpbrLoading.setVisibility(View.GONE);\n\t\tif (isPlaying()) {\n\t\t\tgifVoiceLoader.setVisibility(View.VISIBLE);\n\t\t\timgPlay.setVisibility(View.GONE);\n\t\t} else {\n\t\t\tgifVoiceLoader.setVisibility(View.GONE);\n\t\t\timgPlay.setVisibility(View.VISIBLE);\n\t\t}\n\t\timgPlay.setImageResource(getPlayImageResId());\n\t\tgifVoiceLoader.setGifImageResourceID(getVoiceLoderGif());\n\t\ttxtButtonCaption.setText(getText());\n\n\t}", "@Override\n\tprotected void buildButton() {\n\t\t\n\t}", "public void updateUI() {\n\t setUI( LinkButtonUI.createUI( this));\n\t}", "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.getCancelButton().setEnabled(!isLastStep);\n\t\t\n\t\tthis.getBackButton().setVisible(!isLastStep);\n\t\tthis.getBackButton().setEnabled(!isFirstStep && !isLastStep);\n\n\t\tthis.getNextButton().setVisible(!isLastStep);\n\t\tthis.getNextButton().setEnabled(!isLastStep && isValid);\n\n\t\tthis.getFinishButton().setEnabled(isLastStep);\n\t\tthis.getFinishButton().setVisible(isLastStep);\n\t}", "public void updateButton(boolean done) {\n\t\tdiceBtn.setDisable(done);\n\t\tendTurn.setDisable(!done);\n\t}", "private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }", "private void rHintButton(Button button){\r\n button.getStyleClass().remove(\"closedButton\");\r\n button.getStyleClass().add(\"chooseButtons\");\r\n button.setMouseTransparent(false);\r\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}", "public void stateChanged() {\r\n if (nextBigStepButton != null) {\r\n nextBigStepButton.setEnabled(!automata.isAtEnd());\r\n }\r\n if (prevBigStepButton != null) {\r\n prevBigStepButton.setEnabled(!automata.isAtStart());\r\n }\r\n\r\n nextStepButton.setEnabled(!automata.isAtEnd());\r\n prevStepButton.setEnabled(!automata.isAtStart());\r\n restartButton.setEnabled(!automata.isAtStart());\r\n\r\n autoButton.setState(controller.getExecutionMode());\r\n autoButton.setEnabled(!automata.isAtEnd());\r\n }", "@FXML\n void inHouseButtonAction(ActionEvent event){\n \n // On inHouse button press hide the company name label and field \n partCompanyNameField.setVisible(false);\n partCompanyNameLabel.setVisible(false);\n \n outsourcedButton.setSelected(false);\n inHouse = true;\n inHouseButton.setSelected(true);\n \n // On inhouse button press show the machine id field and label visible\n partMachineIDField.setVisible(true);\n partMachineIDLabel.setVisible(true);\n \n }", "@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}", "public void update() {\r\n\r\n // update attributes\r\n finishIcon.setColored(isDirty());\r\n cancelIcon.setColored(isDirty());\r\n finishButton.repaint();\r\n cancelButton.repaint();\r\n\r\n }", "public void updateUI(){}", "@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }", "protected void _updateMsbDisplay()\n\t{\n\t\tignoreActions = true ;\n\t\tSpObs obs = ( SpObs )_spItem ;\n\t\tif( obs.isMSB() )\n\t\t{\n\t\t\t_w.msbPanel.setVisible( true ) ;\n\t\t\t_w.optional.setVisible( false ) ;\n\t\t\t_w.unSuspendCB.setVisible( obs.isSuspended() ) ;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t_w.msbPanel.setVisible( false ) ;\n\n\t\t\tif( OtCfg.telescopeUtil.supports( TelescopeUtil.FEATURE_FLAG_AS_STANDARD ) )\n\t\t\t\t_w.optional.setVisible( true ) ;\n\t\t}\n\t\tignoreActions = false ;\n\t}", "@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }", "private void refresh() {\n System.out.println(\"refresh is called\");\n currentStory=storyManager.getStory(user.getCurrentStoryNode());\n resources=resourceManager.getResources();\n storyText.setText(currentStory.getText());\n // Set button texts, add foreground locks for options without conditions met\n for (int i=0; i<currentStory.getStoryPaths().size(); i++) {\n StoryPaths storyPath=currentStory.getStoryPaths().get(i);\n Resource resourceNeeded=storyPath.getResourceNeeded();\n if (resourceNeeded!=null) {\n int amountNeeded=storyPath.getAmountNeeded();\n if (resourceNeeded.getDepletable()) {\n buttons[i].setText(storyPath.getOptionText() + \" (Consume \" + amountNeeded + \" \" + resourceNeeded.getName() + \")\");\n } else {\n buttons[i].setText(storyPath.getOptionText() + \" (Require \" +resourceNeeded.getName() + \")\");\n }\n if (resourceNeeded.getStock() < amountNeeded) {\n buttons[i].setForeground(getDrawable(R.drawable.button_box_lock_sample));\n } else {\n buttons[i].setForeground(null);\n }\n } else {\n buttons[i].setText(storyPath.getOptionText());\n buttons[i].setForeground(null);\n }\n buttons[i].setVisibility(View.VISIBLE);\n updateResourceText();\n }\n // Make the other buttons disappear\n for (int i=currentStory.getStoryPaths().size(); i<5; i++) {\n buttons[i].setVisibility(View.GONE);\n }\n }", "@Override\n\tpublic void adjust() {\n\t\tstate = !state;\n\t}", "public void toggleStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.TOGGLE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "private void handleButton(JButton button)\n\t{\n\t\tif(button.getText().equals(\"0\")){\n\t\t\tbutton.setText(\"\");\n\t\t\tbutton.setBackground(Color.WHITE);\n\t\t\tbutton.setOpaque(true);\n\t\t} else{\n\t\t\tbutton.setBackground(Color.lightGray);\n\t\t\tbutton.setOpaque(true);\n\t\t}\n\t}", "private void relayout() {\n buttonPanel.removeAll();\n insertButtons(WindowManager.getRootWindows());\n buttonPanel.repaint();\n }", "public void propertyChange(final PropertyChangeEvent e) {\n if (JInternalFrame.IS_MAXIMUM_PROPERTY.equals(e.getPropertyName())\n || JInternalFrame.IS_ICON_PROPERTY.equals(e.getPropertyName())) {\n setButtonIcons();\n enableActions();\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_ICONABLE_PROPERTY)) {\n updateButton(iconButton, frame.isIconifiable());\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_MAXIMIZABLE_PROPERTY)) {\n updateButton(maxButton, frame.isMaximizable());\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_CLOSABLE_PROPERTY)) {\n updateButton(closeButton, frame.isClosable());\n } else if (e.getPropertyName().\n equals(StringConstants.INTERNAL_FRAME_RESIZABLE_PROPERTY)) {\n enableActions();\n } else if (e.getPropertyName().equals(\"ancestor\")) {\n // to enable sizeAction, moveAction\n enableActions();\n revalidate();\n } else if (JInternalFrame.FRAME_ICON_PROPERTY.\n equals(e.getPropertyName())) {\n internals.setFrameIcon(frame.getFrameIcon());\n revalidate();\n repaint();\n } else if (JInternalFrame.TITLE_PROPERTY.\n equals(e.getPropertyName())) {\n revalidate();\n repaint();\n }\n }", "void setNotificationButtonState(Boolean isNotifyEnabled,Boolean isUpdateEnabled,Boolean isCancelEnabled) {\n button_notify.setEnabled(isNotifyEnabled);\n button_update.setEnabled(isUpdateEnabled);\n button_cancel.setEnabled(isCancelEnabled);\n }", "public static void turnButtonVisible(Labeled button){\n button.setStyle(\"-fx-background-color:#FFFFFF\"); //turn button white\n button.setTextFill(black); //turn text black\n }", "private void updateView() {\n\t\tpbrLoading.setVisibility(View.GONE);\n\t\tif (isPlaying()) {\n\t\t\tgifVoiceLoader.setVisibility(View.VISIBLE);\n\t\t\timgPlay.setVisibility(View.GONE);\n\t\t} else {\n\t\t\tgifVoiceLoader.setVisibility(View.GONE);\n\t\t\timgPlay.setVisibility(View.VISIBLE);\n\t\t}\n\t\timgPlay.setImageResource(getPlayImageResId());\n\t\tgifVoiceLoader.setGifImageResourceID(getVoiceLoderGif());\n\t\ttxtButtonCaption.setText(getText() + \" s\");\n\n\t}", "private void updateDisplayForScrubbingChange(@NonNull MediaButton semanticActions) {\n // Update visibilities of the scrubbing time views and the scrubbing-dependent buttons.\n bindScrubbingTime(mMediaData);\n SEMANTIC_ACTIONS_HIDE_WHEN_SCRUBBING.forEach((id) -> setSemanticButtonVisibleAndAlpha(\n id, semanticActions.getActionById(id), semanticActions));\n if (!mMetadataAnimationHandler.isRunning()) {\n // Trigger a state refresh so that we immediately update visibilities.\n mMediaViewController.refreshState();\n }\n }", "@SuppressLint({\"ResourceAsColor\", \"SetTextI18n\"})\n private void setUi()\n {\n totalTextView.setText(String.valueOf(orederObj.getTotal()));\n paymentStatusTextView.setText(orederObj.getPaymentStatus());\n paymentMethodTextView.setText(orederObj.getPaymentMode());\n\n String title=orederObj.getOrderId();\n orderIdTextView.setText(title);\n\n\n //Toast.makeText(getContext(),orederObj.getStatus(),Toast.LENGTH_LONG).show();\n String status=orederObj.getStatus();\n Toast.makeText(getContext(),status,Toast.LENGTH_LONG).show();\n if(status.equals(\"Preparing\"))\n {\n //setting button color\n readyButton.setBackground(getResources().getDrawable(buttonstyle2));\n preparingButton.setBackground(getResources().getDrawable(buttonstyle1));\n doneButton.setBackground(getResources().getDrawable(buttonstyle2));\n\n preparingButton.setTextColor(R.color.white);\n preparingButton.setTextColor(R.color.button_blue);\n doneButton.setTextColor(R.color.button_blue);\n\n\n }\n else if(status.equals(\"Ready\"))\n {\n //ui change part\n readyButton.setBackground(getResources().getDrawable(buttonstyle1));\n preparingButton.setBackground(getResources().getDrawable(buttonstyle1));\n doneButton.setBackground(getResources().getDrawable(buttonstyle2));\n\n readyButton.setTextColor(R.color.white);\n preparingButton.setTextColor(R.color.white);\n doneButton.setTextColor(R.color.button_blue);\n\n //db part\n\n\n }\n else if(status.equals(\"Done\"))\n {\n //ui change part\n readyButton.setBackground(getResources().getDrawable(buttonstyle1));\n preparingButton.setBackground(getResources().getDrawable(buttonstyle1));\n doneButton.setBackground(getResources().getDrawable(buttonstyle1));\n\n readyButton.setTextColor(R.color.white);\n preparingButton.setTextColor(R.color.white);\n doneButton.setTextColor(R.color.white);\n\n\n\n }\n\n if(orederObj.getPaymentStatus().equals(\"Paid\"))\n {\n paymetButton.setText(\"Paid\"); //this check and update\n }\n\n\n //this is to butoon\n paymetButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //paymetButton.setText(\"Paid\");\n if(orederObj.getPaymentStatus().equals(\"Paid\"))\n {\n Toast.makeText(getActivity(),\"Already Paid\",Toast.LENGTH_LONG).show();\n\n }\n else\n {\n updatePayment(orederObj.getOrderId(),\"Paid\");\n paymetButton.setText(\"Paid\"); //this check and update\n }\n\n\n }\n });\n\n\n //button to handle cancel part\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n cancelOrder(orederObj.getOrderId(),\"Cancel\");\n }\n });\n\n\n ///oder handling part\n\n preparingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n readyButton.setBackground(getResources().getDrawable(buttonstyle2));\n preparingButton.setBackground(getResources().getDrawable(buttonstyle1));\n doneButton.setBackground(getResources().getDrawable(buttonstyle2));\n\n preparingButton.setTextColor(R.color.white);\n preparingButton.setTextColor(R.color.button_blue);\n doneButton.setTextColor(R.color.button_blue);\n\n updateStatus(orederObj.getOrderId(),\"Preparing\");\n\n\n }\n });\n\n\n readyButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n readyButton.setBackground(getResources().getDrawable(buttonstyle1));\n preparingButton.setBackground(getResources().getDrawable(buttonstyle1));\n doneButton.setBackground(getResources().getDrawable(buttonstyle2));\n\n readyButton.setTextColor(R.color.white);\n preparingButton.setTextColor(R.color.white);\n doneButton.setTextColor(R.color.button_blue);\n\n updateStatus(orederObj.getOrderId(),\"Ready\");\n\n\n }\n });\n\n\n doneButton.setOnClickListener(new View.OnClickListener() {\n @RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onClick(View view) {\n readyButton.setBackground(getResources().getDrawable(buttonstyle1));\n preparingButton.setBackground(getResources().getDrawable(buttonstyle1));\n doneButton.setBackground(getResources().getDrawable(buttonstyle1));\n\n readyButton.setTextColor(R.color.white);\n preparingButton.setTextColor(R.color.white);\n doneButton.setTextColor(R.color.white);\n\n updateStatus(orederObj.getOrderId(),\"Done\");\n orederObj.setStatus(\"Done\"); //setting to object\n storeHistory(orederObj); //this is calling the function\n\n }\n });\n\n\n //this is to set the food list of order\n List<String> fName=orederObj.convertFoodName();\n List<String> fQty=orederObj.convertFoodQty();\n\n String name=\"Order List:\\n\";\n int i;\n for (i=0;i<fName.size();i++)\n {\n name=name+\"\\t\"+fName.get(i)+\"\\t:\"+fQty.get(i)+\"\\n\";\n }\n\n foodName.setText(name);\n\n\n String note=\"Note:\";\n //this part is to set the note\n if(orederObj.getNotes()!=null)\n {\n note=note+orederObj.getNotes();\n noteTextView.setText(note);\n }\n else\n {\n note=note+\"Empty\";\n noteTextView.setText(note);\n }\n\n\n\n\n }", "private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }", "@Override\n public void update(Observable o, Object arg) {\n setDisplay();\n }", "public void updateResetButton(){\n if (vertexImages.size() < 1){\n resetButton.setAlpha(0.5f);\n resetButton.setClickable(false);\n }\n else {\n resetButton.setAlpha(1f);\n resetButton.setClickable(true);\n }\n }", "protected void actionPerformed(GuiButton par1GuiButton)\n {\n for (int var2 = 0; var2 < this.options.keyBindings.length; ++var2)\n {\n ((GuiButton)this.controlList.get(var2)).displayString = this.options.getOptionDisplayString(var2);\n }\n\n if (par1GuiButton.id == 200)\n {\n this.mc.displayGuiScreen(this.parentScreen);\n }\n else\n {\n this.buttonId = par1GuiButton.id;\n par1GuiButton.displayString = \"> \" + this.options.getOptionDisplayString(par1GuiButton.id) + \" <\"; // what is this even for.. it gets overwritten in drawScreen\n }\n }", "private void updateButtonsState(boolean requestingLocationUpdates) {\n Log.d(TAG, \"updateButtonsState\");\n if (requestingLocationUpdates) {\n //mRequestUpdatesButton.setEnabled(false);\n //mRemoveUpdatesButton.setEnabled(true);\n } else {\n //mRequestUpdatesButton.setEnabled(true);\n //mRemoveUpdatesButton.setEnabled(false);\n }\n }", "void updateCommonToggleStatus(boolean shown);", "@FXML\n void setBtnEditOnClick() {\n isEdit = true;\n isAdd = false;\n isDelete = false;\n }", "private void updateButtonState(ShopItem[] buy, ShopItem[] sell) {\n int gold = world.getCharacter().getGold().get();\n for (int i = 0; i < 8; i++) {\n Boolean canBuy = gold < buy[i].getPrice();\n Boolean canSell = !world.ifHasItem(sell[i].getName());\n if (world.isSurvivalMode()){\n // only can buy one potion if survival mode\n buy[i].getButton().disableProperty().set(canBuy);\n if (i == 2 && this.potionNum == 0){\n buy[i].getButton().disableProperty().set(true);\n }\n } else if (world.isBerserkerMode()) {\n buy[i].getButton().disableProperty().set(canBuy);\n // only can buy one piece of defensive gear if berserker mode\n if ((i == 0 || i == 1 || i == 3) && this.defenseNum == 0){\n buy[i].getButton().disableProperty().set(true);\n }\n } else {\n buy[i].getButton().disableProperty().set(canBuy);\n }\n sell[i].getButton().disableProperty().set(canSell);\n }\n }", "public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }", "UpdateButtonListener(AvailableProperties availableprops, JTextField tf, String property) {\n availableproperties = availableprops;\n textfield = tf;\n propertyname = property;\n }", "@Override\n protected void updateItem(Boolean t, boolean empty) {\n super.updateItem(t, empty);\n if (!empty) {\n setGraphic(cellButton);\n }\n }", "protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }", "private void updateDisplay() {\n btnScheduleTime.setText(new StringBuilder().append(PHHelper.pad(mHour))\n .append(\":\").append(PHHelper.pad(mMinute)));\n }", "@Override\r\n\t\t\t public void onClick(View v) {\n\t\t\t\t bFlagHehuo = !bFlagHehuo;\r\n\t\t\t\t hehuo_btn.setChecked(bFlagHehuo);\r\n\t\t\t }", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "private void dealWithState(FindPairLogic.State state) {\n buttons[state.getI()][state.getJ()].setText(Integer.toString(state.getN()));\n buttons[state.getI()][state.getJ()].setDisable(true);\n if (state.hasResult()) {\n if (!state.isSuccess()) {\n isGameEnable.set(false);\n threadPool.schedule(() -> Platform.runLater(() -> {\n buttons[state.getI()][state.getJ()].setText(\"\");\n buttons[state.getI()][state.getJ()].setDisable(false);\n buttons[state.getPreviousI()][state.getPreviousJ()].setText(\"\");\n buttons[state.getPreviousI()][state.getPreviousJ()].setDisable(false);\n isGameEnable.set(true);\n }), 1, TimeUnit.SECONDS);\n }\n }\n if (state.isEndGame()) {\n endGame();\n }\n }", "@FXML public void handleToggleButtons() {\n\t\t\n\t\t// binarySplitButton\n\t\tif (binarySplitButton.isSelected()) {\n\t\t\tbinarySplitButton.setText(\"True\");\n\t\t} else {\n\t\t\tbinarySplitButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// collapseTreeButton\n\t\tif (collapseTreeButton.isSelected()) {\n\t\t\tcollapseTreeButton.setText(\"True\");\n\t\t} else {\n\t\t\tcollapseTreeButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// debugButton\n\t\tif (debugButton.isSelected()) {\n\t\t\tdebugButton.setText(\"True\");\n\t\t} else {\n\t\t\tdebugButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotCheckCapabilitiesButton\n\t\tif (doNotCheckCapabilitiesButton.isSelected()) {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotMakeSplitPAVButton\n\t\tif (doNotMakeSplitPAVButton.isSelected()) {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// reduceErrorPruningButton\n\t\tif (reduceErrorPruningButton.isSelected()) {\n\t\t\treduceErrorPruningButton.setText(\"True\");\n\t\t} else {\n\t\t\treduceErrorPruningButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// saveInstanceDataButton\n\t\tif (saveInstanceDataButton.isSelected()) {\n\t\t\tsaveInstanceDataButton.setText(\"True\");\n\t\t} else {\n\t\t\tsaveInstanceDataButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// subTreeRaisingButton\n\t\tif (subTreeRaisingButton.isSelected()) {\n\t\t\tsubTreeRaisingButton.setText(\"True\");\n\t\t} else {\n\t\t\tsubTreeRaisingButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// unprunedButton\n\t\tif (unprunedButton.isSelected()) {\n\t\t\tunprunedButton.setText(\"True\");\n\t\t} else {\n\t\t\tunprunedButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useLaplaceButton\n\t\tif (useLaplaceButton.isSelected()) {\n\t\t\tuseLaplaceButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseLaplaceButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useMDLcorrectionButton\n\t\tif (useMDLcorrectionButton.isSelected()) {\n\t\t\tuseMDLcorrectionButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseMDLcorrectionButton.setText(\"False\");\n\t\t}\n\t\t\n\t}", "@Override\n protected void updateConnectButtonState() {\n boolean connected = getPlusClient().isConnected();\n\n //mSignOutButtons.setVisibility(connected ? View.VISIBLE : View.GONE);\n //mPlusSignInButton.setVisibility(connected ? View.GONE : View.VISIBLE);\n //mEmailLoginFormView.setVisibility(connected ? View.GONE : View.VISIBLE);\n }", "public void setLayoutInfo(Object theLayoutInfo)\n{\n if(RMUtils.equals(theLayoutInfo, _layoutInfo)) return; // If value already set, just return\n _layoutInfoX = null;\n firePropertyChange(\"LayoutInfo\", _layoutInfo, _layoutInfo = theLayoutInfo, -1);\n}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@StudioProperty(type = PropertyType.COMPONENT_REF,\n options = \"io.jmix.ui.component.Button\")\n void setButton(@Nullable Button button);", "private void triggerB2ChangeButton(JButton button) {\n if (!Objects.equals(button, previousB2Button)) {\n previousB2Button.setBackground(MOUSE_B2_EXITED_COLOR);\n previousB2Button.setForeground(BUTTON_B2_DEFAULT_COLOR);\n }\n }", "@Override\n public void onResume() {\n view.get().onDataUpdated(state);\n view.get().activateButton();\n\n }", "public void buttonAction(ButtonClass button){\n //Sets the chosenButton to most recently chosen button\n chosenButton = button;\n chosenGame = chosenButton.getSmallGame();\n allClickedButtons.add(chosenButton);\n nextGamePosition = chosenButton.getButtonPosition();\n checkAndUpdateIfSmallGameWin(chosenGame);\n updateBigGameBoardForNextMove();\n }", "private void adaptButtonFacade(AbstractButton button)\n\t{\n\t\tString text = null;\n\t\tIcon icon = null;\n\t\tboolean selected = false;\n\n\t\tif (fullScreenSupport.isFullScreen())\n\t\t{\n\t\t\ttext = FullScreenConstants.TEXT_MAXIMIZE;\n\t\t\ticon = FullScreenConstants.ICON_MAXIMIZE;\n\t\t\tselected = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttext = FullScreenConstants.TEXT_RESTORE;\n\t\t\ticon = FullScreenConstants.ICON_MAXIMIZE_RESTORE;\n\t\t\tselected = true;\n\t\t}\n\t\t\n\t\tif (button instanceof JMenuItem)\n\t\t{\n\t\t\tbutton.setSelected(selected);\n\t\t}\t\n\t\telse\n\t\t{\n\t\t\tif (!button.getText().equals(\"\"))\n\t\t\t{\n\t\t\t\tbutton.setText(text);\n\t\t\t}\n\t\t\tif (button.getIcon() != null)\n\t\t\t{\n\t\t\t\tbutton.setIcon(icon);\n\t\t\t}\n\t\t\tbutton.setToolTipText(text);\n\t\t}\t\t\n\t}", "public void updateDisplay()\r\n {\r\n boardpanel.removeAll();\r\n for(int i = 0; i < 3; i++)\r\n {\r\n for(int j = 0; j < 3; j++)\r\n {\r\n if(buttons[i][j].getText().charAt(0) == ' ') {\r\n buttons[i][j].setEnabled(true);\r\n }\r\n else\r\n {\r\n buttons[i][j].setEnabled(false);\r\n }\r\n boardpanel.add(buttons[i][j]);\r\n }\r\n }\r\n }", "public void setVisible(Button button) {\n setVisible(EnumSet.of(button));\n }", "public void focusPropertyButton(Button btn){\n btn.hoverProperty().addListener(new ChangeListener<Boolean>() {\n @Override\n public void changed(ObservableValue<? extends Boolean> observableValue, Boolean aBoolean, Boolean t1) {\n if (t1){\n InterfaceStyling.dropShadowExitSelect(btn);\n } else {\n InterfaceStyling.dropShadowExitDeselect(btn);\n }\n }\n });\n }", "@Override\n public void onShowRefresh(boolean notUsed) {\n // nothing required for this assignment.\n }", "private void setupUpdateButton() {\n\n /* Get the button */\n Button updateButton = this.getStatusUpdateButton();\n\n /* Setup listener */\n View.OnClickListener updateButtonClicked = new View.OnClickListener() {\n\n @Override\n public void onClick(View view) {\n statusUpdater.updateStatus();\n }\n };\n\n /* Set listener to button */\n updateButton.setOnClickListener(updateButtonClicked);\n }", "@Override\n protected void updateConnectButtonState() {\n boolean connected = getPlusClient().isConnected();\n\n mPlusSignInButton.setVisibility(connected ? View.GONE : View.VISIBLE);\n }", "public void updateUi() {\n\t\t// // update the car color to reflect premium status or lack thereof\n\t\t// ((ImageView)findViewById(R.id.free_or_premium)).setImageResource(mIsPremium\n\t\t// ? R.drawable.premium : R.drawable.free);\n\t\t//\n\t\t// // \"Upgrade\" button is only visible if the user is not premium\n\t\t// findViewById(R.id.upgrade_button).setVisibility(mIsPremium ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // \"Get infinite gas\" button is only visible if the user is not\n\t\t// subscribed yet\n\t\t// findViewById(R.id.infinite_gas_button).setVisibility(mSubscribedToInfiniteGas\n\t\t// ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // update gas gauge to reflect tank status\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(R.drawable.gas_inf);\n\t\t// }\n\t\t// else {\n\t\t// int index = mTank >= TANK_RES_IDS.length ? TANK_RES_IDS.length - 1 :\n\t\t// mTank;\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(TANK_RES_IDS[index]);\n\t\t// }\n\t}", "protected void redisplay() {\n\t\tdisplay.setText(\"\" + calc.getDisplayValue());\n\t}", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tif(!source.getValueIsAdjusting()) {// getValueIsAdjusting 함수는 어떤 이벤트 인스턴스에서 연속적으로 이벤트가 일어 났을 때, \n\t\t\t//해당 이벤트 인스턴스들을 일종의 데이터 체인으로 보고 체인의 마지막 인스턴스 외에서 호출하는 경우 true를 반환하는 함수이다.\n\t\t\t\n\t\t\t\n\t\tint value = (int) slider.getValue();\n\t\timgBtn.setSize(value*10, value*10);// 슬라이더의 상태가 변경되면 호출됨\n\t\t}\n\t}", "@Test\n public void testColumnControlIconNotUpdateNonActionUIResource() {\n ColumnControlButton control = new ColumnControlButton(new JXTable(), new EmptyIcon());\n Icon icon = control.getIcon();\n String lf = UIManager.getLookAndFeel().getName();\n setSystemLF(!defaultToSystemLF);\n if (lf.equals(UIManager.getLookAndFeel().getName())) {\n LOG.info(\"cannot run layoutOnLFChange - equal LF\" + lf);\n return;\n }\n SwingUtilities.updateComponentTreeUI(control);\n assertSame(\"icon must not be updated on LF change if not UIResource: \", \n icon, control.getIcon());\n }", "public void redo(){\n\t\tthis.setButtonVisible(true);\n\t}", "@Override\r\n\tpublic void actualiser(ObservableButton o) {\n\t\tcompteur++;\r\n\t\ttext.setText(\"Nombre de clic : \"+compteur);\r\n\t\t\r\n\t}", "@FXML\n\tpublic void handleAudioManipulatorPauseButton() {\n\t\tcontroller.audioManipulatorPauseAudio();\n\t\tbuttonPlay.setDisable(false);\n\t\tbuttonPause.setDisable(true);\n\t\tbuttonStop.setDisable(false);\n\t\tpaneMixerMainControls.setDisable(false);\n\t\tsliderLowPass.setDisable(false);\n\t\ttextFieldLowPass.setDisable(false);\n\t}", "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "public void setEditButtonVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_editButton_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_editButton_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setEditButtonVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "private void setComponentStatus() {}", "private void makeButtonVisible() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n btnDetectObject.setVisibility(View.VISIBLE);\n }\n });\n }", "public void hintButtonClick(Button button){\r\n button.setMouseTransparent(true);\r\n button.getStyleClass().removeAll(\"chooseButtons\");\r\n button.getStyleClass().add(\"closedButton\");\r\n stackPane.getChildren().removeAll(hintMenuStack,backPane);\r\n }" ]
[ "0.619143", "0.60508084", "0.598587", "0.5981919", "0.5926955", "0.5904449", "0.5867056", "0.58163893", "0.5770601", "0.5763257", "0.57388467", "0.5729034", "0.5659156", "0.5635197", "0.5629661", "0.5562776", "0.55478233", "0.55451196", "0.5536434", "0.55072695", "0.5507199", "0.549344", "0.5482718", "0.5463593", "0.546288", "0.5459397", "0.5451209", "0.54506934", "0.5450389", "0.54344815", "0.5429113", "0.54284924", "0.54080904", "0.54035", "0.539496", "0.5376186", "0.537289", "0.5364441", "0.5359069", "0.5348799", "0.534681", "0.5336951", "0.5332914", "0.53250813", "0.53248936", "0.53230447", "0.53230447", "0.5315526", "0.53090805", "0.52973753", "0.5294687", "0.5291292", "0.52896094", "0.52863854", "0.5277335", "0.5276085", "0.52701974", "0.52686083", "0.5263818", "0.5261726", "0.5256207", "0.5255773", "0.5253442", "0.5247789", "0.52452624", "0.5242853", "0.52418417", "0.52345973", "0.52310663", "0.5228526", "0.5227364", "0.5226592", "0.5224204", "0.5223188", "0.5222968", "0.5222968", "0.5222968", "0.5222453", "0.52216274", "0.52124697", "0.51998544", "0.51948285", "0.51911354", "0.5187243", "0.51821893", "0.51800585", "0.5178663", "0.51728505", "0.5167879", "0.51663816", "0.51639915", "0.5163429", "0.51631546", "0.5161559", "0.51565886", "0.51550883", "0.5154307", "0.51521796", "0.5147017", "0.5144237" ]
0.549287
22
To search contact in trie Comoplexity : O(length of string)
@Override public Map<SearchRank, List<Contact>> searchContact(String initial) { TrieNode t = this.root; int start = 0; Map<SearchRank, List<Contact>> res = new HashMap<SearchRank, List<Contact>>(); while(start < initial.length() && t != null && t.getChilds().containsKey(initial.charAt(start))){ t = t.getChilds().get(initial.charAt(start)); start ++; } if(start == initial.length() && t != null){ if(t.getContacts() != null) res.put(SearchRank.PERFECT, t.getContacts()); //now add all the nodes contact child of t List<Contact> list = res.get(SearchRank.PARTIAL); if(list == null) list = new ArrayList<Contact>(); collectChildsContact(t, list); res.put(SearchRank.PARTIAL, list); } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private TrieNode searchNode(String s){\n TrieNode temp = this;\n for (int i = 0; i < s.length(); i++){\n if (temp.children.containsKey(String.valueOf(s.charAt(i)))){\n temp = temp.children.get(String.valueOf(s.charAt(i)));\n }else{\n return null;\n }\n }\n return temp;\n }", "static void searchWord(WordNode root, char boggle[][], int i,\n int j, boolean visited[][], String str, ArrayList<String> elements)\n {\n\n // if we found word in trie / dictionary\n if (root.isWord == true){\n// System.out.println(str.toString());\n elements.add(str.toString());\n }\n\n\n // If both I and j in range and we visited\n // that element of matrix first time\n if (isSafe(i, j, visited,boggle))\n {\n // make it visited\n visited[i][j] = true;\n\n // traverse all child of current root\n for (int K =0; K < 26; K++)\n {\n if (root.child[K] != null)\n {\n // current character\n char ch = (char) (K + 'a') ;\n\n // Recursively search reaming character of word\n // in trie for all 8 adjacent cells of\n // boggle[i][j]\n if (isSafe(i+1,j+1,visited,boggle) && Character.toLowerCase(boggle[i+1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i+1,j+1,\n visited,str+ch, elements);\n if (isSafe(i, j+1,visited,boggle) && Character.toLowerCase(boggle[i][j+1])\n == ch)\n searchWord(root.child[K],boggle,i, j+1,\n visited,str+ch, elements);\n if (isSafe(i-1,j+1,visited,boggle) && Character.toLowerCase(boggle[i-1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j+1,\n visited,str+ch, elements);\n if (isSafe(i+1,j, visited,boggle) && Character.toLowerCase(boggle[i+1][j])\n == ch)\n searchWord(root.child[K],boggle,i+1, j,\n visited,str+ch, elements);\n if (isSafe(i+1,j-1,visited,boggle) && Character.toLowerCase(boggle[i+1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i+1, j-1,\n visited,str+ch, elements);\n if (isSafe(i, j-1,visited,boggle)&& Character.toLowerCase(boggle[i][j-1])\n == ch)\n searchWord(root.child[K],boggle,i,j-1,\n visited,str+ch, elements);\n if (isSafe(i-1,j-1,visited,boggle) && Character.toLowerCase(boggle[i-1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j-1,\n visited,str+ch, elements);\n if (isSafe(i-1, j,visited,boggle) && Character.toLowerCase(boggle[i-1][j])\n == ch)\n searchWord(root.child[K],boggle,i-1, j,\n visited,str+ch, elements);\n }\n }\n\n // make current element unvisited\n visited[i][j] = false;\n }\n }", "public boolean search(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n return false;\n }\n now = now.children.get(c);\n }\n return now.hasWord;\n}", "public boolean search(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(temp == null) return false;\n tn = temp;\n }\n return tn.flag;\n }", "public boolean search(String word) {\n // Write your code here\n Queue<TrieNode> nexts=new LinkedList<>();\n nexts.add(root);\n int index=0;\n while(!nexts.isEmpty()){\n int size=nexts.size();\n char c=word.charAt(index);\n boolean flag=false;\n for(int i=0;i<size;++i){\n TrieNode cur=nexts.poll();\n if(c=='.'){\n for(TrieNode tempNode:cur.children.values()){\n nexts.add(tempNode);\n flag|=tempNode.hasWord;\n }\n } else if(cur.children.containsKey(c)){\n TrieNode nextNode=cur.children.get(c);\n flag|=nextNode.hasWord;\n nexts.add(nextNode);\n }\n }\n index++;\n if(index>=word.length()) return flag;\n }\n return false;\n }", "private boolean dfs(String word, int idx, TrieNode parent) {\n if (idx == word.length()) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n if (word.charAt(idx) == '.') {\n for (TrieNode curr : parent.map.values()) {\n boolean res = dfs(word, idx + 1, curr);\n if (res) return true;\n }\n } else {\n if (parent.map.containsKey(word.charAt(idx))) {\n return dfs(word, idx + 1, parent.map.get(word.charAt(idx)));\n }\n }\n return false;\n}", "public int searchPrefix(StringBuilder s, int start, int end){ \n\t if (root != null){\n\t\t char key = s.charAt(start);\n\t\t Node x = root; \n\t\t\n\t\t while(true){\n\t\t\t if (key == x.letter) {\n\t\t\t\t if (start < end) {\n\t\t\t\t\t start++; \n\t\t\t\t\t x = x.child; \n\t\t\t\t\t key = s.charAt(start);\n\t \t\t\t\n\t\t\t\t }else if (x.child.letter == TERMINATOR){\n\t\t\t\t\t if (x.child.sibling != null){ \n\t\t\t\t\t\t return 3;\n\t\t\t\t\t }\n\t\t\t\t\t return 2;\n\t\t\t\t\t\n\t\t\t\t }else { \t\n\t\t\t\t\t return 1; \n\t\t\t\t }\n\t\t\t }else if (key > x.letter){\n\t\t\t\t if(x.sibling != null) {\n\t\t\t\t\t x = x.sibling;\n\t\t\t\t }else {\n\t\t\t\t\t return 0; //not found\n\t\t\t\t }\n\t\t\t }else {\n\t\t\t\t return 0; \n\t\t\t }\n\t\t}\n\t}\t\n\t \treturn 0; \t\n }", "public boolean search(String word) {\n TrieNode current = root;\n for(char c : word.toCharArray()){\n int index = c - 'a';\n if(current.childrens[index] == null)\n return false;\n current = current.childrens[index];\n }\n return current.eow;\n }", "private TrieNode searchPrefix(String word) {\n\t\tTrieNode node = root;\n\t\tfor (char c: word.toCharArray()) {\n\t\t\tif (node.containsKey(c)) {\n\t\t\t\tnode = node.get(c);\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}", "public boolean search(String word) {\n TrieNode curr=root;\n for(int i=0;i<word.length();i++){\n char c = word.charAt(i);\n TrieNode node = curr.hmap.get(c);\n if(node==null){\n return false;\n }\n else{\n curr=node;\n }\n }\n \n return curr.endOfWord;\n }", "public static ArrayList<Word> search(String inputString){\n Node current = root;\n \n // remove doubles and make aphameticals\n Word tempWord = new Word(inputString);\n \n String s = tempWord.getTrieWord();\n \n ArrayList<Word> results = new ArrayList<Word>();\n ArrayList<Word> fuzzyResults = new ArrayList<Word>();\n\n while(current != null){\n \n for(int i=0;i<s.length();i++){ \n if(current.subNode(s.charAt(i)) == null){\n System.out.println(\"WE Have an extra letter ------ !!!!\");\n Collections.sort(results, new CustomComparator()); \n return results;\n }\n else\n current = current.subNode(s.charAt(i));\n \n if(i==inputString.length()-2){\n fuzzyResults.addAll(current.possibleWords);\n }\n \n }\n \n if (current.marker == true)\n results.addAll(current.possibleWords);\n \n // return results; // place here for no problems\n \n }\n \n \n \n //remove fuzzyResults from normal results\n for(int r=0; r<results.size(); r++){\n \n if(results.get(r).isFuzzy){\n results.remove(r);\n r--;\n }\n }\n \n \n // Go through fuzzy results and only accept ones that are less than 1 char of search string\n for(int r=0; r<fuzzyResults.size(); r++){\n \n if(((fuzzyResults.get(r).getWord().length()-1)==inputString.length()) && fuzzyResults.get(r).isFuzzy ){\n results.add(fuzzyResults.get(r)); \n }\n }\n \n Collections.sort(results, new CustomComparator()); \n\n return results;\n \n }", "public static void main(String[] args) {\n Trie obj = new Trie();\n obj.insert(\"home\");\n obj.insert(\"homo\");\n System.out.println(obj.searchWord(\"home\"));\n obj.searchPrefix(\"hom\");\n }", "public boolean search(String word) {\n return dfs(word, 0, root);\n}", "public boolean search(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n return false;\n }\n cur = cur.map[ind];\n }\n return cur.end;\n }", "public String dfs(TrieNode root, String str){\n TrieNode t = root;\n for(char c : str.toCharArray()){\n if(t.isword)\n return t.word;\n else if(t.children[c - 'a'] == null)\n return null;\n t = t.children[c-'a'];\n }\n return null;\n }", "private static void searchWords(boolean[][] check, int row, int col, char[][] boogle, TrieNode root, String str){\n \t\n \tif(root.isLeaf==true) {\n \t\tSystem.out.println(str);\n \t}\n\n \tif(isSafe(check, row, col)){\n \t\tcheck[row][col] = true;\n\n \t\tfor(int i=0; i<SIZE; i++){\n \t\t\tif(root.child[i] != null){\n \t\t\t\tchar c = (char)(i + 'A');\n \t\t\t\tif(isSafe(check, row-1, col) && boogle[row-1][col]==c) searchWords(check, row-1, col, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row-1, col+1) && boogle[row-1][col+1]==c) searchWords(check, row-1, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row, col+1) && boogle[row][col+1]==c) searchWords(check, row, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col+1) && boogle[row+1][col+1]==c) searchWords(check, row+1, col+1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col) && boogle[row+1][col]==c) searchWords(check, row+1, col, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row+1, col-1) && boogle[row+1][col-1]==c) searchWords(check, row+1, col-1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row, col-1) && boogle[row][col-1]==c) searchWords(check, row, col-1, boogle, root.child[i], str+c);\n \t\t\t\tif(isSafe(check, row-1, col-1) && boogle[row-1][col-1]==c) searchWords(check, row-1, col-1, boogle, root.child[i], str+c);\n \t\t\t}\n \t\t}\n \t\tcheck[row][col] = false;\n \t}\n }", "public boolean search(String word) {\n TrieNode ptr = root;\n for(int i = 0;i < word.length();i++) {\n char c = word.charAt(i);\n if(ptr.child[c - 'a'] == null) {\n return false;\n }\n ptr = ptr.child[c - 'a'];\n }\n return ptr.is_end;\n }", "public boolean search(String word) {\n\n int length = word.length();\n TrieNode node = root;\n for(int i=0; i<length; i++) {\n char curr = word.charAt(i);\n if(!node.containsKey(curr)) {\n return false;\n }\n node = node.get(curr);\n }\n return node.isEnd();\n\n }", "public AddAndSearchWord() {\n root = new TrieNode();\n }", "public boolean serch(String word){\n return searchDFS(word, 0, root);\n}", "@Override\n public boolean search(final String word) {\n final TrieNode p = searchNode(word);\n if (p == null) {\n return false;\n } else {\n return p.isEnd;\n }\n\n }", "public boolean search(String word) {\n Trie root = this;\n for (char c : word.toCharArray()) {\n if (root.next[c - 'a'] != null) {\n root = root.next[c - 'a'];\n } else {\n return false;\n }\n }\n if (root.word == null) {\n return false;\n }\n\n return true;\n }", "public boolean search(String word) \n\t {\n\t \tTrieNode p = root;\n\t for(int i=0; i<word.length(); ++i)\n\t {\n\t \tchar c = word.charAt(i);\n\t \tif(p.children[c-'a']==null)\n\t \t\treturn false;\n\t \tp = p.children[c-'a'];\n\t }\n\t return p.mark;\n\t }", "public boolean search(String word) {\n TrieNode node = root;\n\n for (char c: word.toCharArray()) {\n if (node.children[c - 'a'] == null) \n return false;\n\n node = node.children[c - 'a'];\n }\n\n return node.word.equals(word);\n }", "public boolean search(String word) {\n TrieNode n = root;\n for(char c : word.toCharArray()) {\n if(n.children[c]==null)\n return false;\n n = n.children[c];\n }\n if(n.isWord)\n return true;\n return false;\n }", "public static void main(String[] args) {\n\r\n\t\tString[] words = {\"cat\", \"dog\", \"rat\", \"mat\", \"hen\", \"elephant\"};\r\n\t\t\r\n\t\tTrie dataStructure = new Trie();\r\n\t\t\r\n\t\tfor(String word: words){\r\n\t\t\t\r\n\t\t\tdataStructure.insert(word);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(dataStructure.search(\"god\"));\r\n\t}", "@Override\n\tpublic List<Contact> search(String str) {\n\t\treturn null;\n\t}", "public boolean search(String word) {\n if (word == null || word.length() == 0)\n return false;\n char [] letters = word.toCharArray();\n TrieNode node = root;\n for (int i=0; i < letters.length; i++) {\n int pos = letters[i] - 'a';\n if (node.son[pos] == null)\n return false;\n node = node.son[pos];\n }\n\n return node.isEnd;\n }", "private void find(char[] m, String message, Trie cur, Trie root, int index, List<String> results) {\n // Base case 1. No match with any dictionary word. if cur == null -> no match ; return\n if (cur == null) {\n return;\n }\n // Base case 2. if out of bounds, check previously collected word and return\n if (index == message.length()) {\n // result only in case matches word\n if (cur.word != null) {\n results.add(new String(m));\n }\n return;\n }\n char c = message.charAt(index);\n if (c == SPACE) {\n // matches word or character 'e'\n // check if matches word from dictionary\n if (cur.word != null) {\n m[index] = SPACE;\n // if space - start collecting new word from beginning of Trie\n find(m, message, root, root, index + 1, results);\n }\n // otherwise ' ' -> 'e'\n c = 'e';\n }\n // considered non-space character (backtracking)\n m[index] = c;\n // get next element from try\n Trie next = cur.get(c);\n find(m, message, next, root, index + 1, results);\n }", "private boolean dfs(String word, TrieNode parent) {\n if (word.length() == 0) {//since it's parent node so idx cannot be len - 1\n return parent.isLeaf;\n }\n boolean firstMatch = word.length() > 0 && (parent.map.containsKey(word.charAt(0)) || word.charAt(0) == '.');\n if (word.length() > 1 && word.charAt(1) == '*') {\n if(word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word, curr);\n }\n return tmp || firstMatch && dfs(word.substring(2), parent); //match || no match\n } else {\n return firstMatch && (dfs(word, parent.map.get(word.charAt(0))) || dfs(word.substring(2), parent.map.get(word.charAt(0))));\n }\n } else {\n if (word.charAt(0) == '.') {\n boolean tmp = false;\n for (TrieNode curr : parent.map.values()) {\n tmp = tmp || firstMatch && dfs(word.substring(1), curr);\n }\n return tmp;\n } else {\n return firstMatch && dfs(word.substring(1), parent.map.get(word.charAt(0)));\n }\n }\n }", "private void fastscan(State state,SuffixNode currNode,int uvLen,int j){ \n \n for(int i=0;i<currNode.children.size();i++){ \n SuffixNode child = currNode.children.get(i); \n \n if(text.charAt(child.start) == text.charAt(j)){ \n int len = child.getLength(); \n if(uvLen==len){ \n //then we find w \n //uvLen = 0; \n //need slow scan after this child \n state.u = child; \n state.w = child; \n state.j = j+len; \n }else if(uvLen<len){ \n //branching and cut child short \n //e.g. child=\"abc\",uvLen = 2 \n // abc ab \n // / \\ ================> / \\ \n // e f suffix part: \"abd^\" c d^ \n // / \\ \n // e f \n \n //insert the new node: ab; child is now c \n int nodepathlen = child.pathlen \n - (child.getLength()-uvLen); \n SuffixNode node = new SuffixNode(text, \n child.start,child.start + uvLen - 1,nodepathlen); \n node.children = new LinkedList<SuffixNode>(); \n \n int tailpathlen = (text.length() - (j + uvLen)) + nodepathlen; \n SuffixNode tail = new SuffixNode(text, \n j+uvLen,text.length()-1,tailpathlen); \n \n //update child node: c \n child.start += uvLen; \n if(text.charAt(j+uvLen)<text.charAt(child.start)){ \n node.children.add(tail); \n node.children.add(child); \n }else{ \n node.children.add(child); \n node.children.add(tail); \n } \n \n //update parent \n currNode.children.set(i, node); \n \n //uvLen = 0; \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.w = node; \n state.finished = true; \n state.v = node; \n \n }else{//uvLen>len \n //e.g. child=\"abc\", uvLen = 4 \n // abc \n // / \\ ================> \n // e f suffix part: \"abcdefg^\" \n // \n // \n //jump to next node \n uvLen -= len; \n state.u = child; \n j += len; \n state.j = j; \n fastscan(state,child,uvLen,j); \n } \n break; \n } \n } \n }", "public boolean startsWith(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(temp == null) return false;\n tn = temp;\n }\n return true;\n }", "@Override\n\tpublic boolean estTrie() {\n\t\treturn true;\n\t}", "public boolean search(String word) {\n TrieNode cur = root;\n for (int i = 0 ; i < word.length(); i ++) {\n char ch = word.charAt(i);\n if (! cur.children.containsKey(ch)) {\n // does not match\n return false;\n }\n else {\n cur = cur.children.get(ch);\n }\n }\n return cur.isEnd;\n }", "private List<Integer> depthFirstSearch(String sequence) {\r\n LinkedList<Integer> stack = new LinkedList<Integer>();\r\n LinkedList<Integer> wordPos = new LinkedList<Integer>();\r\n List<Integer> neighbors = null;\r\n //string pos counter\r\n int c = 0;\r\n int index = -1;\r\n //find starting pos\r\n for (int i = 0; i < squareDimension * squareDimension; i++) {\r\n if (sequence.toUpperCase().startsWith(this.elementAtPos(i))) {\r\n this.clearMarks();\r\n wordPos.clear();\r\n stack.clear();\r\n //depth-first search\r\n stack.push(i);\r\n togglePosMark(i);\r\n wordPos = (LinkedList<Integer>) \r\n dfsRecursive(stack, sequence.substring(\r\n elementAtPos(i).length(), sequence.length())\r\n .toUpperCase(), elementAtPos(i).length(), \r\n i, sequence.length());\r\n if (wordPos.size() != 0) {\r\n return wordPos;\r\n }\r\n }\r\n }\r\n //no result so return empty list\r\n return new LinkedList<Integer>();\r\n }", "public boolean search(String word) {\n\n TrieNode parent = searchNode(word);\n if(parent==null){\n return false;\n }else{\n if(parent.isLeaf )\n return true;\n }\n return false;\n }", "public boolean search(String word) {\n\t\tTrieNode temp = root;\n\t\tint c;\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tc = word.charAt(i) - 'a';\n\t\t\tif (temp.childrens[c] == null)\n\t\t\t\treturn false;\n\n\t\t\ttemp = temp.childrens[c];\n\t\t}\n\n\t\treturn temp != null && temp.isLeafNode;\n\t}", "public boolean search(String word) {\n TrieTree point = root;\n for(int i = 0; i < word.length(); i++){\n char ch = word.charAt(i);\n if(point.getChild(ch - 'a') == null) return false;\n point = point.getChild(ch - 'a');\n }\n return point.getIsWord();\n }", "public String getGoodWordStartingWith(String s) {\n Random random = new Random();\n String x = s;\n TrieNode temp = searchNode(s);\n if (temp == null){\n return \"noWord\";\n }\n // get a random word\n ArrayList<String> charsNoWord = new ArrayList<>();\n ArrayList<String> charsWord = new ArrayList<>();\n String c;\n\n while (true){\n charsNoWord.clear();\n charsWord.clear();\n for (String ch: temp.children.keySet()){\n if (temp.children.get(ch).isWord){\n charsWord.add(ch);\n } else {\n charsNoWord.add(ch);\n }\n }\n System.out.println(\"------>\"+charsNoWord+\" \"+charsWord);\n if (charsNoWord.size() == 0){\n if(charsWord.size() == 0){\n return \"sameAsPrefix\";\n }\n s += charsWord.get( random.nextInt(charsWord.size()) );\n break;\n } else {\n c = charsNoWord.get( random.nextInt(charsNoWord.size()) );\n s += c;\n temp = temp.children.get(c);\n }\n }\n if(x.equals(s)){\n return \"sameAsPrefix\";\n }else{\n return s;\n }\n }", "public boolean search(String s) {\n\t\tTreeNode node = root;\n\n\t\tboolean completed = false;\n\n\t\tfor (int i = 0; i<s.length(); i++){\n\n\t\t\tif (i == s.length()-1){\n\t\t\t\tcompleted = true;\n\t\t\t}\n\n\n\t\t\tnode = search(String.valueOf(s.charAt(i)), node, completed);\n\n\t\t\tif (foundFalse == true){\n\t\t\t\tfoundFalse = false;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\t\n\t \n\t}", "public boolean search(String word) {\n TrieNode cur = root;\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if(c == '.') {\n char[] wc = word.toCharArray();\n for(Character k : cur.children.keySet()) {\n wc[i] = k;\n if(search(new String(wc))) return true;\n }\n return false; // error\n } else {\n TrieNode node = cur.children.get(c);\n if(node == null) return false;\n cur = node;\n }\n }\n return cur.isEnd;\n }", "@Test\n\tvoid testImplementTrie() {\n\t\tTrie trie = new Trie();\n\n\t\ttrie.insert(\"apple\");\n\t\tassertTrue(trie.search(\"apple\"));\n\t\tassertFalse(trie.search(\"app\"));\n\t\tassertTrue(trie.startsWith(\"app\"));\n\t\ttrie.insert(\"app\");\n\t\tassertTrue(trie.search(\"app\"));\n\t}", "public boolean search(String word) {\n TrieNode node = root;\n\n // for each char in the word, search in the TrieNode\n for (char c: word.toCharArray()) {\n // if we can not find the child, then return false\n if (node.children[c - 'a'] == null) {\n return false;\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n }\n // if we iterate to the last, check isWord\n return node.isWord;\n }", "public TrieNode() {children = new HashMap<Character, TrieNode>();hasWord = false;}", "public boolean search(String word) {\n char[] chars = word.toCharArray();\n Node theNode = root;\n for (char c : chars) {\n if (theNode.children.containsKey(c)) {\n theNode = theNode.children.get(c);\n } else {\n return false;\n }\n }\n return theNode.leaf;\n }", "public Node nodeSearch(String s){\t \n\t int i=0;\n\t i++;\n\t if(this.children == null){\n\t\t//\t\tSystem.out.println(\"1\");\n\t\treturn null;\n\t }\n\t if(root.state.equals(s)){\n\t\t//System.out.println(\"2\");\n\t\treturn this;\n\t }\n\t Node v=null;\n\t for(String key:this.children.keySet()){\n\t\tNode nxt=this.children.get(key);\n\t\tif(key.equals(s)){\n\t\t // System.out.println(\"3\");\n\t\t return nxt;\n\t\t}\n\t\telse{\n\t\t v=nxt.nodeSearch(s);\n\t\t}\n\t }\n\n\t if(v!=null){\n\t\t//\t\tSystem.out.println(\"4\");\n\t\treturn v;\n\t }else{\n\t\t//System.out.println(\"5\");\t\t\n\t\treturn null;\n\t }\n\t}", "public boolean search(String word) {\n if(word!=null) {\n char wordArr[] = word.toCharArray();\n int wordLen=word.length();\n// if(wordLen==0)\n// return false;\n Node tempRoot=root;\n for(int i=0;i<wordLen;i++){\n if(tempRoot.subNode(wordArr[i])!=null){\n tempRoot = tempRoot.subNode(wordArr[i]);\n }\n }\n return tempRoot.isEnd;\n }\n return false;\n }", "public boolean search(String word) {\n TrieNode p = root;\n for (char c : word.toCharArray()) {\n int childIndex = (int)(c - 'a');\n if (p.children[childIndex] == null) {\n return false;\n }\n p = p.children[childIndex];\n }\n return p.isWord;\n }", "public boolean search(String word) {\n TrieNode last = walkTo(word);\n if (last == null) {\n return false;\n }\n return last.children.containsKey('\\0');\n }", "public boolean search(String word) {\n TrieNode p = searchNode(word);\n if (p == null) {\n return false;\n } else {\n if (p.isEnd)\n return true;\n }\n return false;\n }", "public boolean search(String word) {\n if (all.contains(word)){\n return true;\n }\n TrieNode head = root;\n return search(word,head,0);\n \n }", "public Trie() {}", "public Trie() {}", "private boolean contains(Node node, String word, int iter, int size) {\n if (node == null || (iter == size - 1 && !node.leaf))\n return false;\n\n // are we at a leaf node? if so, the trie contains `word`\n if (node.leaf && iter == size - 1)\n return true;\n\n // recursive step\n return contains(node.children.get(word.charAt(iter)), word, iter + 1, size);\n }", "public boolean search(String word) {\n Trie cur = this;\n int i = 0;\n while(i < word.length()) {\n int c = word.charAt(i) - 'a';\n if(cur.tries[c] == null) {\n return false;\n }\n cur = cur.tries[c];\n i++;\n }\n return cur.hasWord;\n }", "public boolean search(String word) {\n\t\tchar[] cArray = word.toCharArray();\n\t\tfor (int i = 0; i < cArray.length; i++) {\n\t\t\tfor (char c = 'a'; c <= 'z'; c++) {\n\t\t\t\tif (c == cArray[i])\n\t\t\t\t\tcontinue;\n\t\t\t\tchar temp = cArray[i];\n\t\t\t\tcArray[i] = c;\n\t\t\t\tif (checkTrieTree(new String(cArray)))\n\t\t\t\t\treturn true;\n\t\t\t\tcArray[i] = temp;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "void search( RealLocalizable reference );", "private int searchCurrentWord() {\n\n\n int tmpsize2;\n\n\n boolean sw2 = false;\n\n\n boolean retour = false;\n\n\n boolean sw = false;\n\n\n int sub_end = parent.getTextGrp_TField_affiche().length();\n\n\n int size = parent.data.size();\n\n\n int tmpsize = parent.position.size();\n\n\n int i = 0;\n\n\n String TfieldParse;\n\n\n int test = 0;\n\n\n String text = parent.getTextGrp_TField_affiche();\n\n\n System.out.println(\"size de parent.position :\" + tmpsize);\n\n\n String str;\n\n\n String tmpstring;\n\n\n Object[] obj;\n\n\n Object tmpobj;\n\n\n String transMaj1 = null;\n\n\n String transMaj2 = null;\n\n\n tmpobj = parent.position.get(tmpsize - 1);\n\n\n tmpstring = tmpobj.toString();\n\n\n i = Integer.parseInt(tmpstring);\n\n\n retour = verifBorne();\n\n\n if (retour == true) {\n\n\n do {\n\n\n str = getObjectInArray(i, 1, parent.data).toString();\n\n // obj = (Object[]) parent.data.get(i);\n\n //str = (String) obj[1];\n\n\n tmpsize2 = str.length();\n\n\n if (tmpsize2 < sub_end) {\n\n\n TfieldParse = str;\n\n\n i++;\n\n\n sw = false;\n\n\n } else\n\n\n {\n\n\n TfieldParse = str.substring(0, sub_end);\n\n\n }\n\n\n transMaj1 = TfieldParse.toUpperCase();\n\n\n transMaj2 = text.toUpperCase();\n\n\n test = transMaj2.compareTo(transMaj1);\n\n\n if (sw == true && test != 0) {\n\n\n i++;\n\n\n }\n\n\n sw = true;\n\n\n }\n\n\n while (i < size && test > 0);\n\n\n if (transMaj2.compareTo(transMaj1) == 0) {\n\n\n if (i != 0)\n\n\n parent.position.add(new Integer(i));\n\n\n parent.setRowSelectionIntervalGrp_Table_Affiche(i, i);\n\n\n parent.scrollRectToVisibleGrp_table_Affiche(new java.awt.Rectangle(0, parent.getGrp_Table_Affiche().getRowHeight() * i, 20, parent.getGrp_Table_Affiche().getRowHeight()));\n\n\n } else {\n\n\n parent.setTextGrp_TField_affiche(this.tmpText);\n\n\n }\n\n\n }\n\n\n return (i - 1);\n\n\n }", "protected final boolean isCharTrie() {\n/* 358 */ return ((this.m_options_ & 0x100) == 0);\n/* */ }", "public boolean search (String s)\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tTreeNode pos = Pos;\n\t\tboolean found = true;\n\t\touter: while (Pos.node().getaction(\"C\").indexOf(s) < 0 || Pos == pos)\n\t\t{\n\t\t\tif ( !Pos.haschildren())\n\t\t\t{\n\t\t\t\twhile ( !hasvariation())\n\t\t\t\t{\n\t\t\t\t\tif (Pos.parent() == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfound = false;\n\t\t\t\t\t\tbreak outer;\n\t\t\t\t\t}\n\t\t\t\t\telse goback();\n\t\t\t\t}\n\t\t\t\ttovarright();\n\t\t\t}\n\t\t\telse goforward();\n\t\t}\n\t\tshowinformation();\n\t\tcopy();\n\t\treturn found;\n\t}", "@Override\r\n\tpublic void addContact(String key, Contact c) {\r\n\t\tTrieNode t = this.root;\r\n\t\tint start = 0;\r\n\t\t//travel trie till you end up on the empty node or key gets exhausted.\r\n\t\twhile(start < key.length() && t!= null && t.getChilds().containsKey(key.charAt(start))){\r\n\t\t\tt = t.getChilds().get(key.charAt(start));\r\n\t\t\tstart ++;\r\n\t\t}\r\n\t\tif(start < key.length()){\r\n\t\t\twhile(start < key.length()){\r\n\t\t\t\tTrieNode newT = new TrieNode();\r\n\t\t\t\tt.getChilds().put(key.charAt(start), newT);\r\n\t\t\t\tt = newT;\r\n\t\t\t\tstart++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//now add contact to the last trie node\r\n\t\tt.getContacts().add(c);\r\n\t}", "public boolean search(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n int idx = c - 'a';\n if (curr.children[idx] == null) {\n return false;\n }\n curr = curr.children[idx];\n }\n return curr.isWord;\n }", "public boolean search(String word) {\n Node temp = root;\n while(word.length()!=0){\n char c = word.charAt(0);\n word = word.substring(1);\n int index = (int)c -97;\n if(temp.children[index]==null){\n return false;\n }\n temp = temp.children[index];\n }\n if(temp==null) return false;\n \n return temp.isEnd;\n }", "private static ArrayList<TrieNode> find(TrieNode toCheck,String[] allWords,String prefix) {\n\n\t\tif(toCheck == null) return null;\n\n\t\tint length = Math.min(allWords[toCheck.substr.wordIndex].length(), prefix.length());\n\n\t\tif (!(allWords[toCheck.substr.wordIndex].substring(0, length).contains(prefix.substring(0, length)))) {\n\n\t\t\t\tif (allWords[toCheck.substr.wordIndex].charAt(toCheck.substr.startIndex) != (prefix.charAt(toCheck.substr.startIndex))) { //add negatived\n\n\t\t\t\t\tif (toCheck.sibling != null)\n\t\t\t\t\t\treturn find(toCheck.sibling, allWords, prefix);\n\t\t\t\t\telse\n\t\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn (find(toCheck.firstChild, allWords, prefix));\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\tArrayList<TrieNode> answer = new ArrayList<TrieNode>();\n\n\t\tif(toCheck.firstChild==null){\n\t\t\tanswer.add(toCheck);\n\t\t}\n\t\telse {\n\t\t\tarrCreateSibling(toCheck.firstChild, answer);\n\t\t}\n\n\t\treturn answer;\n\t}", "public boolean startsWith(String word) {\n\t\tTrieNode temp = root;\n\t\tint c;\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tc = word.charAt(i) - 'a';\n\t\t\tif (temp.childrens[c] == null)\n\t\t\t\treturn false;\n\n\t\t\ttemp = temp.childrens[c];\n\t\t}\n\n\t\treturn true;\n\t}", "private void slowscan(State state,SuffixNode currNode,int j){ \n boolean done = false; \n int keyLen = text.length() - j; \n for(int i=0;i<currNode.children.size();i++){ \n SuffixNode child = currNode.children.get(i); \n \n //use min(child.key.length, key.length) \n int childKeyLen = child.getLength(); \n int len = childKeyLen<keyLen?childKeyLen:keyLen; \n int delta = 0; \n for(;delta<len;delta++){ \n if(text.charAt(j+delta) != text.charAt(child.start+delta)){ \n break; \n } \n } \n if(delta==0){//this child doesn't match any character with the new key \n //order keys by lexi-order \n if(text.charAt(j) < text.charAt(child.start)){ \n //e.g. child=\"e\" (currNode=\"abc\") \n // abc abc \n // / \\ =========> / | \\ \n // e f insert \"c^\" c^ e f \n int pathlen = text.length() - j + currNode.pathlen; \n SuffixNode node = new SuffixNode(text,j,text.length()-1,pathlen); \n currNode.children.add(i,node); \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = currNode; \n state.finished = true; \n done = true; \n break; \n }else{ //key.charAt(0)>child.key.charAt(0) \n //don't forget to add the largest new key after iterating all children \n continue; \n } \n }else{//current child's key partially matches with the new key \n if(delta==len){ \n if(keyLen>childKeyLen){ //suffix tree with ^ ending can't have other two cases \n //e.g. child=\"ab\" \n // ab ab \n // / \\ ==========> / | \\ \n // e f insert \"abc^\" c^ e f \n //recursion \n state.u = child; \n j += childKeyLen; \n state.j = j; \n slowscan(state,child,j); \n } \n }else{//0<delta<len \n \n //e.g. child=\"abc\" \n // abc ab \n // / \\ ==========> / \\ \n // e f insert \"abd^\" c d^ \n // / \\ \n // e f \n //insert the new node: ab \n int nodepathlen = child.pathlen \n - (child.getLength()-delta); \n SuffixNode node = new SuffixNode(text, \n child.start,child.start + delta - 1,nodepathlen); \n node.children = new LinkedList<SuffixNode>(); \n \n int tailpathlen = (text.length() - (j + delta)) + nodepathlen; \n SuffixNode tail = new SuffixNode(text, \n j+delta,text.length()-1,tailpathlen); \n \n //update child node: c \n child.start += delta; \n if(text.charAt(j+delta)<text.charAt(child.start)){ \n node.children.add(tail); \n node.children.add(child); \n }else{ \n node.children.add(child); \n node.children.add(tail); \n } \n //update parent \n currNode.children.set(i, node); \n \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = node; \n state.finished = true; \n } \n done = true; \n break; \n } \n } \n if(!done){ \n int pathlen = text.length() - j + currNode.pathlen; \n SuffixNode node = new SuffixNode(text,j,text.length()-1,pathlen); \n currNode.children.add(node); \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = currNode; \n state.finished = true; \n } \n }", "List<PilotContainer> Search(String cas, String word);", "public Reference search (String val) {\n Node nextPtr = ptrs[this.findPtrIndex(val)];\n return nextPtr.search(val);\n }", "public int searchPrefix(StringBuilder strBuild){\r\n\t\t//declare variables\r\n\t\tboolean successfulWord = false;\r\n\t\tboolean successfulPre = false;\r\n\t\tint retVal = 0;\r\n\t\tDLBNode current = nodes;\r\n\t\tint strLength = strBuild.length();\r\n\t\t\r\n\t\t//iterate through the entire string\r\n\t\tfor(int i = 0; i < strLength; i++){\r\n\t\t\tint correctLetter = 0;\r\n\t\t\r\n\t\t\t//while there's still a letter to check\r\n\t\t\twhile(current != null){\r\n\t\t\t\t\r\n\t\t\t\t//if the current letter is available/possible in the list, step to the next value\r\n\t\t\t\tif(current.value == strBuild.charAt(i)){\r\n\t\t\t\t\tcorrectLetter = 1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(current.childNode == null){\r\n\t\t\t\t\t\t//null value \r\n\t\t\t\t\t\treturn retVal;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//increment through the structure to the next value\r\n\t\t\t\t\t\tcurrent = current.childNode;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//if there are any siblings to check and the letter has failed, check the siblings\r\n\t\t\t\t\tif(current.siblingNode != null){\r\n\t\t\t\t\t\tcurrent = current.siblingNode;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//null siblings and children\r\n\t\t\t\t\t\treturn retVal;\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//if the letter is viable and the value is not the end of the row\r\n\t\t\tif(correctLetter == 1 && i == (strBuild.length() - 1)){\r\n\t\t\t\t//continue searching while there is another node\r\n\t\t\t\twhile(current != null){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//if there's not a bar but its still a successful value, return true for a prefix\r\n\t\t\t\t\tif(current.value != '|'){\r\n\t\t\t\t\t\tsuccessfulPre = true;\r\n\t\t\t\t\t\t//if there's a bar, its a true word\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tsuccessfulWord = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t//check siblings of current node\r\n\t\t\t\t\tcurrent = current.siblingNode;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Set retVal to the necessary value to alert of status.\r\n\t\t//1. Prefix\r\n\t\t//2. Word \r\n\t\t//3. Prefix & word\r\n\t\tif(successfulPre && successfulWord){\r\n\t\t\t\r\n\t\t\tretVal = 3;\r\n\r\n\t\t}else if(successfulPre){\r\n\t\t\t\r\n\t\t\tretVal = 1;\r\n\t\t\t\r\n\t\t}else if(successfulWord){\r\n\t\t\t\r\n\t\t\tretVal = 2;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//return retVal\r\n\t\treturn retVal;\r\n\t}", "public boolean search(String word) {\n \tTrieNode t=searchTrie(word);\n return t!=null&&t.leaf;\n }", "private void buildTrie(List<String> patterns) {\n for (String s : patterns) {\n words.add(s);\n Node activeNode = root;\n for (int i = 0; i < s.length(); ++i) {\n if (!activeNode.hasEdge(s.charAt(i)))\n activeNode.addEdge(new Edge(activeNode, s.charAt(i), false, -1));\n activeNode = activeNode.getEdge(s.charAt(i)).getTo();\n }\n activeNode.setWordEnd(true, words.size() - 1);\n }\n }", "public void searchConc(String s) {\n\t \tscan = new Scanner(System.in);\n\t \t\n\n\t\t \twhile (array[findPos(s)] == null) {\n\t\t \t\tSystem.out.println(\"Word not found. Please try again or enter another word.\");\n\t\t \t\ts = scan.nextLine();\n\t\t \t}\n\t\t \t\n\t\t \tSystem.out.print(array[findPos(s)].element.getContent() + \" occurs \" + array[findPos(s)].element.getLines().getListSize() + \" times, in lines: \");\n\t\t \tarray[findPos(s)].element.getLines().printList();\n\t\t \tSystem.out.println(\"Please enter another word to search for: \");\n\t \t\n\t }", "private static int matchValue(TrieNode existing, TrieNode toAdd, String[] allWords){\n\t\tSystem.out.println(allWords[existing.substr.wordIndex]);\n\t\tSystem.out.println(allWords[toAdd.substr.wordIndex]);\n\n\t\tString first=allWords[existing.substr.wordIndex].substring(existing.substr.startIndex,existing.substr.endIndex+1);\n\t\tString second=allWords[toAdd.substr.wordIndex].substring(toAdd.substr.startIndex,toAdd.substr.endIndex+1);\n\t\tSystem.out.println(\"Compare: \"+first+ \"\\twith\" +\"\\t\"+ second);\n\t\t\n\t\tint count=1;\n\t\tint matchValue=0;\n\t/*\tif(first.charAt(0)!=second.charAt(0)){\n\t\t\treturn 0;\n\t\t}*/\n\t\t\n\t\t//System.out.println(\"From: \"+ existing.substr.startIndex+\" To: \"+existing.substr.endIndex);\n\t\tif(first.length()<=second.length()){\n\t\t\tint imax=(short)(existing.substr.endIndex-existing.substr.startIndex+1);\n\t\tfor(int i=0;i<imax;i++){\n\t\t\t\n\t\t\t//System.out.println(\"UM WE RUN COUNT: \" );\n\t\t\tif(first.charAt(i)==second.charAt(i)){\n\t\t\t\tmatchValue++;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(first.charAt(i)!=second.charAt(i)){\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t}\n\t\telse{\n\t\t\tint imax=(short)(toAdd.substr.endIndex-toAdd.substr.startIndex+1);\n\t\t\tfor(int i=0;i<imax;i++){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(first.charAt(i)==second.charAt(i)){\n\t\t\t\t\tmatchValue++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(first.charAt(i)!=second.charAt(i)){\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t}\t\n\t\t}\n\t\treturn matchValue;\n\t}", "public int countDistinct(String s) {\n\t\tTrie root = new Trie();\n\t\tint result = 0;\n for (int i = 0; i < s.length(); i++) {\n \tTrie cur = root;\n \tfor (int j = i; j < s.length(); j++) {\n \t\tint idx = s.charAt(j) - 'a';\n \t\tif (cur.arr[idx] == null) {\n \t\t\tresult++;\n \t\t\tcur.arr[idx] = new Trie();\n \t\t}\n \t\tcur = cur.arr[idx];\n \t}\n }\n return result;\n }", "public Node search (String s){\n if(s.equals(word) ){ //if match is found\n return this;\n }\n\n if(s.compareTo(word) <= 0){ //left side\n if(left != null){\n return left.search (s); \n\n }else{\n return null; //value not in the tree\n }\n }else{ //right side\n if(right != null){\n return right.search (s);\n }else{\n return null;\n }\n }\n\n\n\n\n }", "public boolean contains(String s)\n {\n if(s==null)\n return false;\n\n if(s.isEmpty()) //base case\n return true;\n\n char first = s.charAt(0); //find next character\n if(childrenAdded.contains(first)) //if there is a trie for the character\n return children.get(first).contains(s.substring(1)); //search for the rest of the string in that trie\n else\n return false;\n }", "public boolean search(String word) {\r\n Trie node = root;\r\n return search(node, word, 0);\r\n }", "public boolean search(String word) {\n if(word == null || word.length() == 0){\n return false;\n }\n \n TrieNode node = root;\n int d = 0;\n return search(node, word, 0);\n }", "public void insert(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(!tn.hm.containsKey(c)){\n tn = new TrieNode();\n tn.hm.put(c, temp);\n }\n tn = temp;\n }\n tn.flag = true;\n }", "public boolean search(String word) {\n Node currentNode = head;\n for (int i = 0; i < word.length(); i++) {\n char currentChar = word.charAt(i);\n if (currentNode.children.get(currentChar - 'a') == null) {\n return false;\n }\n currentNode = currentNode.children.get(currentChar - 'a');\n }\n return currentNode.isFinished;\n }", "public void insert(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n}", "private boolean match(String word, int i, TrieNode root) {\n if (i == word.length()) {\n return root.isWord;\n }\n\n char c = word.charAt(i);\n if (c != '.') {\n return root.children[c - 'a'] != null && match(word, i + 1, root.children[c - 'a']);\n } else {\n for (int j = 0; j < 26; j++) {\n if (root.children[j] != null) {\n if (match(word, i + 1, root.children[j])) {\n return true;\n }\n } \n }\n }\n return false;\n }", "TrieNode root();", "protected Trie(char[] paramArrayOfchar, int paramInt, DataManipulate paramDataManipulate) {\n/* 147 */ this.m_options_ = paramInt;\n/* 148 */ if (paramDataManipulate != null) {\n/* 149 */ this.m_dataManipulate_ = paramDataManipulate;\n/* */ } else {\n/* 151 */ this.m_dataManipulate_ = new DefaultGetFoldingOffset();\n/* */ } \n/* 153 */ this.m_isLatin1Linear_ = ((this.m_options_ & 0x200) != 0);\n/* */ \n/* 155 */ this.m_index_ = paramArrayOfchar;\n/* 156 */ this.m_dataOffset_ = this.m_index_.length;\n/* */ }", "public boolean search(String word) {\n TrieNode node = search(root, word, 0);\n\t\treturn node != null && node.value != null;\n }", "public boolean search(String word) {\n // return searchPrefix(word, root);\n TrieNode node = root;\n return search(node, word, 0);\n }", "private Trie quickFind(String stem) {\n if (stem.equals(this.getStem()))\n return this;\n else {\n Trie child = getChildren().get(stem.charAt(this.getStem().length()));\n if (child == null)\n return null;\n else return child.quickFind(stem);\n }\n }", "@Override\n public String search(String word) {\n return search(word, root);\n }", "public boolean search(String word) {\n char[] chars = word.toCharArray();\n Node node = root;\n for (char c: chars) {\n int idx = c - 'a';\n Node next = node.children[idx];\n if (next == null) return false;\n node = next;\n }\n return word.equals(node.val);\n }", "private Set<String> getNeighbour(String word, final Set<String> uniqueWord) {\n\n final Set<String> neighbour = new HashSet<>();\n\n\n char[] node = word.toCharArray();\n int length = node.length;\n\n //change every char of node.\n //O(M*26)\n for (int i = 0; i < length; i++) { //O(M)\n\n char old = node[i];\n //try every node char to change other and test\n //O(26)\n for (char c = 'a'; c <= 'z'; c++) {\n\n if (node[i] == c) //no need to change\n continue;\n\n //change this char\n node[i] = c;\n String temp = new String(node);\n if (uniqueWord.contains(temp))\n neighbour.add(temp);\n }\n node[i] = old;\n }\n\n\n neighbour.remove(word);\n\n\n return neighbour;\n }", "private Set<String> getNeighbour(String word, final Set<String> uniqueWord) {\n\n final Set<String> neighbour = new HashSet<>();\n\n\n char[] node = word.toCharArray();\n int length = node.length;\n\n //change every char of node.\n //O(M*26)\n for (int i = 0; i < length; i++) { //O(M)\n\n char old = node[i];\n //try every node char to change other and test\n //O(26)\n for (char c = 'a'; c <= 'z'; c++) {\n\n if (node[i] == c) //no need to change\n continue;\n\n //change this char\n node[i] = c;\n String temp = new String(node);\n if (uniqueWord.contains(temp))\n neighbour.add(temp);\n }\n node[i] = old;\n }\n\n\n neighbour.remove(word);\n\n\n return neighbour;\n }", "private void addWord(String s) {\n TrieNode node = root;\n for(int i = 0; i < s.length(); i++) {\n int index = s.charAt(i) - 'a';\n if (node.trieNodes[index] == null) {\n node.trieNodes[index] = new TrieNode();\n }\n node = node.trieNodes[index];\n }\n node.isLeave = true;\n }", "public boolean search(String word) {\n int length = word.length();\n if(length == 0){\n return false;\n }\n\n char[] chars = word.toCharArray();\n\n Map<Character,Node> map = this.root.map;\n // 需要保证word的结尾是end\n for(int i = 0;i < length;i++){\n if(!map.containsKey(chars[i])) {\n return false;\n }\n\n if(i == length - 1){\n if(map.get(chars[i]).isWordEnd == true){\n return true;\n }else{\n return false;\n }\n }else{\n map = map.get(chars[i]).map;\n }\n }\n return false;\n }", "public boolean search(String word) {\n return dfs(word, root);\n }", "public static void main(String args[]) \n {\n String dictionary[] = {\"GEEKS\", \"FOR\", \"QUIZ\", \"GEE\"}; \n \n // root Node of trie \n TrieNode root = new TrieNode(); \n \n // insert all words of dictionary into trie \n int n = dictionary.length; \n for (int i=0; i<n; i++) \n insert(root, dictionary[i]); \n \n char boggle[][] = {{'G','I','Z'}, \n {'U','E','K'}, \n {'Q','S','E'} \n }; \n \n findWords(boggle, root); \n }", "private static boolean Ncontains(String word, char a) \n {\n \t// return true of false if the String match char a\n for(int x = 0; x < word.length(); x++)\n {\n if(word.charAt(x) == a)\n return false;\n }\n return true;\n }", "public TrieNode buildTrie(List<String> dict){\n TrieNode root = new TrieNode();\n for(String s : dict){\n TrieNode t = root;\n for(char c : s.toCharArray()){\n if(t.children[c - 'a'] == null)\n t.children[c - 'a'] = new TrieNode();\n t = t.children[c-'a'];\n }\n t.isword = true;\n t.word = s;\n }\n return root;\n }", "public void insert(String word) {\n TrieNode cur = root;\n HashMap<Character, TrieNode> curChildren = root.children;\n char[] wordArray = word.toCharArray();\n for(int i = 0; i < wordArray.length; i++){\n char wc = wordArray[i];\n if(curChildren.containsKey(wc)){\n cur = curChildren.get(wc);\n } else {\n TrieNode newNode = new TrieNode(wc);\n curChildren.put(wc, newNode);\n cur = newNode;\n }\n curChildren = cur.children;\n if(i == wordArray.length - 1){\n cur.hasWord= true;\n }\n }\n }", "public Trie() {\n this.root = new Node(' ');// set root as blank to have multiple tries with different prefixes\n }", "public boolean search(String word) {\n // Write your code here\n return find(word, 0, root);\n }" ]
[ "0.6609723", "0.65164524", "0.6438701", "0.63453186", "0.6291515", "0.6125041", "0.6123429", "0.6116588", "0.61163855", "0.604665", "0.6018529", "0.6015759", "0.6005217", "0.6004032", "0.5993167", "0.5988085", "0.5984988", "0.5958713", "0.5953247", "0.59453446", "0.5937419", "0.59233546", "0.59060174", "0.589907", "0.5871359", "0.5834853", "0.58244073", "0.58145314", "0.58103746", "0.5801534", "0.5795628", "0.5776088", "0.5774039", "0.576119", "0.57500434", "0.57370484", "0.5711951", "0.5705239", "0.569519", "0.5687751", "0.56819445", "0.56711537", "0.563767", "0.56349015", "0.56326276", "0.56107074", "0.5606597", "0.55992365", "0.5589371", "0.5585985", "0.5576709", "0.55645204", "0.55645204", "0.5560686", "0.55601484", "0.555842", "0.5553893", "0.5552856", "0.5551643", "0.5546507", "0.5545935", "0.5528207", "0.5527648", "0.55267704", "0.55070424", "0.55063105", "0.5491339", "0.5488983", "0.54848534", "0.5483045", "0.54582626", "0.5454831", "0.5454355", "0.54517645", "0.54423094", "0.5427444", "0.54222447", "0.541318", "0.54117817", "0.540955", "0.5406446", "0.53972805", "0.5395514", "0.5376006", "0.5364986", "0.5364131", "0.53612995", "0.5350851", "0.5342633", "0.5341789", "0.5341789", "0.5335593", "0.53344554", "0.5319408", "0.53159887", "0.5315686", "0.53051835", "0.52977407", "0.5295006", "0.5292199" ]
0.708433
0
To add contact in trie Complexity : O(length of key)
@Override public void addContact(String key, Contact c) { TrieNode t = this.root; int start = 0; //travel trie till you end up on the empty node or key gets exhausted. while(start < key.length() && t!= null && t.getChilds().containsKey(key.charAt(start))){ t = t.getChilds().get(key.charAt(start)); start ++; } if(start < key.length()){ while(start < key.length()){ TrieNode newT = new TrieNode(); t.getChilds().put(key.charAt(start), newT); t = newT; start++; } } //now add contact to the last trie node t.getContacts().add(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void insert(String key)\n {\n \n int len=key.length();\n trie_node crawl=root;\n for(int i=0;i<len;i++)\n {\n int idx=key.charAt(i);\n if(crawl.child[idx]==null)\n crawl.child[idx]=new trie_node();\n else\n crawl.child[idx].f++;\n\n crawl=crawl.child[idx];\n } \n \n \n }", "public static void insert(String key)\n\t{\n\t\tint level;\n\t\tint length=key.length();\n\t\tint index;\n\t\tTrieNode pCrawl=root;\n\t\tfor(level=0;level<length;level++)\n\t\t{\n\t\t\tindex=key.charAt(level)-'a';\n\t\t\t\n\t\t\tif(pCrawl.children[index]==null)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tpCrawl.children[index]=new TrieNode();\n\t\t\t}\n\t\t\tpCrawl=pCrawl.children[index];\n\t\t\tpCrawl.freq++;\n\t\t}\n\t\tpCrawl.isEndOfWord=true;\n\t}", "public boolean add(String key) {\n char[] characters = key.trim().toCharArray();\n\n TrieNode trieNode = root; // current trie node\n\n boolean alreadyExists = true;\n\n for (char ch : characters) {\n // get the character represent index from the current trie node\n int index = ch - 'a';\n if (trieNode.offsprings[index] == null) {\n trieNode.offsprings[index] = new TrieNode();\n alreadyExists = false;\n }\n\n trieNode = trieNode.offsprings[index];\n }\n\n trieNode.isRepresentACompleteWord = true;\n\n return alreadyExists;\n }", "public AddAndSearchWord() {\n root = new TrieNode();\n }", "public void insert(String word) {\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n}", "public TrieNode() {children = new HashMap<Character, TrieNode>();hasWord = false;}", "public void insert(String word) {\n TrieNode tn = root;\n int len = word.length();\n for(int i=0; i<len; i++){\n char c = word.charAt(i);\n TrieNode temp = tn.hm.get(c);\n if(!tn.hm.containsKey(c)){\n tn = new TrieNode();\n tn.hm.put(c, temp);\n }\n tn = temp;\n }\n tn.flag = true;\n }", "@Override\n public void add(String key) {\n if (key == null || key.length() == 0 || root == null) {\n return;\n }\n Node p = root;\n for (int i = 0; i < key.length(); i++) {\n char current = key.charAt(i);\n if (!p.next.containsKey(current)) {\n p.next.put(current, new Node(current, false));\n }\n p = p.next.get(current);\n }\n p.isKey = true;\n }", "public void add(String key) {\n if (key == null || key.length() < 1) {\n return;\n }\n Node curr = root;\n for (int i = 0; i < key.length(); i++) {\n char c = key.charAt(i);\n if (!curr.next.items.containsKey(c)) {\n curr.next.items.put(c, new Node(c, false, 256));\n }\n curr = (Node)curr.next.items.get(c);\n }\n curr.isKey = true;\n }", "public TrieNode insert(Character key) {\n if (children.containsKey(key)) {\n return null;\n }\n\n TrieNode next = new TrieNode();\n next.key = key;\n children.put(key, next);\n\n return next;\n }", "public int insert(int newKey){\n int i=n-1;\n int x =0;\n if (isLeaf){\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i]) \n return -1;//duplicate return withoiut doinganything\n key[i+1] = key[i];\n i--;\n \n }\n if(x>=0){\n n++;\n key[i+1]=newKey;\n }\n }\n else{\n while ((i>=0)&& (newKey<=key[i])) {\n if(newKey==key[i])\n return -1;// find duplictte return without doing anithing \n \n else\n i--;\n }\n if(x>=0){\n \n int insertChild = i+1; // Subtree where new key must be inserted\n if (c[insertChild].isFull()){\n x++;// one more node.\n // The root of the subtree where new key will be inserted has to be split\n // We promote the mediand of that root to the current node and\n // update keys and references accordingly\n \n //System.out.println(\"This is the full node we're going to break \");// Debugging code\n //c[insertChild].printNodes();\n //System.out.println(\"going to promote \" + c[insertChild].key[T-1]);\n n++;\n c[n]=c[n-1];\n for(int j = n-1;j>insertChild;j--){\n c[j] =c[j-1];\n key[j] = key[j-1];\n }\n key[insertChild]= c[insertChild].key[T-1];\n c[insertChild].n = T-1;\n \n BTreeNode newNode = new BTreeNode(T);\n for(int k=0;k<T-1;k++){\n newNode.c[k] = c[insertChild].c[k+T];\n newNode.key[k] = c[insertChild].key[k+T];\n }\n \n newNode.c[T-1] = c[insertChild].c[2*T-1];\n newNode.n=T-1;\n newNode.isLeaf = c[insertChild].isLeaf;\n c[insertChild+1]=newNode;\n \n //System.out.println(\"This is the left side \");\n //c[insertChild].printNodes(); \n //System.out.println(\"This is the right side \");\n //c[insertChild+1].printNodes();\n //c[insertChild+1].printNodes();\n \n if (newKey <key[insertChild]){\n c[insertChild].insert(newKey); }\n else{\n c[insertChild+1].insert(newKey); }\n }\n else\n c[insertChild].insert(newKey);\n }\n \n \n }\n return x ;\n }", "@Override\n public void insert(final String word) {\n TrieNode p = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n if (p.arr[index] == null) {\n final TrieNode temp = new TrieNode();\n p.arr[index] = temp;\n p = temp;\n } else {\n p = p.arr[index];\n }\n }\n p.isEnd = true;\n }", "public void addWord(String word) {\r\n Trie node = root;\r\n for(char ch: word.toCharArray()){\r\n if(node.child[ch - 'a'] == null)\r\n node.child[ch - 'a'] = new Trie(ch);\r\n node = node.child[ch - 'a'];\r\n }\r\n node.end = true;\r\n }", "@Override\r\n\tpublic Map<SearchRank, List<Contact>> searchContact(String initial) {\r\n\t\tTrieNode t = this.root;\r\n\t\tint start = 0;\r\n\t\tMap<SearchRank, List<Contact>> res = new HashMap<SearchRank, List<Contact>>();\r\n\t\twhile(start < initial.length() && t != null && t.getChilds().containsKey(initial.charAt(start))){\r\n\t\t\tt = t.getChilds().get(initial.charAt(start));\r\n\t\t\tstart ++;\r\n\t\t}\r\n\t\tif(start == initial.length() && t != null){\r\n\t\t\tif(t.getContacts() != null)\r\n\t\t\t\tres.put(SearchRank.PERFECT, t.getContacts());\r\n\t\t\t//now add all the nodes contact child of t\r\n\t\t\tList<Contact> list = res.get(SearchRank.PARTIAL);\r\n\t\t\tif(list == null) list = new ArrayList<Contact>();\r\n\t\t\tcollectChildsContact(t, list);\r\n\t\t\tres.put(SearchRank.PARTIAL, list);\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "public void insert(String word) {\n TrieNode node = root;\n\n for (char c: word.toCharArray()) {\n if (node.children[c - 'a'] == null) \n node.children[c - 'a'] = new TrieNode();\n\n node = node.children[c - 'a'];\n }\n\n node.word = word;\n }", "public void addWord(String word) {\n // Write your code here\n TrieNode cur=root;\n for(int i=0;i<word.length();++i){\n char c=word.charAt(i);\n TrieNode nextNode=cur.children.get(c);\n if(nextNode==null){\n nextNode=new TrieNode();\n cur.children.put(c,nextNode);\n }\n cur=nextNode;\n }\n cur.hasWord=true;\n }", "public void addWord(String word) {\n \tTrieNode curr=root;\n for(int i=0;i<word.length();i++){\n \tchar ch=word.charAt(i);\n \tif(curr.children[ch-'a']==null)\n \t\tcurr.children[ch-'a']=new TrieNode();\n \tif(i==word.length()-1)\n \t\tcurr.children[ch-'a'].isCompleteword=true;\n \t\n \tcurr=curr.children[ch-'a'];\n }\n }", "public void insert(String word) {\n TrieNode current = root;\n for(char c : word.toCharArray()){\n int index = c - 'a';\n if(current.childrens[index] == null)\n current.childrens[index] = new TrieNode(c);\n current = current.childrens[index];\n }\n current.eow = true;\n }", "private void insertRecursive(TrieNode current, String word, int index) {\n\t\t\n\t\tif(index == word.length()) {\n\t\t\tcurrent.isLeaf = true;\n\t\t\treturn;\n\t\t}\n\t\t Character ch = word.charAt(index);\t \n\t\t\tif (!current.getChild().containsKey(ch)) {\n\t\t\t\tTrieNode newNode = new TrieNode();\n\t\t\t\tcurrent.getChild().put(ch, newNode);\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.getChild().get(ch);\n\t\t\t\n insertRecursive(current, word, index++);\n\t}", "private void slowscan(State state,SuffixNode currNode,int j){ \n boolean done = false; \n int keyLen = text.length() - j; \n for(int i=0;i<currNode.children.size();i++){ \n SuffixNode child = currNode.children.get(i); \n \n //use min(child.key.length, key.length) \n int childKeyLen = child.getLength(); \n int len = childKeyLen<keyLen?childKeyLen:keyLen; \n int delta = 0; \n for(;delta<len;delta++){ \n if(text.charAt(j+delta) != text.charAt(child.start+delta)){ \n break; \n } \n } \n if(delta==0){//this child doesn't match any character with the new key \n //order keys by lexi-order \n if(text.charAt(j) < text.charAt(child.start)){ \n //e.g. child=\"e\" (currNode=\"abc\") \n // abc abc \n // / \\ =========> / | \\ \n // e f insert \"c^\" c^ e f \n int pathlen = text.length() - j + currNode.pathlen; \n SuffixNode node = new SuffixNode(text,j,text.length()-1,pathlen); \n currNode.children.add(i,node); \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = currNode; \n state.finished = true; \n done = true; \n break; \n }else{ //key.charAt(0)>child.key.charAt(0) \n //don't forget to add the largest new key after iterating all children \n continue; \n } \n }else{//current child's key partially matches with the new key \n if(delta==len){ \n if(keyLen>childKeyLen){ //suffix tree with ^ ending can't have other two cases \n //e.g. child=\"ab\" \n // ab ab \n // / \\ ==========> / | \\ \n // e f insert \"abc^\" c^ e f \n //recursion \n state.u = child; \n j += childKeyLen; \n state.j = j; \n slowscan(state,child,j); \n } \n }else{//0<delta<len \n \n //e.g. child=\"abc\" \n // abc ab \n // / \\ ==========> / \\ \n // e f insert \"abd^\" c d^ \n // / \\ \n // e f \n //insert the new node: ab \n int nodepathlen = child.pathlen \n - (child.getLength()-delta); \n SuffixNode node = new SuffixNode(text, \n child.start,child.start + delta - 1,nodepathlen); \n node.children = new LinkedList<SuffixNode>(); \n \n int tailpathlen = (text.length() - (j + delta)) + nodepathlen; \n SuffixNode tail = new SuffixNode(text, \n j+delta,text.length()-1,tailpathlen); \n \n //update child node: c \n child.start += delta; \n if(text.charAt(j+delta)<text.charAt(child.start)){ \n node.children.add(tail); \n node.children.add(child); \n }else{ \n node.children.add(child); \n node.children.add(tail); \n } \n //update parent \n currNode.children.set(i, node); \n \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = node; \n state.finished = true; \n } \n done = true; \n break; \n } \n } \n if(!done){ \n int pathlen = text.length() - j + currNode.pathlen; \n SuffixNode node = new SuffixNode(text,j,text.length()-1,pathlen); \n currNode.children.add(node); \n //state.u = currNode; //currNode is already registered as state.u, so commented out \n state.v = currNode; \n state.finished = true; \n } \n }", "public void insert(String word) {\n TrieNode curr=root;\n for(int i=0;i<word.length();i++){\n char c = word.charAt(i);\n TrieNode node=curr.hmap.get(c);\n if(node==null){\n node=new TrieNode();\n curr.hmap.put(c, node);\n }\n curr=node;\n }\n curr.endOfWord=true;\n }", "void insert(String s, int index) {\n Node curr = root;//lets start by root node and insert\n for (int i = 0; i < s.length(); i++) {\n\n // we dont want to override existing key only add new key thats what putifabsent do..\n curr.childrens.putIfAbsent(s.charAt(i), new Node(s.charAt(i)));\n curr.childrens.get(s.charAt(i));\n }\n curr.end = index;\n }", "static void insert(WordNode root, String Key)\n {\n int n = Key.length();\n WordNode pChild = root;\n\n for (int i=0; i<n; i++)\n {\n int index = Key.charAt(i) - 'a';\n\n if (pChild.child[index] == null)\n pChild.child[index] = new WordNode();\n\n pChild = pChild.child[index];\n }\n\n // make last node as leaf node\n pChild.isWord = true;\n }", "public void insert(String word) {\n TrieNode cur = root;\n HashMap<Character, TrieNode> curChildren = root.children;\n char[] wordArray = word.toCharArray();\n for(int i = 0; i < wordArray.length; i++){\n char wc = wordArray[i];\n if(curChildren.containsKey(wc)){\n cur = curChildren.get(wc);\n } else {\n TrieNode newNode = new TrieNode(wc);\n curChildren.put(wc, newNode);\n cur = newNode;\n }\n curChildren = cur.children;\n if(i == wordArray.length - 1){\n cur.hasWord= true;\n }\n }\n }", "public void addWord(String word) {\n all.add(word);\n TrieNode head = root;\n \n for (char i :word.toCharArray()){\n\n int k = i-'a';\n if (head.child[k]==null)\n {\n head.child[k] = new TrieNode();\n }\n head = head.child[k];\n \n }\n head.end = true;\n }", "protected boolean add(TreeNode n) {\n name = n.getTitle();\n address = n.getAddress();\n\n //List of current values to the name key\n if (map.get(name) != null) {\n addresses = map.get(name);\n } else {\n addresses = new ArrayList<>();\n }\n\n //Then it'll have to check if that add entry already exits. Although it never should.\n //TODO THIS IS WHERE ITS SLOW\n// if (addresses.contains(name)) {\n// logger.debug(\"HashBrowns: addresses already contained: \" + name);\n// return false;\n// }\n\n //Then it adds this new address entry. Order of addresses doesn't matter for the time being.\n addresses.add(address);\n\n //Replace the old hash key (name) with the update list of addresses\n map.put(name, addresses);\n\n return true;\n }", "public void insert(String word) {\n TrieNode p = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n if (p.arr[index] == null) {\n TrieNode temp = new TrieNode();\n p.arr[index] = temp;\n p = temp;\n } else {\n p = p.arr[index];\n }\n }\n p.isEnd = true;\n }", "private void addWord(String s) {\n TrieNode node = root;\n for(int i = 0; i < s.length(); i++) {\n int index = s.charAt(i) - 'a';\n if (node.trieNodes[index] == null) {\n node.trieNodes[index] = new TrieNode();\n }\n node = node.trieNodes[index];\n }\n node.isLeave = true;\n }", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (now.children[c - 'a'] == null) {\n now.children[c - 'a'] = new TrieNode();\n }\n now = now.children[c - 'a'];\n }\n now.hasWord = true;\n }", "public void addWord(String word) {\n // Write your code here\n TrieNode now = root;\n for(int i = 0; i < word.length(); i++) {\n Character c = word.charAt(i);\n if (!now.children.containsKey(c)) {\n now.children.put(c, new TrieNode());\n }\n now = now.children.get(c);\n }\n now.hasWord = true;\n }", "public int addKey(long key){\n int i = 0;\n while (i < numKeys && keys[i].getKey() < key){\n i++;\n }\n if (i == keys.length){\n //node is full\n return -1;\n }\n if (i == numKeys){\n //at end of list of keys, there is space for new one\n TreeObject newKey = new TreeObject(key);\n keys[i] = newKey;\n numKeys++;\n try {\n writeNode();\n } catch(IOException e){\n System.err.println(e.getMessage());\n }\n return i;\n }\n if (keys[i].getKey() == key){\n //found a key that already exists\n keys[i].incrementFrequency();\n try {\n writeNode();\n } catch(IOException e){\n System.err.println(e.getMessage());\n }\n return i; //don't increment numKeys, we didn't add a new value\n }\n //keys[i].getKey() > than key\n //need to shift other elements backward to make space for new key\n for (int j = keys.length - 1; j > i; j--){\n keys[j] = keys[j-1];\n }\n TreeObject newKey = new TreeObject(key);\n keys[i] = newKey;\n numKeys++;\n try {\n writeNode();\n } catch(IOException e){\n System.err.println(e.getMessage());\n }\n return i;\n }", "public void add (String word) {\n Trie pointeur ;\n\n if(word.length() != 0){\n String lettre = Character.toString(word.charAt(0));\n String ssChaine = word.substring(1);\n pointeur = this.fils.get(lettre);\n if(pointeur == null){\n pointeur = new Trie();\n this.fils.put(lettre,pointeur);\n\n }\n pointeur.add(ssChaine);\n if(ssChaine.length()==0){\n this.fin = true;\n }\n \n }\n \n }", "public void addWord(String word) {\n char[] wordChars = word.toCharArray();\n TrieNode curr = root;\n for (char c : wordChars) {\n if(curr.map.containsKey(c)) {\n curr = curr.map.get(c);\n } else {\n TrieNode newNode = new TrieNode();\n curr.map.put(c, newNode);\n curr = newNode;\n }\n }\n curr.isLeaf = true;\n }", "public void insert(String word) {\n TrieNode cur = root;\n for(int i=0; i<word.length(); i++){\n int index = word.charAt(i)-'a';\n if(cur.children[index] == null)\n cur.children[index] = new TrieNode(word.charAt(i));\n cur = cur.children[index];\n if(i == word.length()-1)\n cur.isEnd = true;\n }\n }", "public void add(ArrayList<String> phrase) {\t\t\r\n\t\tfor (int i = 0 ; i < phrase.size(); i++) {\r\n\t\t\tWordTrieNode cur = root;\r\n\t\t\tfor (int j = i; j < phrase.size(); j++) {\r\n\t\t\t\tString word = phrase.get(j);\r\n\t\t\t\tif (!cur.getMap().containsKey(word)) {\r\n\t\t\t\t\tcur.getMap().put(word, new WordTrieNode(word));\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcur = cur.getMap().get(word);\r\n\t\t\t\tcur.increaseFrequence();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void insert(String word) {\n\n\t\tTrieNode temp = root;\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\tint c = word.charAt(i) - 'a';\n\t\t\tif (temp.childrens[c] == null) {\n\t\t\t\ttemp.childrens[c] = new TrieNode();\n\t\t\t}\n\n\t\t\ttemp = temp.childrens[c];\n\t\t}\n\n\t\ttemp.isLeafNode = true;\n\t}", "private BTreeSearchResult insertNonFull(BTreeSearchResult input, String key, int info) throws IOException {\r\n\t\tkey = String.format(\"%1$-12s\", key).substring(0,12); //Append whitespaces to keep String size fixed to 12\r\n\t\t\r\n\t\tif (input.node.numKeys <= 0){\r\n\t\t\tinput.node.key[0] = key;\r\n\t\t\tinput.node.info[0] = info;\r\n\t\t\tinput.node.numKeys++;\r\n\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\tinput.diskAccessNum++;\r\n\t\t}else{\r\n\t\t\tint i = -1-Arrays.binarySearch(Arrays.copyOfRange(input.node.key, 0, input.node.numKeys), key); // Search key first\r\n\t\t\t\tif (input.node.isLeaf()){\r\n\t\t\t\t\tfor (int j = input.node.numKeys; j>i; j--){\r\n\t\t\t\t\t\tinput.node.key[j] = input.node.key[j-1];\r\n\t\t\t\t\t\tinput.node.info[j] = input.node.info[j-1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tinput.node.key[i] = key;\r\n\t\t\t\t\tinput.node.info[i] = info;\r\n\t\t\t\t\tinput.node.numKeys++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tbyte[] byteBuffer = input.node.serialize(this.pageSize);\r\n\t\t\t\t\tthis.writePage(byteBuffer, input.pageFound*this.pageSize); // + 1 disk access\r\n\t\t\t\t\tinput.diskAccessNum++;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tBTreeNode childNode = new BTreeNode(this.readPage(input.node.child[i]*this.pageSize), this.order); // + 1 disk access\r\n\t\t\t\t\tBTreeSearchResult child = new BTreeSearchResult(childNode, input.node.child[i]);\r\n\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (child.node.numKeys == child.node.key.length){\r\n\t\t\t\t\t\tchildNode = split(input.node, i, child); // + 3 disk access and return new child\r\n\t\t\t\t\t\tint diskAccessNum = this.updatePointerOfChildren(child); // Access all children of old root to update their parent pointer\r\n\t\t\t\t\t\tdiskAccessNum = diskAccessNum + this.updatePointerOfChildren(new BTreeSearchResult(childNode, input.node.child[i+1])); // Access all children of new node to update their parent pointer\r\n\t\t\t\t\t\tif (key.compareTo(input.node.key[i])>0)\r\n\t\t\t\t\t\t\tchild = new BTreeSearchResult(childNode, input.node.child[i+1]);\r\n\t\t\t\t\t\tchild.diskAccessNum = input.diskAccessNum + 4 + diskAccessNum;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn insertNonFull(child, key, info);\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn input;\r\n\t}", "public void addWord(String word)\n {\n TrieNode1 node = root;\n for (char c:word.toCharArray())\n {\n if (node.childerens[c-'a']==null)\n {\n node.childerens[c-'a'] = new TrieNode1();\n }\n node = node.childerens[c-'a'];\n }\n node.isEnd = true;\n\n }", "public void insert(String word) {\n if (word == null || word.length() == 0)\n return;\n TrieNode node = root;\n char [] letters = word.toCharArray();\n for (int i=0; i < letters.length; i++) {\n int pos = letters[i] - 'a';\n if (node.son[pos] == null) {\n node.son[pos] = new TrieNode();\n node.son[pos].val = letters[i];\n }\n node = node.son[pos];\n }\n node.isEnd = true;\n }", "public void insert(String word) {\n Trie root = this;\n for (char c : word.toCharArray()) {\n if (root.next[c - 'a'] == null) {\n root.next[c - 'a'] = new Trie();\n }\n root = root.next[c - 'a'];\n }\n root.word = word;\n }", "public void add(String alphabetizedWord, String word){\n int index = word.length();\n if(index >= tree.size()){\n tree.setSize(index + 1);\n }\n if(tree.get(index) == null){\n tree.set(index, new Trie());\n }\n //add word to appropriate trie\n tree.get(index).addWord(alphabetizedWord, word);\n }", "public TrieNode buildTrie(List<String> dict){\n TrieNode root = new TrieNode();\n for(String s : dict){\n TrieNode t = root;\n for(char c : s.toCharArray()){\n if(t.children[c - 'a'] == null)\n t.children[c - 'a'] = new TrieNode();\n t = t.children[c-'a'];\n }\n t.isword = true;\n t.word = s;\n }\n return root;\n }", "public void insert(String word) {\n Trie cur = this;\n int i = 0;\n while(i < word.length()) {\n int c = word.charAt(i) - 'a';\n if(cur.tries[c] == null) {\n cur.tries[c] = new Trie();\n }\n cur = cur.tries[c];\n i++;\n }\n cur.hasWord = true;\n }", "static void searchWord(WordNode root, char boggle[][], int i,\n int j, boolean visited[][], String str, ArrayList<String> elements)\n {\n\n // if we found word in trie / dictionary\n if (root.isWord == true){\n// System.out.println(str.toString());\n elements.add(str.toString());\n }\n\n\n // If both I and j in range and we visited\n // that element of matrix first time\n if (isSafe(i, j, visited,boggle))\n {\n // make it visited\n visited[i][j] = true;\n\n // traverse all child of current root\n for (int K =0; K < 26; K++)\n {\n if (root.child[K] != null)\n {\n // current character\n char ch = (char) (K + 'a') ;\n\n // Recursively search reaming character of word\n // in trie for all 8 adjacent cells of\n // boggle[i][j]\n if (isSafe(i+1,j+1,visited,boggle) && Character.toLowerCase(boggle[i+1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i+1,j+1,\n visited,str+ch, elements);\n if (isSafe(i, j+1,visited,boggle) && Character.toLowerCase(boggle[i][j+1])\n == ch)\n searchWord(root.child[K],boggle,i, j+1,\n visited,str+ch, elements);\n if (isSafe(i-1,j+1,visited,boggle) && Character.toLowerCase(boggle[i-1][j+1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j+1,\n visited,str+ch, elements);\n if (isSafe(i+1,j, visited,boggle) && Character.toLowerCase(boggle[i+1][j])\n == ch)\n searchWord(root.child[K],boggle,i+1, j,\n visited,str+ch, elements);\n if (isSafe(i+1,j-1,visited,boggle) && Character.toLowerCase(boggle[i+1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i+1, j-1,\n visited,str+ch, elements);\n if (isSafe(i, j-1,visited,boggle)&& Character.toLowerCase(boggle[i][j-1])\n == ch)\n searchWord(root.child[K],boggle,i,j-1,\n visited,str+ch, elements);\n if (isSafe(i-1,j-1,visited,boggle) && Character.toLowerCase(boggle[i-1][j-1])\n == ch)\n searchWord(root.child[K],boggle,i-1, j-1,\n visited,str+ch, elements);\n if (isSafe(i-1, j,visited,boggle) && Character.toLowerCase(boggle[i-1][j])\n == ch)\n searchWord(root.child[K],boggle,i-1, j,\n visited,str+ch, elements);\n }\n }\n\n // make current element unvisited\n visited[i][j] = false;\n }\n }", "public void insert(String word) {\n TrieNode parent = root;\n for(int i=0; i<word.length(); i++) {\n char c = word.charAt(i);\n int index = c - 'a';\n\n // Character doesn't exist at the current level\n if (parent.children[index] == null) {\n TrieNode node = new TrieNode();\n parent.children[index] = node;\n parent = node;\n } else {\n parent = parent.children[index];\n }\n }\n parent.isLeaf = true;\n }", "public Trie() {\n this.root = new Node('0');\n }", "public void insert(String word){\n //initially curr is root\n TrieNode curr = root;\n for(int i=0; i<word.length(); i++){\n char c = word.charAt(i);\n //if char doesnot exist, add new trienode\n if(curr.children[c-'a'] == null){\n curr.children[c-'a'] = new TrieNode();\n }\n //curr++\n curr = curr.children[c-'a'];\n }\n //set curr.word to the word\n curr.word = word;\n }", "public void insert(String word) {\n TrieNode ptr = root;\n for(int i = 0;i < word.length();i++) {\n char c = word.charAt(i);\n if(ptr.child[c - 'a'] == null) {\n ptr.child[c - 'a'] = new TrieNode();\n }\n ptr = ptr.child[c - 'a'];\n }\n ptr.is_end = true;\n }", "public void add(String s) {\n HashMap<String, TrieNode> temp = children;\n for (int i = 0; i < s.length(); i++){\n if (!temp.containsKey(String.valueOf(s.charAt(i)))){\n temp.put(String.valueOf(s.charAt(i)), new TrieNode());\n }\n if (i == s.length() - 1){\n temp.get(String.valueOf(s.charAt(i))).isWord = true;\n }\n temp = temp.get(String.valueOf(s.charAt(i))).children;\n }\n }", "public void addWord(String word) {\n TrieNode node = root;\n char[] words = word.toCharArray();\n for (char c: words){\n if (node.children[c-'a'] == null){\n node.children[c-'a']=new TrieNode();\n }\n node = node.children[c-'a'];\n }\n node.item = word;\n }", "public void insert(String word) {\n\n int length = word.length();\n TrieNode node = root;\n for(int i=0; i<length; i++) {\n char curr = word.charAt(i);\n if(!node.containsKey(curr)){\n node.put(curr, new TrieNode());\n }\n node = node.get(curr);\n }\n node.setEnd();\n }", "public static String get32(TrieImpl trie, byte[] key) {\n byte[] subkey = new byte[16];\n byte[] rlpdata ;\n switch(key[0]) {\n case '1':\n {\n for(int i = 0; i < 16; i++){\n subkey[i] = key[i];\n }\n return new String(trie.get(subkey));\n }\n case '2':\n {\n for(int i = 0; i < 16; i++){\n subkey[i] = key[i];\n }\n return new String(trie.get(subkey));\n }\n case '3':\n {\n for(int i = 0; i < 16; i++){\n subkey[i] = key[i];\n }\n return new String(trie.get(subkey));\n }\n case '4':\n {\n for(int i = 0; i < 16; i++){\n subkey[i] = key[i];\n }\n rlpdata = trie.get(subkey);\n if(new String(rlpdata) != \"\"){\n for(int i = 16; i < 32;i++){\n subkey[i-16] = key[i];\n }\n if (subkey[0] == '5') {\n JSONObject jo = JSONObject.fromObject(new String(rlpdata));\n Value val = Value.fromRlpEncoded(Utils.hexStringToBytes(jo.getString(\"root\")));\n TrieImpl subtrie = new TrieImpl(mockDb, val.asObj());\n subtrie.setCache(trie.getCache());\n rlpdata = subtrie.get(subkey);\n return new String(rlpdata);\n }\n else if(subkey[0] == '0'){\n \treturn new String(rlpdata);\n }\n else System.out.println(\"The key is wrong.\");\n break;\n }\n else return \"\";\n }\n case '6':\n {\n \tfor(int i = 0; i < 16; i++){\n subkey[i] = key[i];\n }\n rlpdata = trie.get(subkey);\n if(new String(rlpdata) != \"\"){\n for(int i = 16; i < 32;i++){\n subkey[i-16] = key[i];\n }\n if (subkey[0] == '7') {\n JSONObject jo = JSONObject.fromObject(new String(rlpdata));\n Value val = Value.fromRlpEncoded(Utils.hexStringToBytes(jo.getString(\"root\")));\n TrieImpl subtrie = new TrieImpl(mockDb, val.asObj());\n subtrie.setCache(trie.getCache());\n rlpdata = subtrie.get(subkey);\n return new String(rlpdata);\n }\n else if(subkey[0] == '0'){\n \treturn new String(rlpdata);\n }\n else System.out.println(\"The key is wrong.\");\n break;\n }\n else return \"\";\n }\n default: System.out.println(\"wrong key\"); \n }\n return \"\";\n }", "public void insert(String word) {\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (node.ch[c - 'a'] == null) {\n node.ch[c - 'a'] = new TrieNode();\n }\n node = node.ch[c - 'a'];\n }\n node.word = word;\n }", "public Trie() {\n this.root = new Node(' ');// set root as blank to have multiple tries with different prefixes\n }", "public void addWord(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n cur.map[ind] = new TreeNode();\n }\n cur = cur.map[ind];\n }\n cur.end = true;\n }", "public void insert(String word) {\n TrieNode curr = root;\n for(char c : word.toCharArray()) {\n int idx = c - 'a';\n if(curr.children[idx] == null) {\n curr.children[idx] = new TrieNode();\n }\n curr = curr.children[idx];\n }\n curr.isWord = true;\n }", "public TrieNode() {\n this.arr = new TrieNode[26];\n }", "public void insert(String word) {\n TrieNode cur = root;\n for (int i = 0 ; i < word.length(); i ++) {\n char ch = word.charAt(i);\n if (! cur.children.containsKey(ch)) {\n TrieNode child = new TrieNode(ch);\n cur.children.put(ch, child);\n }\n cur = cur.children.get(ch);\n }\n cur.isEnd = true;\n }", "public void testCL21928774() {\n trie = new AbstractTrie<String>();\n trie.put(\"__proto__\", \"__proto__\");\n }", "private RadixTree add(Signature key, String word) {\n if (key.isEmpty()) {\n words.add(word);\n return this;\n } else {\n for (Signature label : children.keySet()) {\n if (label.isPrefix(key)) {\n int len = label.size();\n Signature suffix = key.suffix(len);\n RadixTree child = children.get(label);\n return child.add(suffix, word);\n } else {\n Signature prefix = key.lcp(label);\n int len = prefix.size();\n if (len > 0) {\n RadixTree father = split(label, prefix);\n return father.add(key.suffix(len), word);\n }\n }\n }\n }\n // No continuation found\n RadixTree child = new RadixTree();\n child.words.add(word);\n children.put(key, child);\n return child;\n }", "public void put(DNA key, long value) {\n total_in++;\n if(this.debug)\n System.out.println(\"ExtHash::put >> insertando cadena: \" + key.toString() + \", hashCode: \" + key.hashCode());\n\n Node actual_node = this.getReference(key);\n if(this.debug)\n System.out.println(\"ExtHash::put >> altura del nodo: \" + actual_node.getAltura());\n\n int reference_page = actual_node.getReference();\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n\n int last_page = reference_page;\n ArrayList<Integer> last_content = content;\n\n int total_elements = 0, altura = actual_node.getAltura();\n while(true) {\n\n if(this.debug)\n System.out.println(\"ExtHash::put >> referencia a pagina: \" + reference_page);\n\n if(this.debug) {\n System.out.println(\"ExtHash::put >> contenido de la pagina:\");\n for(int i=0; i<content.size(); i++)\n System.out.println(\" \" + content.get(i));\n }\n\n total_elements += last_content.get(0);\n if(last_content.get(0) != B-2) {\n if(this.debug)\n System.out.println(\"ExtHash::put >> insertando en: \" + last_page);\n\n ArrayList<Integer> new_content = new ArrayList<>();\n\n new_content.add(last_content.get(0) + 1);\n for(int i=1; i<=last_content.get(0); i++)\n new_content.add(last_content.get(i));\n\n new_content.add(key.hashCode());\n\n if(new_content.get(0) == B-2) {\n total_active_block++;\n new_content.add(this.last);\n\n ArrayList<Integer> last = new ArrayList<>();\n last.add(0);\n this.fm.write(last, this.last); this.out_counter++;\n\n this.last++;\n\n }\n\n if(this.debug) {\n System.out.println(\"ExtHash::put >> contenido en pagina despues de insercion:\");\n for(int i=0; i<new_content.size(); i++)\n System.out.println(\" \" + new_content.get(i));\n }\n\n this.fm.write(new_content, reference_page); this.out_counter++;\n\n total_elements++; // por el elmento que se inserto.\n break;\n\n }\n if(this.debug)\n System.out.println(\"ExtHash::put >> acceciendo a siguiente pagina\");\n\n last_page = last_content.get(B-1);\n last_content = this.fm.read(last_page); this.in_counter++;\n }\n\n // se lleno la pagina y aun no se llega al final del hashing.\n if(total_elements >= B - 2 && altura < 30){\n if(this.debug)\n System.out.println(\"ExtHash::put >> limite de pagina, iniciando duplicacion\");\n\n this.duplicate(actual_node);\n }\n }", "public void insert(String word) {\n\t\t\n\t\tTrieNode current = root;\n\t\t\t\t\n\t\tfor (int i = 0; i < word.length(); i++) {\n\t\t\t\n\t\t\tCharacter ch = word.charAt(i);\n\t\t\t\n\t\t\tif (!current.getChild().containsKey(ch)) {\n\t\t\t\tTrieNode newNode = new TrieNode();\n\t\t\t\tcurrent.getChild().put(ch, newNode);\n\t\t\t}\n\t\t\t\n\t\t\tcurrent = current.getChild().get(ch);\t\n\t\t}\n\t\t\n\t\tcurrent.isLeaf = true;\t \n\t}", "private void insertarKey(BTreeNode<T> root, T t) {\n BTreeNode<T> currentNode = root;\n\n if (currentNode.isLeaf()) {\n if (!itsRepeated(currentNode, (I)t.getId())) {\n insercionOrdenada(currentNode, t);\n } else {\n System.out.println(\"Dato repetido\");\n }\n } else {\n int indexChild = findChildOrIndex(currentNode, (I)t.getId());\n if (!itsRepeated(currentNode.getChild(indexChild), (I)t.getId())) {\n BTreeNode<T> child = currentNode.getChild(indexChild);\n if (child.getNumKeys() == 4 && child.isLeaf()) {\n insercionOrdenada(currentNode.getChild(indexChild), t);\n splitChild(currentNode, currentNode.getChild(indexChild), indexChild);\n } else {\n insertarKey(root.getChild(indexChild), t);\n }\n\n if (currentNode.getNumKeys() == 5) {\n checkMaxKeys(currentNode);\n }\n } else {\n System.out.println(\"Dato repetido\");\n }\n }\n }", "public void insert(String word) {\n char[] chs = word.toCharArray();\n TreeNode cur = root;\n for (int i = 0; i < chs.length; i++) {\n int ind = chs[i] - 'a';\n if (cur.map[ind] == null) {\n cur.map[ind] = new TreeNode();\n }\n cur = cur.map[ind];\n }\n cur.end = true;\n }", "public void insert(String word) {\n TrieNode curr = root;\n for (char c : word.toCharArray()) {\n int idx = c - 'a';\n if (curr.children[idx] == null) {\n curr.children[idx] = new TrieNode();\n }\n curr = curr.children[idx];\n }\n curr.isWord = true;\n }", "public void addWord(String word) {\n if (word != null){\n Map<Character, TrieNode> children=root.children;\n for (int i=0;i<word.length();i++){\n char c=word.charAt(i);\n TrieNode t;\n if (children.containsKey(c)){\n t=children.get(c);\n }else {\n t=new TrieNode(c);\n children.put(c, t);\n }\n children=t.children;\n if (i==word.length()-1){\n t.isLeaf=true;\n }\n }\n }\n }", "public void insert(String word) {\n TrieNode p = root;\n for (char c : word.toCharArray()) {\n int childIndex = (int)(c - 'a');\n if (p.children[childIndex] == null) {\n p.children[childIndex] = new TrieNode();\n }\n p = p.children[childIndex];\n }\n p.isWord = true;\n }", "private void addToRBTree(int node, int index) {\n \n // runtime complexity is O(1)\n TreeMap<Integer, Integer> map = getTreeMap(index);\n \n assert(map != null);\n \n Integer key = Integer.valueOf(node);\n \n // runtime complexity is O(log_2(w))\n Integer multiplicity = map.get(key);\n \n if (multiplicity == null) {\n multiplicity = Integer.valueOf(1);\n } else {\n multiplicity = Integer.valueOf(1 + multiplicity.intValue());\n }\n \n map.put(key, multiplicity); \n }", "public TrieNode(String name) {\n this.map = new TreeMap<>();\n this.name = name;\n this.key = null;\n }", "public void insert(String word) {\n\t\tTrie curr = this;\n\t\tfor(Character ch : word.toCharArray()) {\n\t\t\tTrie n = curr.nodes[ch - 'a'];\n\t\t\t\n\t\t\tif (n == null) {\n\t\t\t\tn = new Trie();\n\t\t\t\tn.isWord = false;\n\t\t\t\tcurr.nodes[ch - 'a'] = n;\n\t\t\t}\n\t\t\t\n\t\t\tcurr = n;\n\t\t}\n\t\tcurr.isWord = true;\n\t}", "private TrieNode addChild(char c) {\n TrieNode newChild = new TrieNode(c);\n children.add(newChild);\n return newChild;\n }", "public void insert(String word) {\n\t\tcur = root;\n\t\tfor (char c : word.toCharArray()) {\n\t\t\tif (cur.children[c - 'a'] == null) {\n\t\t\t\tcur.children[c - 'a'] = new TrieNode(c);\n\t\t\t}\n\t\t\tcur = cur.children[c - 'a'];\n\t\t}\n\t\tcur.isWord = true;\n\t}", "private TrieNode() {\n this.arr = new TrieNode[CAPACITY];\n }", "public Trie() {}", "public Trie() {}", "private void addEntry(String word, String file, int position, HashMap<String, ArrayList<Integer>> subIndex) {\n\t\tif (subIndex.containsKey(word)) {\r\n\t\t\t// checks if the file name is a key in the nested\r\n\t\t\t// hash map of the word\r\n\t\t\tsubIndex.get(word).add(position);\r\n\t\t\r\n\t\t/*\r\n\t\t * if the word is not yet a key, create a new entry in the hash map.\r\n\t\t * Create new hash map to hold the file the word is found and an array\r\n\t\t * to find the position Then put that in the wordMap hash map as value\r\n\t\t * and the word as a key.\r\n\t\t */\r\n\t\t}else {\r\n\t\t\tsubIndex.put(word, new ArrayList<Integer>());\r\n\t\t\tsubIndex.get(word).add(position);\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "public void insert(String word) \n\t {\n\t \tTrieNode p = root;\n\t for(int i=0; i<word.length(); ++i)\n\t {\n\t \tchar c = word.charAt(i);\n\t \tif(p.children[c-'a']==null)\n\t \t\tp.children[c-'a'] = new TrieNode(c);\n\t \tp = p.children[c-'a'];\n\t }\n\t p.mark = true;\n\t }", "public interface Trie<T extends Comparable<T>, U> extends Map<Iterable<T>, U> {\n /**\n * Add word with associated data to trie.\n *\n * @param codePoints the word to add\n * @param data the data associated with the word\n * @return the old data associated with the word, or null if there was no word\n * @throws NullPointerException if data is null\n */\n @Override\n @Nullable U put(Iterable<T> codePoints, @NotNull U data);\n\n /**\n * Remove a word from the trie.\n *\n * @param codePoints the word to remove\n * @return the data associated with the word if found, or null if not found\n */\n @Nullable U remove(Iterable<T> codePoints);\n\n /**\n * Find word in trie.\n *\n * @param codePoints the word to find\n * @return the data associated with the word if found, or null if not found\n */\n @Nullable U get(Iterable<T> codePoints);\n\n /**\n * Return the number of words in the trie.\n */\n @Override\n int size();\n\n /**\n * Return an iterator going over all the words in the map.\n * This function is similar to entrySet().iterator() except that entry.getKey() is an Iterable whereas entry.getWord() is a List.\n */\n Iterator<TrieEntry<T, U>> trieIterator();\n\n interface TrieEntry<T extends Comparable<T>, U> extends Map.Entry<Iterable<T>, U> {\n /**\n * Get the full word of this trie node.\n */\n List<T> getWord();\n }\n}", "public void addWord(String word) {\n TrieNode curr = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (curr.children[c - 'a'] == null )\n curr.children[c - 'a'] = new TrieNode();\n curr = curr.children[c - 'a'];\n }\n curr.end = true;\n }", "private void insert(int N, TrieNode root) {\n\n TrieNode curr = root;\n for (int i = 30; i >= 0; i--) {\n int bit = ((N & (1 << i)) > 0) ? 1 : 0;\n\n if (curr.children[bit] == null) {\n curr.children[bit] = new TrieNode();\n } else {\n curr.children[bit].freq++;\n }\n curr = curr.children[bit];\n }\n }", "public void insert(String word) {\n \tHashMap<Character, TrieNode> children=root.children;\n \tfor(int i=0;i<word.length();i++)\n \t{\n \t\tchar c=word.charAt(i);\n \t\tTrieNode t;\n \t\tif(children.get(c)!=null)\n \t\t{\n \t\t\tt=children.get(c);\n \t\t}\n \t\telse\n \t\t{\n \t\t\tt=new TrieNode(c);\n \t\t\tchildren.put(c, t);\n \t\t}\n \t\tchildren=t.children;\n \t\tif(i==word.length()-1)\n \t\t\tt.leaf=true;\n \t}\n }", "public void add(long key, C value) {\n if(Long.toString(key).length() != 8) {\n \t//System.out.println(\"Sequence Error: Length is not 8.\\n\");\n return;\n }\n\n //clear the old key\n try {\n this.remove(key); \n } catch(Exception e) {\n sequence.add(new Entry<C>(key, value));\n size++;\n return;\n }\n //System.out.println(\"Found duplicate for key \" + key + \".\\n\"); \n sequence.add(new Entry<C>(key, value));\n size++;\n }", "public void insert(String key, String value) throws KeyCollisionException{\n if( lookup(key) != null){\n throw new KeyCollisionException(\"cannot insert dublicate key\");\n }\n else{\n if( front == null){\n Node N = new Node(key,value);\n front = N;\n numItems++;\n }\n else{\n Node N = front;\n while( N != null){\n if(N.next == null){\n break;\n }\n N = N.next;\n }\n N.next = new Node(key,value);\n numItems++;\n }\n }\n }", "public void add(G item,String key){\n int chain=hashFunction(key);\r\n if (electionTable[chain] != null) {\r\n System.out.println(\"input repeated key!!!\");\r\n return;\r\n }\r\n ElectionNode x=new ElectionNode(item);\r\n System.out.println(\"-----------add-------------- \" + chain);\r\n x.next=electionTable[chain];\r\n electionTable[chain]=x;\r\n }", "public void insert(String word) {\n\t\tTrieNode node = root;\n\t\tfor (char c: word.toCharArray()) {\n\t\t\tif (!node.containsKey(c)) {\n\t\t\t\tnode.put(c);\n\t\t\t}\n\t\t\tnode = node.get(c);\n\t\t}\n\t\tnode.setEnd();\n\t}", "private Node put(Node x, String key,Value val,int index){\n\t\t\n\t\tif(x==null) x=new Node();\n\t\t//check if you have hit the end\n\t\tif(index==key.length()){\n\t\t\tx.val=val;\n\t\t\treturn x;\n\t\t}\n\t\t\n\t\t//int pos=key.charAt(index)-48; // jaffa !! we are not just dealing with decimals.\n\t\tint pos=key.charAt(index);\n\t\tx.array[pos]=new Node();\n\t\tx.array[pos]=put(x.array[pos],key,val,(index+1));\n\t\treturn x;\n\t}", "public void insert(String word) {\n if (word == null) {\n return;\n }\n TrieNode parent = root;\n char[] charArr = word.toCharArray();\n for (int n = 0; n < charArr.length; n++) {\n Map<Character, TrieNode> currentMap = parent.children;\n if (!currentMap.containsKey(charArr[n])) {\n currentMap.put(charArr[n], new TrieNode(charArr[n]));\n }\n parent = currentMap.get(charArr[n]);\n }\n parent.children.put('\\0', null);\n }", "public void insert(String word) {\n TrieNode n = root;\n for(char c : word.toCharArray()) {\n if(n.children[c]==null) {\n n.children[c] = new TrieNode();\n }\n n = n.children[c];\n }\n n.isWord = true;\n n.word = word;\n }", "public void insert(String word) {\n TrieNode node = root;\n\n // for each char in the word, add to the TrieNode\n for (char c: word.toCharArray()) {\n // if there are no such child, then we add it\n if (node.children[c - 'a'] == null) {\n node.children[c - 'a'] = new TrieNode(c);\n }\n // move the node to next layer\n node = node.children[c - 'a'];\n\n }\n // mark the isWord\n node.isWord = true;\n }", "TrieNode root();", "public void addWord(String word) {\n TrieNode cur = root;\n for(int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n TrieNode node = cur.children.get(c);\n if(node == null) {\n node = new TrieNode();\n cur.children.put(c, node);\n }\n cur = node;\n }\n cur.isEnd = true;\n }", "public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }", "public void add(String s) {\n s = s.toUpperCase();\n TrieNode node = root;\n for (int i = 0; i < s.length(); i++) {\n char c = s.charAt(i);\n if (node.get(c) == null) node.put(c, new TrieNode());\n node = node.get(c);\n }\n node.isLeaf = true;\n\n }", "public void insert(String word) {\n \tTrieNode cur=root;\n \tfor (int i = 0; i < word.length(); i++) {\n \t\t\tint ch=word.charAt(i)-'a';\n \t\t\tif(cur.next[ch]==null) {\n \t\t\t\tcur.next[ch]=new TrieNode();\n \t\t\t}\n \t\t\tcur=cur.next[ch];\n \t\t}\n \tcur.val=word;\n \tcur.isEnd=true;\n }", "public void addWord(String word) {\n HashMap<Character, TrieNode> children = root.children;\n TrieNode Tnode;\n char[] charArray = word.toCharArray();\n for (int i = 0; i < word.length(); i++) {\n if (children.containsKey(charArray[i])) {\n Tnode = children.get(charArray[i]);\n }\n else\n {\n Tnode = new TrieNode(charArray[i]);\n children.put(charArray[i], Tnode);\n }\n children = Tnode.children;\n\n if (i == word.length() - 1) {\n Tnode.isLeaf = true;\n }\n }\n }", "public void addWord(String word) {\n TrieNode node = root;\n for (int i = 0; i < word.length(); i++) {\n char c = word.charAt(i);\n if (!node.children.containsKey(c)) {\n node.children.put(c, new TrieNode());\n }\n node = node.children.get(c);\n }\n node.isEnd = true;\n }", "public void insert(String word) {\n char[] chars = word.toCharArray();\n int length = chars.length;\n\n Map<Character,Node> map = this.root.map;\n for(int i = 0;i < length;i++){\n if(map.containsKey(chars[i])){\n Node node = map.get(chars[i]);\n }else{\n map.put(chars[i],new Node(chars[i]));\n }\n\n if(i == length - 1){\n map.get(chars[i]).isWordEnd = true;\n }\n map = map.get(chars[i]).map;\n }\n }", "public void insertKey(int x){\r\n\t\tSystem.out.println(\"insertKey: Leaf\");\r\n\t\t//check if input is duplicate entry\r\n\t\tif (this.containsKey(x)){\r\n\t\t\tSystem.out.println(\"Error: Duplicate key entry\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//makes sure inputs positive\r\n\t\tif(x<1){\r\n\t\t\tSystem.out.println(\"Input Error: You cannot input a negative value for a key\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif ((!this.containsKey(x)) && (!this.isFull())){\r\n\t\t\tkeys[counter]=x;\r\n\t\t\tcounter++;\r\n\t\t\tArrays.sort(keys,0,counter);//sort\r\n\t\t}else if (this.isFull()){\r\n\t\t\tArrays.sort(keys);//sort\r\n\t\t\tBPlusTree.splitChild(this, x);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t}", "public TrieNode() {\n children = new HashMap<Character, TrieNode>();\n hasWord = false;\n }", "private static HashSet<String> addElement(Map m, String key,int count) {\n\t\tIterator it = m.entrySet().iterator();\n\t\tHashSet<String> allParents=new HashSet<String>();\n\t\tHashSet<String> newNodeHS=new HashSet<String>();\n\t\tHashSet<String> receive=new HashSet<String>();\n\t\tString parent=\"\";\n\t\tif(readNodes.get(key)==null)\n\t\t{\n\t\t\tif(!(key.equals(root)))\n\t\t\t{\n\t\t\tallParents=(HashSet)m.get(key);\n\t\t\tIterator iter = allParents.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tparent=(String)iter.next();\n\t\t\t\tcount++;\n\t\t\t\treceive=addElement(m,parent,count);\n\t\t\t\tString str=key+\"-\"+parent;\n\t\t\t\tIterator toRecieve = receive.iterator();\n\t\t\t\twhile(toRecieve.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewNodeHS.add((String)toRecieve.next());\n\t\t\t\t}\n\t\t\t\tnewNodeHS.add(str);\n\t\t\t\tcount--;\n\t\t\t}\n\t\t\t\tif(count==0)\n\t\t\t\t{\n\t\t\t\t\tIterator<HashSet> iternew = totalDAG.iterator();\n\t\t\t\t\tHashSet<HashSet> inProgressDAG=new HashSet<HashSet>(totalDAG); \n\t\t\t\t\twhile (iternew.hasNext()) {\n\t\t\t\t\t HashSet<String> tillCreatedDAG=iternew.next();\n\t\t\t\t\t HashSet<String> union=new HashSet<String>(newNodeHS);\n\t\t\t\t\t union.addAll(tillCreatedDAG);\n\t\t\t\t\t inProgressDAG.add(union);\n\t\t\t\t\t}\n\t\t\t\t\ttotalDAG.clear();\n\t\t\t\t\ttotalDAG=inProgressDAG;\n\t\t\t\t\ttotalDAG.add(newNodeHS);\n\t\t\t\t\treadNodes.put(key, newNodeHS);\n\t\t\t\t\tSystem.out.println(\"Size: \" +totalDAG.size()+\" Nodes: \"+(++totalCount));\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t\t\tcount--;\n\t\t\t\treturn newNodeHS;\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString str=root;\n\t\t\t\t\tnewNodeHS.add(str);\n\t\t\t\t\tcount--;\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (HashSet)readNodes.get(key);\n\t\t}\n\t}" ]
[ "0.725623", "0.6510996", "0.64642227", "0.6331604", "0.6166471", "0.6154946", "0.61045945", "0.6052124", "0.6047809", "0.59735125", "0.59434265", "0.5908199", "0.5907598", "0.59011096", "0.5893831", "0.58935475", "0.58891267", "0.5881144", "0.58741343", "0.58520067", "0.58381444", "0.58268017", "0.582261", "0.58005714", "0.5789626", "0.57783806", "0.577768", "0.57748604", "0.5766591", "0.57569754", "0.57566", "0.57546496", "0.57534826", "0.57448655", "0.5743354", "0.57213527", "0.57126117", "0.57037175", "0.5695441", "0.5690583", "0.5690399", "0.5685245", "0.5674272", "0.5674269", "0.5673908", "0.56712", "0.56646925", "0.566372", "0.56618434", "0.5658532", "0.56546533", "0.5652536", "0.56459814", "0.56444055", "0.5636558", "0.56355053", "0.56315076", "0.562533", "0.56215215", "0.5620782", "0.5616791", "0.5616042", "0.5614002", "0.5609953", "0.5609581", "0.5597293", "0.5591911", "0.5588237", "0.5581467", "0.557682", "0.5562602", "0.5556021", "0.5549508", "0.55489206", "0.55489206", "0.55424035", "0.55422634", "0.5541545", "0.5524917", "0.55091196", "0.55064636", "0.5504925", "0.55023146", "0.5501888", "0.5501036", "0.55005914", "0.5495795", "0.54758775", "0.54709506", "0.5469587", "0.5464017", "0.54579777", "0.54567313", "0.5454362", "0.54519945", "0.54421943", "0.5426038", "0.5412171", "0.5404285", "0.5394598" ]
0.74047637
0
Filter hits based on queryLen and alignLen
public Boolean filterHits(int queryL, int alignL){ return this.getResults().filter(queryL, alignL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasSearchLength();", "@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n String[] tmp = API.it().getKeywords(arg0.toString());\n FilterResults results = new FilterResults();\n results.values = tmp;\n results.count = tmp.length;\n return results;\n }", "private void filterRecyvlerView() {\n String query = etSearch.getText().toString();\n String[] querySplited = query.split(\" \");\n\n if(query.equals(\"\")){\n rvPostalCodes.removeAllViews();\n adapter.setRealmResults(Realm.getDefaultInstance().where(Locations.class).findAll());\n }else{rvPostalCodes.removeAllViews();\n if(querySplited.length == 1) {\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0], Case.INSENSITIVE).findAll());\n rvPostalCodes.setAdapter(adapter);\n\n\n }else if(querySplited.length == 2){\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }else if(querySplited.length == 3){\n adapter = new LocationsAdapter(getTargetFragment(), Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[2],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[2],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }\n }\n\n }", "int getSearchLength();", "@Test\n public void testFieldAlias() throws Exception {\n String[] files = new String[]{\n \"support/solr_test_documents/max_length_doc.txt\", \n };\n SolrServerUnitTestUtil.indexFiles(files);\n //Thread.sleep(1000000000L); \n \n //Find the post. Notice 255 characters seems to be Solr maximum token-size when searching\n SolrQuery query = new SolrQuery(\n //First 250 characters, wildcard search 1234567890......*\n \"1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890*\"\n );\n QueryResponse response = solrServer.query(query);\n assertEquals(1L, response.getResults().getNumFound());\n \n \n }", "private static Map buildQueryMap(List<Map> listParam, int size) {\n Map filterMap = putMap(null, \"script\", putMap(null, \"script\", putMap(null, \"source\", \"doc['message'].values.length==0\")));\n Map boolMap = new HashMap();\n putMap(boolMap, \"must\", listParam);\n putMap(boolMap, \"filter\", filterMap);\n\n Map root = new HashMap();\n putMap(root, \"query\", putMap(null, \"bool\", boolMap));\n putMap(root, \"from\", 0);\n putMap(root, \"size\", size);\n\n return root;\n }", "private static ArrayList<Result> distanceMatching(Query query, DataManager myVocab) {\n\t\tString queryterm = query.getQuery();\n\t\tint maxScore;\n\t\tif (queryterm.length()<9)\n\t\t\tmaxScore= queryterm.length()-THRESHOLD_LEV;\n\t\telse\n\t\t\tmaxScore = queryterm.length()-(queryterm.length()/THRESHOLD_LEV);\n\t\tArrayList<Result> fuzzyResults = new ArrayList<Result>();\n\t\tfor (int i = 0; i < myVocab.vocab.size(); i++){\n\t\t\tString vocabterm = myVocab.vocab.get(i).trim();\n\t\t\tint distance = levenshteinDistance(vocabterm, queryterm);\n\t\t\t// subtract the distance that's just the length difference\n\t\t\t// to only take into account the character substitution\n\t\t\tdistance = distance - (Math.abs(vocabterm.length() - queryterm.length()));\n\t\t\tif (distance < maxScore){\n\t\t\t\tdouble score;\n\t\t\t\tif (vocabterm.length() < queryterm.length())\n\t\t\t\t\tscore = ((double)(vocabterm.length())/(double)(queryterm.length()+distance))*99;\n\t\t\t\telse\n\t\t\t\t\tscore = (((double)queryterm.length()/(double)(vocabterm.length()+distance)))*99;\n\t\t\t\tfuzzyResults.add(new Result(query.getType()+\"/\"+myVocab.vocab.get(i), myVocab.vocab.get(i), query.getType(),score, false));\n\t\t\t}\n\t\t}\n\t\treturn fuzzyResults;\n\t}", "public SamFilterParamsBuilder minLength(int value) {\n mMinReadLength = value;\n return this;\n }", "public ReadLengthReadFilter() {}", "public abstract boolean lambda$size$0$MediaFormat$FilteredMappedKeySet(String str);", "@Test\n \tpublic void testSimpleFilterAlignments()\n \t{\n \t\tString searchTerm = \"hobbys\";\n \t\tString searchText = \"hobbies\";\n \t\tPDL.init(searchTerm, searchText, true, true);\n \t\talignments.clear();\n \t\tPseudoDamerauLevenshtein.Alignment ali1 = PDL.new Alignment(searchTerm, searchText, 1.0, 0, 5, 0, 0);\n \t\tPseudoDamerauLevenshtein.Alignment ali2 = PDL.new Alignment(searchTerm, searchText, 0.5, 0, 5, 0, 0);\n \t\talignments.add(ali1);\n \t\talignments.add(ali2);\n \t\talignments = PseudoDamerauLevenshtein.filterAlignments(alignments);\n \t\tAssert.assertEquals(1, alignments.size());\n \t\tAssert.assertEquals(ali1, alignments.get(0));\n \t}", "String buildPhraseQuery(String field, String val, int from, int size,\n\t\t\tDomeoPermissions permissions3) {\n\t\tStringBuffer sb = new StringBuffer(\"{ \");\n\n\t\t// Check for starting position (from) and max results (size)\n\t\tif ((from > -1) && (size > -1)) {\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \\\"size\\\" : \" + size + \", \");\n\t\t} else if (from > -1) { // from only, no size\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \");\n\t\t} else if (size > -1) { // size only, no from\n\t\t\tsb.append(\"\\\"size\\\" : \" + size + \", \");\n\t\t}\n\n\t\tif (permissions3 == null) {\n\t\t\tsb.append(\"\\\"fields\\\" : [\\\"_id\\\"], \\\"query\\\" : { \\\"match_phrase\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": \\\"\" + val + \"\\\" } } } \");\n\t\t} else {\n\t\t\tString filter = permissions3.buildQueryFilter();\n\t\t\tsb.append(\"\\\"fields\\\" : \\\"[_id]\\\", \\\"query\\\" : { \\\"match_phrase\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": \\\"\" + val + \"\\\" } } \" + filter + \" } \");\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "@Test\n public void testCase4 () throws IOException {\n //\t\tlog.trace(\"Testcase4\");\n\n ki = new KrillIndex();\n ki.addDoc(createFieldDoc0());\n ki.commit();\n ki.addDoc(createFieldDoc1());\n ki.addDoc(createFieldDoc2());\n ki.commit();\n\n sq = new SpanSegmentQuery(new SpanElementQuery(\"base\", \"e\"),\n new SpanNextQuery(new SpanTermQuery(new Term(\"base\", \"s:a\")),\n new SpanTermQuery(new Term(\"base\", \"s:b\"))));\n\n kr = ki.search(sq, (short) 10);\n ki.close();\n\n assertEquals(\"totalResults\", kr.getTotalResults(), 2);\n // Match #0\n assertEquals(\"doc-number\", 0, kr.getMatch(0).getLocalDocID());\n assertEquals(\"StartPos\", 3, kr.getMatch(0).startPos);\n assertEquals(\"EndPos\", 5, kr.getMatch(0).endPos);\n // Match #1\n assertEquals(\"doc-number\", 0, kr.getMatch(1).getLocalDocID());\n assertEquals(\"StartPos\", 1, kr.getMatch(1).startPos);\n assertEquals(\"EndPos\", 3, kr.getMatch(1).endPos);\n }", "private static void statsForQuery(String query) {\n\t\tHashMap<String,Integer> oldTerms=newTerms; // record the terms to analyze modified queries\n\t\tnewTerms=new HashMap<String,Integer>();\n\t\t\t\t\n\t\tString terms[]=query.split(\"\\\\s\");\t\t\t\t\n\t\tint matchingTerms=0;\n\t\tint matchingTermsStopwords=0;\n\t\tint matchingTermsOrder=0;\n\t\tfor (int j=0;j<terms.length;j++) {\n\t\t\tif (!terms[j].equals(\"\")) {\n\t\t\t \tif (oldTerms.containsKey(terms[j])) {\n\t\t\t \t\tmatchingTerms++;\t\t\t\t\t \n\t\t\t \t\tif (stopwordsMap.containsKey(terms[j])) { // match if it is stopword\n\t\t\t \t\t\tmatchingTermsStopwords++;\n\t\t\t \t\t}\n\t\t\t \t\tif (oldTerms.get(terms[j])==j) { // match if it has the same order\n\t\t\t \t\t\tmatchingTermsOrder++;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t \tnewTerms.put(terms[j],j);\n\t\t\t}\n\t\t}\t\n\n\t\tif (newTerms.size()==oldTerms.size() && matchingTerms==oldTerms.size() && matchingTerms>0) { // the queries have the same terms\n\t\t totalEqualTermsQueries++;\n\t\t\t\t \t\t\t\t \t\t\t\t\t\t \t\t\t\t \t\t\t\t \n\t\t if (matchingTermsStopwords==oldTerms.size()) {\n\t\t \ttotalEqualTermsStopwordsQueries++;\n\t\t }\n\t\t if (matchingTermsOrder==oldTerms.size()) {\n\t\t \ttotalEqualTermsOrderQueries++;\n\t\t }\n\t\t if (query.equals(oldQuery)) {\n\t\t \ttotalIdenticalQueries++;\n\t\t }\n\t\t if (sessionQueries.contains(query)) {\n\t\t \ttotalIdenticalSessionQueries++;\n\t\t }\n\t\t}\n\t\telse if (matchingTerms-matchingTermsStopwords>0) { // the queries have at least one term equal and diferent from a stopword\n\t\t totalModifiedQueries++;\n\t\t int index=newTerms.size()-oldTerms.size()+N_MODIFIED_TERMS_RANGE/2;\n\t\t if (index<0) {\n\t\t \tindex=0;\n\t\t }\n\t\t else if (index>N_MODIFIED_TERMS_RANGE-1) {\n\t\t \tindex=N_MODIFIED_TERMS_RANGE-1;\n\t\t }\n\t\t nModifiedTerms[index]++;\n\t\t}\n\t\toldQuery=query; \n\t\t\t\t\t\t\n\t\t// store session query\n\t\tsessionQueries.add(query);\n\t}", "public SearchResponse prepareSearchScrollRequest() {\n GetSettingsResponse getSettingsResponse = client.admin().indices().getSettings(new GetSettingsRequest().indices(dataPointer.getIndexName())).actionGet();\n int numShards = 0, numIndices = 0;\n for(ObjectCursor<Settings> settings : getSettingsResponse.getIndexToSettings().values()) {\n numShards += settings.value.getAsInt(\"index.number_of_shards\", 0);\n numIndices++;\n }\n\n int sizePerShard = (int)Math.ceil((double)SCROLL_SHARD_LIMIT/numShards);\n logger.info(\"Found \" + numIndices + \" indices and \" + numShards + \" shards matching the index-pattern, thus setting the sizePerShard to \" + sizePerShard);\n\n SearchRequestBuilder searchRequestBuilder = client.prepareSearch(dataPointer.getIndexName())\n .setTypes(dataPointer.getTypeName())\n .setSearchType(SearchType.SCAN)\n .addFields(\"_ttl\", \"_source\")\n .setScroll(new TimeValue(SCROLL_TIME_LIMIT))\n .setSize(sizePerShard);\n\n if (!Strings.isNullOrEmpty(query.getQuery())) {\n searchRequestBuilder.setQuery(query.getQuery());\n }\n if (!Strings.isNullOrEmpty(query.getSortField())) {\n searchRequestBuilder.addSort(new FieldSortBuilder(query.getSortField()).order(query.getSortOrder()));\n }\n\n bound.map(resolvedBound -> boundedFilterFactory.createBoundedFilter(segmentationField.get(), resolvedBound))\n .ifPresent(searchRequestBuilder::setQuery);\n\n return searchRequestBuilder.execute().actionGet();\n }", "public String filterAndReport(int queryL, int alignL){\n return this.getResults().filterAndReport(queryL, alignL);\n }", "String phraseQuery(String field, String val, int from, int size,\n\t\t\tboolean isSubdoc, DomeoPermissions permissions3) {\n\t\tString query = buildPhraseQuery(field, val, from, size, permissions3);\n\t\tString searchUrl = isSubdoc ? esSearchSubdocUrl : esSearchUrl;\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode = doHttpOperation(searchUrl, HTTP_POST, query);\n\t\treturn decodeNS(lastResponse);\n\t}", "@Test\n\tpublic void testKeywordQuery(){\n\t\t//manager.getResponse(\"american football \"); //match multiple keywords\n//\t\tmanager.getResponse(\"list of Bond 007 movies\");\n//\tmanager.getResponse(\"Disney movies\");\n\t\t//manager.keywordQuery(\"Paul Brown Stadium location\");\n\t\t//manager.keywordQuery(\"0Francesco\");\n System.out.println(\"******* keyword query *******\");\n\t\t//manager.keywordQuery(\"sportspeople in tennis\");\n\t\t//manager.keywordSearch(\"list of movies starring Sean Connery\",ElasticIndex.analyzed,100 );\n//\t\tmanager.keywordSearch(\"movies starring Sean Connery\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"musical movies tony award\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"United states professional sports teams\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.analyzed,100 );\n// manager.keywordSearch(\"computer games developed by Ubisoft\",ElasticIndex.notStemmed,100 );\n// manager.keywordSearch(\"movies academy award nominations\",ElasticIndex.notStemmed,100 );\n System.out.println(SearchResultUtil.toSummary(manager.keywordSearch(\"movies directed by Woody Allen\",ElasticIndex.notLowercased,20 )));\n //manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notAnalyzed,100 );\n //(better than analyzed) manager.keywordSearch(\"grammy best album in 2012\",ElasticIndex.notStemmed,100 );\n System.out.println(\"*****************************\");\n\n\t\t//manager.keywordQuery(\"Disney movies\");\n\t}", "@Override\n public void adjustFilter(int key_min, int key_max) {\n //do nothing\n }", "public byte filter(Manager m, SearchRequest q, ResultSet rs, int DocAtNumber, int DocNo)\n\t{\t\t\n\t\tString originalQuery = q.getOriginalQuery();\n\t\t//highlight query terms only for the queries, \n\t\t//which are not about finding related documents\n\t\t//this check may be removed, because the preparation of the \n\t\t//query terms for highlighting takes into account\n\t\t//the related: operator\n\t\tboolean highlightQueryTerms = true;\n\t\tif (originalQuery.matches(\"\\\\brelated:\\\\d+\\\\b\") || //check if the query uses the related: operator \n\t\t\t!enableQueryTermsHighlight || //check if the highlighting of terms is enabled\n\t\t\thighlight.pattern().equals(\"(\\\\b)()(\\\\b)\")) //check if there are no query terms to highlight\n\t\t\thighlightQueryTerms = false;\n\t\t\n\t\tString[] qTerms = q.getOriginalQuery().replaceAll(\" \\\\w+\\\\p{Punct}\\\\w+ \",\" \").toLowerCase().split(\" \");\n\t\t\n\t\tString[] metadata = null;\n\t\tint tmpSentence;\n\t\tdouble tmpScore;\n\t\tsynchronized(metaCache) {\n\t\t\ttry {\n\t\t\t\tInteger DocNoObject = new Integer(DocNo);\n\t\t\t\tif (metaCache.containsKey(DocNoObject))\n\t\t\t\t\t\tmetadata = (String[]) metaCache.get(DocNoObject);\n\t\t\t\telse {\n\t\t\t\t\tmetadata = metaIndex.getItems(keys, DocNo);\n\t\t\t\t\tmetaCache.put(DocNoObject,metadata);\n\t\t\t\t}\n\t\t\t} catch(IOException ioe) {} \n\t\t}\n\t\n\t\tif (show_snippet)\n\t\t{\n\t\t\tString extract = metadata[1];\n\t\t\tString[] sentences = sentencePattern.split(extract, 50); //use 50 sentences at most\n\t\t\tdouble[] sentenceScores = new double[sentences.length]; \n\t\t\tint frsSentence = -1;\n\t\t\tint sndSentence = -1;\n\t\t\tint top1Sentence = 0;\n\t\t\tint top2Sentence = 0;\n\t\t\tdouble max1Score = -1;\n\t\t\tdouble max2Score = 0;\n\t\t\tfinal int qTermsLength = qTerms.length;\n\t\t\tfor (int i=0; i<qTermsLength; i++) {\n\t\t\t\tqTerms[i] = removeEndings.matcher(qTerms[i]).replaceAll(\"\");\n\t\t\t}\n\t\t\tString lowerCaseSentence;\n\t\t\tint sentenceLength;\n\t\t\tfinal int sentencesLength = sentences.length;\n\n\t\t\tfor (int i=0; i<sentencesLength; i++) {\n\t\t\t\t\n\t\t\t\tlowerCaseSentence = sentences[i].toLowerCase();\n\t\t\t\tsentenceLength=sentences[i].length();\n\t\t\t\tif (sentenceLength < 20 || sentenceLength > 250) {\n\t\t\t\t\tfor (int j=0; j<qTermsLength; j++) {\n\t\t\t\t\t\tif (lowerCaseSentence.indexOf(qTerms[j])>=0) {\n\t\t\t\t\t\t\tsentenceScores[i]+=1.0d + sentenceLength / (20.0d + sentenceLength);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j=0; j<qTermsLength; j++) {\n\t\t\t\t\t\tif (lowerCaseSentence.indexOf(qTerms[j])>=0) {\n\t\t\t\t\t\t\tsentenceScores[i]+=qTerms[j].length() + sentenceLength / (1.0d + sentenceLength);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t//do your best to get at least a second sentence for the snippet, \n\t\t\t\t//after having found the first one\n\t\t\t\tif (frsSentence > -1 && sndSentence == -1 && sentenceLength > 5) {\n\t\t\t\t\tsndSentence = i;\n\t\t\t\t}\n\n\t\t\t\t//do your best to get at least one sentence for the snippet\n\t\t\t\tif (frsSentence == -1 && sentenceLength > 5) { \n\t\t\t\t\tfrsSentence = i;\n\t\t\t\t}\n\n\t\t\t\tif (max2Score < sentenceScores[i]) {\n\t\t\t\t\tmax2Score = sentenceScores[i];\n\t\t\t\t\ttop2Sentence = i;\n\t\t\t\t\t//logger.debug(\"top 2 sentence is \" + i);\n\t\t\t\t\tif (max2Score > max1Score) {\n\t\t\t\t\t\ttmpScore = max1Score; max1Score = max2Score; max2Score = tmpScore;\n\t\t\t\t\t\ttmpSentence = top1Sentence; top1Sentence = top2Sentence; top2Sentence = tmpSentence;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tint lastIndexOfSpace = -1;\n\t\t\tString sentence=\"\";\n\t\t\tString secondSentence=\"\";\n\t\t\tString snippet = \"\";\n\t\t\tif (max1Score == -1) {\n\t\t\t\tif (frsSentence>=0) {\n\t\t\t\t\tsentence = sentences[frsSentence];\n\t\t\t\t\tif (sentence.length() > 100) {\n\t\t\t\t\t\tlastIndexOfSpace = sentence.substring(0, 100).lastIndexOf(\" \");\n\t\t\t\t\t\tsentence = sentence.substring(0, lastIndexOfSpace > 0 ? lastIndexOfSpace : 100);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (sndSentence>=0) {\n\t\t\t\t\tsecondSentence = sentences[sndSentence];\n\t\t\t\t\tif (secondSentence.length() > 100) {\n\t\t\t\t\t\tlastIndexOfSpace = secondSentence.substring(0, 100).lastIndexOf(\" \");\n\t\t\t\t\t\tsecondSentence = secondSentence.substring(0, lastIndexOfSpace>0 ? lastIndexOfSpace : 100);\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (frsSentence >=0 && sndSentence >= 0) \n\t\t\t\t\tsnippet = sentence.trim() + \"...\" + secondSentence.trim();\n\t\t\t\telse if (frsSentence >= 0 && sndSentence<0) \n\t\t\t\t\tsnippet = sentence.trim();\n\t\t\t\t\n\t\t\t} else if (sentences[top1Sentence].length()<100 && top1Sentence!=top2Sentence) {\n\t\t\t\tsentence = sentences[top1Sentence];\n\t\t\t\tif (sentence.length() > 100) {\n\t\t\t\t\tlastIndexOfSpace = sentence.substring(0, 100).lastIndexOf(\" \");\n\t\t\t\t\tsentence = sentence.substring(0, lastIndexOfSpace > 0 ? lastIndexOfSpace : 100);\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tsecondSentence = sentences[top2Sentence];\n\t\t\t\tif (secondSentence.length() > 100) {\n\t\t\t\t\tlastIndexOfSpace = secondSentence.substring(0, 100).lastIndexOf(\" \");\n\t\t\t\t\tsecondSentence = secondSentence.substring(0, lastIndexOfSpace>0 ? lastIndexOfSpace : 100);\n\t\t\t\t}\n\t\t\t\tsnippet = sentence.trim() + \"...\" + secondSentence.trim();\n\t\t\t} else {\n\t\t\t\tsentence = sentences[top1Sentence];\n\t\t\t\tif (sentence.length()>200) {\n\t\t\t\t\tlastIndexOfSpace = sentence.substring(0, 200).lastIndexOf(\" \");\n\t\t\t\t\tsentence = sentence.substring(0, lastIndexOfSpace > 0 ? lastIndexOfSpace : 200);\n\t\t\t\t}\n\t\t\t\tsnippet = sentence.trim();\n\t\t\t}\n\t\t\t\n\t\t\t//checking and removing any control characters\n\t\t\tcontrolNonVisibleCharactersMatcher.reset(snippet);\n\t\t\tsnippet = controlNonVisibleCharactersMatcher.replaceAll(\"\");\n\t\t\t\n\t\t\t//String escapedSnippet = StringEscapeUtils.escapeHtml(snippet);\n\t\t\t//if (highlightQueryTerms)\n\t\t\t//\tescapedSnippet = highlight.matcher(escapedSnippet).replaceAll(\"$1<b>$2</b>$3\");\n\t\t\tif (highlightQueryTerms)\n\t\t\t\tsnippet = highlight.matcher(snippet).replaceAll(\"$1<b>$2</b>$3\");\n\t\t\t//else \n\t\t\t//\tsnippet = StringEscapeUtils.escapeHtml(snippet);\n\t\t\t\n\t\t\t//change by Vassilis, 20/09/2006\n\t\t\t//disabling the xml escaping in order to move the data into ![CDATA[ ]]\n\t\t\t//the code was:\n\t\t\t//rs.addMetaItem(\"snippet\", DocAtNumber, StringEscapeUtils.escapeXml(snippet));\n\t\t\t//and now it is:\n\t\t\t//snippet.replaceAll(\"[^\\\\u0009\\\\u000A\\\\u000D\\\\u0020-\\\\uD7FF\\\\uE000-\\\\uFFFD\\\\u10000-\\\\u10FFFF]\",\"\");\n\t\t\trs.addMetaItem(\"snippet\", DocAtNumber, snippet);\n\t\t\t\n\t\t}\n\t\tif (show_title)\n\t\t{\n\t\t\tString title = metadata[2];\n\t\t\t\n\t\t\t//checking and removing any control characters\n\t\t\tcontrolNonVisibleCharactersMatcher.reset(title);\n\t\t\ttitle = controlNonVisibleCharactersMatcher.replaceAll(\"\");\n\t\t\ttitle = (highlightQueryTerms)\n\t\t\t\t ? highlight.matcher(metadata[2]).replaceAll(\"$1<b>$2</b>$3\") \n\t\t\t\t : metadata[2];\n\t\t\t\n\t\t\t\n\t\t\t//String escapedTitle = StringEscapeUtils.escapeHtml(metadata[2]);\n\t\t\t//String title = (highlightQueryTerms)\n\t\t\t//\t\t\t ? highlight.matcher(escapedTitle).replaceAll(\"$1<b>$2</b>$3\") \n\t\t\t//\t\t\t : escapedTitle;\n\t\t\t//String title = (highlightQueryTerms) \n\t\t\t//\t\t? highlight.matcher(metadata[2]).replaceAll(\"$1<b>$2</b>$3\") \n\t\t\t//\t\t: metadata[2];\n\n\t\t\t//change by Vassilis, 20/09/2006\n\t\t\t//disabling the xml escaping in order to move the data into ![CDATA[ ]]\n\t\t\t//the code was:\n\t\t\t//rs.addMetaItem(\"title\", DocAtNumber, StringEscapeUtils.escapeXml(title));\n\t\t\t//and now is:\n\t\t\t//title.replaceAll(\"[^\\\\u0009\\\\u000A\\\\u000D\\\\u0020-\\\\uD7FF\\\\uE000-\\\\uFFFD\\\\u10000-\\\\u10FFFF]\",\"\");\n\t\t\trs.addMetaItem(\"title\", DocAtNumber, title);\n\t\t\t\n\t\t}\n\t\tif (!show_docid_early && show_docid)\n\t\t{\n\t\t\trs.addMetaItem(\"docid\", DocAtNumber, docIndex.getDocumentNumber(DocNo));\n\t\t}\n\t\tif (!show_url_early && show_url)\n\t\t{\n\n\t\t\trs.addMetaItem(\"url\", DocAtNumber, StringEscapeUtils.escapeXml(metadata[0]));\n\t\t}\n\t\t\n\t\treturn FILTER_OK;\n\t}", "public void filterBy(Map<String, List<String>> queryMap) {\n }", "@Test\n public void testFilter() throws Exception {\n for (int i=0; i<10; i++) {\n assertJQ(req(\"q\",\"*:* \"+ i, \"fq\",\"filter(just_to_clear_the_cache) filter(id:10000\" + i + \") filter(id:10001\" + i + \")\")\n ,\"/response/numFound==0\"\n );\n }\n assertU(adoc(\"id\",\"777\"));\n delI(\"777\");\n assertU(commit()); // arg... commit no longer \"commits\" unless there has been a change.\n\n\n final SolrInfoMBean filterCacheStats\n = h.getCore().getInfoRegistry().get(\"filterCache\");\n assertNotNull(filterCacheStats);\n final SolrInfoMBean queryCacheStats\n = h.getCore().getInfoRegistry().get(\"queryResultCache\");\n\n assertNotNull(queryCacheStats);\n\n\n long inserts = (Long) filterCacheStats.getStatistics().get(\"inserts\");\n long hits = (Long) filterCacheStats.getStatistics().get(\"hits\");\n\n assertJQ(req(\"q\",\"doesnotexist filter(id:1) filter(qqq_s:X) filter(abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n inserts+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n assertJQ(req(\"q\",\"doesnotexist2 filter(id:1) filter(qqq_s:X) filter(abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // make sure normal \"fq\" parameters also hit the cache the same way\n assertJQ(req(\"q\",\"doesnotexist3\", \"fq\",\"id:1\", \"fq\", \"qqq_s:X\", \"fq\", \"abcdefg\")\n ,\"/response/numFound==0\"\n );\n\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // try a query deeply nested in a FQ\n assertJQ(req(\"q\",\"*:* doesnotexist4\", \"fq\",\"(id:* +(filter(id:1) filter(qqq_s:X) filter(abcdefg)) )\")\n ,\"/response/numFound==2\"\n );\n\n inserts+=1; // +1 for top level fq\n hits+=3;\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // retry the complex FQ and make sure hashCode/equals works as expected w/ filter queries\n assertJQ(req(\"q\",\"*:* doesnotexist5\", \"fq\",\"(id:* +(filter(id:1) filter(qqq_s:X) filter(abcdefg)) )\")\n ,\"/response/numFound==2\"\n );\n\n hits+=1; // top-level fq should have been found.\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n\n // try nested filter with multiple top-level args (i.e. a boolean query)\n assertJQ(req(\"q\",\"*:* +filter(id:1 filter(qqq_s:X) abcdefg)\")\n ,\"/response/numFound==2\"\n );\n\n hits+=1; // the inner filter\n inserts+=1; // the outer filter\n assertEquals(inserts, ((Long) filterCacheStats.getStatistics().get(\"inserts\")).longValue() );\n assertEquals(hits, ((Long) filterCacheStats.getStatistics().get(\"hits\")).longValue() );\n\n // test the score for a filter, and that default score is 0\n assertJQ(req(\"q\",\"+filter(*:*) +filter(id:1)\", \"fl\",\"id,score\", \"sort\",\"id asc\")\n ,\"/response/docs/[0]/score==0.0\"\n );\n\n assertJQ(req(\"q\",\"+filter(*:*)^=10 +filter(id:1)\", \"fl\",\"id,score\", \"sort\",\"id asc\")\n ,\"/response/docs/[0]/score==10.0\" \n );\n\n }", "TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);", "public void testRange() throws IOException, InvalidGeoException\r\n {\n LgteIndexSearcherWrapper searcher = new LgteIndexSearcherWrapper(path);\r\n\r\n //try find Jorge and Bruno documents last year\r\n // In this case the closest one will be in 2007\r\n String query = \"contents:(Jorge Bruno)\";\r\n\r\n LgteQuery lgteQueryResult1;\r\n LgteQuery lgteQueryResult1and2;\r\n try\r\n {\r\n lgteQueryResult1 = LgteQueryParser.parseQuery(query);\r\n lgteQueryResult1and2 = LgteQueryParser.parseQuery(query);\r\n\r\n MyCalendar c1Aux = new MyCalendar(2005,11,20,9,0,10);\r\n MyCalendar c2Aux = new MyCalendar(2007,1,12,20,45,15);\r\n long dif = c2Aux.getTimeInMillis() - c1Aux.getTimeInMillis();\r\n\r\n lgteQueryResult1.getQueryParams().setTimeMiliseconds(c1Aux.getTimeInMillis());\r\n lgteQueryResult1.getQueryParams().setRadiumMiliseconds(dif -1);\r\n lgteQueryResult1and2.getQueryParams().setTimeMiliseconds(c1Aux.getTimeInMillis());\r\n lgteQueryResult1and2.getQueryParams().setRadiumMiliseconds(dif+1);\r\n }\r\n catch (ParseException e)\r\n {\r\n fail(e.toString());\r\n return;\r\n }\r\n\r\n //Lets use aos Time Sorter to dont worry about distances and stuff like that, he will do the job\r\n TimeDistanceSortSource dsort1 = new TimeDistanceSortSource();\r\n LgteSort sort1 = new LgteSort(new SortField(\"foo\", dsort1));\r\n\r\n //LgteHits give you Documents and time with unecessary lines of boring code\r\n LgteHits lgteHits1;\r\n LgteHits lgteHits1and2;\r\n lgteHits1 = searcher.search(lgteQueryResult1, sort1);\r\n assertTrue(lgteHits1.length() == 1);\r\n\r\n lgteHits1and2 = searcher.search(lgteQueryResult1and2, sort1);\r\n assertTrue(lgteHits1and2.length() == 2);\r\n\r\n\r\n long time1_0 = lgteHits1.doc(0).getTime().getTime();\r\n long time1and2_0 = lgteHits1and2.doc(0).getTime().getTime();\r\n long time1and2_1 = lgteHits1and2.doc(1).getTime().getTime();\r\n assertTrue(time1_0 == new MyCalendar(2005,11,20,9,0,10).getTimeInMillis());\r\n assertTrue(time1and2_0 == new MyCalendar(2005,11,20,9,0,10).getTimeInMillis());\r\n assertTrue(time1and2_1 == new MyCalendar(2007,1,12,20,45,15).getTimeInMillis());\r\n\r\n\r\n searcher.close();\r\n }", "@Override\n public synchronized Long count(String query) {\n long count = 0L;\n String nQuery = normalizeQuery(query);\n Set<String> keys = suggestIndex.getKeys();\n Map index = suggestIndex.getIndex();\n LinkedHashSet<Long> result = new LinkedHashSet<Long>();\n\n logger.debug(\"IN SEARCH: query={}, keys={}\", query, keys);\n\n StringBuilder patternBuilder;\n List<Pattern> patterns = new ArrayList<Pattern>();\n for (String keyPart : nQuery.split(\" \")) {\n patternBuilder = new StringBuilder(\"^(?iu)\");\n patternBuilder.append(ALLOWED_CHARS_REGEXP);\n keyPart = Normalizer.normalize(keyPart, Normalizer.Form.NFD);\n patternBuilder.append(keyPart)\n .append(ALLOWED_CHARS_REGEXP)\n .append('$');\n patterns.add(Pattern.compile(patternBuilder.toString()));\n }\n\n for (String key : keys) {\n for (Pattern pattern : patterns) {\n\n if (pattern.matcher(key).matches()) {\n result.addAll((LinkedHashSet<Long>) index.get(key));\n count += ((LinkedHashSet<Long>) index.get(key)).size();\n }\n }\n }\n return Long.valueOf(result.size());\n }", "public void execFuzzySearchRangeFunc(){\n\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n if(this.searchParam.contains(\":\")==true || this.searchParam.startsWith(\"chr\") == true){\n String chrom = \"\";\n int pstart = -1;\n int pend = -1;\n if(this.searchParam.indexOf(\":\") > -1 ){\n int idex = this.searchParam.indexOf(\":\");\n chrom = this.searchParam.substring(0,idex );\n System.out.println(\"chrom=\"+chrom);\n map.put(\"chrom\",chrom);\n if(this.searchParam.indexOf(\"-\") > -1 ){\n int idex1 = this.searchParam.indexOf(\"-\");\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, idex1));\n pend = Integer.parseInt(this.searchParam.substring(idex1+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n map.put(\"endpos\",pend);\n }else {\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n }\n\n }else if(this.searchParam.startsWith(\"chr\") == true){\n map.put(\"chrom\",this.searchParam);\n\n\n }\n }\n }\n\n int idenfilter = 0;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n idenfilter =1;\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"species\",this.searchSpecies);\n }\n\n if(this.searchTrait != null&& this.searchTrait.equals(\"null\")==false && this.searchTrait.length()>0){\n idenfilter =1;\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"searchTrait\", this.searchTrait) ;\n }\n\n if(this.pvalue != null&& this.pvalue.equals(\"null\")==false && this.pvalue.length()>0){\n idenfilter =1;\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n List<SearchItemBean> searchlist = (List<SearchItemBean>) baseService.findResultList(\"cn.big.gvk.dm.Search.selectRangeBySearch\",map);\n if( searchlist != null ){\n genotypeBeanList = new ArrayList<GenotypeBean>();\n mapGeneBeanList = new ArrayList<MapGeneBean>();\n for(SearchItemBean tmpbean : searchlist){\n if(tmpbean.getItemType() == 1){ //variant\n Map cmp = new HashMap();\n cmp.put(\"genotypeid\",tmpbean.getItemId());\n GenotypeBean tbean = (GenotypeBean) baseService.findObjectByObject(\"cn.big.gvk.dm.Genotype.selectGenotypeByPos\",cmp);\n if(tbean != null ){\n List genotypelist = new ArrayList();\n genotypelist.add(tbean.getGenotypeId()) ;\n\n Map t = new HashMap();\n t.put(\"genotypelist\",genotypelist);\n List<GenotypeAnnotateGeneView> annotateview = baseService.findResultList(\"cn.big.gvk.dm.Genotype.selectGenotypeByList\",t);\n if(annotateview != null && annotateview.size()>0 ){\n //here we need to filter the result\n Map filtermap = new HashMap();\n for(GenotypeAnnotateGeneView tview : annotateview){\n String fkey = tview.getMapGeneId()+\"_\"+tview.getConseqtype();\n if(filtermap.containsKey(fkey) == false){\n filtermap.put(fkey,tview);\n }\n }\n\n if(filtermap.size()>0){\n List<GenotypeAnnotateGeneView> alist = new ArrayList<GenotypeAnnotateGeneView>();\n Iterator it = filtermap.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry entry = (Map.Entry) it.next();\n GenotypeAnnotateGeneView val = (GenotypeAnnotateGeneView) entry.getValue();\n alist.add(val);\n }\n\n tbean.setGenotypeAnnotateGeneView(alist);\n }\n\n\n }\n\n //find association count\n GwasAssociationBean gwas = (GwasAssociationBean) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectAssociationCountByGenotypeid\",tbean.getGenotypeId());\n if(gwas != null){\n tbean.setTraitCount(gwas.getGwasCount());\n }\n\n //find studycount\n Map cmap = new HashMap();\n cmap.put(\"genotypeId\",tbean.getGenotypeId());\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n cmap.put(\"species\",this.searchSpecies);\n }\n\n\n GwasAssociationBean tg_bean1 = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectStudyCountByGenotypeid\",cmap);\n if(tg_bean1 != null ){\n tbean.setStudyCount(tg_bean1.getGwasCount());\n }\n\n genotypeBeanList.add(tbean) ;\n }\n\n\n\n\n }else if(tmpbean.getItemType() == 2){//gene\n\n Map cmp = new HashMap();\n cmp.put(\"gid\",tmpbean.getItemId()) ;\n MapGeneBean mgb = (MapGeneBean) baseService.findObjectByObject(\"cn.big.gvk.dm.MapGene.selectMapGeneCount\",cmp);\n if(mgb != null ){\n Map t = new HashMap();\n t.put(\"gId\",mgb.getGid()) ;\n t.put(\"count\",\"count\");\n\n //trait count\n GwasAssociationView gwas = (GwasAssociationView) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectGwasViewByGeneInfo\",t);\n if(gwas != null){\n mgb.setTraitCount(gwas.getTraitCount());\n }\n\n //study count\n StudyBean study = (StudyBean) baseService.findObjectByObject(\"cn.big.gvk.dm.study.selectStudyByMapGeneId\",t);\n if(study != null ){\n mgb.setStudyCount(study.getStudyCount());\n }\n\n //publication count\n PublicationBean publication = (PublicationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.publication.selectPubByGeneId\",t);\n if (publication != null ){\n mgb.setPublicationCount(publication.getPublicationCount());\n }\n mapGeneBeanList.add(mgb) ;\n\n }\n\n\n }\n }\n }\n StringBuffer sb = new StringBuffer();\n //generate hidden html table and then use tableExport.js export\n if(genotypeBeanList != null && genotypeBeanList.size()>0){\n for(GenotypeBean genotype: genotypeBeanList){\n sb.append(genotype.getVarId()).append(\"\\t\").append(genotype.getChrom()).append(\":\")\n .append(genotype.getStartPos()).append(\"\\t\").append(genotype.getTraitCount())\n .append(\"\\t\").append(genotype.getStudyCount()).append(\"\\n\");\n }\n }\n\n if(mapGeneBeanList != null && mapGeneBeanList.size()>0){\n for(MapGeneBean mapgene: mapGeneBeanList){\n sb.append(mapgene.getMapGeneId()).append(\"\\t\").append(mapgene.getMapGeneChrom()).append(\":\")\n .append(mapgene.getMapGeneStart()).append(\"-\").append(mapgene.getMapGeneEnd()).append(\"\\t\").append(mapgene.getTraitCount()).append(\"\\t\")\n .append(mapgene.getStudyCount()).append(\"\\n\");\n }\n }\n\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }", "private void filterText(final char[] buffer, final int offset, final int len, final int line, final int col) {\n if (this.filteredTextBuffer == null) {\n this.filteredTextBuffer = new char[Math.max(256, len)];\n this.filteredTextSize = 0;\n this.filteredTextLocator = new int[2];\n } else if (this.filteredTextSize + len > this.filteredTextBuffer.length) {\n final char[] newFilteredTextBuffer =\n new char[Math.max(this.filteredTextBuffer.length + 256, this.filteredTextSize + len)];\n System.arraycopy(this.filteredTextBuffer, 0, newFilteredTextBuffer, 0, this.filteredTextSize);\n this.filteredTextBuffer = newFilteredTextBuffer;\n }\n\n System.arraycopy(buffer, offset, this.filteredTextBuffer, this.filteredTextSize, len);\n this.filteredTextSize += len;\n\n this.filteredTextLocator[0] = line;\n this.filteredTextLocator[1] = col;\n\n }", "StandardFilterBuilder standardFilter(int count);", "SpellResponse spellQuery(SearchRequest request, Map<SearchParam, String> params);", "@Test\n public void testCase1 () throws IOException {\n sq = new SpanSegmentQuery(new SpanTermQuery(new Term(\"base\", \"s:b\")),\n new SpanTermQuery(new Term(\"base\", \"s:c\")));\n\n kr = ki.search(sq, (short) 10);\n ki.close();\n\n assertEquals(\"totalResults\", kr.getTotalResults(), 3);\n assertEquals(\"StartPos (0)\", 1, kr.getMatch(0).startPos);\n assertEquals(\"EndPos (0)\", 2, kr.getMatch(0).endPos);\n assertEquals(\"StartPos (1)\", 4, kr.getMatch(1).startPos);\n assertEquals(\"EndPos (1)\", 5, kr.getMatch(1).endPos);\n }", "public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }", "private static SolrQuery getSolrQuery(OrganizationSearch4Solr request, int start, int end) {\n\t\tSolrQuery query = new SolrQuery();\r\n\t\tquery.setHighlight(true).setStart(start);\r\n query.setTermsLimit(500);\r\n query.setRows(20000);\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"wt\", \"json\");\r\n map.put(\"indent\", \"true\");\r\n StringBuilder queryPrams = new StringBuilder();\r\n queryPrams.append(\"{!q.op=OR}+isOutOfBusiness:false AND \");\r\n if (!StringUtils.isEmpty(request.getOrgId())) {\r\n \tqueryPrams.append(\"organizationId:\" + request.getOrgId() + \" AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getSiteinstanceId())) {\r\n \tqueryPrams.append(\"siteInstanceId:\" + request.getSiteinstanceId() + \" AND \");\r\n }\r\n List<String> orgIdList = request.getOrgIdList();\r\n if (orgIdList != null && orgIdList.size() > 0) {\r\n \tString idsString = \"+organizationId:(\";\r\n \tfor (String orgId : orgIdList) {\r\n \tidsString += orgId + \" \";\r\n\t\t\t}\r\n \tidsString = idsString.substring(0, idsString.length()-1) + \")\";\r\n \tqueryPrams.append(idsString + \" AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getTaxID())) {\r\n \tqueryPrams.append(\"taxIds:(\\\"\" + request.getTaxID() + \"\\\") AND \");\r\n }\r\n String orgName = request.getOrgName();\r\n if (!StringUtils.isEmpty(orgName)) {\r\n \torgName = \"(\"+ orgName +\")\";\r\n \t\t// LATIN\r\n \t\tqueryPrams.append(\"(+(organizationExtendedName:\" + orgName + \" \");\r\n \t\t// NOLATIN\r\n \t\tqueryPrams.append(\"organizationNonLatinExtendedName:\" + orgName + \" \");\r\n \t\t// ReportingName\r\n \t\tqueryPrams.append(\"organizationReportingName:\" + orgName + \" \");\r\n \t\t// LegalName\r\n \t\tqueryPrams.append(\"organizationLegalName:\" + orgName + \" \");\r\n \t\t// tradeName\r\n \t\tqueryPrams.append(\"tradeStyleNames:\" + orgName + \")) AND \");\r\n }\r\n String cityName = request.getCityName();\r\n if (!StringUtils.isEmpty(cityName)) {\r\n \t\t// LATIN\r\n \t\tqueryPrams.append(\"(+(latinCity:(\\\"\" + cityName + \"\\\") \");\r\n \t\t// NOLATIN\r\n \t\tqueryPrams.append(\"nonlatinCity:(\\\"\" + cityName + \"\\\"))) AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getPostalCode())) {\r\n queryPrams.append(\"postalCode:(\" + request.getPostalCode() + \"*) AND \");\r\n }\r\n if (!StringUtils.isEmpty(request.getCountryCode())) {\r\n queryPrams.append(\"countryCode:(\" + request.getCountryCode() + \") AND \");\r\n }\r\n String state = request.getStateProvinceName();\r\n if (!StringUtils.isEmpty(state)) {\r\n \tif(state.matches(\"\\\\p{ASCII}+\")){\r\n \t\t// LATIN\r\n queryPrams.append(\"state:(\\\"\" + state + \"\\\") AND \");\r\n \t}else{\r\n \t\t// NOLATIN\r\n queryPrams.append(\"state:(\\\"\" + state + \"\\\") AND \");\r\n \t}\r\n }\r\n\r\n queryPrams.append(\" *:* \");\r\n \r\n SolrParams params = new MapSolrParams(map);\r\n \r\n query.add(params);\r\n query.setQuery(queryPrams.toString());\r\n\t\treturn query;\r\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testSearchQuery04() {\n ISearchQuery query = new SearchQuery(null, null, null, null);\n SearchOption option = new SearchOption();\n option.setStrategy(strategy);\n SearchResult result = searchService.search(query, option, deployContext);\n Assert.assertEquals(8, result.getResultSize());\n }", "public /*TreeMap<String, Float>*/void getTopnTermsOverlapWithQuery() throws IOException, ParseException{\n\t\tString outputfile = \"./output/score/test3.txt\";\n\n\t\tFileOutputStream out = new FileOutputStream(outputfile);\n\t\tPrintStream ps = new PrintStream(out);\n\t\t/*-------------------------------------------------------------------------------*/\n\n\t\tTreeMap<String,Float> termsscoressorted = null;\n\t\tCollectionReader reader = new CollectionReader(indexDir); \n\t\tIndexReader ir = reader.getIndexReader();\t\t\n\n\t\tTopicsInMemory topics = new TopicsInMemory(\"data/CLEF-IP-2010/PAC_test/topics/PAC_topics-test2.xml\"/*omit-PAC-1094.xml\"*/);\n\t\tfor(Map.Entry<String, PatentDocument> topic : topics.getTopics().entrySet()){\n\t\t\tString qUcid = topic.getValue().getUcid();\n\t\t\tString queryid = topic.getKey();\n\t\t\tString queryName = topic.getKey() + \"_\" + topic.getValue().getUcid();\n\t\t\tString queryfile = topic.getKey() + \"_\" + topic.getValue().getUcid() + \".xml\";\n\n\t\t\t/*System.out.println(\"=========================================\");\n\t\t\tSystem.out.println(queryName);\n\t\t\tSystem.out.println(\"=========================================\");*/\n\t\t\t/*int docid = reader.getDocId(\"UN-EP-0663270\", PatentDocument.FileName);\n\t\t\tir.getTermVector(docid, field) getTermVectors(b);*/\n\n\t\t\tEvaluateResults er = new EvaluateResults();\n\t\t\tArrayList<String> tps = er.evaluatePatents(queryid, \"TP\");\n\t\t\tArrayList<String> fps = er.evaluatePatents(queryid, \"FP\");\n\t\t\tHashMap<String, Float> /*TFreqs*/ termsscores = new HashMap<>();\n\n\n\t\t\t/*--------------------------------- Query Words -------------------------------*/\n\t\t\t//\t\t\tHashMap<String, Integer> query_termsfreqspair = reader.gettermfreqpair(qUcid, PatentDocument.Description);\n\t\t\tHashSet<String> query_terms = reader.getDocTerms(qUcid, PatentDocument.Description);\n\t\t\t//\t\t\tSystem.out.println(query_termsfreqspair.size() +\"\\t\"+ query_termsfreqspair);\n//\t\t\tSystem.out.println(query_terms.size() + \"\\t\" + query_terms);\n\t\t\t/*-----------------------------------------------------------------------------*/\t\t\t\n\n\n\t\t\t//\t\t\tSystem.out.println(\"-----TPs----\");\n\t\t\tfor (String tp : tps) {\n\t\t\t\t/*System.out.println(\"---------\");\n\t\t\t\tSystem.out.println(tp);*/\n\t\t\t\tHashMap<String, Integer> termsfreqsTP = reader.gettermfreqpairAllsecs(\"UN-\" + tp);\n\n\t\t\t\tfor(Entry<String, Integer> tfTP:termsfreqsTP.entrySet()){\n\t\t\t\t\tif(termsscores.containsKey(tfTP.getKey())){\n\t\t\t\t\t\ttermsscores.put(tfTP.getKey(), termsscores.get(tfTP.getKey()) + (float)tfTP.getValue()/tps.size());\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//\t\t\t\t\t\tfloat test = (float)t.getValue()/tps.size();\n\t\t\t\t\t\t//\t\t\t\t\t\tSystem.out.println(test);\n\t\t\t\t\t\ttermsscores.put(tfTP.getKey(), (float)tfTP.getValue()/tps.size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//\t\t\t\tSystem.out.println(termsscores.size() + \" \" + termsscores);\t\t\t\t\t\n\t\t\t}\n\n\t\t\t/*System.out.println();\n\t\t\tSystem.out.println(\"-----FNs----\");*/\n\t\t\tfor (String fp : fps) {\n\t\t\t\t/*System.out.println(\"---------\");\n\t\t\t\tSystem.out.println(fp);*/\n\t\t\t\tHashMap<String, Integer> termsfreqsFP = reader.gettermfreqpairAllsecs(\"UN-\" + fp);\n\n\t\t\t\tfor(Entry<String, Integer> t:termsfreqsFP.entrySet()){\n\t\t\t\t\tif(termsscores.containsKey(t.getKey())){\n\t\t\t\t\t\ttermsscores.put(t.getKey(), termsscores.get(t.getKey()) - (float)t.getValue()/fps.size());\n\t\t\t\t\t}else{\t\t\t\t\t\t\n\t\t\t\t\t\ttermsscores.put(t.getKey(), -(float)t.getValue()/fps.size());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//\t\t\t\tSystem.out.println(TFreqs.size() + \" \" + TFreqs);\n\t\t\t}\n\t\t\t//\t\t\tSystem.out.println(termsscores.size() + \" \" + termsscores);\n\t\t\tValueComparator bvc = new ValueComparator(termsscores);\n\t\t\ttermsscoressorted = new TreeMap<String,Float>(bvc);\t\t\t\n\t\t\ttermsscoressorted.putAll(termsscores);\n\t\t\tSystem.out.println(queryid + \"\\t\"+ termsscoressorted.size() + \"\\t\" + termsscoressorted/*.keySet()*/);\n\t\t\tint overlap = 0;\n\t\t\tint i = 0;\n\t\t\tfor(Entry<String, Float> scoresorted:termsscoressorted.entrySet()){\n\t\t\t\ti++;\n\t\t\t\tif(i<=100){\n\t\t\t\t\tif(query_terms.contains(scoresorted.getKey())){\n\t\t\t\t\t\toverlap++;\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t\tSystem.out.println(queryName + \"\\t\"+overlap);\n//\t\t\tps.println(queryName + \"\\t\"+overlap);\n\t\t}\n\t}", "public static SearchQuery buildFullTextSearchMatchQuery_4(String searchOriginData, PageRequest pageRequest) {\n String[] searchDataArray = searchOriginData.split(OR_SEPARATOR);\n BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();\n boolQueryBuilder.must(QueryBuilders.termQuery(Constants.DB_FIELD_READ, false));\n if (searchDataArray.length == 1) {\n boolQueryBuilder.should(QueryBuilders.matchQuery(Constants.DB_FIELD_CONTENT, searchOriginData.trim())\n .operator(MatchQueryBuilder.Operator.AND));\n } else {\n for (String searchData : searchDataArray) {\n QueryBuilder matchQuery = QueryBuilders.matchQuery(Constants.DB_FIELD_CONTENT, searchData.trim())\n .operator(MatchQueryBuilder.Operator.AND);\n boolQueryBuilder.should(matchQuery);\n }\n }\n\n FunctionScoreQueryBuilder functionBuilder = QueryBuilders.functionScoreQuery(boolQueryBuilder);\n functionBuilder.add(ScoreFunctionBuilders\n .exponentialDecayFunction(Constants.DB_FIELD_RECEIVED_DATE, DEFAULT_DECAY_FOR_RECEIVED_DATE)\n .setDecay(0.5));\n\n return new NativeSearchQueryBuilder().withQuery(functionBuilder).withPageable(pageRequest).build();\n }", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n protected FilterResults performFiltering(CharSequence prefix) {\n FilterResults results = new FilterResults();\n\n // If the adapter array is empty, check the actual items array and use it\n if (mItems == null) {\n mItems = new ArrayList<String>(mItemsArray);\n }\n\n // No prefix is sent to filter by so we're going to send back the original array\n if (prefix == null || prefix.length() == 0) {\n results.values = mItemsArray;\n results.count = mItemsArray.size();\n } else {\n // Compare lower case strings\n String prefixString = prefix.toString().toLowerCase(Locale.getDefault());\n\n // Local to here so we're not changing actual array\n final ArrayList<String> items = mItems;\n final int count = items.size();\n final ArrayList<String> newItems = new ArrayList<String>(count);\n\n for (int i = 0; i < count; i++) {\n final String item = items.get(i);\n String item_compare = item.toLowerCase(Locale.getDefault());\n\n // Match the strings using the filter specified\n if (filterType.equals(match_substring)\n && (item_compare.startsWith(prefixString) || item_compare\n .contains(prefixString))) {\n newItems.add(item);\n } else if (filterType.equals(match_prefix)\n && item_compare.startsWith(prefixString)) {\n newItems.add(item);\n } else if (filterType.equals(match_chars)) {\n char[] toMatch = prefixString.toCharArray();\n\n boolean matches = true;\n for (int j = 0; j < toMatch.length; j++) {\n int index = item_compare.indexOf(toMatch[j]);\n if (index > -1) {\n item_compare =\n item_compare.substring(0, index)\n + item_compare.substring(index + 1);\n } else {\n matches = false;\n break;\n }\n }\n\n if (matches) {\n newItems.add(item);\n }\n\n } else {\n // Default to substring\n if (item_compare.startsWith(prefixString)\n || item_compare.contains(prefixString)) {\n newItems.add(item);\n }\n }\n }\n\n // Set and return\n results.values = newItems;\n results.count = newItems.size();\n }\n\n return results;\n }", "String buildTermQuery(String field, String val, int from, int size,\n\t\t\tDomeoPermissions permissions3) {\n\t\tStringBuffer sb = new StringBuffer(\"{ \");\n\n\t\t// Check for starting position (from) and max results (size)\n\t\tif ((from > -1) && (size > -1)) {\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \\\"size\\\" : \" + size + \", \");\n\t\t} else if (from > -1) { // from only, no size\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \");\n\t\t} else if (size > -1) { // size only, no from\n\t\t\tsb.append(\"\\\"size\\\" : \" + size + \", \");\n\t\t}\n\n\t\tif (permissions3 == null) {\n\t\t\tsb.append(\"\\\"fields\\\" : [\\\"_id\\\"], \\\"query\\\" : { \\\"term\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": \\\"\" + val + \"\\\" } } } \");\n\t\t} else {\n\t\t\tString filter = permissions3.buildQueryFilter();\n\t\t\tsb.append(\"\\\"fields\\\" : [\\\"_id\\\"], \\\"query\\\" : { \\\"term\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": \\\"\" + val + \"\\\" } } \" + filter + \" } \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void throttleFilter() throws InvalidQueryException {\n }", "public Set<String> queryTermsConsidered(Query query, double idf_threshold){\n double idf, nDocs = this.docIDs.size();\n String term;\n\n Set<String> termsToConsider = new HashSet<String>();\n\n Iterator<String> it = query.terms.iterator();\n while(it.hasNext()){\n term = it.next();\n idf = -1;\n if(this.idfMap.containsKey(term))\n idf = Math.log(nDocs/new Double(this.idfMap.get(term)));\n if (idf >= idf_threshold){\n termsToConsider.add(term);\n }\n /*else{\n System.err.println(term + \" not considered since idf = \" + idf);\n }*/\n }\n\n return termsToConsider;\n\n }", "CampusSearchQuery generateQuery();", "public void exechbase(List<String> hilbertresults, double lon1,double lon2,double lat1,double lat2) throws IOException {\n\t\tScan scan = new Scan();\r\n Table table = con.getTable(TableName.valueOf(tname));\r\n FilterList allFilters = new FilterList(FilterList.Operator.MUST_PASS_ALL);\r\n\t\t//String[] hilbertresultsindex = hilbertresults.split(\",\");\r\n\t\t\r\n\t\tfor(int i =0;i<(hilbertresults.size());i++) {\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"hilbertindex\"), CompareOperator.EQUAL,Bytes.toBytes(hilbertresults.get(i))));\r\n }\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lon\"), CompareOperator.GREATER_OR_EQUAL,Bytes.toBytes(lon1)));\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lon\"), CompareOperator.LESS_OR_EQUAL,Bytes.toBytes(lon2)));\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lat\"), CompareOperator.LESS_OR_EQUAL,Bytes.toBytes(lat1)));\r\n allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"lat\"), CompareOperator.GREATER_OR_EQUAL,Bytes.toBytes(lon2)));\r\n //allFilters.addFilter(new SingleColumnValueFilter(Bytes.toBytes(\"data\"), Bytes.toBytes(\"groupid\"), CompareOperator.LESS_OR_EQUAL,Bytes.toBytes(30000)));\r\n\r\n\t\tscan.setFilter(allFilters);\r\n //scan.addFamily(Bytes.toBytes(\"data\"));\r\n \r\n ResultScanner scanner = table.getScanner(scan);\r\n int c=0;\r\n long t1 = System.currentTimeMillis();\r\n for (Result result = scanner.next(); result != null; result = scanner.next()) {\r\n //System.out.println(\"Found row : \" + result);\r\n c++;\r\n }\r\n System.out.println(\"Number of rows : \" + c);\r\n System.out.println(\"Calculation Time: \" + (System.currentTimeMillis() - t1));\r\n scanner.close();\r\n table.close();\r\n con.close();\r\n\t\t\r\n\t}", "@Test\n\tpublic void testSearchIteratorDenormalizedFilter(){\n\t\t\n\t\tRegionQueryPart regionQueryPart = new RegionQueryPart();\n\t\tregionQueryPart.setRegion(new String[]{\"AB\",\"bc\"});\n\t\t//allof should be read : give me all the native and ephemere of AB and BC\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ALL_OF);\n\t\t\n\t\tIterator<Map<String,Object>> taxonIt = taxonDAO.searchIteratorDenormalized(-1, null, null, regionQueryPart, NATIVE_EPHEMERE_STATUSES, null, false, null);\n\t\tassertTrue(taxonIt.hasNext());\n\t\t\n\t\tList<String> mockTaxonNameList = extractMockTaxonNameFromMap(taxonIt);\n\t\tassertTrue(mockTaxonNameList.containsAll(Arrays.asList(new String[]{MOCK1_AUTHOR,MOCK3_AUTHOR})));\n\t\tassertFalse(mockTaxonNameList.contains(MOCK2_AUTHOR));\n\t\t\n\t\t//anyof should be read : give me any of the native and ephemere of AB or BC\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ANY_OF);\n\t\ttaxonIt = taxonDAO.searchIteratorDenormalized(-1, null, -1, regionQueryPart, NATIVE_EPHEMERE_STATUSES, null, false, null);\n\t\tassertTrue(extractMockTaxonNameFromMap(taxonIt).containsAll(Arrays.asList(new String[]{MOCK1_AUTHOR,MOCK2_AUTHOR,MOCK3_AUTHOR})));\n\t\t\n\t\t//only_in should be read : give me the native and ephemere that are only native or ephemere in AB or BC\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ONLY_IN);\n\t\ttaxonIt = taxonDAO.searchIteratorDenormalized(-1, null, -1, regionQueryPart, NATIVE_EPHEMERE_STATUSES, null, false, null);\n\t\tmockTaxonNameList = extractMockTaxonNameFromMap(taxonIt);\n\t\tassertTrue(mockTaxonNameList.containsAll(Arrays.asList(new String[]{MOCK3_AUTHOR, MOCK5_AUTHOR})));\n\t\tassertEquals(2, mockTaxonNameList.size());\n\t\t\n\t\t//only_in and setSearchOnlyInCanada should be read : give me the native and ephemere that are only native or ephemere in AB or BC (ignoring Greenland and St-Pierre)\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ONLY_IN);\n\t\tregionQueryPart.setSearchOnlyInCanada(true);\n\t\ttaxonIt = taxonDAO.searchIteratorDenormalized(-1, null, -1, regionQueryPart, NATIVE_EPHEMERE_STATUSES, null, false, null);\n\t\tmockTaxonNameList = extractMockTaxonNameFromMap(taxonIt);\n\t\tassertTrue(mockTaxonNameList.containsAll(Arrays.asList(new String[]{MOCK3_AUTHOR, MOCK4_AUTHOR, MOCK5_AUTHOR, MOCK6_AUTHOR, MOCK7_AUTHOR})));\n\t\tassertEquals(5, mockTaxonNameList.size());\n\t\t\n\t\t//all of, only in and setSearchOnlyInCanada should be read : give me the native,ephemere that are only native or ephemere in AB and BC (ignoring Greenland and St-Pierre status)\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ALL_OF_ONLY_IN);\n\t\tregionQueryPart.setSearchOnlyInCanada(true);\n\t\ttaxonIt = taxonDAO.searchIteratorDenormalized(-1, null, -1, regionQueryPart, NATIVE_EPHEMERE_STATUSES, null, false, null);\n\t\tmockTaxonNameList = extractMockTaxonNameFromMap(taxonIt);\n\t\tassertTrue(mockTaxonNameList.containsAll(Arrays.asList(new String[]{MOCK3_AUTHOR, MOCK4_AUTHOR, MOCK5_AUTHOR})));\n\t\tassertEquals(3, mockTaxonNameList.size());\n\t\t\n\t\t//all of, only in should be read : give me the native,ephemere that are only native or ephemere in AB and BC (including Greenland and St-Pierre status)\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ALL_OF_ONLY_IN);\n\t\tregionQueryPart.setSearchOnlyInCanada(false);\n\t\ttaxonIt = taxonDAO.searchIteratorDenormalized(-1, null, -1, regionQueryPart, NATIVE_EPHEMERE_STATUSES, null, false, null);\n\t\tmockTaxonNameList = extractMockTaxonNameFromMap(taxonIt);\n\t\tassertTrue(mockTaxonNameList.containsAll(Arrays.asList(new String[]{MOCK3_AUTHOR, MOCK5_AUTHOR})));\n\t\tassertEquals(2, mockTaxonNameList.size());\n\t\t\n\t\t//test taxonid filter\n\t\tregionQueryPart.setRegionSelector(RegionSelector.ALL_OF);\n\t\ttaxonIt = taxonDAO.searchIteratorDenormalized(-1, null, 1, regionQueryPart, NATIVE_EPHEMERE_STATUSES, null, false, null);\n\t\tmockTaxonNameList = extractMockTaxonNameFromMap(taxonIt);\n\t\tassertTrue(mockTaxonNameList.containsAll(Arrays.asList(new String[]{MOCK1_AUTHOR})));\n\t}", "public IndexSearcher longQueryExpansion(String indexDir, String queriesFile, PrintWriter outputWriter, Debug debug, String similarity, Analyzer analyzer) throws IOException, ParseException {\t\t\n\t\t\n\t\t//Welcome to shortQueries\n\t\tSystem.out.println(\"Set requests to LONG QUERIES EXPANSION\");\n\t\t\n\t\t//Create IndexReader and Searcher\n\t\tIndexReader reader = DirectoryReader.open(FSDirectory.open( new File(indexDir).toPath()));\t\t//Creating an index reader\n\t\tIndexSearcher searcher = new IndexSearcher(reader);\t\t\t\t\t\t\t\t\t\t\t\t//Create an index searcher\n\t\t\n\t\t//Set similarity measure\n\t\tsearcher = new SetSimilarity().SetSimilaritySearcher(searcher, similarity);\n\t\t\n\t\t//Read queries from file\n\t\t\tString[] queries = Search.readQueriesFile(queriesFile);\n\t\t\t\n\t\t\tfor (int i=0; i < queries.length; i++ ){ //for all queries\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//Parse Multiple fields Query\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tString str = queries[i];\t\t\t\t//take all queries\n\t\t\t\t\tString[] parts = str.split(\"#\", 3);\t\t//split them in three\n\t\t\t\t\t//String num = parts[0];\t\t\t\t\t//part 1 is number\n\t\t\t\t\tString title = parts[1];\t\t\t\t//part 2 is title\n\t\t\t\t\tString desc = parts[2];\t\t\t\t\t//part 3 is description\n\t\t\t\t\tString num = Integer.toString(i + 1);\t//(part 1 is number ) other option for queyrid\n\t\t\t\t\tSystem.out.println(\"Query number: \" + num);\n\t\t\t\t\tSystem.out.println(\"Title of query: \" + title); \n\t\t\t\t\tSystem.out.println(\"Description of query: \" + desc);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Title query\n\t\t\t\t\tQueryParser titleQP = new QueryParser(\"contents\", analyzer);\t\t\t\t//Built QueryParser\n\t\t\t\t\t\n\t\t\t\t\tString newTitle = title.substring(3, title.length());\t//Strip numbers from title\n\t\t\t\t\tQuery titleQuery = titleQP.parse(newTitle); \t\t\t\t\t\t\t\t\t//Parse titles\n\t\t\t\t\t//Desc query\n\t\t\t\t\tQueryParser descQP = new QueryParser (\"contents\", analyzer);\t\t\t\t//Build QueryParser\n\t\t\t\t\tQuery descQuery = descQP.parse(desc);\t\t\t\t\t\t\t\t\t\t//Parse descriptions\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Final Query\n\t\t\t\t\tBuilder booleanQuery = new BooleanQuery.Builder();\n\t\t\t\t\tbooleanQuery.add(titleQuery, BooleanClause.Occur.SHOULD);\n\t\t\t\t\tbooleanQuery.add(descQuery, BooleanClause.Occur.SHOULD);\n\t\t\t\t\tQuery q = booleanQuery.build();\n\t\t\t\t\tSearch.displayQuery(q);\n\t\t\t\t\t\n\t\t\t\t\t//Search\n\t\t\t\t\tTopScoreDocCollector collector = TopScoreDocCollector.create(1000);\t\t\t\t\t\t\t\t//Create a TopScore Collector\n\t\t\t\t\tsearcher.search(q, collector);\t\n\t\t\t\t\t\n\t\t\t\t\t//Print results\n\t\t\t\t\t//displayResults(searcher, collector);\n\t\t\t\t\t\n\t\t\t\t\t//Output results to file\n\t\t\t\t\tSearch.outputResults(searcher, collector, outputWriter, num);\n\t\t\t\t\t\n\t\t\t\t}//end try\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Parse exception in query #\" + i);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}//end catch\n\t\t\t\n\t\t}//end for\n\t\t\t//Close index reader\n\t\t\toutputWriter.close();\n\t\t\treader.close();\n\t\t\treturn searcher;\n\t\t\t\n\t}", "@Override\n\tpublic SuccessMessage search(String kw, int size, int offset) {\n\t\tthrow new I18nMessageException(\"502\");\n\t}", "@Override\n public void setVisibleLength(int length) {}", "@Override\n public boolean onQueryTextSubmit(String query) {\n machineAdapter.getFilter().filter(query);\n return false;\n }", "public void splitQuery(){\n for (int i=0;i<stemmed_query.size();i++){\n String stemmed_term = stemmed_query.get(i);\n for (int j=0;j<num_slave_client_threads;j++){\n if (stemmed_term.compareTo(ServerThread.start_terms[j]) >= 0 && stemmed_term.compareTo(ServerThread.end_terms[j]) <= 0){\n slave_queries.set(j, slave_queries.get(j)+\" \"+stemmed_term);\n break;\n }\n }\n }\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n String searchText = constraint.toString().toLowerCase();\n\n List<MapDataModel> filteredList = new ArrayList<>();\n\n if(searchText.isEmpty() || searchText.length() == 0){\n filteredList.addAll(doctorslist);\n }else{\n for (MapDataModel doctorlist: doctorslist){\n\n if (doctorlist.getDoctorname().toLowerCase().contains(searchText)){\n filteredList.add(doctorlist);\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "@Test\n\tpublic void testSearchWithLargeMinLength() throws Exception {\n\t\tdialog = getDialog();\n\t\tsetMinStringFieldValue(dialog, 100);\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\ttoggleDefinedStateButtons(provider, true, true, true, true);\n\t\twaitForTableModel(model);\n\n\t\tassertRowCount(model, 0);\n\t}", "private void addQueries(String query){\n ArrayList <String> idsFullSet = new ArrayList <String>(searchIDs);\n while(idsFullSet.size() > 0){\n ArrayList <String> idsSmallSet = new ArrayList <String>(); \n if(debugMode) {\n System.out.println(\"\\t Pmids not used in query available : \" + idsFullSet.size());\n }\n idsSmallSet.addAll(idsFullSet.subList(0,Math.min(getSearchIdsLimit(), idsFullSet.size())));\n idsFullSet.removeAll(idsSmallSet);\n String idsConstrain =\"\";\n idsConstrain = idsConstrain(idsSmallSet);\n addQuery(query,idsConstrain);\n }\n }", "@Test\n public void testCase2 () throws IOException {\n //\t\tlog.trace(\"Testcase2\");\n sq = new SpanSegmentQuery(new SpanTermQuery(new Term(\"base\", \"s:a\")),\n new SpanTermQuery(new Term(\"base\", \"s:b\")));\n\n kr = ki.search(sq, (short) 10);\n ki.close();\n\n assertEquals(\"totalResults\", kr.getTotalResults(), 3);\n // Match #0\n assertEquals(\"doc-number\", 1, kr.getMatch(0).getLocalDocID());\n assertEquals(\"StartPos\", 1, kr.getMatch(0).startPos);\n assertEquals(\"EndPos\", 2, kr.getMatch(0).endPos);\n // Match #2\n assertEquals(\"doc-number\", 2, kr.getMatch(2).getLocalDocID());\n assertEquals(\"StartPos\", 2, kr.getMatch(2).startPos);\n assertEquals(\"EndPos\", 3, kr.getMatch(2).endPos);\n }", "@Override\r\n\t\t\tpublic double matchingItems(Query query, Set<Document> documents,\r\n\t\t\t\t\tint docsPerQuery) {\n\t\t\t\treturn 0;\r\n\t\t\t}", "private String sanitizeQuery(String query) {\n if (query.length() >= MAX_ALLOWED_SQL_CHARACTERS) {\n throw new TooLongQueryError(query.length());\n }\n return query;\n }", "public HashMap<String, Double> search(String query) {\n // ===================================================\n // 1. Fetch all inverted lists corresponding to terms\n // in the query.\n // ===================================================\n String[] terms = query.split(\" \");\n HashMap<String, Integer> qf = new HashMap<String, Integer>();\n // Calculate term frequencies in the query\n for (String term : terms) {\n if (qf.containsKey(term))\n qf.put(term, qf.get(term) + 1);\n else\n qf.put(term, 1);\n }\n HashMap<String, Double> docScore = new HashMap<String, Double>();\n for (Entry<String, Integer> termEntry : qf.entrySet()) {\n String term = termEntry.getKey();\n int qfi = termEntry.getValue();\n\n // ===================================================\n // 2. Compute BM25 scores for documents in the lists.\n // Make a score list for documents in the inverted\n // lists. Assume that no relevance information is \n // available. For parameters, use k1=1.2, b=0.75, \n // k2=100.\n // ===================================================\n double k1 = 1.2;\n double b = 0.75;\n double k2 = 100;\n int ni = invIndex.get(term).size();\n\n\n for (Entry<String, IndexEntry> invListEntry : invIndex.get(term).entrySet()) {\n String docID = invListEntry.getKey();\n double bm25Score;\n if (docScore.containsKey(docID))\n bm25Score = docScore.get(docID);\n else\n bm25Score = 0;\n\n // length of the document\n int dl = docStat.get(docID);\n // frequency of the term in the document\n int fi = invListEntry.getValue().getTf();\n double K = k1 * ((1 - b) + b * ((double) dl / avdl));\n\n // ===================================================\n // 3. Accumulate scores for each term in a query\n // on the score list.\n // ===================================================\n bm25Score += Math.log((N - ni + 0.5) / (ni + 0.5))\n * (((k1 + 1) * fi * (k2 + 1) * qfi) / ((K + fi) * (k2 + qfi)));\n docScore.put(docID, bm25Score);\n }\n }\n\n return docScore;\n }", "private int getOutOfPlaceDistance(Map<Integer, LanguageEntry> query, Map<Integer, LanguageEntry> subject) {\r\n\t\tint distance = 0;\r\n\t\t\r\n\t\tSet<LanguageEntry> les = new TreeSet<>(query.values());\t\t\r\n\t\tfor (LanguageEntry q : les) {\r\n\t\t\tLanguageEntry s = subject.get(q.getKmer());\r\n\t\t\tif (s == null) {\r\n\t\t\t\tdistance += subject.size() + 1;\r\n\t\t\t}else {\r\n\t\t\t\tdistance += s.getRank() - q.getRank();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn distance;\r\n\t}", "public void searchInRegion(final String[] toSearch, final int limit) throws IOException, ParseException {\n final IndexSearcher indexSearcher = new IndexSearcher(reader);\n\n BooleanQuery bq = new BooleanQuery();\n\n BooleanQuery bq1 = new BooleanQuery();\n final QueryParser queryParser = new QueryParser(\"region\", new RussianAnalyzer());\n\n for(int i = 0; i < toSearch.length; i++) {\n\n final Query query = queryParser.parse(toSearch[i]);\n bq1.add((query), BooleanClause.Occur.SHOULD);\n\n System.out.println(toSearch[i]);\n\n }\n\n bq.add((bq1), BooleanClause.Occur.MUST);\n\n final QueryParser queryParser1 = new QueryParser(\"title\", new RussianAnalyzer());\n final Query query = queryParser1.parse(\"Тима\");\n bq.add((query), BooleanClause.Occur.MUST);\n\n Query q2 = new ConstantScoreQuery(bq);\n\n final TopDocs search = indexSearcher.search(q2, limit);\n final ScoreDoc[] hits = search.scoreDocs;\n showHits(hits);\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n if (newText.length() >= 2) {\n Intent intent = new Intent(ACTION_QUERY_CHANGED);\n intent.putExtra(\"query\", newText);\n LocalBroadcastManager.getInstance(SearchQueryActivity.this).sendBroadcast(intent);\n }\n return false;\n }", "@Override\n public boolean onQueryTextChange(String query) {\n filterList(query);\n return false;\n }", "public void runLengthEncodeView(final int x_center, final int y_center, final int width_from_center,\n final int height_from_center, ArrayList<Character> unchanged_characters, ArrayList<Short> frequencies) {\n if (unchanged_characters.isEmpty() && frequencies.isEmpty()) {\n short length = 1;\n int array_index = 0;\n final int x_start = x_center - width_from_center;\n final int y_start = y_center - height_from_center;\n char first = this.getTileRepresentation(x_start, y_start);\n for (int y = y_start; y <= y_center + height_from_center; ++y) {\n for (int x = x_start; x <= x_center + width_from_center; ++x) {\n if (x == x_start && y == y_start) {\n ++x; // you have to be one after the first tile.\n }\n if (this.getTileRepresentation(x, y) != first) {\n unchanged_characters.add(first); // java.lang.ArrayIndexOutOfBoundsException\n frequencies.add(length);\n length = 1;\n first = this.getTileRepresentation(x, y);\n } else {\n // flag stays true\n ++length;\n }\n }\n }\n } else {\n System.out.println(\"Precondition for Map.runLengthEncodeView not met - output parameters are not empty\");\n System.exit(-7);\n }\n }", "String buildQuery(String field, String val, int from, int size,\n\t\t\tDomeoPermissions permissions3) {\n\t\tStringBuffer sb = new StringBuffer(\"{ \");\n\n\t\t// Check for starting position (from) and max results (size)\n\t\tif ((from > -1) && (size > -1)) {\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \\\"size\\\" : \" + size + \", \");\n\t\t} else if (from > -1) { // from only, no size\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \");\n\t\t} else if (size > -1) { // size only, no from\n\t\t\tsb.append(\"\\\"size\\\" : \" + size + \", \");\n\t\t}\n\n\t\tif (permissions3 == null) {\n\t\t\tsb.append(\"\\\"fields\\\" : [\\\"_id\\\"], \\\"query\\\" : { \\\"match\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": \\\"\" + val + \"\\\" } } } \");\n\t\t} else {\n\t\t\tString filter = permissions3.buildQueryFilter();\n\t\t\tsb.append(\"\\\"fields\\\" : \\\"[_id]\\\", \\\"query\\\" : { \\\"match\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": \\\"\" + val + \"\\\" } } \" + filter + \" } \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\n public boolean onQueryTextChange(String query) {\n if (!Utils.isEmptyString(query)) {\n mAdapter.getFilter().filter(query);\n recyclerView.setAdapter(mAdapter);\n } else\n recyclerView.setAdapter(null);\n return false;\n }", "@Test\n public void testCase3 () throws IOException {\n //\t\tlog.trace(\"Testcase3\");\n sq = new SpanSegmentQuery(new SpanTermQuery(new Term(\"base\", \"s:d\")),\n new SpanTermQuery(new Term(\"base\", \"s:b\")));\n\n kr = ki.search(sq, (short) 10);\n ki.close();\n\n assertEquals(\"totalResults\", kr.getTotalResults(), 1);\n assertEquals(\"doc-number\", 2, kr.getMatch(0).getLocalDocID());\n assertEquals(\"StartPos (0)\", 1, kr.getMatch(0).startPos);\n assertEquals(\"EndPos (0)\", 2, kr.getMatch(0).endPos);\n }", "static AnalysisResult analyseQuery(String query) {\n for (String attack : commonAttacks) {\n attack = attack.toLowerCase();\n if (trim(query.toLowerCase()).contains(trim(attack))) {\n return new AnalysisResult(true, null, attack, true);\n }\n }\n return new AnalysisResult(false, null, null, true);\n }", "public static SearchQuery buildFullTextSearchMatchQuery_3(String searchOriginData, PageRequest pageRequest) {\n String[] searchDataArray = searchOriginData.split(OR_SEPARATOR);\n BoolQueryBuilder boolQueryBuilder = QueryBuilders.boolQuery();\n if (searchDataArray.length == 1) {\n boolQueryBuilder.should(QueryBuilders.matchQuery(Constants.DB_FIELD_CONTENT, searchOriginData.trim())\n .operator(MatchQueryBuilder.Operator.AND));\n } else {\n for (String searchData : searchDataArray) {\n QueryBuilder matchQuery = QueryBuilders.matchQuery(Constants.DB_FIELD_CONTENT, searchData.trim())\n .operator(MatchQueryBuilder.Operator.AND);\n boolQueryBuilder.should(matchQuery);\n }\n }\n\n FunctionScoreQueryBuilder functionBuilder = QueryBuilders.functionScoreQuery(boolQueryBuilder);\n functionBuilder.add(ScoreFunctionBuilders\n .exponentialDecayFunction(Constants.DB_FIELD_RECEIVED_DATE, DEFAULT_DECAY_FOR_RECEIVED_DATE)\n .setDecay(0.5));\n\n return new NativeSearchQueryBuilder().withQuery(functionBuilder).withPageable(pageRequest).build();\n }", "long countByFilter(String keySearch, String brands, Double priceFrom, Double priceTo);", "public String buildFilterString(SearchCriteria search){\n System.out.println(search);\n\n int i = 0;\n if(search.getTitle().equals(\"title\")){\n i++;\n }\n if(search.getAuthor().equals(\"author\")){\n i++;\n }\n if(search.getPublisher().equals(\"publisher\")){\n i++;\n }\n if(search.getLanguage().equals(\"language\")){\n i++;\n }\n if(search.getFormat().equals(\"format\")){\n i++;\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i++;\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n i++;\n }\n\n String filter = \"SELECT * from testdb.book WHERE\";\n System.out.println(filter);\n System.out.println(\"number of filters \" + i);\n if(search.getTitle().equals(\"title\")){\n i--;\n System.out.println(filter);\n\n filter += \" title LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getAuthor().equals(\"author\")){\n i--;\n filter += \" author LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getPublisher().equals(\"publisher\")){\n i--;\n filter += \" publisher LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter +=\" OR\";\n\n }\n }\n if(search.getLanguage().equals(\"language\")){\n i--;\n filter += \" language LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getFormat().equals(\"format\")){\n i--;\n filter += \" format LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i--;\n filter += \" isbn10 LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n\n filter += \" isbn13 LIKE '%\" + search.getSearch() + \"%'\";\n\n }\n System.out.println(\"END \" + filter);\n return filter;\n }", "@Override\r\n public boolean onQueryTextSubmit(String query) {\n adapter.getFilter().filter(query);\r\n return true;\r\n }", "private static List<SearchData> booleanSearchWord(Query query, Indexer si) {\n Tokenizer tkn = new SimpleTokenizer();\n tkn.tokenize(query.getStr(), \"[a-zA-Z]{3,}\", true, true);\n List<SearchData> searchList = new ArrayList<>();\n LinkedList<Token> wordsList = tkn.getTokens();\n Iterator<Token> wordsIt = wordsList.iterator();\n HashMap<String, LinkedList<Posting>> indexer = si.getIndexer();\n int idx;\n SearchData searched_doc;\n\n while (wordsIt.hasNext()) {\n String word = wordsIt.next().getSequence();\n if (indexer.containsKey(word)) {\n\n LinkedList<Posting> posting = indexer.get(word);\n\n for (Posting pst : posting) {\n\n SearchData sd = new SearchData(query, pst.getDocId());\n\n if (!searchList.contains(sd)) {\n sd.setScore(1);\n searchList.add(sd);\n } else {\n idx = searchList.indexOf(sd);\n searched_doc = searchList.get(idx);\n searched_doc.setScore(searched_doc.getScore() + 1);\n }\n }\n\n }\n\n\n }\n\n Collections.sort(searchList);\n\n return searchList;\n }", "public ArrayList<SearchResult> partialSearch(Collection<String> queries) {\n\t\tArrayList<SearchResult> results = new ArrayList<>();\n\t\tHashMap<String, SearchResult> track = new HashMap<>();\n\n\t\tfor (String query : queries) {\n\t\t\tfor (String word : this.invertedIndex.tailMap(query).keySet()) {\n\t\t\t\tif (word.startsWith(query)) {\n\t\t\t\t\tsearchHelper(results, word, track);\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(results);\n\t\treturn results;\n\t}", "private static List<SearchData> booleanSearchFrequency(Query query, Indexer si) {\n Tokenizer tkn = new SimpleTokenizer();\n tkn.tokenize(query.getStr(), \"[a-zA-Z]{3,}\", true, true);\n List<SearchData> searchList = new ArrayList<>();\n LinkedList<Token> wordsList = tkn.getTokens();\n Iterator<Token> wordsIt = wordsList.iterator();\n HashMap<String, LinkedList<Posting>> indexer = si.getIndexer();\n int idx;\n SearchData searched_doc;\n\n while (wordsIt.hasNext()) {\n String word = wordsIt.next().getSequence();\n if (indexer.containsKey(word)) {\n\n LinkedList<Posting> posting = indexer.get(word);\n\n for (Posting pst : posting) {\n\n SearchData sd = new SearchData(query, pst.getDocId());\n\n if (!searchList.contains(sd)) {\n sd.setScore(pst.getTermFreq());\n searchList.add(sd);\n } else {\n idx = searchList.indexOf(sd);\n searched_doc = searchList.get(idx);\n searched_doc.setScore(searched_doc.getScore() + pst.getTermFreq());\n }\n }\n }\n }\n\n Collections.sort(searchList);\n\n return searchList;\n }", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "@Override\n public boolean onQueryTextChange(String s) {\n if(s.isEmpty() && amenList.isEmpty()){\n searchResultsCard.setVisibility(View.GONE);\n }else {\n searchResultsCard.setVisibility(View.VISIBLE);\n }\n placesAdaptor.getFilter( ).filter(s);\n //if no results available, hide the result card\n //self-checking if there is any results, as filter results only available after\n //this method ends\n boolean noResult=true;\n ArrayList<PlacesDataClass> tempFilter=placesAdaptor.getFiltered( );\n if(tempFilter.isEmpty()) {\n ArrayList<String> temp_filter=new ArrayList<String>(Arrays.asList(placesName));\n for(String a:temp_filter){\n if(a.toLowerCase().contains(s.toLowerCase())){\n noResult=false;\n }\n }\n }else {\n for (PlacesDataClass object : tempFilter) {\n // the filtering itself:\n if (object.toString( ).toLowerCase( ).contains(s.toLowerCase( )))\n noResult=false;\n }\n }//if no results available then display the no results text\n if (noResult) {\n noResultsFoundText.setVisibility(View.VISIBLE);\n } else noResultsFoundText.setVisibility(View.GONE);\n Log.i(\"results number\", \"query: \"+s+\"; no result: \"+noResult);\n // ---------------Change-----------------\n while (!origin.isEmpty( )) {\n origin.remove(0);\n }\n\n return false;\n }", "@Override\n protected void query(CompletionResultSet completionRS, Document doc, int caretOffset) {\n // First, we retrieve the filters defined for the hAtom microformat completion\n String strFilter = Filter.EMPRTY_STRING;\n Filter filter = Filter.getFilter();\n \n try {\n StyledDocument styledDoc = (StyledDocument) doc; \n // Get the filter's text based on actual carte position.\n strFilter = filter.getText(styledDoc, caretOffset);\n \n } catch (Exception ex) {\n ex.printStackTrace();\n // if an error occurs, an empty filter is set, so that the completion popup \n // will be filled with all the hAtom keywords.\n strFilter = Filter.EMPRTY_STRING;\n }\n\n // Lista completa dei tag/parole chiave hAtom\n List<String> hatomTags = TagCache.getCache().getTagList();\n\n // Gets the hAtom keywords that match the given filter value.\n for (String tag : hatomTags) {\n boolean startWithFilter = tag.startsWith(strFilter); \n if (!tag.equals(Filter.EMPRTY_STRING) && startWithFilter) {\n completionRS.addItem(new HatomCompletionItem(tag, filter.getFilterOffset(), caretOffset));\n }\n }\n\n // This is required by the Netbeans API docs.\n // After finish() is invoked, no further modifications to the result set are allowed.\n completionRS.finish();\n\n }", "Collection<Long> filter( String searchString ) throws SearchException;", "public boolean filterRowKey(byte[] rowKey, int offset, int length) {\r\n\t\treturn false;\r\n\t}", "public void searchInBody(final String toSearch, final int limit) throws IOException, ParseException {\n final IndexSearcher indexSearcher = new IndexSearcher(reader);\n\n final QueryParser queryParser = new QueryParser(\"body\", new RussianAnalyzer());\n final Query query = queryParser.parse(toSearch);\n System.out.println(\"Type of query: \" + query.getClass().getSimpleName());\n\n final TopDocs search = indexSearcher.search(query, limit);\n final ScoreDoc[] hits = search.scoreDocs;\n showHits(hits);\n }", "public interface SearchQuerySet extends QuerySet\n{\n\n // for AbstractSearch\n public static final int STAT_MODELS = 1;\n public static final int STAT_CLUSTERS = 2;\n public static final int STAT_GENOMES = 4;\n public static final int STAT_MODEL_CLUSTERS = 8;\n\n public String getStatsById(Collection data);\n public String getStatsByQuery(String query);\n public String getStatsById(Collection data,int stats);\n public String getStatsByQuery(String query,int stats);\n \n // for BlastSearch\n public String getBlastSearchQuery(Collection dbNames, Collection keys, KeyTypeUser.KeyType keyType);\n \n //for ClusterIDSearch\n public String getClusterIDSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for ClusterNameSearch\n public String getClusterNameSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for DescriptionSearch\n public String getDescriptionSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for GoSearch \n public String getGoSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for GoTextSearch\n public String getGoTextSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for IdSearch\n public String getIdSearchQuery(Collection input, int limit, int[] DBs, KeyTypeUser.KeyType keyType);\n \n // for QueryCompSearch\n public String getQueryCompSearchQuery(String comp_id, String status, KeyTypeUser.KeyType keyType);\n \n // for QuerySearch\n public String getQuerySearchQuery(String queries_id, KeyTypeUser.KeyType keyType); \n \n // for SeqModelSearch\n public String getSeqModelSearchQuery(Collection model_ids, KeyTypeUser.KeyType keyType);\n \n // for UnknowclusterIdSearch\n public String getUnknownClusterIdSearchQuery(int cluster_id, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetSearch\n public String getProbeSetSearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for ProbeSetKeySearch\n public String getProbeSetKeySearchQuery(Collection input, int limit, KeyTypeUser.KeyType keyType);\n \n // for QueryTestSearch\n public String getQueryTestSearchQuery(String query_id, String version, String genome_id);\n \n // for QueryStatsSearch\n public String getQueryStatsSearchQuery(List query_ids,List DBs);\n \n // for PskClusterSearch\n public String getPskClusterSearchQuery(int cluster_id,KeyTypeUser.KeyType keyType);\n \n // for ClusterCorrSearch\n public String getClusterCorrSearchQuery(int cluster_id, int psk_id, KeyTypeUser.KeyType keyType);\n \n // for UnknownGenesSearch\n public String getUnknownGenesSearchQuery(Collection sources, KeyTypeUser.KeyType keyType);\n \n}", "String buildSimpleParsedBooleanQuery(String field, String val,\n\t\t\tString operator, int from, int size, DomeoPermissions permissions3) {\n\t\tStringBuffer sb = new StringBuffer(\"{ \");\n\n\t\t// Check for starting position (from) and max results (size)\n\t\tif ((from > -1) && (size > -1)) {\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \\\"size\\\" : \" + size + \", \");\n\t\t} else if (from > -1) { // from only, no size\n\t\t\tsb.append(\"\\\"from\\\" : \" + from + \", \");\n\t\t} else if (size > -1) { // size only, no from\n\t\t\tsb.append(\"\\\"size\\\" : \" + size + \", \");\n\t\t}\n\n\t\t// Use \"fields\" to limit fields returned in results\n\t\tif (permissions3 == null) {\n\t\t\tsb.append(\"\\\"fields\\\" : [\\\"_id\\\"], \\\"query\\\" : { \\\"match\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": { \\\"query\\\" : \\\"\" + val\n\t\t\t\t\t+ \"\\\", \\\"operator\\\" : \\\"\" + operator + \"\\\" } } } }\");\n\t\t} else {\n\t\t\tString filter = permissions3.buildQueryFilter();\n\t\t\tsb.append(\"\\\"fields\\\" : [\\\"_id\\\"], \\\"query\\\" : { \\\"match\\\" : { \\\"\"\n\t\t\t\t\t+ field + \"\\\": { \\\"query\\\" : \\\"\" + val\n\t\t\t\t\t+ \"\\\", \\\"operator\\\" : \\\"\" + operator + \"\\\" } } } \" + filter\n\t\t\t\t\t+ \" } \");\n\t\t}\n\n\t\treturn sb.toString();\n\t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n prepareBooks(engine.search(query.toLowerCase(),filter));\n return false;\n }", "private void initSearchView() {\n SearchManager searchManager = (SearchManager) getActivity().getSystemService(Context.SEARCH_SERVICE);\n\n searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));\n searchView.setMaxWidth(Integer.MAX_VALUE);\n\n //listening to search query text change\n searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {\n @Override\n public boolean onQueryTextSubmit(String query) {\n // filter recycler view when query submitted\n machineAdapter.getFilter().filter(query);\n return false;\n }\n\n @Override\n public boolean onQueryTextChange(String newText) {\n machineAdapter.getFilter().filter(newText);\n return false;\n }\n });\n\n }", "public void filterFqRdd(JavaSparkContext sc, String folderPath, final int minLength, final int maxLength,\n\t\t\tfinal int minQual, final int maxQual, boolean atgc) throws IOException {\n\t\tJavaRDD<FastqRecord> fqrdd = readFqRDDFolder(sc, folderPath);\n\n\t\tfqEditor.filterJavaRdd(fqrdd, minLength, maxLength, minQual, maxQual, atgc);\n\n\t}", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "@Query(\"SELECT i FROM Item i WHERE \"+\n \"upper(i.name) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.number) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.waybill) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.factory) LIKE concat('%',upper(?1),'%')\")\n Page<Item> filterAll(String substring, Pageable pageable);", "private DocFile[] search (String[] queries, String[] filters, BooleanClause.Occur filterOccur) throws ParseException {\n // create a master query builder\n BooleanQuery.Builder masterQueryBuilder = new BooleanQuery.Builder();\n // loop through all queries\n for (String query : queries) {\n if (query.equals(\"\")) continue;\n // create a boolean query for the each query\n BooleanQuery.Builder queryBuilder = new BooleanQuery.Builder();\n // loop through all filters\n for (String filter : filters) {\n if (filter.equals(\"\")) continue;\n QueryParser parser = new QueryParser(filter, analyzer);\n parser.setAllowLeadingWildcard(true);\n if (!filter.equals(Constants.INDEX_KEY_OWNER)) {\n Query parsedQ = parser.parse(query);\n queryBuilder.add(parsedQ, filterOccur);\n }\n else {\n queryBuilder.add(new PhraseQuery(filter, queries), filterOccur);\n }\n }\n masterQueryBuilder.add(queryBuilder.build(), BooleanClause.Occur.SHOULD);\n }\n\n // build the masterQuery\n BooleanQuery masterQuery = masterQueryBuilder.build();\n\n return searchResponse(searchExec(masterQuery), masterQuery);\n }", "public ParseResult prefixOfLength (Object input, int length, int peel)\n {\n ParseResult r = prefixInternal(input, peel + 1);\n assertTrue(r.matchSize == length, peel + 1,\n () -> r.toString(map, onlyRulesInCallStacks));\n clearLocals();\n return r;\n }", "private urgs NGramMatch(String text, String SearchStr, int SearchStrLen, int NGramLen)\r\n {\r\n urgs result = new urgs();\r\n try\r\n {\r\n StringBuffer NGram = new StringBuffer(\" \");\r\n int NGramCount;\r\n int i, Count;\r\n\r\n NGram.setCharAt(NGramLen,'\\0');\r\n NGramCount = SearchStrLen - NGramLen + 1;\r\n\r\n // Suchstring in n-Gramme zerlegen und diese im Text suchen\r\n //\r\n for(i = 0, Count = 0; i < NGramCount; i++)\r\n {\r\n NGram = new StringBuffer(SearchStr.substring(i, i+NGramLen));\r\n NGram.setLength(8);\r\n // bei Wortzwischenraum weiterruecken\r\n if (NGram.charAt(NGramLen - 2) == ' ' && NGram.charAt(0) != ' ')\r\n i += NGramLen - 3;\r\n else\r\n {\r\n result.match += NGramLen;\r\n if(text.indexOf( NGram.toString().trim()) != -1)\r\n {\r\n Count++;\r\n }\r\n }\r\n }\r\n result.count = Count* NGramLen;\r\n }\r\n catch( Exception exc)\r\n {\r\n System.err.println(exc);\r\n }\r\n return result;\r\n }", "@Override\n\tpublic void setMaxResultLength(int l) {\n\t\tlen = l;\n\t}", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n adapter1.getFilter().filter(s.toString());\n }", "public void setRecord_length(int len) {\n\t\trecord_length = len;\n\t}", "@Test\n public void testHangingWildcards() throws Exception {\n // Test hanging wildcards on the end anchored to BOF (should be stripped):\n String input = \"AABB????????\";\n String expected = \"AABB\";\n String spaced = \"AA BB\";\n\n String expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.BOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.BOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.BOFOffset, true);\n assertEquals(spaced, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.BOFOffset, true);\n assertEquals(spaced, expression);\n\n // Test hanging wildcards on the end anchored to EOF (should remain):\n input = \"AABB{4}\";\n expected = \"AABB{4}\";\n spaced = \"AA BB {4}\";\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.EOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.EOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.EOFOffset, true);\n assertEquals(spaced, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.EOFOffset, true);\n assertEquals(spaced, expression);\n\n // Test hanging wildcards at the start anchored to BOF (should remain):\n input = \"????????AABB\";\n expected = \"{4}AABB\";\n spaced = \"{4} AA BB\";\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.BOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.BOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.BOFOffset, true);\n assertEquals(spaced, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.BOFOffset, true);\n assertEquals(spaced, expression);\n\n // Test hanging wildcards at the start anchored to EOF (should be stripped):\n input = \"????????AABB\";\n expected = \"AABB\";\n spaced = \"AA BB\";\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.EOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.EOFOffset, false);\n assertEquals(expected, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, BINARY, ByteSequenceAnchor.EOFOffset, true);\n assertEquals(spaced, expression);\n\n expression = ByteSequenceSerializer.SERIALIZER.toPRONOMExpression(input, CONTAINER, ByteSequenceAnchor.EOFOffset, true);\n assertEquals(spaced, expression);\n }", "private void searchQuery(String query) {\n mSearchAheadServiceV3 = new SearchAheadService(this, API_KEY);\n\n String queryString = query;\n\n LatLng surreyBC = new LatLng(49.104599F, -122.823509F);\n\n List searchCollections = Arrays.asList(SearchCollection.AIRPORT, SearchCollection.ADMINAREA,\n SearchCollection.ADDRESS, SearchCollection.FRANCHISE, SearchCollection.POI);\n try {\n SearchAheadQuery searchAheadQuery = new SearchAheadQuery\n .Builder(queryString, searchCollections)\n .location(surreyBC)\n .limit(5)\n .build();\n\n mSearchAheadServiceV3.predictResultsFromQuery(searchAheadQuery,\n new SearchAheadService.SearchAheadResponseCallback() {\n\n @Override\n public void onSuccess(@NonNull SearchAheadResponse searchAheadResponse) {\n\n //Get search results from the request response\n List<SearchAheadResult> searchAheadResults = searchAheadResponse.getResults();\n\n //if we have requests\n if (searchAheadResults.size() > 0) {\n\n //clear the current data to display\n searchResultsData.clear();\n\n try {\n\n int size = (searchAheadResults.size() < 5) ? searchAheadResults.size() : 5;\n\n for (int i = size - 1; i >= 0; i--) {\n // create a hashmap\n HashMap<String, String> hashMap = new HashMap<>();\n\n AddressProperties addressProperties = searchAheadResults.get(i).getPlace().getAddressProperties();\n\n // convert image int to a string and place it into the hashmap with an images key\n hashMap.put(\"address\", searchAheadResults.get(i).getName());\n hashMap.put(\"city\", addressProperties.getCity() + \", \" + addressProperties.getStateCode());\n hashMap.put(\"lat\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLatitude()));\n hashMap.put(\"long\", String.valueOf(searchAheadResults.get(i).getPlace().getLatLng().getLongitude()));\n\n\n // add this hashmap to the list\n searchResultsData.add(hashMap);\n }\n\n //handle null pointer exception on address properties\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n\n //adapter inputs\n String[] from = {\n \"address\",\n \"city\",\n \"lat\",\n \"long\"\n };\n\n int[] to = {R.id.text_result_address, R.id.text_result_city, R.id.hidden_location_lat, R.id.hidden_location_long};\n\n searchAdapter = new SimpleAdapter(getApplicationContext(), searchResultsData, R.layout.item_search_result, from, to);\n mListViewSearch.setAdapter(searchAdapter);\n mListViewSearch.setVisibility(View.VISIBLE);\n } else {\n resetSearchAheadList();\n }\n }\n\n @Override\n public void onError(Exception e) {\n Log.e(\"MAPQUEST\", \"Search Ahead V3 Failure\", e);\n }\n });\n } catch (IllegalQueryParameterException e) {\n Log.e(\"Error performing search\", e.getMessage());\n }\n }", "public static void main(String[] args) {\n MapDictionary<String> dictionary = new MapDictionary<String>();\r\n dictionary.addEntry(new DictionaryEntry<String>(\"50 Cent\",\"\"));\r\n dictionary.addEntry(new DictionaryEntry<String>(\"XYZ120 DVD Player\",\"\"));\r\n dictionary.addEntry(new DictionaryEntry<String>(\"cent\",\"\"));\r\n dictionary.addEntry(new DictionaryEntry<String>(\"dvd player\",\"\"));\r\n\r\n // build the dictionary-chunker:\r\n // dictionary, tokenizer factory, flag1, flag2\r\n // tokenizer will ignore thre blank space in the matching process\r\n // all matches flag:\r\n // sensitive flag: when case sensitivity is enabled, \r\n ExactDictionaryChunker dictionaryChunkerTT\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n true,true);\r\n\r\n ExactDictionaryChunker dictionaryChunkerTF\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n true,false);\r\n\r\n ExactDictionaryChunker dictionaryChunkerFT\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n false,true);\r\n\r\n ExactDictionaryChunker dictionaryChunkerFF\r\n = new ExactDictionaryChunker(dictionary,\r\n IndoEuropeanTokenizerFactory.INSTANCE,\r\n false,false);\r\n\r\n\r\n\r\n System.out.println(\"\\nDICTIONARY\\n\" + dictionary);\r\n \r\n String text = \"50 Cent is hard to distinguish from 50 cent and just plain cent without case.\";\r\n System.out.println(\"TEXT=\" + text);\r\n chunk(dictionaryChunkerFF,text);\r\n \r\n text = \"The product xyz120 DVD player won't match unless it's exact like XYZ120 DVD Player.\";\r\n System.out.println(\"TEXT=\" + text);\r\n chunk(dictionaryChunkerFF,text);\r\n\r\n }", "void filterQuery(ServerContext context, QueryRequest request, QueryResultHandler handler,\n RequestHandler next);", "public PostingsList ranked_query(Query query, double w, double idf_threshold){\n long startTime = System.nanoTime();\n PostingsList result = new PostingsList();\n\n // Obtain union of terms above idf threshold if indexElimination is true\n // (Set idf_threshold to zero to disable this feature)\n Set<String> termsToConsider = this.queryTermsConsidered(query, idf_threshold);\n result = this.union_query(query, termsToConsider);\n //System.err.println(\"Size of result is \" + result.size());\n\n long estimatedTime = (System.nanoTime() - startTime)/1000000;\n System.err.println(\"* Union took: \" + estimatedTime);\n\n\n /*\n * 2) Iterate over PostingsEntries and build the solution\n */\n startTime = System.nanoTime();\n // Required when iterating over a PostingsList\n PostingsEntry postEnt = new PostingsEntry();\n // Number of documents in the collection\n double nDocs = this.docIDs.size();\n // Weight of a query vector coefficient\n double w_query_term;\n // Document tf-idf variables\n double termFrequency_doc, documentFrequency_doc, w_doc_term;\n\n for(String term : termsToConsider){\n // Obtain idf of the term\n documentFrequency_doc = Math.log(nDocs/new Double(this.idfMap.get(term)));\n\n // Obtain weight of the term\n w_query_term = query.weights.get(term);\n // Iterate over all documents containing the term and update the score(q,d)\n Iterator<PostingsEntry> it_d = result.iterator();\n while(it_d.hasNext()){\n postEnt = it_d.next();\n if (this.tfMap.get(postEnt.docID).containsKey(term)){\n termFrequency_doc = this.tfMap.get(postEnt.docID).get(term);\n w_doc_term = documentFrequency_doc*termFrequency_doc;\n postEnt.score += w_query_term*w_doc_term;\n }\n }\n }\n estimatedTime = (System.nanoTime() - startTime)/1000000;\n System.err.println(\"* Building solution took: \" + estimatedTime);\n\n /*\n * 3) Normalize the scores\n */\n startTime = System.nanoTime();\n Iterator<PostingsEntry> it = result.iterator();\n while(it.hasNext()){\n postEnt = it.next();\n postEnt.score /= (new Double(this.docLengths.get(\"\"+postEnt.docID)));//(Math.sqrt(postEnt.norm2));\n postEnt.score = w * postEnt.score + (1-w) * quality(postEnt.docID);\n }\n estimatedTime = (System.nanoTime() - startTime)/1000000;\n System.err.println(\"* Normalizing took: \" + estimatedTime);\n\n /*\n * 4) Sort the resulting solution\n */\n startTime = System.nanoTime();\n result.sort();\n estimatedTime = (System.nanoTime() - startTime)/1000000;\n System.err.println(\"* Sorting took: \" + estimatedTime);\n\n return result;\n }", "public void filter(String query) {\n\n\tTableRowSorter sorter = new TableRowSorter(table_1.getModel());\n\tsorter.setRowFilter(RowFilter.regexFilter(query));\n\ttable_1.setRowSorter(sorter);\n\n }", "String termQuery(String field, String val, int from, int size,\n\t\t\tboolean isSubdoc, DomeoPermissions permissions3) {\n\t\tString query = buildTermQuery(field, val, from, size, permissions3);\n\t\tString searchUrl = isSubdoc ? esSearchSubdocUrl : esSearchUrl;\n\t\t@SuppressWarnings(\"unused\")\n\t\tint resCode = doHttpOperation(searchUrl, HTTP_POST, query);\n\t\treturn decodeNS(lastResponse);\n\t}" ]
[ "0.5547545", "0.53626394", "0.53312033", "0.5133717", "0.5055856", "0.5041769", "0.49775594", "0.497706", "0.4959045", "0.49537057", "0.49377775", "0.49117985", "0.4884932", "0.48326004", "0.48306277", "0.48296756", "0.48083988", "0.47941867", "0.4720409", "0.46962297", "0.4672852", "0.46672273", "0.46536067", "0.46468338", "0.46379644", "0.461904", "0.46110672", "0.46001977", "0.45696497", "0.45602763", "0.45597786", "0.4553532", "0.45492226", "0.45399123", "0.4533555", "0.452974", "0.452974", "0.452974", "0.452974", "0.45246878", "0.45237494", "0.45169905", "0.4516363", "0.45096663", "0.45039213", "0.44880193", "0.44691926", "0.44679257", "0.44665554", "0.4465784", "0.44535965", "0.44512758", "0.44511297", "0.44508898", "0.4443708", "0.4442944", "0.44405088", "0.44404638", "0.44362894", "0.44326025", "0.44300565", "0.44242164", "0.44205502", "0.4405618", "0.4403696", "0.44035074", "0.43969384", "0.43942833", "0.43879077", "0.43861058", "0.4380156", "0.43762776", "0.43747294", "0.43704474", "0.4357747", "0.43517435", "0.43493843", "0.43489003", "0.4344865", "0.4326532", "0.43211707", "0.4319783", "0.43185145", "0.43170395", "0.4301141", "0.42992076", "0.42982027", "0.42955318", "0.42908192", "0.4290624", "0.42890048", "0.4287818", "0.4287656", "0.42854077", "0.4281901", "0.42807236", "0.4278109", "0.42703712", "0.4269888", "0.42677522" ]
0.56917506
0
filter search result by query Len. If the length is too short then skip
public String filterAndReport(int queryL, int alignL){ return this.getResults().filterAndReport(queryL, alignL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasSearchLength();", "int getSearchLength();", "@Test\n\tpublic void testSearchWithLargeMinLength() throws Exception {\n\t\tdialog = getDialog();\n\t\tsetMinStringFieldValue(dialog, 100);\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\ttoggleDefinedStateButtons(provider, true, true, true, true);\n\t\twaitForTableModel(model);\n\n\t\tassertRowCount(model, 0);\n\t}", "@Override\n public LinkedList filterLargerThan(int length) {\n LinkedList newLinkedList = new LinkedList();\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n if(currNode.getItem().length() <= length){\n newLinkedList.addNode(currNode.getItem());\n }\n currNode = currNode.getNextNode();\n }\n return newLinkedList;\n }", "private void filterRecyvlerView() {\n String query = etSearch.getText().toString();\n String[] querySplited = query.split(\" \");\n\n if(query.equals(\"\")){\n rvPostalCodes.removeAllViews();\n adapter.setRealmResults(Realm.getDefaultInstance().where(Locations.class).findAll());\n }else{rvPostalCodes.removeAllViews();\n if(querySplited.length == 1) {\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0], Case.INSENSITIVE).findAll());\n rvPostalCodes.setAdapter(adapter);\n\n\n }else if(querySplited.length == 2){\n adapter = new LocationsAdapter(fragment, Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }else if(querySplited.length == 3){\n adapter = new LocationsAdapter(getTargetFragment(), Realm.getDefaultInstance(), Realm.getDefaultInstance().where(Locations.class)\n .contains(\"postalCode\", querySplited[0], Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[0],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[1],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[1],Case.INSENSITIVE)\n .contains(\"postalCode\", querySplited[2],Case.INSENSITIVE).or()\n .contains(\"name\", querySplited[2],Case.INSENSITIVE).or()\n .findAll());\n rvPostalCodes.setAdapter(adapter);\n }\n }\n\n }", "@Override\n\tpublic void setMaxResultLength(int l) {\n\t\tlen = l;\n\t}", "public SamFilterParamsBuilder minLength(int value) {\n mMinReadLength = value;\n return this;\n }", "public void removeWordsOfLength(int len){\n for(int i=0;i<size();i++)\n if(get(i).length()==len){\n \tremove(i--);\n }\n }", "Collection<Long> filter( String searchString ) throws SearchException;", "Boolean checkLength(String detail);", "@Override\n public boolean onQueryTextChange(String query) {\n filterList(query);\n return false;\n }", "FilterResults performFiltering(CharSequence charSequence) { // Aplicamos el filtro\n String charString = charSequence.toString(); // String con el filtro\n if (charString.isEmpty()) { // Si esta vacio\n filteredSites = allSites; // No hay filtro y se muestran todas las instalaciones\n } else { // Si no\n ArrayList<ULLSiteSerializable> auxFilteredList = new ArrayList<>();\n for (ULLSiteSerializable site : allSites) { // Para todas las instalaciones \n // Se comprueba si el nombre la filtro coincide con la instalacion\n if (site.getName().toLowerCase().contains(charString.toLowerCase())) \n auxFilteredList.add(site); // Si coincide se agregan a la lista\n // auxiliar\n }\n filteredSites = auxFilteredList; // La lista auxiliar es igual a la de \n } // las instalaciones filtradas a mostrar\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredSites;\n return filterResults; // Se devuelve el resultado del filtro\n }", "List<String> getAllNamesTrunc(int maxLength);", "default HtmlFormatter trimTo(int len) {\n return andThen(str -> trimTo(\n str,\n len\n ));\n }", "public void verifySearchLimit255() throws Exception {\n clickElement(eleToDoSearchInput, \"click to eleToDoSearchInput\");\n sendKeyTextBox(eleToDoSearchInput, maxLenghtString, \"send key to maxLenghtString\");\n validateMaxlenght(this.eleToDoSearchInput, \"To Do Search Input\", maxLenght);\n }", "public ReadLengthReadFilter() {}", "public String buildFilterString(SearchCriteria search){\n System.out.println(search);\n\n int i = 0;\n if(search.getTitle().equals(\"title\")){\n i++;\n }\n if(search.getAuthor().equals(\"author\")){\n i++;\n }\n if(search.getPublisher().equals(\"publisher\")){\n i++;\n }\n if(search.getLanguage().equals(\"language\")){\n i++;\n }\n if(search.getFormat().equals(\"format\")){\n i++;\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i++;\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n i++;\n }\n\n String filter = \"SELECT * from testdb.book WHERE\";\n System.out.println(filter);\n System.out.println(\"number of filters \" + i);\n if(search.getTitle().equals(\"title\")){\n i--;\n System.out.println(filter);\n\n filter += \" title LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getAuthor().equals(\"author\")){\n i--;\n filter += \" author LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getPublisher().equals(\"publisher\")){\n i--;\n filter += \" publisher LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter +=\" OR\";\n\n }\n }\n if(search.getLanguage().equals(\"language\")){\n i--;\n filter += \" language LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getFormat().equals(\"format\")){\n i--;\n filter += \" format LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i--;\n filter += \" isbn10 LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n\n filter += \" isbn13 LIKE '%\" + search.getSearch() + \"%'\";\n\n }\n System.out.println(\"END \" + filter);\n return filter;\n }", "@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n String[] tmp = API.it().getKeywords(arg0.toString());\n FilterResults results = new FilterResults();\n results.values = tmp;\n results.count = tmp.length;\n return results;\n }", "protected String limit(String value, int length)\n\t{\n\t\tif (value == null) return null;\n\t\tif (value.length() > length)\n\t\t{\n\t\t\treturn value.substring(0, length);\n\t\t}\n\t\treturn value;\n\t}", "@Query(\"SELECT i FROM Item i WHERE \"+\n \"upper(i.name) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.number) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.waybill) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.factory) LIKE concat('%',upper(?1),'%')\")\n Page<Item> filterAll(String substring, Pageable pageable);", "@Override\n\tpublic int getMaxResultLength() {\n\t\treturn len;\n\t}", "@Override\n\tpublic SuccessMessage search(String kw, int size, int offset) {\n\t\tthrow new I18nMessageException(\"502\");\n\t}", "@Override\n public boolean onQueryTextChange(String query) {\n if (!Utils.isEmptyString(query)) {\n mAdapter.getFilter().filter(query);\n recyclerView.setAdapter(mAdapter);\n } else\n recyclerView.setAdapter(null);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String s) {\n if(s.isEmpty() && amenList.isEmpty()){\n searchResultsCard.setVisibility(View.GONE);\n }else {\n searchResultsCard.setVisibility(View.VISIBLE);\n }\n placesAdaptor.getFilter( ).filter(s);\n //if no results available, hide the result card\n //self-checking if there is any results, as filter results only available after\n //this method ends\n boolean noResult=true;\n ArrayList<PlacesDataClass> tempFilter=placesAdaptor.getFiltered( );\n if(tempFilter.isEmpty()) {\n ArrayList<String> temp_filter=new ArrayList<String>(Arrays.asList(placesName));\n for(String a:temp_filter){\n if(a.toLowerCase().contains(s.toLowerCase())){\n noResult=false;\n }\n }\n }else {\n for (PlacesDataClass object : tempFilter) {\n // the filtering itself:\n if (object.toString( ).toLowerCase( ).contains(s.toLowerCase( )))\n noResult=false;\n }\n }//if no results available then display the no results text\n if (noResult) {\n noResultsFoundText.setVisibility(View.VISIBLE);\n } else noResultsFoundText.setVisibility(View.GONE);\n Log.i(\"results number\", \"query: \"+s+\"; no result: \"+noResult);\n // ---------------Change-----------------\n while (!origin.isEmpty( )) {\n origin.remove(0);\n }\n\n return false;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n adapter1.getFilter().filter(s.toString());\n }", "@Override\n public boolean onQueryTextChange(String s) {\n adapter.getFilter().filter(s);\n return false;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n adapter.getFilter().filter(s);\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (s != null && start == 0 && before == 0 && count > 1) {\n performSearch();\n }\n }", "@Override\n public boolean onQueryTextChange(String s) {\n if(!TextUtils.isEmpty(s.trim()))\n {\n //search text contains text, search it\n searchUsers(s);\n } else {\n // search text empty, get all users\n getAllUsers();\n }\n return false;\n }", "public static String[] filterString(String val[], int level, int maxLength) { //\n\t\tif(val == null){\n\t\t\treturn null;\n\t\t}\n\t\tString ret[] = new String[val.length];\n\n\t\tfor (int i = 0; i < val.length; i++) {\n\t\t\tret[i] = filterString(val[i], level, maxLength);\n\t\t}\n\n\t\treturn ret;\n\t}", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String query) {\n mAdapter.getFilter().filter(query);\n return false;\n }", "@Override\n public boolean onQueryTextChange(String s) {\n\n FetchSearchData(s);\n //return false;\n if (data_list.size() == 0) {\n tv_nofound.setVisibility(View.VISIBLE);\n recyclerView.getRecycledViewPool().clear();\n } else {\n tv_nofound.setVisibility(View.GONE);\n }\n\n return true;\n }", "InputFilter[] checkUrlLengthLimit(final Context context);", "@Override\n public void afterTextChanged(Editable editable) {\n try {\n if (!editable.toString().trim().equals(\"\")) {\n filter(editable.toString());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }", "@Override\n public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {\n \tSystem.out.println(cs);\n \tsearchTxt = cs; \n \tif(searchTxt.length() == 0) {\n \t\tMainActivity.this.adapter.getFilter().filter(null);\n \t}\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n if (newText.length() >= 2) {\n Intent intent = new Intent(ACTION_QUERY_CHANGED);\n intent.putExtra(\"query\", newText);\n LocalBroadcastManager.getInstance(SearchQueryActivity.this).sendBroadcast(intent);\n }\n return false;\n }", "public void testLength()\n {\n LinearSearch ls = new LinearSearch();\n\n assertFalse(ls.validLength(int [15] haystack));\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EventDTO> filteredList = new ArrayList<>();\n /* If the given charSequence (Users input in searchview) is 0 or null, if so readies all events to be searched through */\n if(constraint == null || constraint.length() == 0) {\n filteredList.addAll(itemsToAdaptComplete);\n } else {\n /* Makes input not case sensitive */\n String filterPattern = constraint.toString().toLowerCase().trim(); // Locale.ROOT\n /* Searches through all of the events to check for matching characters */\n for (EventDTO item : itemsToAdaptComplete) {\n if (item.getName().toLowerCase().contains(filterPattern)) {\n filteredList.add(item);\n }\n }\n }\n /* Sets results */\n FilterResults results = new FilterResults();\n results.values = filteredList;\n return results;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n arrayAdapter.getFilter().filter(s.toString());\n }", "@Override\n public boolean onQueryTextChange(String s) {\n adapter.getFilter().filter(s);\n adapter.notifyDataSetChanged();\n return false;\n }", "@Test\n @ExcludeIn({ DB2, DERBY, FIREBIRD })\n public void substring() {\n query().from(Constants.employee).where(Constants.employee.firstname.substring((-3), 1).eq(Constants.employee.firstname.substring((-2), 1))).select(Constants.employee.id).fetch();\n }", "public boolean checkLength(Contribution contribution) {\n\t\tint longness= jdbc.queryForObject(\"select lineLength from stories where title=:title\", \n\t\t\t\tnew MapSqlParameterSource(\"title\", contribution.getTitle()), Integer.class);\n\t\tSystem.out.println(\"Your content: \"+contribution.getAddition().length()+\" the max length: \"+longness);\n\t\tif(contribution.getAddition().length() > longness) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean hasWhere()\n {\n // length of StringBuffer\n return (this.whSelect.length() > 0);\n }", "@Override\n public void setVisibleLength(int length) {}", "@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before,\n\t\t\t\t\t\t\t\t\t int count) {\n\n\t\t\t\tif (dataAsync != null) {\n\t\t\t\t\tdataAsync.cancel(true); // cancel already started thread to\n\t\t\t\t\t// avoid response overlapping\n\t\t\t\t}\n\n\t\t\t\tdataAsync = new FetchDataAsync();\n\t\t\t\tdataAsync.setDataAsyncListener(SearchFragment.this);\n\t\t\t\tString query = s.toString();\n\t\t\t\tquery = query.replaceAll(\"\\n\", \"\").trim();\n\n\t\t\t\tif(query.length() > 0)\n\t\t\t\t\tremoveButton.setVisibility(View.VISIBLE);\n\t\t\t\telse if(removeButton.getVisibility() == View.VISIBLE)\n\t\t\t\t\tremoveButton.setVisibility(View.INVISIBLE);\n\n\t\t\t\tif (query.length() > 2) // remove space and set a threshold\n\t\t\t\t\tdataAsync.execute(query);\n\t\t\t}", "boolean moreRecords() { return (tok != null && tok.length() > 0); }", "void setLengthInputFilter(EditText inputText, final Context context, final int maxLength);", "@Override\n public boolean onQueryTextChange(String s) {\n mAdapter.getFilter().filter(s);\n return false;\n }", "private String sanitizeQuery(String query) {\n if (query.length() >= MAX_ALLOWED_SQL_CHARACTERS) {\n throw new TooLongQueryError(query.length());\n }\n return query;\n }", "public boolean filterRowKey(byte[] rowKey, int offset, int length) {\r\n\t\treturn false;\r\n\t}", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n constraint = constraint.toString().toLowerCase();\n FilterResults result = new FilterResults();\n if (constraint != null && constraint.toString().length() > 0) {\n List<Message> filt = new ArrayList<Message>(); //filtered list\n for (int i = 0; i < originalData.size(); i++) {\n Message m = originalData.get(i);\n if (m.getSender().getEmailAddress().getName().toLowerCase().contains(constraint)) {\n filt.add(m); //add only items which matches\n }\n }\n result.count = filt.size();\n result.values = filt;\n } else { // return original list\n synchronized (this) {\n result.values = originalData;\n result.count = originalData.size();\n }\n }\n return result;\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n filter(newText);\n return true;\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n machineAdapter.getFilter().filter(query);\n return false;\n }", "static Extractor byWidth(int count) {\n\t\t\treturn Splitter.fixedWidthTruncationExtractor(count);\n\t\t}", "void searchForProducts(String searchQuery) {\n if (searchQuery.isEmpty()) {\n searchQuery = \"%\";\n } else {\n searchQuery = \"%\" + searchQuery + \"%\";\n }\n filter.postValue(searchQuery);\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if (s.length() > 0 || !s.equals(\"\")) {\n searchBottom.setVisibility(View.GONE);\n }\n if (s.length() <= 0) {\n searchBottom.setVisibility(View.VISIBLE);\n updateHistory();\n }\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n if (!Utils.isEmptyString(query)) {\n mAdapter.getFilter().filter(query);\n recyclerView.setAdapter(mAdapter);\n } else\n recyclerView.setAdapter(null);\n return false;\n }", "void setFoundLength(final int foundLength) {\n this.vars.put(\"foundLength\", String.valueOf(foundLength));\n }", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EnquiryModel> filteredList = new ArrayList<>();\n\n if(constraint == null || constraint.length() == 0){\n //show all data\n filteredList.addAll(enquiryAll);\n }else {\n //filter using keys\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(EnquiryModel enquiryModel : enquiryAll){\n if(enquiryModel.getUser_name().toLowerCase().contains(filterPattern) || enquiryModel.getUser_email().toLowerCase().contains(filterPattern)|| enquiryModel.getHostel_name().contains(filterPattern)|| enquiryModel.getEnquiry_status().contains(filterPattern)){\n filteredList.add(enquiryModel); //store those enquiry whose hostel name contains list as asked.\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n (Business.this).arrayAdapter.getFilter().filter(s);\n\n }", "public int getQueryLength()\n\t{\n\t\treturn myQueryLength;\n\t}", "public static void main (String args [ ] ) {\r\n\t\r\n\tList<String> colors = Arrays.asList(\"red\", \"green\", \"yellow\");\r\n\t \r\n\tPredicate<String> test = n -> {\r\n\t \r\n\tSystem.out.println(\"Searching…\");\r\n\t \r\n\treturn n.contains(\"red\");\r\n\t \r\n\t};\r\n\t \r\n\tcolors.stream()\r\n\t \r\n\t.filter(c -> c.length() > 3).peek(System.out::println\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t)\r\n\t \r\n\t.allMatch(test);\r\n \r\n}", "@Test(expected = IllegalArgumentException.class)\n public void testSearchQuery04() {\n ISearchQuery query = new SearchQuery(null, null, null, null);\n SearchOption option = new SearchOption();\n option.setStrategy(strategy);\n SearchResult result = searchService.search(query, option, deployContext);\n Assert.assertEquals(8, result.getResultSize());\n }", "private void searchQuery() {\n edit_search.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n if (paletteComposition.getVisibility() == View.VISIBLE){\n paletteComposition.setVisibility(View.GONE);\n setComposer.setVisibility(View.VISIBLE);\n }\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n setContactThatNameContains(s.toString().trim());\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n\n }\n });\n }", "public static void refreshStringSearchResults() {\n\t\tString fullSearchText = stringSearchTextField.getText();\n\t\tint fullSearchTextLength = fullSearchText.length();\n\t\t//get rid of any spaces, they're only good for loosening length verification\n\t\tchar[] searchText = fullSearchText.replace(\" \", \"\").toLowerCase().toCharArray();\n\t\tint searchTextLength = searchText.length;\n\t\tif (searchTextLength < 1)\n\t\t\tstringSearchResultsList.setEnabled(false);\n\t\telse {\n\t\t\tstringSearchResultsListModel.removeAllElements();\n\t\t\tsearchableStringsFoundIndices.clear();\n\t\t\t//go through every string and see if it matches the input\n\t\t\tint searchableStringsLength = searchableStrings.length;\n\t\t\tchar startChar = searchText[0];\n\t\t\tfor (int i = 0; i < searchableStringsLength; i++) {\n\t\t\t\tchar[] resultString = searchableStrings[i];\n\t\t\t\tint resultStringLength = resultString.length;\n\t\t\t\t//it can't start at an index if it would go past the end of the string\n\t\t\t\tint maxSearchIndex = resultStringLength - searchTextLength;\n\t\t\t\t//keep track of stats so that we can sort\n\t\t\t\tboolean stringPasses = false;\n\t\t\t\tint matchedLength = Integer.MAX_VALUE;\n\t\t\t\t//first, look for this char in the string\n\t\t\t\tfor (int k = 0; k <= maxSearchIndex; k++) {\n\t\t\t\t\t//we found a spot where it starts\n\t\t\t\t\t//now go through and see if we found our string here\n\t\t\t\t\t//if we find one, keep looking through the string to see if we can find a shorter match\n\t\t\t\t\tif (resultString[k] == startChar) {\n\t\t\t\t\t\t//1 character strings always match single characters\n\t\t\t\t\t\tif (searchTextLength == 1) {\n\t\t\t\t\t\t\tstringPasses = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (int j = 1, newK = k + 1; newK < resultStringLength;) {\n\t\t\t\t\t\t\t\tif (searchText[j] == resultString[newK]) {\n\t\t\t\t\t\t\t\t\tj++;\n\t\t\t\t\t\t\t\t\t//if we got through all our characters, the string matches\n\t\t\t\t\t\t\t\t\tif (j == searchTextLength) {\n\t\t\t\t\t\t\t\t\t\tstringPasses = true;\n\t\t\t\t\t\t\t\t\t\tmatchedLength = Math.min(matchedLength, newK - k + 1);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnewK++;\n\t\t\t\t\t\t\t\t//the string appears not to match, stop searching here\n\t\t\t\t\t\t\t\tif (newK - k >= fullSearchTextLength * 2)\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stringPasses)\n\t\t\t\t\tsearchableStringsFoundIndices.add(new mark(i, matchedLength, resultStringLength));\n\t\t\t}\n\t\t\tif (searchableStringsFoundIndices.size() <= MAX_SEARCH_RESULTS) {\n\t\t\t\tstringSearchResultsList.setEnabled(true);\n\t\t\t\tCollections.sort(searchableStringsFoundIndices);\n\t\t\t\tfor (mark foundIndexStats : searchableStringsFoundIndices)\n\t\t\t\t\tstringSearchResultsListModel.addElement(allStringsListModel.get(foundIndexStats.searchableStringFoundIndex));\n\t\t\t} else {\n\t\t\t\tstringSearchResultsList.setEnabled(false);\n\t\t\t\tstringSearchResultsListModel.addElement(\"Please narrow your search to no more than \" +\n\t\t\t\t\tMAX_SEARCH_RESULTS + \" results (got \" + searchableStringsFoundIndices.size() + \")\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected FilterResults performFiltering(CharSequence arg0) {\n FilterResults filterResults = new FilterResults();\n if (arg0 == null || arg0.length() == 0) {\n filterResults.values = MyArrayObjects;\n filterResults.count = MyArrayObjects.size();\n } else {\n String filterString = arg0.toString().toLowerCase();\n final ArrayList<Com_ItemObject> TempList = new ArrayList<Com_ItemObject>();\n for (Com_ItemObject Sis_ItemObject : MyArrayObjects) {\n //Filters both from Name and Bottom Text\n if ((Sis_ItemObject.getName() + \" \" + Sis_ItemObject.getBottomText()).toLowerCase().contains(filterString)) {\n TempList.add(Sis_ItemObject);\n }\n }\n\n filterResults.values = TempList;\n filterResults.count = TempList.size();\n }\n\n return filterResults;\n }", "public List<FieEsq51333> listarFieEsq51333(String filtro) {\n\t String consulta = \"select l from FieEsq51333 l where l.numEsq51333 like :nuncerc\";\n\t TypedQuery<FieEsq51333> query = manager.createQuery(consulta, FieEsq51333.class).setMaxResults(10);\n\t query.setParameter(\"nuncerc\", \"%\" +filtro+ \"%\");\t \n\t return query.getResultList();\n\t\t}", "private boolean more() {\n return regEx.length() > 0;\n }", "private void searchTableDetailFilter() {\n DefaultTableModel table = (DefaultTableModel) tblLimitDetail.getModel();\n String search;\n search = txtSearchFilterDetail.getText();\n TableRowSorter<DefaultTableModel> tr;\n tr = new TableRowSorter<>(table);\n tblLimitDetail.setRowSorter(tr);\n tr.setRowFilter(RowFilter.regexFilter(\"(?i)\" + search, 1, 2, 3, 4));\n }", "@Override\n public void afterTextChanged(Editable s) {\n filter(s.toString());\n //you can use runnable postDelayed like 500 ms to delay search text\n }", "@Override\n public void onTextChanged(CharSequence cs, int arg1, int arg2, int arg3) {\n Search.this.adapter.getFilter().filter(cs);\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n adapter.getFilter().filter(newText);\n return false;\n }", "public int sizeFilter() {\n\t\treturn this.size(FILTER);\n\t}", "public void searchFunction() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n if(newText.length() > 0) {\n filterRunner(newText);\n } else {\n mRunnersAdapter.setRunners(mRunners);\n mRunnersAdapter.notifyDataSetChanged();\n }\n\n return false;\n }", "@Override\r\n public void onTextChanged(CharSequence cs, int arg1, int arg2,\r\n int arg3) {\n if (arg1 < arg2) {\r\n // We're deleting char so we need to reset the adapter data\r\n adapter.resetData();\r\n }\r\n adapter.getFilter().filter(cs.toString());\r\n }", "public void search(final String editable){\n CountDownTimer timer = new CountDownTimer(500, 100) {\n @Override\n public void onTick(long l) {\n\n }\n public void onFinish() {\n updateResults(editable.toString());\n adapter.notifyDataSetChanged();\n }};\n timer.start();\n }", "@Override\n protected FilterResults performFiltering(CharSequence prefix) {\n FilterResults results = new FilterResults();\n\n // If the adapter array is empty, check the actual items array and use it\n if (mItems == null) {\n mItems = new ArrayList<String>(mItemsArray);\n }\n\n // No prefix is sent to filter by so we're going to send back the original array\n if (prefix == null || prefix.length() == 0) {\n results.values = mItemsArray;\n results.count = mItemsArray.size();\n } else {\n // Compare lower case strings\n String prefixString = prefix.toString().toLowerCase(Locale.getDefault());\n\n // Local to here so we're not changing actual array\n final ArrayList<String> items = mItems;\n final int count = items.size();\n final ArrayList<String> newItems = new ArrayList<String>(count);\n\n for (int i = 0; i < count; i++) {\n final String item = items.get(i);\n String item_compare = item.toLowerCase(Locale.getDefault());\n\n // Match the strings using the filter specified\n if (filterType.equals(match_substring)\n && (item_compare.startsWith(prefixString) || item_compare\n .contains(prefixString))) {\n newItems.add(item);\n } else if (filterType.equals(match_prefix)\n && item_compare.startsWith(prefixString)) {\n newItems.add(item);\n } else if (filterType.equals(match_chars)) {\n char[] toMatch = prefixString.toCharArray();\n\n boolean matches = true;\n for (int j = 0; j < toMatch.length; j++) {\n int index = item_compare.indexOf(toMatch[j]);\n if (index > -1) {\n item_compare =\n item_compare.substring(0, index)\n + item_compare.substring(index + 1);\n } else {\n matches = false;\n break;\n }\n }\n\n if (matches) {\n newItems.add(item);\n }\n\n } else {\n // Default to substring\n if (item_compare.startsWith(prefixString)\n || item_compare.contains(prefixString)) {\n newItems.add(item);\n }\n }\n }\n\n // Set and return\n results.values = newItems;\n results.count = newItems.size();\n }\n\n return results;\n }", "@Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n String text = searchBar.getText().toString().toLowerCase();\n // voer displayArray uit\n filteredUsers.clear();\n int length = users.size();\n for (int i = 0; i < length; i++) {\n final String name = users.get(i).first.toLowerCase();\n if (name.startsWith(text)) {\n filteredUsers.add(users.get(i));\n }\n }\n displayArray(filteredUsers);\n //Log.d(TAG, \"text changed\");\n }", "StandardFilterBuilder standardFilter(int count);", "public void searchFunction1() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView_recylce.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }", "@Test\n\tpublic void stringFilterTest(){\n\t\t\n\t\tList<IElement> result = filter.process(elements);\n\t\t\n\t\tAssert.assertNotNull(\"The result of filter is null!\",result);\n\t\tAssert.assertEquals(\"More results than expected, filter execution fail.\",\n\t\t\t\texpectedResultNum.intValue(),result.size());\n\t\t\n\t\t\n\t}", "protected FilterResults performFiltering(CharSequence prefix) {\n\t\t\tFilterResults results = new FilterResults();\n\t\t\t\n\t\t\t//Every time you type something, start from scratch\n\t\t\tcountries.clear();\n\t\t\tresults.values=null;\n\t\t\tcountries.addAll(countriesBackup);\n\n\t\t\t// No prefix is sent to filter by so we're going to send back the\n\t\t\t// original array\n\t\t\tif (prefix == null || prefix.length() == 0) {\n\t\t\t\tsynchronized (mLock) {\n\t\t\t\t\tLog.d(\"sf\", \"Size of data: \" + Integer.toString(countries.size()));\n\t\t\t\t\tLog.d(\"sf\", \"Size of databackup: \" + Integer.toString(countriesBackup.size()));\n\t\t\t\t\t\n\t\t\t\t\t//reset data\n\t\t\t\t\tresults.values = countriesBackup;\n\t\t\t\t\tresults.count = countriesBackup.size();\n\t\t\t\t\t\n\t\t\t\t\t//data.addAll(dataBackup);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsynchronized (mLock) {\n\n\t\t\t\t\t// Compare lower case strings\n\t\t\t\t\tString prefixString = prefix.toString().toLowerCase();\n\t\t\t\t\tfinal ArrayList<Country> filteredItems = new ArrayList<Country>();\n\t\t\t\t\t// Local to here so we're not changing actual array\n\t\t\t\t\tfinal ArrayList<Country> localItems = new ArrayList<Country>();\n\t\t\t\t\tlocalItems.addAll(countries);\n\n\n\t\t\t\t\tfinal int count = localItems.size();\n\n\t\t\t\t\tfor (int i = 0; i < count; i++) {\n\t\t\t\t\t\tfinal Country item = localItems.get(i);\n\t\t\t\t\t\tfinal String itemName = item.getName().toString()\n\t\t\t\t\t\t\t\t.toLowerCase();\n\n\t\t\t\t\t\t// First match against the whole, non-splitted value\n\t\t\t\t\t\tif (itemName.contains(prefixString)) {\n\t\t\t\t\t\t\tfilteredItems.add(item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t} /*\n\t\t\t\t\t\t * This is option and taken from the source of\n\t\t\t\t\t\t * ArrayAdapter final String[] words =\n\t\t\t\t\t\t * itemName.split(\" \"); final int wordCount =\n\t\t\t\t\t\t * words.length;\n\t\t\t\t\t\t * \n\t\t\t\t\t\t * for (int k = 0; k < wordCount; k++) { if\n\t\t\t\t\t\t * (words[k].startsWith(prefixString)) {\n\t\t\t\t\t\t * newItems.add(item); break; } } }\n\t\t\t\t\t\t */\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set and return\n\t\t\t\t\tresults.values = filteredItems;\n\t\t\t\t\tresults.count = filteredItems.size();\n\t\t\t\t}// end synchronized\n\t\t\t}\n\n\t\t\treturn results;\n\t\t}", "@Override\r\n public boolean onQueryTextSubmit(String query) {\n adapter.getFilter().filter(query);\r\n return true;\r\n }", "@Override\n\tpublic List<DeviceBean> searchDeviceByCondition(String type,String keyword,int userId,String roleName,int number,int size){\n\t\treturn dao.searchDeviceByCondition(type,keyword,userId,roleName,number,size);\n\t}", "public void throttleFilter() throws InvalidQueryException {\n }", "@Override\r\n public boolean onQueryTextChange(String newText) {\n adapter.getFilter().filter(newText);\r\n return true;\r\n }", "@Test\n public void test3() {\n WebElement filterInput = DOM.getFilter();\n filterInput.sendKeys(Keys.BACK_SPACE, Keys.BACK_SPACE, Keys.BACK_SPACE, Keys.BACK_SPACE);\n assertEquals(5, DOM.getRows().size());\n }", "protected void doFilterBuilding() {\r\n\t\tif (filterBuilding.getText().length() > 0) {\r\n\t\t\tfinal String[] words = filterBuilding.getText().split(\"\\\\s+\");\r\n\t\t\tbuildingSorter.setRowFilter(new RowFilter<TileList, Integer>() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic boolean include(\r\n\t\t\t\t\t\tjavax.swing.RowFilter.Entry<? extends TileList, ? extends Integer> entry) {\r\n\t\t\t\t\tTileEntry e = entry.getModel().rows.get(entry.getIdentifier());\r\n\t\t\t\t\tString rowtext = (e.name + \" \" + e.surface + \" \" + e.tile.width + \"x\" + e.tile.height).toLowerCase(); \r\n\t\t\t\t\tfor (String s : words) {\r\n\t\t\t\t\t\tif (!rowtext.contains(s.toLowerCase())) {\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tbuildingSorter.setRowFilter(null);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic List<ViewListeEleve> filter(HttpHeaders headers, List<Predicat> predicats, Map<String, OrderType> orders,\r\n\t\t\tSet<String> properties, Map<String, Object> hints, int firstResult, int maxResult) {\n \tList<ViewListeEleve> list = super.filter(headers, predicats, orders, properties, hints, firstResult, maxResult);\r\n \tSystem.out.println(\"ViewListeEleveRSImpl.filter() size is \"+list.size());\r\n\t\treturn list ;\r\n\t}", "@Override\n public boolean onQueryTextChange(String newText) {\n adapteer.getFilter().filter(newText);\n return false;\n }", "private void processDisplayFlag(String size) {\r\n\t\tif (size.equals(\"all\") == true) {\r\n\t\t\tSystem.out.println(\"Now displaying all words.\");\r\n\t\t\tresults.setMaxResults(Results.ALL_WORDS);\r\n\t\t\treturn;\r\n\t\t} \r\n\t\ttry {\r\n\t\t\tint number = Integer.valueOf(size);\r\n\t\t\tif (number > 0) {\r\n\t\t\t\tSystem.out.format(\"Now displaying %d results%n\", number);\r\n\t\t\t\tresults.setMaxResults(number);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.format(\"Invalid number: %d. Can't display zero or less words.%n\", number);\r\n\t\t\t\tprintHelp();\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\tSystem.out.format(\"Invalid number: %s%n\", size);\r\n\t\t\tprintHelp();\r\n\t\t}\r\n\t}", "private static void checkListSize(List<Map<String, Object>> dataFromDaoList) {\r\n\t\tif (dataFromDaoList == null || dataFromDaoList.size() == 0) {\r\n\t\t\tthrow new ZeroRecordsFoundException(\r\n\t\t\t\t\tReportsConstantsAndUtilityMethods.RECORDS_NOT_FOUND_FOR_YOUR_SEARCH_FILTERS);\r\n\t\t}\r\n\t}", "public LimitedStringValueDriver(int length) {\n this.length = length;\n }", "public void filterFqRdd(JavaSparkContext sc, String folderPath, final int minLength, final int maxLength,\n\t\t\tfinal int minQual, final int maxQual, boolean atgc) throws IOException {\n\t\tJavaRDD<FastqRecord> fqrdd = readFqRDDFolder(sc, folderPath);\n\n\t\tfqEditor.filterJavaRdd(fqrdd, minLength, maxLength, minQual, maxQual, atgc);\n\n\t}", "@Override\n public void afterTextChanged(Editable s)\n {\n String userInput = filter(s.toString());\n\n // Then searches database and return result\n searchDatabase(userInput);\n }", "public void setRecord_length(int len) {\n\t\trecord_length = len;\n\t}", "public static boolean minCharRequirementPassed(String toCheck, int limit) {\n if (toCheck == null) return false;\n return toCheck.length() >= limit;\n }" ]
[ "0.6582514", "0.5942947", "0.56331044", "0.5557192", "0.5439753", "0.5396459", "0.5251971", "0.52147186", "0.515164", "0.51501775", "0.50853586", "0.5055468", "0.505069", "0.5045893", "0.50394094", "0.50239825", "0.5019773", "0.49938095", "0.4987288", "0.49813312", "0.49641114", "0.49241877", "0.49126595", "0.48991245", "0.48801607", "0.487849", "0.48559195", "0.48553646", "0.4843013", "0.48339647", "0.4804502", "0.4804502", "0.4804502", "0.4804502", "0.47916606", "0.47909588", "0.47846916", "0.47831932", "0.47775477", "0.47769997", "0.47656488", "0.47639763", "0.4758037", "0.47559196", "0.47552916", "0.47547528", "0.4749774", "0.47485083", "0.4745901", "0.47444654", "0.47347423", "0.47216573", "0.4717389", "0.47004092", "0.46909252", "0.4689409", "0.468938", "0.4682109", "0.46679965", "0.46629965", "0.466025", "0.46390507", "0.46232584", "0.4622619", "0.46154022", "0.46098235", "0.46058014", "0.46030048", "0.46013308", "0.45999536", "0.4599547", "0.45935887", "0.459276", "0.45926237", "0.45913976", "0.45773447", "0.4572102", "0.45699853", "0.45631424", "0.45616594", "0.45604932", "0.4555624", "0.45550227", "0.45427424", "0.45371273", "0.45302916", "0.45300317", "0.45286575", "0.45255962", "0.45213193", "0.4515855", "0.45113233", "0.45092574", "0.45086527", "0.45085293", "0.4504662", "0.450146", "0.45004198", "0.4496112", "0.44898096", "0.44890985" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frmMatrices = new JFrame(); frmMatrices.setTitle("Matrices"); frmMatrices.setBounds(100, 100, 378, 225); frmMatrices.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frmMatrices.getContentPane().setLayout(null); JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP); tabbedPane.setBounds(0, 0, 360, 120); frmMatrices.getContentPane().add(tabbedPane); JLayeredPane layeredPane = new JLayeredPane(); tabbedPane.addTab("Matriz 1", null, layeredPane, null); layeredPane.setLayout(new BorderLayout(0, 0)); tableM1 = new JTable(); tableM1.setRowHeight(30); tableM1.setModel(new DefaultTableModel( new Object[][] { {null, null, null}, {null, null, null}, {null, null, null}, }, new String[] { "", "", "" } ) { Class[] columnTypes = new Class[] { Integer.class, Integer.class, Integer.class }; public Class getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } }); tableM1.getColumnModel().getColumn(0).setPreferredWidth(76); layeredPane.add(tableM1, BorderLayout.CENTER); JLayeredPane layeredPane_1 = new JLayeredPane(); tabbedPane.addTab("Matriz 2", null, layeredPane_1, null); layeredPane_1.setLayout(new BorderLayout(0, 0)); tableM2 = new JTable(); tableM2.setModel(new DefaultTableModel( new Object[][] { {null, null, null}, {null, null, null}, {null, null, null}, }, new String[] { "", "", "" } ) { Class[] columnTypes = new Class[] { Integer.class, Integer.class, Integer.class }; public Class getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } }); tableM2.setRowHeight(30); layeredPane_1.add(tableM2, BorderLayout.CENTER); JLayeredPane layeredPane_2 = new JLayeredPane(); tabbedPane.addTab("Suma", null, layeredPane_2, null); layeredPane_2.setLayout(new BorderLayout(0, 0)); table_MSuma = new JTable(); table_MSuma.setModel(new DefaultTableModel( new Object[][] { {null, null, null}, {null, null, null}, {null, null, null}, }, new String[] { "", "", "" } ) { Class[] columnTypes = new Class[] { Integer.class, Integer.class, Integer.class }; public Class getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } }); table_MSuma.setRowHeight(30); layeredPane_2.add(table_MSuma, BorderLayout.CENTER); JLayeredPane layeredPane_3 = new JLayeredPane(); tabbedPane.addTab("Producto", null, layeredPane_3, null); layeredPane_3.setLayout(new BorderLayout(0, 0)); tableMProd = new JTable(); tableMProd.setModel(new DefaultTableModel( new Object[][] { {null, null, null}, {null, null, null}, {null, null, null}, }, new String[] { "", "", "" } ) { Class[] columnTypes = new Class[] { Integer.class, Integer.class, Integer.class }; public Class getColumnClass(int columnIndex) { return columnTypes[columnIndex]; } }); tableMProd.setRowHeight(30); layeredPane_3.add(tableMProd, BorderLayout.CENTER); JButton btnCalcular = new JButton("Calcular"); btnCalcular.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { // suma de matrices int suma = 0; for (int i = 0; i < tableM1.getRowCount(); i++) { for (int j = 0; j < tableM2.getColumnCount(); j++) { suma = (int)tableM1.getValueAt(i, j) + (int)tableM2.getValueAt(i, j); table_MSuma.setValueAt(new Integer(suma), i, j); } } // producto de matrices int prod, n, m; for (int i = 0; i < tableM1.getRowCount(); i++) { for (int j = 0; j < tableM1.getRowCount(); j++) { prod = 0; for (int k = 0; k < tableM2.getRowCount(); k++) { n = (int)tableM1.getValueAt(i, k); m = (int)tableM2.getValueAt(k, j); prod += n*m; } tableMProd.setValueAt(prod, i, j); } } } }); btnCalcular.setBounds(133, 133, 97, 25); frmMatrices.getContentPane().add(btnCalcular); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
Confirmation Code as retrieved by the TPP from the redirect based SCA process.
@ApiModelProperty(required = true, value = "Confirmation Code as retrieved by the TPP from the redirect based SCA process.") @NotNull @JsonProperty("confirmationCode") public String getConfirmationCode() { return confirmationCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void requestConfirmationCode() {\n PhoneNumberVerificationRequest.forPhoneNumberVerification(this.airPhone.formattedPhone()).withListener((Observer) this.phoneNumberVerificationRequestListener).execute(this.requestManager);\n }", "String getConfirmationMessage();", "public String confirm()\n\t{\n\t\tconfirm = true;\n\t\treturn su();\n\t}", "java.lang.String getTranCode();", "public String getConfirmationNumber() {\n\t\treturn confirmationNumber;\n\t}", "public String getVerificationString() {\r\n return \"Are you sure you wish to refresh the bank? This operation will require remote initialization of all user presets and samples.\";\r\n }", "public String getVerifyCode() {\r\n return verifyCode;\r\n }", "public IS getPsl17_ProductServiceClarificationCodeType() { \r\n\t\tIS retVal = this.getTypedField(17, 0);\r\n\t\treturn retVal;\r\n }", "@WangZheng\n public void getChallengeCode(){\n try {\n sendMessage(\"getChallengeCodeCallBack\");\n } catch (Exception e) {\n dealWithException(e);\n }\n }", "String getConfirmed();", "public String returnConfirmPassword() {\n\t\treturn this.registration_confirmpassword.getAttribute(\"value\");\r\n\t}", "public String getSendConceptCode () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_SendConceptCode);\n\t}", "public WPSignUpSignInPopUp clickActivateCashBackInSCP() {// SCP stands for Stores Category Page\r\n\t\ttry {\r\n\t\t\treportStep(\"Locating Activate Cashback in SLP\", \"PASS\");\r\n\t\t\tLog.info(\"Locating Activate Cashback in SLP \");\r\n\t\t\tUtils.explicitWaitForVisibility(lnkActivateCashback.get(0));\r\n\t\t\tUtils.click(lnkActivateCashback.get(0));\r\n\t\t\treportStep(\"Clicked successfully Activate Cashback in SLP\", \"PASS\");\r\n\t\t\tLog.info(\"Clicked Successfully Activate Cashback in SLP\");\r\n\t\t}catch(Exception e) {\r\n\t\t\tLog.fatal(\"Unable to Click Activate Cashback in SLP\");\r\n\t\t\treportStep(\"Unable to Click Activate Cashback in SLP\", \"FAIL\");\r\n\t\t}\r\n\t\treturn new WPSignUpSignInPopUp(driver, logger);\r\n\t}", "public IS getProductServiceClarificationCodeType() { \r\n\t\tIS retVal = this.getTypedField(17, 0);\r\n\t\treturn retVal;\r\n }", "public String getCode(){\n\t\treturn new SmartAPIModel().getCpSourceCode(cp.getLocalName());\n\t}", "public void generateConfiramtionCode(){\n \n double tempNum;\n \n //generate random confirmation code (4 - digit)\n try{\n do{\n tempNum = Math.random();\n confirmationCode = (int) (tempNum*10000);\n System.out.println(\"Confirmation Code: \" + confirmationCode);\n }while(confirmationCode<1000);\n }catch(Exception e){}\n \n System.out.println(\"Confirmation Code: \" + confirmationCode);\n JOptionPane.showMessageDialog(null, \"Confirmation Code: \" + confirmationCode);\n }", "public ST getProductServiceClarificationCodeValue() { \r\n\t\tST retVal = this.getTypedField(18, 0);\r\n\t\treturn retVal;\r\n }", "public String confirmationMessage() {\n\t\treturn confMessageLabel.getText();\r\n\t}", "@Override\n\tprotected String showConfirmation() {\n\t\treturn \"Payment is successful. Check your credit card statement for PetSitters, Inc.\";\n\t}", "@Override\n public String getCampusCode() {\n final Person initiator = getPersonService().getPerson(getDocumentHeader().getWorkflowDocument().getInitiatorPrincipalId());\n return initiator.getCampusCode();\n }", "public String getActivationCode() {\r\n\t\treturn activationCode;\r\n\t}", "public java.lang.String CC_GetProvCodebyCallCentre(java.lang.String accessToken, java.lang.String CCCode) throws java.rmi.RemoteException;", "String getEACCode();", "public boolean verifyCode(int inputCode){\n \n if(confirmationCode == inputCode)\n return true;\n else\n return false;\n \n }", "public String getConfirmMessage() {\n return confirmMessage;\n }", "public java.lang.String getCxcode() {\r\r\r\r\r\r\r\n return cxcode;\r\r\r\r\r\r\r\n }", "public String createVerificationCode() {\n\t\tverification = VerificationCode.generateWord();\r\n\t\treturn verification;\r\n\t}", "public String getStsCode() {\n return stsCode;\n }", "public WebElement getEditArticleSuccessConfirmationText() {\n return locateWebElement(\"SuccessConfirmationText\");\n }", "@ApiModelProperty(value = \"The code used by the customer to purchase against this gift certificate.\")\n public String getCode() {\n return code;\n }", "public String getOriginalConsignmentOpenTransactionId() {\n for (Enumeration em = compositePOSTransaction.getSaleLineItems(); em.hasMoreElements(); ) {\n CMSSaleLineItem line = (CMSSaleLineItem)em.nextElement();\n if (line.getConsignmentLineItem() != null) {\n return line.getConsignmentLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n for (Enumeration em = compositePOSTransaction.getReturnLineItems(); em.hasMoreElements(); ) {\n CMSReturnLineItem line = (CMSReturnLineItem)em.nextElement();\n if (line.getConsignmentLineItem() != null) {\n return line.getConsignmentLineItem().getTransaction().getCompositeTransaction().getId();\n }\n }\n return null;\n }", "public String getReturnCode()\r\n\t{\r\n\t\treturn returnCode;\r\n\t}", "@Override\n public void confirm(CorrelationData correlationData, boolean isAck, String cause) {\n System.out.println(\"ack = \" + isAck);\n// System.out.println(\"cause = \" + cause);\n// System.out.println(\"=======ConfirmCallback=========\");\n }", "public String getCompCode() {\n return (String)getAttributeInternal(COMPCODE);\n }", "String getAdditionalCode();", "String getAdditionalCode();", "String getAdditionalCode();", "public String getcCode() {\n\t\treturn this.cCode;\n\t}", "public String getCode() {\n return super.getString(Constants.Properties.CODE);\n }", "public String getText_click_ActivateCoupon_Button(){\r\n\t\treturn click_ActivateCoupon_Button.getText();\r\n\t}", "@Override\n public void onCompletion(Request<TransactionConfirmResponse, SOAP11Fault> request) {\n\n if (request.getResult() != null) {\n String returnCode = request.getResult().getReturnCode();\n String processDescription = request.getResult().getDescription();\n String merchantTransactionId = request.getResult().getMerchantTransactionId();\n String transactionId = request.getResult().getTransactionId();\n\n Log.d(\"M-PESA REQUEST\", \"Return code: \" + returnCode);\n\n if (returnCode.equals(SUCCESS_CODE)) {\n progress.dismiss();\n paymentReady(returnCode, processDescription, merchantTransactionId, transactionId);\n } else {\n progress.dismiss();\n Log.d(\"M-PESA REQUEST\", \"Transaction confirmation failed: \" + returnCode);\n Toast.makeText(activity, \"Something went wrong. Transaction confirmation failed: \" + returnCode, Toast.LENGTH_SHORT).show();\n }\n } else {\n progress.dismiss();\n Log.d(\"M-PESA REQUEST\", \"Result is null\");\n Toast.makeText(activity, \"Something went wrong. No response from Safaricom. Please try again.\", Toast.LENGTH_SHORT).show();\n }\n }", "public ST getPsl18_ProductServiceClarificationCodeValue() { \r\n\t\tST retVal = this.getTypedField(18, 0);\r\n\t\treturn retVal;\r\n }", "public String getAuthCode()\n\t{\n\t\tif(response.containsKey(\"AUTH_CODE\")) {\n\t\t\treturn response.get(\"AUTH_CODE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.lang.String getRequestCode() {\n\t\treturn _tempNoTiceShipMessage.getRequestCode();\n\t}", "@Override\n\tpublic String confirmOrder(int oid, int code) {\n \n\t\tOrder order = orderRepo.findById(oid).get();\n\t\tUser user = order.getUser();\n\t\t\n\t\tSystem.out.println(\"code at conifrmOdrer \"+user.getVerficationCode()+\" matches with int code \"+code);\n\t\tif (user.getVerficationCode() == code) {\n\t\t\tfor (Cart c : user.getCart()) {\n\t\t\t\tcartRepo.delete(c);\n\t\t\t}\n\t\t\tuser.getCart().clear();\n\t\t\torder.setPaymentStatus(\"Success\");\n\t\t\temailService.sendConfirmationMail(user, oid); //Order Information sent to Email.\n\t\t\treturn \"Order successfull\";\n\t\t} else {\n\t\t\torder.setPaymentStatus(\"Failed\");\n\t\t\tfor (Cart c : user.getCart()) {\n\t\t\t\tc.getProduct().setStock(c.getProduct().getStock()+c.getQuantity());\n\t\t\t}\t\t\t\n\t\t\treturn \"Order not successfull\";\n\t\t }\n\t\t\n\t\t\n\n\t}", "@Test\n public void test01ConfRespSignedByRecepient() throws Exception {\n log.trace(\">test01ConfRespSignedByRecepient\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, \"\");\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n PKIMessage confirm = genCertConfirm(userDN, this.cacert, nonce, transid, hash, 0, null);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha256WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test01ConfRespSignedByRecepient\");\n }", "public String getStCodeSpC() {\n return stCodeSpC;\n }", "com.google.protobuf.ByteString\n getTranCodeBytes();", "public void gotoConfirmCode(){\n try {\n FXMLPantallaReservaFinalController verPantallaFinal = (FXMLPantallaReservaFinalController) replaceSceneContent(\"FXMLPantallaReservaFinal.fxml\");\n verPantallaFinal.setApp(this);\n verPantallaFinal.setText();\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public String getSActivityCode() {\n return sActivityCode;\n }", "public java.lang.String getSsoCode() {\r\n return ssoCode;\r\n }", "private String displayCSCResponse(String vCSCResultCode) {\r\n\r\n\t\tString result = \"\";\r\n\t\tif (vCSCResultCode != null || vCSCResultCode.length() == 0) {\r\n\r\n\t\t\tif (vCSCResultCode.equalsIgnoreCase(\"Unsupported\") || vCSCResultCode.equalsIgnoreCase(\"No Value Returned\")) {\r\n\t\t\t\tresult = \"CSC not supported or there was no CSC data provided\";\r\n\t\t\t} else {\r\n\t\t\t\t// Java cannot switch on a string so turn everything to a char\r\n\t\t\t\tchar input = vCSCResultCode.charAt(0);\r\n\r\n\t\t\t\tswitch (input) {\r\n\t\t\t\tcase 'M':\r\n\t\t\t\t\tresult = \"Exact code match\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'S':\r\n\t\t\t\t\tresult = \"Merchant has indicated that CSC is not present on the card (MOTO situation)\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'P':\r\n\t\t\t\t\tresult = \"Code not processed\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'U':\r\n\t\t\t\t\tresult = \"Card issuer is not registered and/or certified\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'N':\r\n\t\t\t\t\tresult = \"Code invalid or not matched\";\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tresult = \"Unable to be determined\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tresult = \"null response\";\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public void ClickOnConfirmCertificateInformationButton()\n\t\t{\n\t\t\tConfirmCertificateInformation.click();\n\t\t}", "public String onChangeResidenceCode()\r\n {\r\n\ttry\r\n\t{\r\n\r\n\t SessionCO sessionCO = returnSessionObject();\r\n\t residenceTypesSC.setCompCode(sessionCO.getCompanyCode());\r\n\t residenceTypesSC.setPreferredLanguage(sessionCO.getPreferredLanguage());\r\n\t residenceTypesVO = residenceTypesBO.returnDependencyByCode(residenceTypesSC);\r\n\t if(residenceTypesVO == null)\r\n\t {\r\n\t\tthrow new BOException(MessageCodes.INVALID_MISSING_CODE);\r\n\t }\r\n\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t residenceTypesVO = new RESIDENCE_TYPESVO();\r\n\t handleException(e, null, null);\r\n\t}\r\n\treturn SUCCESS;\r\n }", "public String getParameterCode(){\r\n final String connectTo = CoeusGuiConstants.CONNECTION_URL+ \"/coeusFunctionsServlet\";\r\n final String PARAMETER = \"ENABLE_PROTOCOL_TO_DEV_PROPOSAL_LINK\"; \r\n String value = EMPTY_STRING;\r\n // CoeusVector vctAppointments = null;\r\n RequesterBean requester = new RequesterBean();\r\n ResponderBean responder = null;\r\n requester.setDataObject(GET_PARAMETER_VALUE);\r\n Vector vecParameter = new Vector();\r\n vecParameter.add(PARAMETER);\r\n requester.setDataObjects(vecParameter);\r\n AppletServletCommunicator comm\r\n = new AppletServletCommunicator(connectTo, requester);\r\n comm.send();\r\n responder = comm.getResponse();\r\n if(responder.isSuccessfulResponse()){\r\n value =(String) responder.getDataObject();\r\n }\r\n return value;\r\n }", "public int getCode() {\n\t\treturn adaptee.getCode();\n\t}", "public String getValue_click_ActivateCoupon_Button(){\r\n\t\treturn click_ActivateCoupon_Button.getAttribute(\"value\");\r\n\t}", "protected abstract InGameServerCommand getCommandOnConfirm();", "java.lang.String getCode();", "java.lang.String getCode();", "String getVerified();", "@Action(value = \"retrieveCtepId\",\n results = @Result(type = \"json\", params = { \"root\", \"certificate.issuer.ctepId\" }))\n public String retrieveCtepId() {\n return SUCCESS;\n }", "public byte getCLA() {\n return this.apdu_buffer[CLASS];\n }", "@Override\r\n public void confirmDialogPositive(int callbackFunctionID) {\n \r\n }", "public int confirmar(String cpf, String data, String nome) {\n\t\tif(nome.equals(\"\")){\n\t\t\t\n\t\t\treturn 0;\n\t\t}\n\t\tLong aux=Long.parseLong(cpf);\n\t\t\n\t\tCliente c = clienteDAO.buscarClienteCPF(aux);\n\t\tif (c == null) {\n\t\t\tCliente temp=new Cliente();\n\t\t\ttemp.setCPF(aux);\n\t\t\ttemp.setData(data);\n\t\t\ttemp.setNome(nome);\n\t\t\tclienteDAO.salvar(temp);\n\t\t\t//Cliente cliente = new Cliente();\n\t\t\t\n\t\t\treturn 1;\n\t\t\n\t\t}\n\t\treturn 2;\n\t}", "public String getProcessCode() {\n \tif (isProcessDocumentNotNull()) {\n \t\treturn getProcessDocument().getDocCode();\n \t}\n\t\treturn processCode;\n\t}", "public String approveRegistration() {\n\t\treturn \"Company approved\";\r\n\t}", "public String createRegisterVerificationCode() {\n\t\tregisterVerification = VerificationCode.generateWord();\r\n\t\treturn registerVerification;\r\n\t}", "public String getPmscode() {\n return pmscode;\n }", "public String getCode() {\n return (String)getAttributeInternal(CODE);\n }", "@Test\n public void test02ConfRespSignedByDefaultCA() throws Exception {\n log.trace(\">test02ConfRespSignedByDefaultCA\");\n\n this.cmpConfiguration.setResponseProtection(cmpAlias, \"signature\");\n this.cmpConfiguration.setCMPDefaultCA(cmpAlias, this.testx509ca.getSubjectDN());\n this.globalConfigurationSession.saveConfiguration(ADMIN, this.cmpConfiguration);\n\n byte[] nonce = CmpMessageHelper.createSenderNonce();\n byte[] transid = CmpMessageHelper.createSenderNonce();\n\n // Send a confirm message to the CA\n String hash = \"foo123\";\n // the parameter 'null' is to generate a confirm request for a recipient that does not exist\n PKIMessage confirm = genCertConfirm(userDN, null, nonce, transid, hash, 0, PKCSObjectIdentifiers.sha1WithRSAEncryption);\n assertNotNull(confirm);\n ByteArrayOutputStream bao = new ByteArrayOutputStream();\n ASN1OutputStream dOut = ASN1OutputStream.create(bao, ASN1Encoding.DER);\n dOut.writeObject(confirm);\n byte[] ba = bao.toByteArray();\n // Send request and receive response\n byte[] resp = sendCmpHttp(ba, 200, cmpAlias);\n checkCmpResponseGeneral(resp, this.testx509ca.getSubjectDN(), userDN, this.cacert, nonce, transid, true, null, PKCSObjectIdentifiers.sha1WithRSAEncryption.getId());\n checkCmpPKIConfirmMessage(userDN, this.cacert, resp);\n\n log.trace(\"<test02ConfRespSignedByDefaultCA\");\n }", "public String getTranscode() {\n\t\treturn transcode;\n\t}", "public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCompCode() {\n return compCode;\n }", "@Override\n public void onCodeSent(String s, PhoneAuthProvider.ForceResendingToken forceResendingToken){\n super.onCodeSent(s, forceResendingToken);\n Log.d(TAG, \"sendVerificationCode: VERIFY SENT\");\n verificationId = s;\n }", "public String getResultCode() {\r\n\t\treturn resultCode;\r\n\t}", "public String getRespcode() {\n\t\treturn respcode;\n\t}", "public String getCode()\n {\n return code;\n }", "public int getMessageCodeValue();", "private String processPaymentStatus() {\n\t\treturn new Random().nextBoolean() ? \"success\" : \"failure\";\n\t}", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "public GiftCardProductQuery redirectCode() {\n startField(\"redirect_code\");\n\n return this;\n }", "public String code() {\n return this.code;\n }", "public String code() {\n return this.code;\n }", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();" ]
[ "0.5981094", "0.5903277", "0.58700526", "0.5797126", "0.55228007", "0.55136544", "0.55126935", "0.5510237", "0.5486616", "0.54742986", "0.54737604", "0.5469107", "0.5449147", "0.54396105", "0.5437086", "0.54305553", "0.5414924", "0.5403281", "0.5394733", "0.53800017", "0.53616035", "0.53103125", "0.52931213", "0.5278169", "0.5252097", "0.524804", "0.51834166", "0.5172364", "0.51626116", "0.5160057", "0.51578826", "0.5153257", "0.5142153", "0.51418346", "0.51257783", "0.51257783", "0.51257783", "0.51207733", "0.51060957", "0.5105705", "0.51047784", "0.50922006", "0.50888854", "0.5081885", "0.50762147", "0.5068046", "0.5066735", "0.50664455", "0.50658077", "0.5063727", "0.5051147", "0.5049995", "0.50483197", "0.5042269", "0.5028594", "0.50128216", "0.49981257", "0.499067", "0.49892542", "0.49892542", "0.49801585", "0.49754268", "0.49725148", "0.49707484", "0.4969692", "0.49654895", "0.49600732", "0.4958977", "0.4954807", "0.49449608", "0.49418035", "0.49358022", "0.4935675", "0.4926111", "0.4916655", "0.4916655", "0.4916655", "0.4916655", "0.4916655", "0.4916655", "0.4916655", "0.49145943", "0.49135113", "0.4910644", "0.49025968", "0.48971933", "0.4895438", "0.48917073", "0.4891235", "0.4891235", "0.48884663", "0.48868242", "0.48868242", "0.48863083", "0.48863083", "0.48803264", "0.48803264", "0.48803264", "0.48803264", "0.48803264" ]
0.68414706
0
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168" ]
0.0
-1
RTTI Class (RunTime Type Information Class)
public interface RTTIClass { /** * Get the value of baseClass * * @return the value of baseClass */ public Class getBaseClass(); /** * Set the value of baseClass * * @param baseClass new value of baseClass */ //public void setBaseClass(Class baseClass); /** * Return true if class implements interface */ public boolean isInstanceOf(Class c); public RTTIClass getRTTIClassRoot(); public Annotation getAnnotation(Class baseClass) throws Throwable; public Collection<Annotation> getAnnotations() throws Throwable; public Field getField(String name) throws Throwable; public Collection<Field> getFields() throws Throwable; public Method getMethod(String name, Class[] types) throws Throwable; public Collection<Method> getMethods() throws Throwable; /* * Info */ public Collection<String> getBeanFields() throws Throwable; //public Collection<Method> getBeanFieldMethods() throws Throwable; /* * Select */ public RTTIClass select(ClassFilter filter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Type getType();", "TypeRef getType();", "abstract public String getType();", "protected abstract String getType();", "public Class getRunTimeType() {\n return lho.getRuntimeType();\n }", "type getType();", "public abstract Type getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "abstract public Type type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "@Override abstract public String type();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "public abstract int getType();", "public abstract int getType();", "public abstract int getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public IType getType();", "@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "public String getType() {\n return PyTorchLibrary.LIB.iValueGetType(getHandle());\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}" ]
[ "0.6627581", "0.65600824", "0.652821", "0.6493358", "0.64236665", "0.6420432", "0.63810015", "0.63616234", "0.63616234", "0.63616234", "0.63616234", "0.63616234", "0.63616234", "0.63616234", "0.63616234", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.6360763", "0.631042", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6278278", "0.6261669", "0.6235935", "0.6235935", "0.6235935", "0.6235935", "0.6235935", "0.6235935", "0.6235935", "0.6235935", "0.6219761", "0.6219761", "0.6219761", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.6198133", "0.61923087", "0.6163337", "0.615384", "0.615384", "0.615384", "0.615384", "0.615384", "0.615384", "0.615384", "0.615384", "0.615384", "0.615384", "0.615384", "0.6147422", "0.6146742" ]
0.0
-1
Get the value of baseClass
public Class getBaseClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBaseClass() {\n\t\treturn _baseClass;\n\t}", "public String getBaseCls () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.baseCls);\r\n\t}", "public Class<?> getBaseClass()\n {\n return baseClass;\n }", "Object getBase();", "public Class<? super U> getBaseClass() {\n return keyRing.getType();\n }", "@objid (\"7c271445-4f62-40f6-a5cd-146acbb64048\")\n GeneralClass getBase();", "public Class<T> getBaseClass()\n {\n return underlyingClass;\n }", "public final ClassMap getBaseClassMap()\n {\n return baseClassMap;\n }", "@Override\n Derived get();", "Type getForPersistentMapping_BaseType() {\n return baseType;\n }", "public String getBase()\n {\n return base;\n }", "public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }", "public String getBaseClassName() {\n return className;\n }", "public Coding classValue() {\n return getObject(Coding.class, FhirPropertyNames.PROPERTY_CLASS);\n }", "public abstract Object getValue(ELContext context,\n Object base,\n Object property);", "public int getBaseInstance() {\n return baseInstance;\n }", "public int getBaseInstance() {\n return baseInstance;\n }", "public int getRequiredBase() {\n return requiredBase;\n }", "public BaseInfo getBaseInfo() {\n return baseInfo;\n }", "@objid (\"332a71dc-5b01-4699-b13d-7978d6dfd6de\")\n void setBase(GeneralClass value);", "public Integer getBase();", "@Override\n public String getBase() {\n return base;\n }", "ClassVariable getClassVariable();", "public ClassConstant getSuperClassConstant()\n {\n ensureLoaded();\n return m_clzSuper;\n }", "public boolean getBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(BASE$18);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "DataType getBase_DataType();", "public double getBase()\r\n {\r\n return Base;\r\n }", "Object getClass_();", "Object getClass_();", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "public Integer getClazz() {\n return clazz;\n }", "public Class<?> getValueClass() {\n if (valueClass == null) {\n try {\n valueClass = Class.forName(className);\n } catch (ClassNotFoundException exception) {\n Logging.unexpectedException(Key.class, \"getValueClass\", exception);\n valueClass = Object.class;\n }\n }\n return valueClass;\n }", "public Class<? extends Type> getValueClass() {\n return valueClass;\n }", "public String getDerivedFrom()\n {\n return derivedFrom;\n }", "@SuppressWarnings(\"unchecked\")\n private Class<? extends BaseDataParserInterface> getDataParserClass(Integer baseType) {\n Class<? extends BaseDataParserInterface> c = null;\n\n if (baseDataParserClasses.get(baseType) == null) {\n String cname = context.getPackageName() + \".bases.b\" + baseType + \".BaseDataParser\";\n if (cname != null) {\n try {\n c = (Class<? extends BaseDataParserInterface>) Class.forName(cname);\n }\n catch (ClassNotFoundException e) {\n Log.e(TAG, \"Looking for BaseDataParser Class (\" + cname + \"), not found: \" + e.getMessage());\n }\n catch (Exception e) {\n Log.e(TAG, \"Looking for BaseDataParser Class Error: \" + e.getMessage());\n }\n }\n if (c != null) {\n baseDataParserClasses.put(baseType, c);\n }\n }\n else {\n c = baseDataParserClasses.get(baseType);\n }\n\n return c;\n }", "public String getSuperClass() {\n\t\treturn superField.getText();\n\t}", "public TDataObject getBaseDataObject(\n )\n {return baseDataObject;}", "public double getBase() {\n\t\treturn base;\n\t}", "public int getNumericBase() {\n return _base;\n }", "public List<BaseClass> baseClasses() {\r\n\t\treturn this.baseClasses;\r\n\t}", "public Integer getSuperclass() {\n return superclass;\n }", "@Override\n\tpublic Base getBase() {\n\t\treturn null;\n\t}", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "String getModeledBaseType(Object elementID) throws Exception;", "public Boolean getBase() {\n return base;\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "public int getSueldoBase() {\n return sueldoBase;\n }", "public Class<?> getType() {\n return this.value.getClass();\n }", "@objid (\"9a83ac2d-0b09-43f4-8fe1-99b21824cd6b\")\n Parameter getPBase();", "public IApplicationType getApplicationBaseType() {\n\t\treturn ModelClasses.findApplicationType();\n\t}", "public org.apache.xmlbeans.XmlBoolean xgetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(BASE$18);\r\n }\r\n return target;\r\n }\r\n }", "public Class<?> getCommonPropertyType(ELContext context, Object base) {\n/* 483 */ Class<?> commonPropertyType = null;\n/* 484 */ for (int i = 0; i < this.size; i++) {\n/* */ \n/* 486 */ Class<?> type = this.elResolvers[i].getCommonPropertyType(context, base);\n/* 487 */ if (type != null)\n/* */ {\n/* */ \n/* 490 */ if (commonPropertyType == null) {\n/* 491 */ commonPropertyType = type;\n/* 492 */ } else if (!commonPropertyType.isAssignableFrom(type)) {\n/* */ \n/* 494 */ if (type.isAssignableFrom(commonPropertyType)) {\n/* 495 */ commonPropertyType = type;\n/* */ } else {\n/* */ \n/* 498 */ return null;\n/* */ } \n/* */ } } \n/* 501 */ } return commonPropertyType;\n/* */ }", "String getClazz();", "private double getBaseValue(EssayInstance instance) {\n Double value = instance.getFeature(baseName);\n if (value == null) {\n // duplicate features\n HashMap<String, Double> values = baseFeature.getFeatureScores(instance);\n instance.setFeature(baseName, values.get(baseName));\n value = values.get(baseName);\n }\n return value.doubleValue();\n }", "public abstract Class getDataClass();", "public SpriteBase getSpriteBase() {\n return spriteBase;\n }", "private CurrencyAccessBean determineBaseCurrency() {\n\t// Determine base currency\n\tCurrencyAccessBean crab = null;\n\ttry {\n\t\tNamedValueAccessBean cab = new NamedValueAccessBean();\n\t\tcab.setInitKey_id(\"BASE_CURRENCY\");\n\t\tcab.refreshCopyHelper();\n\n\t\tcrab = new CurrencyAccessBean();\n\t\tcrab.setInitKey_currency(cab.getIntvalue());\n\t\tcrab.refreshCopyHelper();\n\t} catch (Exception ex) {\n\t\tcrab = null;\n\t\tSystem.out.println(\"PLATINUM-SYNC: BASE_CURRENCY constant not found or illegal\");\n\t}\n\treturn crab;\n}", "abstract String getClassName();", "public String getSuperClass(){\n\t\treturn targetClass.superName;\n\t}", "public String getClazz();", "public String getType () {\n // Will resolve to specific subclass\n return this.getClass().getSimpleName();\n }", "public static Class get_CLASS()\n {\n return WrapperMap.Values.class;\n }", "public int getBaseNumber() {\r\n\t\treturn baseNumber;\r\n\t}", "public DocumentoBase getDocumentoBase()\r\n/* 130: */ {\r\n/* 131:154 */ return this.documentoBase;\r\n/* 132: */ }", "public String getActiveClass () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.activeClass);\r\n\t}", "@Override\n public ClassInfo getClassInfo() {\n return this.classInfo;\n }", "Class<V> getValueClass();", "public java.lang.String getJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "String getInstanceOfClass();", "public Class<V> getValueClass() {\n return valueClass;\n }", "public abstract T getValue();", "public abstract T getValue();", "public abstract String getClassName();", "Object getTipo();", "private double classValue(){\n return m_ClassValue;\n }", "protected Object fetchBean()\n {\n if (isAttributeDefined(ATTR_REF))\n {\n return getContext().findVariable(getStringAttr(ATTR_REF));\n }\n\n else\n {\n BeanContext bc = FormBaseTag.getBuilderData(getContext())\n .getBeanContext();\n if (isAttributeDefined(ATTR_BEAN_CLASS))\n {\n Class<?> beanClass = FormBaseTag.convertToClass(getAttributes()\n .get(ATTR_BEAN_CLASS));\n return bc.getBean(beanClass);\n }\n else\n {\n return bc.getBean(getStringAttr(ATTR_BEAN_NAME));\n }\n }\n }", "public short getClazz() {\n return clazz;\n }", "@SuppressWarnings(\"unchecked\")\n\tprotected Class<Model> getEntityClass() {\n\t\tParameterizedType pt = (ParameterizedType) this.getClass().getGenericSuperclass();\n\t\treturn (Class<Model>) pt.getActualTypeArguments()[0];\n\t}", "public final Class<T> getRawClass() {\n if (class_ == null) {\n class_ = getClass(type_);\n }\n return class_;\n }", "public Ship getBase() {\n return base;\n }", "public DigitClass getDigitClass () {\n \treturn center.getDigitClass();\n }", "public BCClass getSuperClass() {\n\t\tif (superClass != null) {\n\t\t\treturn superClass;\n\t\t}\n\t\tsuperClass = JavaApplication.Application.getClass(superClassName);\n\t\treturn superClass;\n\t}", "public static String getCaseBase() {\n\t\treturn casebase;\n\t}", "public LocatorIF getBase() {\n return base_address;\n }", "public abstract Class getExpectedClass ();", "public ClassConstant getClassConstant()\n {\n ensureLoaded();\n return m_clzName;\n }", "public String getClassType() {\n return classType;\n }", "public abstract String get();", "@Override\n\tpublic String getBaseDataClassName() {\n\t\treturn \"\";\n\t}", "public abstract int getInfraredValue();", "public ITool getSuperClass();", "XClass getSuperclass();", "char[] getSuperclassName();", "public String getSuper()\n {\n ensureLoaded();\n return (m_clzSuper == null ? (String) null : m_clzSuper.getValue());\n }", "public String getSuperclass() {\n\t\treturn null;\n\t}", "public TileVariant getBaseVariant() {\r\n\t\treturn baseVariant;\r\n\t}" ]
[ "0.7278778", "0.7027033", "0.6991066", "0.67726034", "0.67308325", "0.66751826", "0.63814545", "0.626415", "0.61762124", "0.6166567", "0.61650383", "0.61511356", "0.6120171", "0.6114343", "0.6110306", "0.6091484", "0.6091484", "0.60834116", "0.6079064", "0.6052677", "0.60160786", "0.6001175", "0.59968114", "0.5959156", "0.5948598", "0.58938634", "0.5875667", "0.5842579", "0.5842579", "0.5776887", "0.5776887", "0.5773816", "0.5762174", "0.5747111", "0.5706136", "0.5701167", "0.5692293", "0.56862605", "0.5668672", "0.5660985", "0.5644505", "0.5630408", "0.5624021", "0.55728936", "0.55728936", "0.55728936", "0.5572094", "0.55627877", "0.55591387", "0.55591387", "0.5546743", "0.5543279", "0.55418706", "0.55365086", "0.5533943", "0.55285656", "0.55179375", "0.5513698", "0.55027914", "0.5495283", "0.5494008", "0.5480772", "0.54790705", "0.5477742", "0.5475096", "0.5472461", "0.54609877", "0.5460122", "0.5458848", "0.54544836", "0.544806", "0.5447523", "0.5442208", "0.54396564", "0.54326415", "0.54326415", "0.54179674", "0.5417618", "0.5409335", "0.5400503", "0.53890073", "0.5374494", "0.536786", "0.53513354", "0.53508604", "0.5350639", "0.5350344", "0.5349806", "0.5346014", "0.53441995", "0.5343661", "0.53425264", "0.5336152", "0.53288627", "0.5327109", "0.5325332", "0.5313176", "0.53107643", "0.5302017", "0.5296211" ]
0.69290626
3
Set the value of baseClass
public boolean isInstanceOf(Class c);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBaseClass(Class<?> baseClass)\n {\n this.baseClass = baseClass;\n }", "@objid (\"332a71dc-5b01-4699-b13d-7978d6dfd6de\")\n void setBase(GeneralClass value);", "public void setBaseClass(java.lang.String new_baseClass) {\n\t\t_baseClass = new_baseClass;\n\t}", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "void setForPersistentMapping_BaseType(Type baseType) {\n this.baseType = baseType;\n }", "public void setBaseCls ( String baseCls ) {\r\n\t\tgetStateHelper().put(PropertyKeys.baseCls, baseCls);\r\n\t\thandleAttribute(\"baseCls\", baseCls);\r\n\t}", "public void setClass_(String newValue);", "public void setBase(boolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }", "public void setBaseClassMap(ClassMap baseClassMap)\n {\n this.baseClassMap = baseClassMap;\n if (baseClassMap == null)\n {\n this.baseLinkInfo = null;\n } \n }", "public void xsetBase(org.apache.xmlbeans.XmlBoolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.set(base);\r\n }\r\n }", "public abstract void setValue(ELContext context,\n Object base,\n Object property,\n Object value);", "public void setBase(Integer base);", "void setClassType(String classType);", "public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }", "private void setBasePolicyClassProp(String name) throws TestException {\n try {\n Security.setProperty(basePolicyClassProperty, name);\n logger.log(Level.FINE, \"Reset basePolicyClassProperty to \" + name);\n } catch (Exception e) {\n throw new TestException(e.toString());\n }\n }", "public IRubyObject setClassVar(String name, IRubyObject value) {\n RubyModule module = this;\n do {\n if (module.hasClassVariable(name)) {\n return module.storeClassVariable(name, value);\n }\n } while ((module = module.getSuperClass()) != null);\n \n return storeClassVariable(name, value);\n }", "public void setBase(Ship base) {\n this.base = base;\n }", "public abstract Builder setBaseOptions(BaseOptions value);", "public void setRequiredBase(int value) {\n this.requiredBase = value;\n }", "public void setClazz(String clazz);", "public void setBaseInfo(BaseInfo baseInfo) {\n this.baseInfo = baseInfo;\n }", "@Override\n\tpublic void setClassValue(final String value) {\n\n\t}", "public TypeData(ClassData baseClass) {\n this.baseClass = baseClass;\n //this.restriction = \n }", "public void setBase(double base) {\n\t\tthis.base = base;\n\t}", "public void setTargetObjectClass(ClassDefinitionDMO value) {\n DmcAttribute<?> attr = get(DmpDMSAG.__targetObjectClass);\n if (attr == null)\n attr = new DmcTypeClassDefinitionREFSV(DmpDMSAG.__targetObjectClass);\n else\n ((DmcTypeClassDefinitionREFSV)attr).removeBackReferences();\n \n try{\n attr.set(value);\n set(DmpDMSAG.__targetObjectClass,attr);\n }\n catch(DmcValueException ex){\n throw(new IllegalStateException(\"The type specific set() method shouldn't throw exceptions!\",ex));\n }\n }", "protected void setJavaClass(Class type) {\n this._class = type;\n }", "public void changeToBaseOne() {\r\n\t\tthis.numberBase = 1;\r\n\t}", "public String getBaseClass() {\n\t\treturn _baseClass;\n\t}", "@Override\n public void setValue(ELContext context, Object base, Object property,\n Object value) throws NullPointerException, PropertyNotFoundException,\n PropertyNotWritableException, ELException {\n }", "@objid (\"4a70fdf5-35b2-4c97-bf6d-f67d64977605\")\n void setPBase(Parameter value);", "public void setDocumentoBase(DocumentoBase documentoBase)\r\n/* 135: */ {\r\n/* 136:158 */ this.documentoBase = documentoBase;\r\n/* 137: */ }", "public void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);", "public abstract void setValue(T value);", "public void setSuperClass(TypeData sclas) {\n m_superClass = sclas;\n if (sclas != null) {\n boolean imported = m_importsTracker.addImport(sclas.getFullName(), false);\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"Set superclass of \" + getFullName() + \" to \" + sclas.getFullName() +\n (imported ? \" (imported)\" : \"\"));\n }\n }\n }", "public void setBase(LocatorIF base_address) {\n this.base_address = base_address;\n }", "public void setDataClass(Class<?> clazz) {\n\t\t\n\t}", "public void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);", "public void setSpriteBase(SpriteBase spriteBase) {\n this.spriteBase = spriteBase;\n }", "public UseBeanBaseTag(Class<?> defaultClass, Class<?> baseClass)\n {\n super(defaultClass);\n initReservedAttributes();\n setBaseClass(baseClass);\n }", "public void setInheritedProperty(String name, String value) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n ph.setInheritedProperty(null, name, value);\n }", "public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}", "public abstract void setUp(@NonNull T baseObject);", "public void setBasecurrency(java.lang.Integer newBasecurrency) {\n\tbasecurrency = newBasecurrency;\n}", "@Override\n\tpublic void setClassValue(final double value) {\n\n\t}", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public Class<?> getBaseClass()\n {\n return baseClass;\n }", "public CompilationBuilder setScriptBaseClass(String scriptBaseClass) {\n\t\tcompilerConfiguration.setScriptBaseClass(scriptBaseClass);\n\t\treturn this;\n\t}", "public Class getBaseClass();", "public void setClazz(short value) {\n this.clazz = value;\n }", "public void setObjectClass(Class objectAPI)\n {\n _objectClass = objectAPI;\n }", "public void setBaseModel(BaseModel param) {\n this.localBaseModel = param;\n }", "@Resource\n public void setBaseDao(AdvTypeMapper baseDao) {\n super.setBaseDao(baseDao);\n }", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "protected void setBaseMaxHealth(int baseMaxHealth) \r\n\t{\tthis.baseMaxHealth = baseMaxHealth;\t}", "public void setTargetObjectClass(Object value) throws DmcValueException {\n DmcTypeClassDefinitionREFSV attr = (DmcTypeClassDefinitionREFSV) get(DmpDMSAG.__targetObjectClass);\n if (attr == null)\n attr = new DmcTypeClassDefinitionREFSV(DmpDMSAG.__targetObjectClass);\n else\n attr.removeBackReferences();\n \n attr.set(value);\n set(DmpDMSAG.__targetObjectClass,attr);\n }", "void setMainClass(Class<?> mainClass);", "public ExtraJaxbClassModel setClazz(Class<?> clazz);", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "public void setExtClass(Class clas){\n\t\t\n\t\tthis.clas = clas;\n\t}", "public void setBaseMP5(int baseMP5)\r\n {\r\n this.mBaseMP5 = baseMP5;\r\n }", "public void setBaseNumber(int baseNumber) {\r\n\t\tthis.baseNumber = baseNumber;\r\n\t}", "public void setDataType(Class newclass) {\n datatype=newclass;\n }", "public void setConfig(IndividualCacheLoaderConfig base)\n {\n if (base instanceof TcpDelegatingCacheLoaderConfig)\n {\n this.config = (TcpDelegatingCacheLoaderConfig) base;\n }\n else\n {\n config = new TcpDelegatingCacheLoaderConfig(base);\n }\n }", "public void setDescriptorBase(Ed descriptorBase) {\n\n this.descriptorBase = descriptorBase;\n //Se descriptorBase existe, atribui este como seu parente\n// if(this.descriptorBase != null)\n// this.descriptorBase.setParent(this);\n }", "void setClassOfService(ClassOfService serviceClass);", "public void setStd_Base (String Std_Base);", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public void setSuperType(Class<?> superType) {\n if (superType != null) {\n this.superType = type.getSupertype((Class) superType);\n }\n }", "public void setSubClass(String subClass, String superClass)\r\n\t{\r\n\t\tOntClass _sub = obtainOntClass(subClass);\r\n\t\tOntClass _super = obtainOntClass(superClass);\r\n\t\t\r\n\t\t_sub.setSuperClass(_super);\r\n\t}", "protected void setType(Class<?> type) {\n\t\tproxy.setType(type);\n\t}", "public void setClazzName(String clazz);", "public void setDerived(boolean derived) {\n this.fDerived = derived;\n }", "public void setClassObject(Object obj)\n\n {\n\n this.classObject = obj;\n\n }", "public static void set_ClassStereotype(String s, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaClassStereotypeCmd, s, v);\n UmlCom.check();\n \n UmlStereotype st = (UmlStereotype) UmlSettings._map_class_stereotypes.get(s);\n \n if (st == null)\n st = UmlSettings.add_class_stereotype(s);\n st.java = v;\n }", "public void xsetJavaClass(org.apache.xmlbeans.XmlNMTOKEN javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNMTOKEN target = null;\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.set(javaClass);\r\n }\r\n }", "public void setSuper(String sSuper)\n {\n ensureLoaded();\n m_clzSuper = (sSuper == null ? (ClassConstant) null : new ClassConstant(sSuper));\n setModified(true);\n }", "public void setValue(Class<? extends ADao> pType, String pName, String pAttribute, Object pValue) {\n\t\t\n\t}", "public void setClazz(Integer clazz) {\n this.clazz = clazz;\n }", "public abstract void setValue(Context c, Object v) throws PropertyException;", "protected abstract void setValue(V value);", "public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }", "public void setPropertyClass(Integer propertyClass)\r\n\t{\r\n\t\tthis.propertyClass = propertyClass;\r\n\t}", "public void setBase(List<Integer> base) {\n\t\tthis.base = new ArrayList<Integer>(base);\n\t}", "public void setJavaClass(java.lang.String javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.setStringValue(javaClass);\r\n }\r\n }", "public void setBase(Double x, Double y) {\n\t\tconfig[0] = x;\n\t\tconfig[1] = y;\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "public abstract void setValue(int value);", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "@Override\n\t/**\n\t * sets the class ID for the created class, the class ID is the\n\t * primary method for identifying a class's name and all of its methods,\n\t * variables, and comments \n\t * \n\t * @param s \n\t */\n\tpublic void setClassID(int s) {\n\t\tID = s;\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "protected void setBaseMaxMana(int baseMaxMana) \r\n\t{\tthis.baseMaxMana = baseMaxMana;\t}", "public void SetAsClass () throws java.io.IOException, com.linar.jintegra.AutomationException;", "@objid (\"7c271445-4f62-40f6-a5cd-146acbb64048\")\n GeneralClass getBase();", "public void setBaseModelMaker( ModelMaker m ) {\n this.maker = m;\n }", "void setBaseUri(String baseUri);", "public void setBaseHealth(int baseHealth)\r\n {\r\n this.mBaseHealth = baseHealth;\r\n }", "@Autowired\n\t@Override\n\tpublic void setBaseMapper() {\n\t\tthis.baseMapper=trxMapper;\n\t}", "public void setStaticType(Class type);", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "@ApiModelProperty(value = \"When sub-classing, this defines the super-class\")\n\n\n public String getBaseType() {\n return baseType;\n }", "@Override\r\n\tpublic void setTipo(Tipo t) {\n\t\t\r\n\t}", "public Class<T> getBaseClass()\n {\n return underlyingClass;\n }" ]
[ "0.7882265", "0.74773556", "0.71638936", "0.70986706", "0.66935354", "0.6622787", "0.6621377", "0.65776026", "0.6400975", "0.6325753", "0.6305069", "0.623268", "0.6149232", "0.61220735", "0.6121377", "0.6058245", "0.6000764", "0.59572667", "0.59255916", "0.5908453", "0.5892296", "0.5887128", "0.5882041", "0.5848854", "0.58289504", "0.580306", "0.5784179", "0.5746976", "0.5695518", "0.56918687", "0.56559896", "0.56218463", "0.56042904", "0.55684143", "0.55680764", "0.55632985", "0.55494076", "0.55395293", "0.55166423", "0.5514992", "0.551478", "0.55136645", "0.55103725", "0.5489135", "0.54761744", "0.54542977", "0.5446204", "0.54223114", "0.54136175", "0.5397548", "0.53954625", "0.53859246", "0.53719974", "0.53559005", "0.5345034", "0.53342307", "0.53310204", "0.5326034", "0.5323548", "0.53164077", "0.53123283", "0.52933824", "0.52638906", "0.52627546", "0.52560407", "0.52442956", "0.5243139", "0.52266306", "0.5221962", "0.5217296", "0.52131844", "0.52093166", "0.5206995", "0.52019435", "0.5199375", "0.5187163", "0.5182565", "0.5177391", "0.5172938", "0.5155532", "0.5150424", "0.5147609", "0.51442283", "0.514346", "0.513951", "0.5136913", "0.51319575", "0.5127657", "0.51236314", "0.51231354", "0.51223737", "0.5113028", "0.51034325", "0.51009953", "0.5098237", "0.5097737", "0.5095468", "0.50937223", "0.50937223", "0.5091159", "0.50899184" ]
0.0
-1
public Collection getBeanFieldMethods() throws Throwable; / Select
public RTTIClass select(ClassFilter filter);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<String> validateFieldBeanMethods(DBField field)\n {\n Class<gDBR> tableClass = this.getRecordClass();\n String fldName = field.getName();\n Class<?> typeClass = field.getTypeClass();\n\n /* header */\n boolean ok = true;\n java.util.List<String> errMsg = new Vector<String>();\n\n /* check getter */\n String getMethN = _beanMethodName(\"get\", fldName);\n Method getMethod = null;\n for (Class<?> target = tableClass; target != null ; target = target.getSuperclass()) {\n try {\n getMethod = target.getDeclaredMethod(getMethN, new Class<?>[0]);\n break;\n } catch (NoSuchMethodException nsme) {\n // ignore and try again on next iteration\n }\n }\n if (getMethod != null) {\n Class<?> rtnClass = getMethod.getReturnType();\n if (!rtnClass.equals(typeClass)) {\n errMsg.add(\"Invalid getter return type: \" + rtnClass.getName() + \" [expected \" + StringTools.className(typeClass) + \"]\");\n ok = false;\n }\n int mods = getMethod.getModifiers();\n if ((mods & Modifier.PUBLIC) == 0) {\n //errMsg.add(\"Invalid getter scope: \" + _methodScope(mods));\n //ok = false;\n }\n } else {\n errMsg.add(\"Getter not found\");\n ok = false;\n }\n\n /* check setter */\n boolean setFound = false;\n String setMethN = _beanMethodName(\"set\", fldName);\n Method setMethod = null;\n for (Class<?> target = tableClass; target != null ; target = target.getSuperclass()) {\n try {\n setMethod = target.getDeclaredMethod(setMethN, new Class<?>[] { typeClass });\n break;\n } catch (NoSuchMethodException nsme) {\n // ignore and try again on next iteration\n }\n }\n if (setMethod != null) {\n Class<?> rtnClass = setMethod.getReturnType();\n if (!rtnClass.equals(Void.TYPE)) {\n errMsg.add(\"Invalid setter return type: \" + rtnClass.getName() + \" [expected void]\");\n ok = false;\n }\n int mods = setMethod.getModifiers();\n if ((mods & Modifier.PUBLIC) == 0) {\n //errMsg.add(\"Invalid setter scope: \" + _methodScope(mods));\n //ok = false;\n }\n } else {\n errMsg.add(\"Setter not found\");\n ok = false;\n }\n \n /* ok? */\n return ok? null : errMsg;\n \n }", "List<Field> getFields();", "public List<Field<T>> getFields()\r\n/* 63: */ {\r\n/* 64:84 */ return this.fields;\r\n/* 65: */ }", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public Enumeration getMethods()\n {\n ensureLoaded();\n return m_tblMethod.elements();\n }", "@SuppressWarnings(\"rawtypes\")\n\tpublic List getFields(){\n\t\treturn targetClass.fields;\n\t}", "public void validateTableBeanMethods()\n {\n String utableName = this.getUntranslatedTableName();\n Class<gDBR> tableClass = this.getRecordClass();\n DBField field[] = this.getFields();\n \n Print.logInfo(\"\");\n Print.logInfo(\"Validating bean access methods for table: \" + utableName);\n \n for (int i = 0; i < field.length; i++) {\n String fieldName = field[i].getName();\n String className = StringTools.className(field[i].getTypeClass());\n Print.logInfo(\" Field: \" + fieldName + \" (type=\" + className + \")\");\n java.util.List<String> errMsg = this.validateFieldBeanMethods(field[i]);\n if ((errMsg == null) || errMsg.isEmpty()) {\n Print.logInfo(\" OK\");\n } else {\n for (Iterator<String> e = errMsg.iterator(); e.hasNext();) {\n Print.logInfo(\" \" + e.next());\n }\n }\n }\n \n Print.logInfo(\"\");\n \n }", "private List<Field> getFields() {\n try {\n List<Field> fields = ResultSetUtil.getFields(databaseName, tableName, resultSets.get(0));\n if(fields.size() != MergeFactory.MAX_QUERY_FIELD_SIZE){\n throw new SqlParserException(\"the query fields max be equals \" + MergeFactory.MAX_QUERY_FIELD_SIZE);\n }\n return fields;\n } catch (SQLException e) {\n LOG.error(\"merge resultSet error\",e);\n throw new MergeException(\"merge resultSet error\" , e);\n }\n }", "java.util.List<Field>\n getFieldsList();", "public java.beans.MethodDescriptor[] getMethodDescriptors() {\n\ttry {\n\t\tjava.beans.MethodDescriptor aDescriptorList[] = {\n\t\t\tclearMethodDescriptor()\n\t\t\t,main_javalangString__MethodDescriptor()\n\t\t\t,toggleVisibilityMethodDescriptor()\n\t\t};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public List<IMethod> getMethods();", "public List<IMethod> getMethods();", "public java.util.List getColumnNamesMethods() {\n\t\treturn Arrays.asList(columnNamesMethodsTable);\n\t}", "@Override\n public java.util.List<Field> getFieldsList() {\n return fields_;\n }", "public List<String> getSelectFields() {\n List<String> selectField = new ArrayList<>();\n for (SelectItem item : queryBody.getSelect().getSelectItems()) {\n if (item instanceof SingleColumn) {\n Expression expression = ((SingleColumn)item).getExpression();\n if (expression instanceof Identifier) {\n selectField.add(((Identifier)expression).getValue());\n }\n\n }\n }\n return selectField;\n }", "java.lang.String getFields();", "@Override\n\tpublic String[] getMethods() {\n\t\treturn null;\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();", "ISourceField[] getFields();", "public Enumeration getFields()\n {\n ensureLoaded();\n return m_tblField.elements();\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}", "public List<ServiceMethod> getMethodList()\n {\n return Collections.unmodifiableList(methods);\n }", "abstract String applicable(Method[] getters) throws InvalidObjectException;", "public abstract Set<MethodUsage> getDeclaredMethods();", "public List method_6440() {\r\n return this.field_6225;\r\n }", "@JsonIgnore\n public java.lang.reflect.Method getMethod() {\n return this.method;\n }", "public List<String> getMethodList() throws CallError, InterruptedException {\n return (List<String>)service.call(\"getMethodList\").get();\n }", "public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}", "public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "public Set<FieldInfo> getFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_atts);\n }", "public List<String> retornaFields() {\n\t\treturn data.retornaFields();\n\t}", "public FieldDeclaration[] getFields() {\n return m_classBuilder.getFields();\n }", "public List<AliasedField> getFields() {\r\n return fields;\r\n }", "@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}", "Fields fields();", "public TreeMap<String,CheckOutMethod>\n getMethods()\n {\n TreeMap<String,CheckOutMethod> methods = new TreeMap<String,CheckOutMethod>();\n for(String name : pVersionFields.keySet()) {\n JCollectionField field = pMethodFields.get(name);\n methods.put(name, CheckOutMethod.values()[field.getSelectedIndex()]);\n }\n return methods;\n }", "public String[] getFieldNames();", "public List<IPropertyDescriptor<T>> getProperties();", "public List<String> getMethodList() throws DynamicCallException, ExecutionException {\n return (List<String>)call(\"getMethodList\").get();\n }", "java.lang.String getField1025();", "private List getMappingFieldsInternal() {\n if (fields == null) {\n fields = new ArrayList();\n }\n\n return fields;\n }", "public EAdList<EAdField<?>> getFields() {\r\n\t\treturn fields;\r\n\t}", "public Set<ObjectLabel> getGetters() {\n if (getters == null)\n return Collections.emptySet();\n if (Options.get().isDebugOrTestEnabled())\n return Collections.unmodifiableSet(getters);\n return getters;\n }", "public DBField[] getFields()\n {\n // Note: this method is called frequently\n if (!this.fieldArrayReady) {\n // optimize access to field array\n synchronized (this.fieldMap) {\n if (!this.fieldArrayReady) { // test again inside lock\n this.fieldArray = this.fieldMap.valueArray(DBField.class);\n this.fieldArrayReady = true;\n }\n }\n } \n return this.fieldArray;\n }", "List<Method> getAllMethods();", "public Map<Field, String> getAuditableFields();", "public MethodDeclaration[] getMethods() {\n return m_classBuilder.getMethods();\n }", "public Set<String> getFieldApiNames() {\n return fieldDescribe.keySet();\n }", "public Set<AbstractProgramData<?>> getMethods()\n {\n return this.methods;\n }", "@Override\r\n\tpublic String[] getMethodNames() {\n\t\treturn this.methodNames;\r\n\t\t//未实现\r\n\t}", "private void findMethods() {\n List<Method> methods = new ArrayList<Method>(Arrays.asList(getObject().getClass().getMethods()));\r\n List<Method> objectMethods = new ArrayList<Method>(Arrays.asList(Object.class.getMethods()));\r\n methods.removeAll(objectMethods);\r\n \r\n for(Method method:methods) {\r\n //does method have @ManagedAttribute annotation?\r\n if(method.isAnnotationPresent(ManagedAttribute.class) || method.isAnnotationPresent(Property.class)) {\r\n exposeManagedAttribute(method);\r\n }\r\n //or @ManagedOperation\r\n else if (method.isAnnotationPresent(ManagedOperation.class) || isMBeanAnnotationPresentWithExposeAll()){\r\n exposeManagedOperation(method); \r\n } \r\n }\r\n }", "private void findFields() {\n for(Class<?> clazz=getObject().getClass();clazz != null; clazz=clazz.getSuperclass()) {\r\n\r\n Field[] fields=clazz.getDeclaredFields();\r\n for(Field field:fields) {\r\n ManagedAttribute attr=field.getAnnotation(ManagedAttribute.class);\r\n Property prop=field.getAnnotation(Property.class);\r\n boolean expose_prop=prop != null && prop.exposeAsManagedAttribute();\r\n boolean expose=attr != null || expose_prop;\r\n\r\n if(expose) {\r\n String fieldName = Util.attributeNameToMethodName(field.getName());\r\n String descr=attr != null? attr.description() : prop.description();\r\n boolean writable=attr != null? attr.writable() : prop.writable();\r\n\r\n MBeanAttributeInfo info=new MBeanAttributeInfo(fieldName,\r\n field.getType().getCanonicalName(),\r\n descr,\r\n true,\r\n !Modifier.isFinal(field.getModifiers()) && writable,\r\n false);\r\n\r\n atts.put(fieldName, new FieldAttributeEntry(info, field));\r\n }\r\n }\r\n }\r\n }", "List<FieldNode> getFields() {\n return this.classNode.fields;\n }", "public Future<List<String>> getMethodList() throws DynamicCallException, ExecutionException {\n return call(\"getMethodList\");\n }", "ISourceMethod[] getMethods();", "@Override\n public Field getFields(int index) {\n return fields_.get(index);\n }", "public static MethodClass getMethods (){\n\t\treturn methods;\n\t}", "public Collection<Method> getRemoveMethods() {\n Set<Method> removeMethods = new HashSet<Method>();\n\n if( ejbDesc.getType().equals(EjbSessionDescriptor.TYPE) ) {\n EjbSessionDescriptor sessionDesc = (EjbSessionDescriptor) ejbDesc;\n if( sessionDesc.isStateful() && sessionDesc.hasRemoveMethods() ) {\n\n for(EjbRemovalInfo next : sessionDesc.getAllRemovalInfo()) {\n\n MethodDescriptor mDesc = next.getRemoveMethod();\n Method m = mDesc.getMethod(ejbDesc);\n if( m == null ) {\n throw new IllegalStateException(\"Can't resolve remove method \" +\n mDesc + \" For EJB \" + sessionDesc.getName());\n }\n removeMethods.add(m);\n\n }\n\n }\n }\n\n return removeMethods;\n\n }", "public String[] getMethods() {\n\t\treturn methods;\n\t}", "@Override\n public ArrayList<Object> getFieldsAsList() {\n if (!getParsed()) {\n parse();\n }\n if (cachedList == null) {\n cachedList = new ArrayList<Object>();\n } else {\n cachedList.clear();\n }\n for (int i = 0; i < getFields().length; i++) {\n cachedList.add(uncheckedGetField(i));\n }\n return cachedList;\n }", "java.lang.String getField1587();", "protected abstract MethodDescription accessorMethod();", "public static RowData.FieldGetter[] parseFieldGetters(LogicalType rowType) {\n List<LogicalType> logicalTypes = rowType.getChildren();\n RowData.FieldGetter[] fieldGetters = new RowData.FieldGetter[logicalTypes.size()];\n for (int i = 0; i < logicalTypes.size(); i++) {\n fieldGetters[i] = createFieldGetter(logicalTypes.get(i), i);\n }\n return fieldGetters;\n }", "public abstract String[] getMethodNames();", "public java.util.List<Field> getFieldsList() {\n if (fieldsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fields_);\n } else {\n return fieldsBuilder_.getMessageList();\n }\n }", "public List<T> findByParameter(Field... methods) {\n\t\treturn null;\n\t}", "public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}", "java.lang.String getField1487();", "java.util.List<? extends com.sagas.meta.model.MetaFieldDataOrBuilder> \n getFieldsOrBuilderList();", "abstract public FieldNames getFieldNames();", "java.lang.String getField1887();", "public List<Method> getSetterMethods(String property) {\n String methodName = getSetterMethodName(property);\n List<Method> result = new ArrayList<Method>(2);\n\n for (Method method : this.type.getMethods()) {\n if (method.getName().equals(methodName) && method.getParameterTypes().length == 1) {\n result.add(method);\n }\n }\n\n return result;\n }", "public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }", "@NotNull\n public List method_420() {\n return this.field_355;\n }", "protected Vector collectFields() {\n Vector fields = new Vector(1);\n fields.addElement(this.getField());\n return fields;\n }", "Collection<FieldType> getFieldTypes() throws TypeException, InterruptedException;", "@Override\n public java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList() {\n return fields_;\n }", "java.lang.String getField1087();", "public static List fetchFieldsSupportingSearch() {\n return new ArrayList();\n }", "@Test\n public void getFieldsTest() throws ApiException {\n List<FieldDetails> response = api.getFields();\n\n // TODO: test validations\n }", "protected java.util.Vector getFieldVector() throws Exception {\n java.util.Vector fieldVector = new java.util.Vector();\n Class c = getClass();\n while (c != Class.forName(\"java.lang.Object\")) {\n Field[] fields = c.getDeclaredFields();\n for (int i = fields.length - 1; i >= 0; i--) {\n fieldVector.add(0, fields[i]);\n }\n c = c.getSuperclass();\n }\n return fieldVector;\n }", "java.lang.String getField1543();", "java.lang.String getField1443();", "@Override\n protected List<FieldInfo> getListData()\n {\n // if is an array (we potentially will compress the array if it is\n // large)\n if (obj.isArray()) {\n return compressArrayList(obj);\n }\n else {\n List<DebuggerField> fields = obj.getFields();\n List<FieldInfo> fieldInfos = new ArrayList<FieldInfo>(fields.size());\n for (DebuggerField field : fields) {\n if (! Modifier.isStatic(field.getModifiers())) {\n String desc = Inspector.fieldToString(field);\n String value = field.getValueString();\n fieldInfos.add(new FieldInfo(desc, value));\n }\n }\n return fieldInfos;\n }\n }", "private static MethodDescriptor[] getMdescriptor() {\n MethodDescriptor[] methods = new MethodDescriptor[1];\n\n try {\n methods[METHOD_toString0] = new MethodDescriptor(org.geogurus.gas.objects.GeometryClassFieldBean.class.getMethod(\"toString\", new Class[]{})); // NOI18N\n methods[METHOD_toString0].setDisplayName(\"\");\n } catch (Exception e) {\n }//GEN-HEADEREND:Methods\n\n // Here you can add code for customizing the methods array.\n\n return methods;\n }", "java.util.List<com.google.rpc.BadRequest.FieldViolation> \n getFieldViolationsList();", "public static Map<String, Method> getNonNullGetters(Object bean)\n {\n if (!bean.equals(currentObject))\n {\n generateMaps(bean);\n }\n return getter_map;\n }", "public Set<String> getFieldNames ()\n\t{\n\t\treturn m_Fields.keySet();\n\t}", "java.util.List<? extends FieldOrBuilder>\n getFieldsOrBuilderList();", "public List<String> showFields() {\n Client client = new Client();\n Class<?> objFields = client.getClass();\n List<String> list = new ArrayList<>();\n for (Field field : objFields.getDeclaredFields()) {\n list.add(field.getName());\n }\n return list;\n }", "java.lang.String getField1446();", "public List<EfectoSimple> getEfectos() {\n\t\tthrow new NotImplementedException();\r\n\t}", "java.lang.String getField1542();", "java.lang.String getField1142();", "private Set<Method> getVirtualMethods()\n {\n return this.getContainer().getVirtualMethods();\n }", "java.lang.String getField1846();", "java.lang.String getField1287();", "Field getFields(int index);" ]
[ "0.6900701", "0.67256916", "0.63390285", "0.63070536", "0.63023376", "0.62679785", "0.6149488", "0.60897446", "0.6075224", "0.6070628", "0.60704005", "0.60704005", "0.6067177", "0.6051581", "0.5983512", "0.59256333", "0.59161276", "0.5911131", "0.58969027", "0.58856344", "0.5881345", "0.5855214", "0.5831418", "0.5824074", "0.5822642", "0.58071524", "0.57980126", "0.5793232", "0.57893807", "0.5787683", "0.57842064", "0.576059", "0.5755685", "0.57246953", "0.5719501", "0.5701451", "0.5698134", "0.5681419", "0.5670974", "0.56683964", "0.5667724", "0.566473", "0.56587017", "0.56458026", "0.5644935", "0.56380033", "0.5632491", "0.56236106", "0.5612814", "0.5610394", "0.5608975", "0.5608886", "0.5606197", "0.56060964", "0.56009305", "0.5582074", "0.5575335", "0.5557638", "0.555383", "0.55482644", "0.553149", "0.55249417", "0.55142564", "0.5513126", "0.55094564", "0.5490236", "0.54845405", "0.54794204", "0.5473854", "0.5464509", "0.54636574", "0.5463366", "0.5463306", "0.54611707", "0.5460405", "0.54491436", "0.5445563", "0.54437226", "0.5442316", "0.5441671", "0.5438166", "0.5437509", "0.54355997", "0.543456", "0.54261315", "0.5423671", "0.5421658", "0.5418423", "0.54170954", "0.54146826", "0.5414002", "0.5412596", "0.5404637", "0.5401702", "0.5400053", "0.53979975", "0.5389748", "0.5387154", "0.53852075", "0.5385158", "0.53806347" ]
0.0
-1
Convert byte to string
public static String byte2str(byte b) { String s = String.format("%8s", Integer.toBinaryString(b & 0xFF)).replace( ' ', '0'); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String bytes2String(byte[] bytes) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < bytes.length; i++) {\n stringBuffer.append((char) bytes[i]);\n }\n return stringBuffer.toString();\n }", "public static String toByteString(byte value) {\n String str = String.format(\"%x\", value);\n if (str.length() == 1)\n str = \"0\" + str;\n return str;\n }", "public static String bytesToString(byte[] txtInByte){\n \treturn hexToString(bytesToHex(txtInByte));\n }", "public static String asString(byte[] in) {\n final StringBuilder builder = new StringBuilder();\n for(byte b : in) {\n builder.append(String.format(\"%02x\", b));\n }\n return builder.toString();\n }", "@NonNull\n public static String byteToString(byte[] byteArray) throws UnsupportedEncodingException\n {\n return new String(byteArray, \"UTF-8\");\n }", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public static String bytesToString(byte[] b) {\n\t\tString s=new String(b);\n\t\treturn s.trim();\n\t}", "public String byteToChar(byte b[], String encoding);", "private static String toString (byte[] ba) {\r\n return toString(ba, 0, ba.length);\r\n }", "public static String byteToHex(byte b) {\n return new String(new char[] {HEX_CHARS[(b & 0xFF) >>> 4], HEX_CHARS[b & 0xF]});\n }", "static String createString(byte b[]) {\n\treturn StringConverter.byteToHex(b);\n }", "private static String byteToHex(byte b) {\n\t\tchar hexDigit[] = {\n\t\t\t\t'0', '1', '2', '3', '4', '5', '6', '7',\n\t\t\t\t'8', '9', 'a', 'b', 'c', 'd', 'e', 'f'\n\t\t};\n\t\tchar[] array = {hexDigit[(b >> 4) & 0x0f], hexDigit[b & 0x0f]};\n\t\treturn new String(array);\n\t}", "public static String toHexString(byte b) {\n return Integer.toHexString(toInt(b));\n }", "static public String byteToHex(byte b) {\n\t\tchar hexDigit[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A',\n\t\t\t\t'B', 'C', 'D', 'E', 'F' };\n\t\tchar[] array = { hexDigit[(b >> 4) & 0x0f], hexDigit[b & 0x0f] };\n\t\treturn new String(array);\n\t}", "static public String byteToHex(byte b) {\n\t\tchar hexDigit[] = {\n\t\t\t\t'0', '1', '2', '3', '4', '5', '6', '7',\n\t\t\t\t'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'\n\t\t};\n\t\tchar[] array = { hexDigit[(b >> 4) & 0x0f], hexDigit[b & 0x0f] };\n\t\treturn new String(array);\n\t}", "public static final String toHexString(byte b) {\n return Integer.toString((b & 0xff) + 0x100, 16).substring(1);\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn new String(bytes);\n\t}", "public static String convert(byte[] bytes) {\n/* 34 */ StringBuffer sb = new StringBuffer(bytes.length * 2);\n/* 35 */ for (int i = 0; i < bytes.length; i++) {\n/* 36 */ sb.append(hexs[bytes[i] >> 4 & 0xF]);\n/* 37 */ sb.append(hexs[bytes[i] & 0xF]);\n/* */ } \n/* 39 */ return sb.toString();\n/* */ }", "private String byteToString(byte[] bytes) {\n String bytesInStringForm = \"\";\n for (int byteChecked = 0; byteChecked < bytes.length; byteChecked++) {\n bytesInStringForm += (Integer.toString(bytes[byteChecked]));\n bytesInStringForm += (\",\");\n }\n return bytesInStringForm;\n }", "public String encodeByte(byte[] raw) {\n\t\treturn null;\n\t}", "public static String a(byte paramByte) {\n/* 65 */ return \"\" + a[(paramByte & 0xF0) >>> 4] + a[paramByte & 0xF];\n/* */ }", "public static String bytesToString(byte[] bytes) {\n if (bytes == null) {\n return \"\";\n }\n return new String(bytes, ENCODING);\n }", "public static String byteArrayToString(byte[] value) {\r\n String ret = \"\";\r\n\r\n for (int i = 0; i < value.length; i++) {\r\n if (value[i] >= 32 && value[i] <= 126) ret = ret + ((char) value[i]);\r\n else ret = ret.concat(\".\");\r\n }\r\n\r\n return ret;\r\n }", "public static final String toHexString(byte[] b) {\n return toHexString(b, 0, b.length);\n }", "private static String byteToHexString(byte b) {\n int n = b;\n if (n < 0) {\n n += 256;\n }\n int d1 = n >> 4;\n int d2 = n % 16;\n return hexDigits[d1] + hexDigits[d2];\n }", "public String toHexString()\n\t{\n\t\t// holds the string builder object to return\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\t// for every byte\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\tint intCurrent = bytes[i] & 0xFF;\n\t\t\t\n\t\t\t// check to see if a leading 0 is needed\n\t\t\tif (intCurrent < 0x10)\n\t\t\t{\n\t\t\t\t// append a 0\n\t\t\t\tsb.append(0);\n\t\t\t}\n\t\t\t\n\t\t\tString s = Integer.toHexString(intCurrent).toUpperCase();\n\t\t\t\n\t\t\t// append the character\n\t\t\tsb.append(s);\n\t\t}\n\t\t\n\t\t// return the string\n\t\treturn sb.toString();\n\t}", "@NotNull\n public static String convertBytesToHex(@NotNull byte[] value) {\n checkNotNull(value);\n int len = value.length;\n char[] buff = new char[len + len];\n char[] hex = HEX;\n for (int i = 0; i < len; i++) {\n int c = value[i] & 0xff;\n buff[i + i] = hex[c >> 4];\n buff[i + i + 1] = hex[c & 0xf];\n }\n return new String(buff);\n }", "public static String readString(Value value) {\n return SafeEncoder.encode((byte[]) value.get());\n }", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "public static String prettyHex(final byte value) {\n return prettyHex(new byte[] {value});\n }", "public static String\n bchToString(byte[] data, int offset, int length) {\n StringBuilder ret = new StringBuilder(length*2);\n\n for (int i = offset ; i < offset + length ; i++) {\n int v;\n\n v = data[i] & 0xf;\n ret.append(HEX_CHARS[v]);\n\n v = (data[i] >> 4) & 0xf;\n ret.append(HEX_CHARS[v]);\n }\n\n return ret.toString();\n }", "public static String toString(final byte[] input, final String encoding) throws IOException {\n return new String(input, Charset.forName(encoding));\n }", "public static String data(byte[] a)\n {\n if (a == null)\n return null;\n StringBuilder ret = new StringBuilder();\n int i = 0;\n while (a[i] != 0)\n {\n ret.append((char) a[i]);\n i++;\n }\n return ret.toString();\n }", "public String toString() {\n return Util.bytesToHex(getByteArray());\n }", "public static String toString(byte[] buf) {\r\n if (buf == null) {\r\n return \"null\";\r\n }\r\n return toString(buf, 0, buf.length);\r\n }", "public static String byteArrayToString(byte[] ba, int offset, int length) {\n return new String(Arrays.copyOfRange(ba, offset, offset + length), Charset.forName(CommonDefs.CHARSET)).trim();\n\n }", "public static String byteArrayToString(byte[] ba) {\n return new String(ba, Charset.forName(CommonDefs.CHARSET)).trim();\n }", "private String bytesToString(byte[] someBytes) {\n String retStr = \"\";\n\n for (int i = 0; i < someBytes.length; ++i) {\n retStr += \" \" + someBytes[i];\n }\n\n return retStr;\n }", "public static String byte2hex(byte[] b) {\n String hs = \"\";\n String stmp = \"\";\n\n for (int n = 0; n < b.length; n++) {\n stmp = Integer.toHexString(b[n] & 0xFF);\n if (stmp.length() == 1)\n hs += (\"0\" + stmp);\n else\n hs += stmp;\n }\n return hs.toUpperCase();\n }", "int retrieveString(byte s[]);", "private String toBinary(byte caracter){\n byte byteDeCaracter = (byte)caracter;\n String binario=\"\";\n for( int i = 7; i>=0; i--){\n binario += ( ( ( byteDeCaracter & ( 1<<i ) ) > 0 ) ? \"1\" : \"0\" ) ;\n }\n return binario;\n }", "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "public static String decodeBytesToString(byte[] byteArray) {\n byte[] tempArray = new byte[byteArray.length];\n byte[] outputArray = new byte[byteArray.length];\n for (int i = byteArray.length - 1; i >= 0; i--)\n tempArray[i] = byteArray[i];\n\n for (int i = byteArray.length - 1; i >= 0; i--) {\n tempArray[i] = rotateRightByte(byteArray[i], 7);\n if (i == tempArray.length - 1)\n outputArray[i] = (byte) (tempArray[i] ^ tempArray[0] ^ 0x71);\n else\n outputArray[i] = (byte) (tempArray[i] ^ outputArray[i + 1] ^ 0x71);\n }\n return new String(outputArray);\n }", "private static char toChar(byte theByte) {\n if (theByte < 0) {\n return (char) (256 + theByte);\n } else {\n return (char) theByte;\n }\n }", "public abstract String visualize(byte input);", "public static String bytesToHexString(byte[] b) {\n\t\treturn bytesToHexString(b,b.length);\n\t}", "public static String binToHexString(byte[] data) {\r\n return binToHexString(data, data.length);\r\n }", "public static String rawHexDump(byte[] b)\r\n\t{\r\n\t\tif (b == null)\r\n\t\t\treturn \"\";\r\n\t\t\r\n\t\tint size = b.length;\r\n\t\tif (size == 0)\r\n\t\t\treturn \"\";\r\n\t\t\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\tfor (int i=0; i < size; i++)\r\n\t\t{\r\n\t\t\t\tbuf.append(zeropad(Integer.toHexString(byteToUInt(b[i])).toUpperCase(),2));\r\n\t\t\t\tbuf.append(\" \");\r\n\t\t}\r\n\t\tbuf.delete(buf.length()-1,buf.length());\r\n\t\treturn buf.toString();\r\n\t}", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String GetOctetStringFromBytes(byte[] _packetBytes, int pos) {\n Charset encoding = StandardCharsets.US_ASCII;\n return StringUtility.GetOctetStringFromBytes(_packetBytes, pos, encoding);\n }", "public static String encodeToString(byte[] bytes){\n\t\treturn encodeToString(bytes, false);\n\t}", "java.lang.String getEncoded();", "private String asString(ByteBuffer buffer) {\n\t\tByteBuffer copy = buffer.duplicate();\n\t\tbyte[] bytes = new byte[copy.remaining()];\n\t\tcopy.get(bytes);\n\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t}", "public static String formatByteAsHex(byte a)\n {\n char guarismos[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};\n int i = signedByte2unsignedInteger(a);\n byte nibbleH = (byte)(i >> 4), nibbleL = (byte)(i & 0x0F);\n\n return \"\" + guarismos[nibbleH] + guarismos[nibbleL];\n }", "public String bytesToString(byte[] input) {\r\n StringBuilder buildString = new StringBuilder();\r\n for (int i = 0; i < input.length * 4; i++) {\r\n // Begin at the start of byte minus 2, then subtract\r\n // the number of bits into the byte we are\r\n int bytePos = 6 - (i % 4) * 2;\r\n // Only need 2 bits, so and with 3\r\n int currChar = 0x3 & input[i / 4] >> bytePos;\r\n\r\n if (currChar == 0) {\r\n buildString.append('A');\r\n }\r\n else if (currChar == 1) {\r\n buildString.append('C');\r\n }\r\n else if (currChar == 2) {\r\n buildString.append('G');\r\n }\r\n else if (currChar == 3) {\r\n buildString.append('T');\r\n }\r\n }\r\n\r\n String seqString = buildString.toString();\r\n return seqString;\r\n }", "public com.google.protobuf.ByteString\n getToBytes() {\n Object ref = to_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n to_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String toHexString(byte[] b)\r\n {\r\n if (b == null)\r\n return null;\r\n \r\n StringBuffer buf = new StringBuffer(b.length * 2);\r\n for (int n = 0; n < b.length; n++)\r\n {\r\n buf.append(m_hex[(b[n] & 0xf0) >>> 4]);\r\n buf.append(m_hex[b[n] & 0x0f]);\r\n }\r\n return buf.toString();\r\n }", "public static String bcdToString(byte[] data) {\n return bcdToString(data, 0, data.length);\n }", "private static String convertToHex(byte[] data) throws IOException {\n //create new instance of string buffer\n StringBuffer stringBuffer = new StringBuffer();\n String hex = \"\";\n\n //encode byte data with base64\n hex = Base64.getEncoder().encodeToString(data);\n stringBuffer.append(hex);\n\n //return string\n return stringBuffer.toString();\n }", "public static String toHexString(byte b[]) {\n int pos = 0;\n char[] c = new char[b.length * 2];\n for (int i = 0; i < b.length; i++) {\n c[pos++] = toHex[(b[i] >> 4) & 0x0F];\n c[pos++] = toHex[b[i] & 0x0f];\n }\n return new String(c);\n }", "public static String hashToString (byte[] hash)\n {\n if (hash == null) {\n return \"\";\n }\n char[] chars = new char[hash.length * 2];\n for (int ii = 0; ii < hash.length; ii++) {\n int val = hash[ii];\n if (val < 0) {\n val += 256;\n }\n chars[2 * ii] = HEX.charAt(val/16);\n chars[2 * ii + 1] = HEX.charAt(val%16);\n }\n return new String(chars);\n }", "public String byte2hex(byte[] b) {\n String hs = \"\";\n String stmp = \"\";\n for (int n = 0; n < b.length; n++) {\n stmp = (java.lang.Integer.toHexString(b[n] & 0XFF));\n if (stmp.length() == 1) {\n hs = hs + \"0\" + stmp;\n } else {\n hs = hs + stmp;\n }\n\n if (n < b.length - 1) {\n hs = hs + \"\";\n }\n }\n\n return hs;\n }", "@Override\n public String toString() {\n byte[] buffer = toBuffer();\n return (buffer == null) ? null : new String(buffer, StandardCharsets.UTF_8);\n }", "public static String binValue(byte b) {\n StringBuilder sb = new StringBuilder(8);\n for (int i = 0; i < 8; i++) {\n if ((b & 0x01) == 0x01) {\n sb.append('1');\n } else {\n sb.append('0');\n }\n b >>>= 1;\n }\n return sb.reverse().toString();\n }", "public static String decodeToString(byte[] bytes){\n\t\treturn new String(decode(bytes));\n\t}", "public static String asciiToEBCDIC(byte[] a) {\n\t\tbyte[] e = new byte[a.length];\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\te[i] = ASCII2EBCDIC[a[i] & 0xFF];\n\t\treturn new String(e);\n\t}", "public static String hex(final byte value) {\n char[] buf = new char[2];\n System.arraycopy(Hexs.HEXDUMP_TABLE, (value & 0xFF) << 1, buf, 0, 2);\n return new String(buf);\n }", "public static String byteArrayToHexString(byte[] b) {\n if (b == null)\n return null;\n\n StringBuffer sb = new StringBuffer(b.length * 2);\n for (int i = 0; i < b.length; i++) {\n int v = b[i] & 0xff;\n if (v < 16) {\n sb.append('0');\n }\n sb.append(Integer.toHexString(v));\n }\n return sb.toString().toUpperCase();\n }", "public static String byteToHex(final byte[] hash) {\n if (Objects.isNull(hash)) {\n return null;\n }\n\n Formatter formatter = new Formatter();\n for (byte b : hash) {\n formatter.format(\"%02x\", b);\n }\n String result = formatter.toString();\n formatter.close();\n return result;\n }", "@Override\n public String toString() {\n\treturn ByteUtils.toHexString(toByteArray(), true);\n }", "public static String byteToHex(byte[] bytes) {\n\t\tchar[] hexChars = new char[bytes.length * 2];\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tint j = bytes[i] & 0xFF;\n\t\t\thexChars[i * 2] = hexLookup[j >>> 4];\n\t\t\thexChars[i * 2 + 1] = hexLookup[j & 0x0F];\n\t\t}\n\t\treturn new String(hexChars);\n\t}", "byte decodeByte();", "@Benchmark\n public String bytesToStringOkio() {\n return BenchmarkUtils.decodeUtf8(decodeArray);\n }", "public static String bytes2HexString(byte[] b)\n\t{\n\t byte[] buff = new byte[2 * b.length];\n\t for (int i = 0; i < b.length; i++)\n\t {\n\t\tbuff[2 * i] = hex[(b[i] >> 4) & 0x0f];\n\t\tbuff[2 * i + 1] = hex[b[i] & 0x0f];\n\t }\n\t return new String(buff);\n\t}", "public String extractString()\n\t{\n\t\t// holds the string builder object to return\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\t// for every byte\n\t\tfor (int i = 0; i < bytes.length; i++)\n\t\t{\n\t\t\t// extract the current character\n\t\t\tchar current = (char) (bytes[i] & 0xFF);\n\t\t\t\n\t\t\t// append the character\n\t\t\tif (current > 0)\n\t\t\t{\n\t\t\t\tsb.append(current);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// return the string\n\t\treturn sb.toString();\n\t}", "public static String bytesToHex(byte[] txtInByte) {\n\t\t StringBuilder sb = new StringBuilder(txtInByte.length * 2);\n\t\t for(byte b: txtInByte)\n\t\t sb.append(String.format(\"%02x\", b & 0xff));\n\t\t return sb.toString();\n\t\t}", "public static String toHexString(byte[] b) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor (int i = 0; i < b.length; i++) {\r\n\t\t\tsb.append(hexCharsLowerCase[ (int)(((int)b[i] >> 4) & 0x0f)]);\r\n\t\t\tsb.append(hexCharsLowerCase[ (int)(((int)b[i]) & 0x0f)]);\r\n\t\t}\r\n\t return sb.toString(); \r\n\t}", "public static String arrayToBinaryString(final byte[] bytes)\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tbuilder.append(Long.toBinaryString((char)bytes[0]));\n\t\tfor(int i = 1; i < bytes.length; i ++)\n\t\t\tbuilder.append(BYTE_DELIMITER+Long.toBinaryString((char)bytes[i]));\n\t\treturn builder.toString();\n\t}", "private static String byteArrayToHexString(byte[] byteArray) {\n\t\t\n\t\t//Initialize the string buffer\n\t\tStringBuffer stringBuffer = new StringBuffer(byteArray.length * 2);\n\t\t\n\t\t//Start constructing the byte array\n\t\tstringBuffer.append(\"[ \");\n\t\t\n\t\t//For all the bytes in the array\n\t\tfor (int i = 0; i < byteArray.length; i++) {\n\t\t\t\n\t\t\t//Convert the byte to an integer\n\t\t\tint v = byteArray[i] & 0xff;\n\t\t\t\n\t\t\t//Left shift\n\t\t\tif (v < 16) {\n\t\t\t\tstringBuffer.append('0');\n\t\t\t}\n\t\t\t\n\t\t\t//Add the hex string representation of the byte \n\t\t\tstringBuffer.append(\"0x\" + Integer.toHexString(v).toUpperCase() + \" \");\n\t\t}\n\t\t\n\t\t//Close the byte array string\n\t\tstringBuffer.append(\"]\");\n\t\t\n\t\t//Convert the string buffer to a string a return it\n\t\treturn stringBuffer.toString();\n\t}", "public static String toBinaryString(BigInteger data) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"0b\").append(data.toString(2));\n return sb.toString();\n }", "public static String bytesToString(byte[] bytes) {\n return Base64.encodeBase64String(bytes);\n }", "public static String toString(char value) {\n return String.valueOf(value);\n }", "public static String byteArrayToBinaryString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\tfor(byte b : array) {\n\t\t\tstr.append((\"00000000\"+Integer.toBinaryString(b)).substring(Integer.toBinaryString(b).length()));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}", "public abstract String toString(String bin);", "public static String byteArrayToHexString(byte[] in) {\n\t\tint ch = 0x00;\n\t\tString pseudo[] = {\"0\", \"1\", \"2\",\n\t\t\t\t\"3\", \"4\", \"5\", \"6\", \"7\", \"8\",\n\t\t\t\t\"9\", \"A\", \"B\", \"C\", \"D\", \"E\", \"F\"};\n\n\t\tStringBuffer out = new StringBuffer(in.length*2);\n\t\tfor (int i = 0; i < in.length; i++) {\n\t\t\tch = ((in[i] & 0xF0) >> 4);\n\t\t\tch = (ch & 0x0F);\n\t\t\tout.append(pseudo[ch]);\n\t\t\tch = (in[i] & 0x0F);\n\t\t\tout.append(pseudo[ch]);\n\t\t}\n\t\treturn new String(out);\n\t}", "public static String hex(final byte[] data) {\n return hex(data, 0, data.length);\n }", "public static String toHexString(byte[] b, int offset, int len)\r\n {\r\n if (b == null || b.length <= offset || offset < 0 || len <= 0)\r\n return null;\r\n\r\n StringBuffer buf = new StringBuffer(len * 2);\r\n int limit = Math.min(b.length, len + offset);\r\n for (int n = offset; n < limit; n++)\r\n {\r\n buf.append(m_hex[(b[n] & 0xf0) >>> 4]);\r\n buf.append(m_hex[b[n] & 0x0f]);\r\n }\r\n return buf.toString();\r\n \r\n }", "private String toHexString(byte[] bytes) {\n StringBuilder hexString = new StringBuilder();\n for (int i = 0; i < bytes.length; i++) {\n String hex = Integer.toHexString(0xFF & bytes[i]);\n if (hex.length() == 1) {\n hexString.append('0');\n }\n hexString.append(hex);\n }\n\n return hexString.toString().toUpperCase();\n }", "private static String byteToHexString(final byte hash) {\n\t\tint n = hash;\n\t\tif (n < 0) {\n\t\t\tn = 256 + n;\n\t\t}\n\t\tint d1 = n / 16;\n\t\tint d2 = n % 16;\n\t\treturn FileHashingUtils.hexDigits[d1] + FileHashingUtils.hexDigits[d2];\n\t}", "public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }", "private String toBinary( byte[] bytes )\n\t{\n \t\tStringBuilder sb = new StringBuilder(bytes.length * Byte.SIZE);\n\t\tfor( int i = 0; i < Byte.SIZE * bytes.length; i++ )\n\t\t\tsb.append((bytes[i / Byte.SIZE] << i % Byte.SIZE & 0x80) == 0 ? '0' : '1');\n\t\treturn sb.toString();\n\t}", "public static String b2s(byte b[]) {\n\t\tint len = 0;\n\t\t\n\t\twhile (b[len] != 0) {\n\t\t\tlen += 1;\n\t\t}\n\n\t\treturn new String(b, 0, len);\n\t}", "public static String toByteString(byte[] array) {\n StringBuilder sb = new StringBuilder(\"{\");\n for (int i = 0; i < array.length; i++) {\n if (i > 0)\n sb.append(\" \");\n sb.append(toByteString(array[i]));\n }\n return sb.append(\"}\").toString();\n }", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "public static String toString(final ByteBuffer bb, final Charset charset) {\n Objects.requireNonNull(bb);\n Objects.requireNonNull(charset);\n final int prevPosition = bb.position();\n bb.position(0);\n final String s = charset.decode(bb).toString();\n bb.position(prevPosition);\n return (s);\n }", "String byteOrBooleanWrite();", "@Override\n\tpublic String memUTF8String(DirectBuffer buffer, int length) {\n\t\tif (length == -1)\n\t\t\tthrow new IllegalArgumentException(\"Illegal length\");\n\t\ttry {\n\t\t\treturn UTF8_DECODER.decode(NioByteBufferWrapper.wrap(buffer, length)).toString();\n\t\t} catch (CharacterCodingException e) {\n\t\t\treturn CHARACTER_CODING_EXCEPTION;\n\t\t}\n\t}", "private String toHex(byte[] data) {\r\n char[] chars = new char[data.length * 2];\r\n for (int i = 0; i < data.length; i++) {\r\n chars[i * 2] = HEX_DIGITS[(data[i] >> 4) & 0xf];\r\n chars[i * 2 + 1] = HEX_DIGITS[data[i] & 0xf];\r\n }\r\n return new String(chars);\r\n}", "public static String binValue(byte[] bytes) {\n StringBuilder sb = new StringBuilder(8*bytes.length);\n for (int j = 0; j< bytes.length; j++){\n sb.append(binValue(bytes[j]));\n }\n return sb.toString();\n }", "public String toString() {\n\t\treturn BlobUtil.string(buffer, offset, size);\n\t}" ]
[ "0.71819013", "0.7105094", "0.6997403", "0.6970874", "0.69604105", "0.68592334", "0.6780085", "0.67622167", "0.6739982", "0.6675632", "0.66371995", "0.66282564", "0.6622626", "0.65458065", "0.653913", "0.64016175", "0.6390371", "0.6387751", "0.6379593", "0.6369882", "0.63309264", "0.62784034", "0.62403774", "0.6234634", "0.6225836", "0.6197305", "0.6191587", "0.615949", "0.61398476", "0.6137936", "0.6137234", "0.61202294", "0.609896", "0.60873497", "0.6069382", "0.60666007", "0.60546863", "0.60352", "0.6004178", "0.5971993", "0.5966372", "0.59575427", "0.593489", "0.5927909", "0.59272987", "0.59271234", "0.59141314", "0.5902097", "0.58928525", "0.58842677", "0.58806884", "0.585376", "0.5838527", "0.5837351", "0.58344865", "0.58215195", "0.58062065", "0.58004624", "0.57775486", "0.5769304", "0.57434624", "0.5733993", "0.5729466", "0.57200193", "0.57176036", "0.57051414", "0.5703817", "0.5700472", "0.5693304", "0.5681594", "0.5680593", "0.5666751", "0.56599605", "0.5658214", "0.5650671", "0.564635", "0.56264085", "0.56226957", "0.5621005", "0.5615375", "0.5615206", "0.561282", "0.5604053", "0.5603577", "0.5598929", "0.55960417", "0.55845433", "0.55607563", "0.5552128", "0.5548579", "0.55432564", "0.55399215", "0.55351865", "0.553131", "0.55270386", "0.552432", "0.5523277", "0.5519039", "0.55163604", "0.55052125" ]
0.7859996
0
Convert string to byte
public static byte str2byte(String s) { byte b = (byte) 0; int i; if (s.length() == 8 && s.matches(regex)) { i = Integer.parseInt(s, 2); if (i >= 0 && i <= 255) { b = (byte) i; } else { System.out.println("string out of range"); } } return b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int convertstringtobyte(String string) {\n return Integer.parseInt(string, 16);\n }", "@NonNull\n public static byte[] StringToByte(String string) throws UnsupportedEncodingException\n {\n return string.getBytes(\"UTF-8\");\n }", "static ByteString toBytes(String str) {\n return ByteString.copyFrom(str.getBytes(Internal.UTF_8));\n }", "@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}", "public byte[] charToByte(String text, String encoding);", "static Value<Byte> parseByte(String value) {\n try {\n if (value == null || value.isEmpty()) return empty();\n return of(Byte.parseByte(value));\n } catch (NumberFormatException error) {\n return empty();\n }\n }", "protected static byte[] toByteArray(String str) {\n byte[] bytes = new byte[str.length()];\n for (int i = 0; i < bytes.length; i++) {\n bytes[i] = (byte) str.charAt(i);\n }\n return bytes;\n }", "private static byte[] string2Bytes(final String string) {\n if (string == null) return null;\n return string.getBytes();\n }", "public static byte[] toBytes(String s) {\n return s.getBytes(UTF8_CHARSET);\n }", "public static byte[] stringToBytes(String string) {\n return string.getBytes(ENCODING);\n }", "byte decodeByte();", "public static byte[] stringToBytes(String input) {\n return Base64.decodeBase64(input);\n }", "public static byte[] hexString2bytes(String s)\r\n\t{\r\n\t\tif (null == s)\r\n\t\t\treturn null;\r\n\t\ts = trimSpace(s);\r\n\t\treturn hex2byte(s, 0, s.length() >> 1);\r\n\t}", "private static Buffer toBytes(String str) {\n try {\n return new Buffer(str.getBytes(\"UTF-8\"));\n } catch(java.io.UnsupportedEncodingException e) {\n throw new RuntimeException(\"UTF-8 not supported.\", e);\n }\n }", "public byte[] charToByte(char char1, String encoding);", "private byte[] stringToArrayOfByte(String string)\n\t\t\tthrows NumberFormatException {\n\n\t\tbyte[] bytes = new byte[string.length() + 1];\n\n\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\tbytes[i] = charToByte(string.charAt(i));\n\t\t}\n\n\t\tbytes[string.length()] = nullByte;\n\n\t\treturn bytes;\n\n\t}", "public static byte[] stringToByteArray(String str) {\r\n return str.getBytes();\r\n }", "private byte[] toByteArray(String s)\r\n\t\t{\n\t\t\tlong l = 0;\r\n\t\t\tif (s.startsWith(\"0x\") || s.startsWith(\"0X\")) {\r\n\t\t\t\tfinal byte[] d = new byte[(s.length() - 1) / 2];\r\n\t\t\t\tint k = (s.length() & 0x01) != 0 ? 3 : 4;\r\n\t\t\t\tfor (int i = 2; i < s.length(); i = k, k += 2)\r\n\t\t\t\t\td[(i - 1) / 2] = (byte) Short.parseShort(s.substring(i, k), 16);\r\n\t\t\t\treturn d;\r\n\t\t\t}\r\n\t\t\telse if (s.length() > 1 && s.startsWith(\"0\"))\r\n\t\t\t\tl = Long.parseLong(s, 8);\r\n\t\t\telse if (s.startsWith(\"b\"))\r\n\t\t\t\tl = Long.parseLong(s.substring(1), 2);\r\n\t\t\telse\r\n\t\t\t\tl = Long.parseLong(s);\r\n\t\t\tint i = 0;\r\n\t\t\tfor (long test = l; test != 0; test /= 0x100)\r\n\t\t\t\t++i;\r\n\t\t\tfinal byte[] d = new byte[i == 0 ? 1 : i];\r\n\t\t\tfor (; i-- > 0; l /= 0x100)\r\n\t\t\t\td[i] = (byte) (l & 0xff);\r\n\t\t\treturn d;\r\n\t\t}", "public static Bytes valueOf(final String string) throws StringValueConversionException\n\t{\n\t\treturn valueOf(string, Locale.getDefault(Locale.Category.FORMAT));\n\t}", "public byte getByte(String name) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but not specified\");\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).byteValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Byte.parseByte((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but found: \" + val);\n\t\t}\n\t}", "public static byte[] toByteArray(String s) {\n return DatatypeConverter.parseHexBinary(s.toUpperCase());\n }", "private byte[] getUTF8Bytes(String input) {\n\t\treturn input.getBytes(StandardCharsets.UTF_8);\n\t}", "public static byte[] toByteArray(String string) {\n byte[]\tbytes = new byte[string.length()];\n char[] chars = string.toCharArray();\n\n for (int i = 0; i != chars.length; i++) {\n bytes[i] = (byte)chars[i];\n }\n\n return bytes;\n }", "byte toStringValue() {\n return (byte) String.valueOf(value).charAt(0);\n }", "public static byte[] base64ToByte(String data) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(data);\n }", "ByteArray(String s) {\n\tdata = StringConverter.hexToByte(s);\n }", "private byte[] stringToBytes(String bytesInStringForm) {\n byte[] bytes = new byte[16];\n String[] byteValues = bytesInStringForm.split(\",\");\n for (int byteIndex = 0; byteIndex < 16; byteIndex++) {\n bytes[byteIndex] = (byte) Integer.parseInt(byteValues[byteIndex]);\n }\n return bytes;\n\n }", "public Byte getByte(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).byteValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null && string.length() > 0) {\n return Byte.parseByte(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }", "public static final byte[] asUTF8(final String s) {\n return s.getBytes(StandardCharsets.UTF_8);\n }", "public static byte[] getUTF8Bytes(String str) {\r\n try { return str.getBytes(\"UTF-8\"); } catch (Exception ex) { return null; }\r\n }", "public static byte[] GetBytesFromOctetString(String p) throws IOException {\n Charset encoding = StandardCharsets.UTF_8;\n return StringUtility.GetBytesFromOctetString(p, encoding);\n }", "public static byte[] stringToBytes(String str) {\n\t\tif (str==null)\n\t\t\treturn null;\n\t\tif (str.charAt(str.length()-1)!='\\0') str+='\\0';\n\t\treturn str.getBytes();\n\t}", "int retrieveString(byte s[]);", "public static String toByteString(byte value) {\n String str = String.format(\"%x\", value);\n if (str.length() == 1)\n str = \"0\" + str;\n return str;\n }", "public static byte[] decodeToBytes(String string){\n\t\treturn decode(string.getBytes());\n\t}", "private static byte charToByte(char c) {\n return (byte) \"0123456789ABCDEF\".indexOf(c);\n }", "private static byte charToByte(char c) {\n return (byte) \"0123456789ABCDEF\".indexOf(c);\n }", "private static byte charToByte(char c) {\n return (byte) \"0123456789ABCDEF\".indexOf(c);\n }", "byte toByteValue() {\n return (byte) value;\n }", "@NotNull\n public static byte[] convertHexToBytes(@NotNull String s) {\n checkNotNull(s);\n int len = s.length();\n checkArgument(len % 2 == 0);\n\n len /= 2;\n byte[] buff = new byte[len];\n for (int i = 0; i < len; i++) {\n buff[i] = (byte) ((getHexDigit(s, i + i) << 4) | getHexDigit(s, i + i + 1));\n }\n return buff;\n }", "private static byte charToByte(char c) {\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\n\t}", "private static byte charToByte(char c) {\r\n\t\treturn (byte) \"0123456789ABCDEF\".indexOf(c);\r\n\t}", "private static byte[] getBytes(String string) {\n log.log(Level.FINEST, String.format(\"%d %s\", string.length(), string));\n return string.getBytes();\n }", "public abstract byte[] parse(String input);", "public static byte[]\n hexStringToBytes(String s) {\n byte[] ret;\n\n if (s == null) return null;\n\n int sz = s.length();\n\n ret = new byte[sz/2];\n\n for (int i=0 ; i <sz ; i+=2) {\n ret[i/2] = (byte) ((hexCharToInt(s.charAt(i)) << 4)\n | hexCharToInt(s.charAt(i+1)));\n }\n\n return ret;\n }", "public static byte [] toBytesBinary(String in) {\n byte [] b = new byte[in.length()];\n int size = 0;\n for (int i = 0; i < in.length(); ++i) {\n char ch = in.charAt(i);\n if (ch == '\\\\' && in.length() > i+1 && in.charAt(i+1) == 'x') {\n // ok, take next 2 hex digits.\n char hd1 = in.charAt(i+2);\n char hd2 = in.charAt(i+3);\n\n // they need to be A-F0-9:\n if (!isHexDigit(hd1) ||\n !isHexDigit(hd2)) {\n // bogus escape code, ignore:\n continue;\n }\n // turn hex ASCII digit -> number\n byte d = (byte) ((toBinaryFromHex((byte)hd1) << 4) + toBinaryFromHex((byte)hd2));\n\n b[size++] = d;\n i += 3; // skip 3\n } else {\n b[size++] = (byte) ch;\n }\n }\n // resize:\n byte [] b2 = new byte[size];\n System.arraycopy(b, 0, b2, 0, size);\n return b2;\n }", "public byte[] getUTF8Bytes(String str) {\n\t try { return str.getBytes(\"UTF-8\"); } catch (Exception ex) { return null; }\n\t }", "public static byte[] dataStringToByteArray(String inDataString) throws JCavernInternalError\n\t{\n\t\tStringTokenizer aTokenizer = new StringTokenizer(inDataString);\n\t\tint\t\t\t\tindex = 0;\n\t\tbyte[]\t\t\ttheBytes = new byte[aTokenizer.countTokens()];\n\n\t\twhile (aTokenizer.hasMoreTokens())\n\t\t{\n\t\t\tString\taToken = aTokenizer.nextToken();\n\t\t\ttheBytes[index] = (byte) Integer.parseInt(aToken, 16);\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\treturn theBytes;\n\t}", "private static byte[] HexStringToByteArray(String input){\n\n\t\tint len = input.length();\n\n\t\tbyte[] inputByte = new byte[len/2];\n\n\t\tfor(int i=0; i< len; i+=2){\n\t\t\tinputByte[i/2] = (byte) ((Character.digit(input.charAt(i), 16) << 4)\n\t\t\t\t\t+(Character.digit(input.charAt(i+1), 16)));\n\t\t}\n\n\t\treturn inputByte;\n\t}", "public static byte[] decode(String input) throws CorruptedCodeException {\r\n\tint i;\r\n\tbyte[] b;\r\n\r\n\tif (input.length() == 0) {\r\n\t return new byte[0];\r\n\t}\r\n\tb = new byte[input.length()];\r\n\r\n\tfor (i = input.length() - 1; i >= 0; i--) {\r\n\t b[i] = (byte) input.charAt(i);\r\n\t}\r\n\treturn decode(b);\r\n }", "public byte getByte(String name, byte defaultValue) {\n\t\tObject val = values.get(name);\n\t\tif (val == null) {\n\t\t\treturn defaultValue;\n\t\t}\n\t\tif (val instanceof Number) {\n\t\t\treturn ((Number) val).byteValue();\n\t\t}\n\t\ttry {\n\t\t\treturn Byte.parseByte((String) val);\n\t\t} catch (Exception e) {\n\t\t\tthrow new IllegalArgumentException(\"Byte value required, but found: \" + val);\n\t\t}\n\t}", "@Test\n public void testToByte() {\n System.out.println(\"toByte\");\n String hexString = \"\";\n byte[] expResult = null;\n byte[] result = Crypto.toByte(hexString);\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 }", "static String hexToBin(String s) {\n\t\treturn new BigInteger(s, 16).toString(2);\n\t}", "public static byte[] hextobyte(String keyText) {\n\t\tif (keyText.length() % 2 == 1) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid string format --> invalid size\");\n\t\t}\n\n\t\tbyte[] byteArray = new byte[keyText.length() / 2];\n\t\tchar[] charArray = keyText.toCharArray();\n\n\t\tfor (int i = 0; i < charArray.length;) {\n\t\t\tchar c1 = charArray[i++];\n\t\t\tchar c2 = charArray[i];\n\n\t\t\tif (checkChar(c1) && checkChar(c2)) {\n\t\t\t\tint value = Integer.parseInt(new StringBuilder().append(c1).append(c2).toString(), 16);\n\t\t\t\tbyteArray[i / 2] = (byte) value;\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Invalid string format --> invalid character\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\n\t\treturn byteArray;\n\t}", "public byte getByte(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? (byte)((Long)value).intValue() : 0);\n }", "public static byte[] toBytes(String s)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// int l = 4 - (s.length()%4);\n\t\t\t// for(int i=0;i<l;++i)\n\t\t\t// \ts+=\" \";\n\n\t\t\t// return Base64.getDecoder().decode(s);\n\t\t\treturn s.getBytes(ISO_8859_1);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static byte[] hexStringToBytes(String str) {\n\t\treturn hexStringToBytes(str,str.length()/2); \n\t}", "byte[] IntToByte(int i)\r\n {\r\n return Integer.toString(i).getBytes();\r\n }", "private static byte[] convertToBytes(final String macNumber) {\n byte[] bytes = new byte[6];\n String[] hex = macNumber.split(\"(\\\\:|\\\\-)\");\n if (hex.length != 6) {\n return new byte[0];\n }\n try {\n for (int i = 0; i < 6; i++) {\n bytes[i] = (byte) Integer.parseInt(hex[i], 16);\n }\n } catch (NumberFormatException e) {\n LOG.error(e);\n return new byte[0];\n }\n return bytes;\n }", "public abstract byte[] mo32305a(String str);", "void writeBytes(String s) throws IOException;", "public static String TextToBinary(String input){\n\t\tString output = \"\";\n\t\tfor(int i = 0; i < input.length(); i++){\n\t\t\toutput += Integer.toBinaryString(0x100 | input.charAt(i)).substring(1);\n\t\t}\n\t\treturn output;\n\t}", "@Test\n public void testGetBytes() {\n LOGGER.info(\"testGetBytes\");\n final String s = \"Hello\";\n final byte[] expected = s.getBytes(US_ASCII);\n final AtomString atomString1 = new AtomString(s);\n final byte[] actual = atomString1.getBytes();\n assertArrayEquals(expected, actual);\n }", "public static byte[] hextobyte(String keyText) {\n\t\tif (keyText.length() % 2 != 0) throw new IllegalArgumentException(\"Length must be even.\");\n\t\tchar[] hexInput = keyText.toCharArray();\n\t\tbyte[] byteOutput = new byte[keyText.length() / 2];\n\t\tfor (int i = 0; i < hexInput.length; i += 2) {\n\t\t\tbyteOutput[i / 2] = (byte) ((Character.digit(hexInput[i], HEX_BASE) * HEX_BASE)\n\t\t\t\t\t+ Character.digit(hexInput[i + 1], HEX_BASE));\n\t\t}\n\t\treturn byteOutput;\n\t}", "public byte getByte(String key)\n {\n return getByte(key, (byte) 0);\n }", "public static byte[] charToByte(TextInputEditText editText)\n {\n int length = editText.length();\n char[] charArray = new char[length];\n editText.getText().getChars(0, length, charArray, 0);\n\n ByteBuffer buffer = StandardCharsets.UTF_8.encode(CharBuffer.wrap(charArray));\n byte[] byteArray = new byte[buffer.limit()];\n buffer.get(byteArray);\n\n return byteArray;\n }", "public static byte[] decode(String s) {\r\n \t\treturn decode(s.toCharArray());\r\n \t}", "public static byte[] hexStringToByte(String command) {\n\t\tString[] s = command.split(\" \");\r\n\t\tbyte []bs=new byte[s.length];\r\n\t\tfor(int i=0;i<s.length;i++) {\r\n\t\t\tint temp=hexTool(s[i]);\r\n\t\t\tbyte bt=(byte) (temp&0xff);\r\n//\t\t\tSystem.out.print(bt);\r\n\t\t\tbs[i]=bt;\r\n\t\t}\r\n\t\treturn bs;\r\n//\t\tSystem.out.println(bs);\r\n\t}", "public static byte[] convert(String hex) {\n/* 51 */ ByteArrayOutputStream baos = new ByteArrayOutputStream();\n/* 52 */ for (int i = 0; i < hex.length(); i += 2) {\n/* 53 */ char c1 = hex.charAt(i);\n/* 54 */ if (i + 1 >= hex.length())\n/* 55 */ throw new IllegalArgumentException(); \n/* 56 */ char c2 = hex.charAt(i + 1);\n/* 57 */ byte b = 0;\n/* 58 */ if (c1 >= '0' && c1 <= '9') {\n/* 59 */ b = (byte)(b + (c1 - 48) * 16);\n/* 60 */ } else if (c1 >= 'a' && c1 <= 'f') {\n/* 61 */ b = (byte)(b + (c1 - 97 + 10) * 16);\n/* 62 */ } else if (c1 >= 'A' && c1 <= 'F') {\n/* 63 */ b = (byte)(b + (c1 - 65 + 10) * 16);\n/* */ } else {\n/* 65 */ throw new IllegalArgumentException();\n/* 66 */ } if (c2 >= '0' && c2 <= '9') {\n/* 67 */ b = (byte)(b + c2 - 48);\n/* 68 */ } else if (c2 >= 'a' && c2 <= 'f') {\n/* 69 */ b = (byte)(b + c2 - 97 + 10);\n/* 70 */ } else if (c2 >= 'A' && c2 <= 'F') {\n/* 71 */ b = (byte)(b + c2 - 65 + 10);\n/* */ } else {\n/* 73 */ throw new IllegalArgumentException();\n/* 74 */ } baos.write(b);\n/* */ } \n/* 76 */ return baos.toByteArray();\n/* */ }", "public int hexToBin(String input) {\r\n\t\treturn Integer.valueOf(new BigInteger(input, 16).toString(2));\t\t\r\n\t}", "public static final byte[] hexStrToBytes(String s) {\n\t\tbyte[] bytes;\n\n\t\tbytes = new byte[s.length() / 2];\n\n\t\tfor (int i = 0; i < bytes.length; i++) {\n\t\t\tbytes[i] = (byte) Integer.parseInt(s.substring(2 * i, (2 * i) + 2), 16);\n\t\t}\n\n\t\treturn bytes;\n\t}", "public static byte[] stringToHash (String hash)\n {\n if (hash == null || hash.length() % 2 != 0) {\n return null;\n }\n\n hash = hash.toLowerCase();\n byte[] data = new byte[hash.length() / 2];\n for (int ii = 0; ii < hash.length(); ii += 2) {\n int value = (byte) (HEX.indexOf(hash.charAt(ii)) << 4);\n value += HEX.indexOf(hash.charAt(ii + 1));\n\n // values over 127 are wrapped around, restoring negative bytes\n data[ii / 2] = (byte) value;\n }\n\n return data;\n }", "public static byte[] toBytes(final String hexadecimal) {\n\t\treturn toBytes(hexadecimal.toCharArray());\n\t}", "public static byte[] hexStringToBytes(String hexString) {\n if (hexString == null || hexString.equals(\"\")) {\n return null;\n }\n hexString = hexString.toUpperCase();\n int length = hexString.length() / 2;\n char[] hexChars = hexString.toCharArray();\n byte[] d = new byte[length];\n for (int i = 0; i < length; i++) {\n int pos = i * 2;\n d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\n }\n return d;\n }", "public static byte[] hexStringToBytes(String hexString) {\n if (hexString == null || hexString.equals(\"\")) {\n return null;\n }\n hexString = hexString.toUpperCase();\n int length = hexString.length() / 2;\n char[] hexChars = hexString.toCharArray();\n byte[] d = new byte[length];\n for (int i = 0; i < length; i++) {\n int pos = i * 2;\n d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\n }\n return d;\n }", "public static byte[] hextobyte(String keyText) {\n\t\tif (Objects.requireNonNull(keyText).length() == 0) {\n\t\t\treturn new byte[0];\n\t\t}\n\t\tif (keyText.length() % 2 == 1) {\n\t\t\tthrow new IllegalArgumentException(\"keyText is odd-sized.\");\n\t\t}\n\t\tbyte[] bytearray = new byte[keyText.length() / 2];\n\t\tfor (int index = 0, length = keyText.length(); index < length; index += 2) {\n\t\t\tbytearray[index / 2] = (byte) (toNibble(keyText.charAt(index)) << 4 | toNibble(keyText.charAt(index+1)));\n\t\t}\n\t\treturn bytearray;\n\t}", "public static byte[] convertirString(String archivo) {\n\t\ttry {\n\t\t\treturn archivo.getBytes(\"UTF-8\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public static byte[] hexStringToBytes(String hexString) {\r\n\t\tif (hexString == null || hexString.equals(\"\")) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\thexString = hexString.toUpperCase();\r\n\t\tint length = hexString.length() / 2;\r\n\t\tchar[] hexChars = hexString.toCharArray();\r\n\t\tbyte[] d = new byte[length];\r\n\t\tfor (int i = 0; i < length; i++) {\r\n\t\t\tint pos = i * 2;\r\n\t\t\td[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public static byte[] getByte(String url) {\n return getByte(url, Collections.emptyMap());\n }", "private static byte charToByte(char c) {\n if (c >= 0x30 && c <= 0x39) {\n return (byte) (c - 0x30);\n } else if (c >= 0x41 && c <= 0x46) {\n return (byte) (c - 0x37);\n } else if (c >= 0x61 && c <= 0x66) {\n return (byte) (c - 0x57);\n }\n return 0;\n }", "public static byte[] hexStringToBytes(String hexString) {\n\t\tif (hexString == null || hexString.equals(\"\")) {\n\t\t\treturn null;\n\t\t}\n\t\thexString = hexString.toUpperCase();\n\t\tint length = hexString.length() / 2;\n\t\tchar[] hexChars = hexString.toCharArray();\n\t\tbyte[] d = new byte[length];\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tint pos = i * 2;\n\t\t\td[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\n\t\t}\n\t\treturn d;\n\t}", "protected byte[] stringToByte_8859_1(String str) throws SaslException {\n char[] buffer = str.toCharArray();\n try {\n if (useUTF8) {\n for (int i = 0; i < buffer.length; i++) {\n if (buffer[i] > 'ÿ') {\n return str.getBytes(\"UTF8\");\n }\n }\n }\n return str.getBytes(\"8859_1\");\n } catch (UnsupportedEncodingException e) {\n throw new SaslException(\"cannot encode string in UTF8 or 8859-1 (Latin-1)\", e);\n }\n }", "public static byte[] hexStringToBytes(String hexString) {\n if (hexString == null || hexString.equals(\"\")) {\n return null;\n }\n //2A51704910EA2922\n hexString = hexString.toUpperCase();\n //8\n int length = hexString.length() / 2;\n //\n char[] hexChars = hexString.toCharArray();\n LogUtils.e(\"ANKUR\", \"hexChars : \" + hexChars);\n byte[] d = new byte[length];\n for (int i = 0; i < length; i++) {\n int pos = i * 2;\n d[i] = (byte) (charToByte(hexChars[pos]) << 4 | charToByte(hexChars[pos + 1]));\n }\n LogUtils.e(\"ANKUR\", \"byteArray d : \" + d);\n return d;\n }", "public abstract byte[] toBytes() throws Exception;", "public static byte[] toBytes(String strhex ){\r\n\t\t \r\n\t\t String hexString = strhex.trim();\t\t \r\n\t int length = hexString.length();\r\n\t if ( length % 2 != 0 ) {\r\n\t \thexString = \"0\" ;\r\n\t \thexString += strhex.trim();\r\n\t }\r\n\t length = hexString.length();\r\n\t byte[] data = new byte[ length / 2 ];\r\n\t char highChar, lowChar;\r\n\t byte highNibble, lowNibble;\r\n\t for (int i = 0, offset = 0; i < length; i += 2, offset ++ )\r\n\t {\r\n\t highChar = hexString.charAt( i );\r\n\t if ( highChar >= '0' && highChar <= '9')\r\n\t {\r\n\t highNibble = (byte)(highChar - '0');\r\n\t }\r\n\t else if (highChar >= 'A' && highChar <= 'F')\r\n\t {\r\n\t highNibble = (byte)(10 + highChar - 'A');\r\n\t }\r\n\t else if (highChar >= 'a' && highChar <= 'f')\r\n\t {\r\n\t highNibble = (byte)(10 + highChar - 'a');\r\n\t }\r\n\t else\r\n\t {\r\n\t throw new NumberFormatException( \"Invalid hex char: \" + highChar );\r\n\t }\r\n\r\n\t lowChar = hexString.charAt( i + 1 );\r\n\t if ( lowChar >= '0' && lowChar <= '9')\r\n\t {\r\n\t lowNibble = (byte)(lowChar - '0');\r\n\t }\r\n\t else if (lowChar >= 'A' && lowChar <= 'F')\r\n\t {\r\n\t lowNibble = (byte)(10 + lowChar - 'A');\r\n\t }\r\n\t else if (lowChar >= 'a' && lowChar <= 'f')\r\n\t {\r\n\t lowNibble = (byte)(10 + lowChar - 'a');\r\n\t }\r\n\t else\r\n\t {\r\n\t throw new NumberFormatException( \"Invalid hex char: \" + lowChar );\r\n\t }\r\n //System.out.println(\"len = \" + length +\", offset = \" + offset);\r\n\t data[ offset ] = (byte)(highNibble << 4 | lowNibble);\r\n\t }\r\n\t return data;\r\n\t}", "public Byte _parseByte(JsonParser jVar, DeserializationContext gVar) throws IOException {\n JsonToken l = jVar.mo29328l();\n if (l == JsonToken.VALUE_STRING) {\n String trim = jVar.mo29334t().trim();\n if (_hasTextualNull(trim)) {\n return (Byte) _coerceTextualNull(gVar, this._primitive);\n }\n if (trim.length() == 0) {\n return (Byte) _coerceEmptyString(gVar, this._primitive);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n try {\n int a = NumberInput.m23779a(trim);\n if (_byteOverflow(a)) {\n return (Byte) gVar.mo31517b(this._valueClass, trim, \"overflow, value cannot be represented as 8-bit value\", new Object[0]);\n }\n return Byte.valueOf((byte) a);\n } catch (IllegalArgumentException unused) {\n return (Byte) gVar.mo31517b(this._valueClass, trim, \"not a valid Byte value\", new Object[0]);\n }\n } else if (l == JsonToken.VALUE_NUMBER_FLOAT) {\n if (!gVar.mo31509a(DeserializationFeature.ACCEPT_FLOAT_AS_INT)) {\n _failDoubleToIntCoercion(jVar, gVar, \"Byte\");\n }\n return Byte.valueOf(jVar.mo29335A());\n } else if (l == JsonToken.VALUE_NULL) {\n return (Byte) _coerceNullToken(gVar, this._primitive);\n } else {\n if (l == JsonToken.START_ARRAY) {\n return (Byte) _deserializeFromArray(jVar, gVar);\n }\n if (l == JsonToken.VALUE_NUMBER_INT) {\n return Byte.valueOf(jVar.mo29335A());\n }\n return (Byte) gVar.mo31493a(this._valueClass, jVar);\n }\n }", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "private byte[] convertingTobyteArray(String result) {\n String[] splited = result.split(\"\\\\s+\");\n byte[] valueByte = new byte[splited.length];\n for (int i = 0; i < splited.length; i++) {\n if (splited[i].length() > 2) {\n String trimmedByte = splited[i].split(\"x\")[1];\n valueByte[i] = (byte) convertstringtobyte(trimmedByte);\n }\n\n }\n return valueByte;\n\n }", "static StringBuilder convert_to_binary(String msg) {\n byte[] bytes = msg.getBytes();\r\n StringBuilder binary = new StringBuilder();\r\n for (byte b : bytes) {\r\n int val = b;\r\n for (int i = 0; i < 8; i++) {\r\n binary.append((val & 128) == 0 ? 0 : 1);\r\n val <<= 1;\r\n }\r\n binary.append(\"\");\r\n }\r\n return binary;\r\n }", "private static byte[] String2Bytes(String str, int digit) {\n\t\tbyte[] bArray = new BigInteger(\"10\" + str, digit).toByteArray();\r\n\r\n\t\t// Copy all the REAL bytes, not the \"first\"\r\n\t\tbyte[] ret = new byte[bArray.length - 1];\r\n\t\tfor (int i = 0; i < ret.length; i++) {\r\n\t\t\tret[i] = bArray[i + 1];\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}", "public int toByte(){\n return toByte(0);\n }", "@Test\n public void testEncodeAsBytes() {\n LOGGER.info(\"encodeAsBytes\");\n final AtomString atomString = new AtomString();\n final byte[] actual = atomString.encodeAsBytes();\n final byte[] expected = {0x30, 0x3a};\n assertArrayEquals(expected, actual);\n }", "public static byte[] hex2byte(String s, int offset, int len)\r\n\t{\r\n\t\tbyte[] d = new byte[len];\r\n\t\tint byteLen = len * 2;\r\n\t\tfor (int i = 0; i < byteLen; i++)\r\n\t\t{\r\n\t\t\tint shift = (i % 2 == 1) ? 0 : 4;\r\n\t\t\td[i >> 1] |= Character.digit(s.charAt(offset + i), 16) << shift;\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public static Bytes valueOf(final String string, final Locale locale)\n\t\tthrows StringValueConversionException\n\t{\n\t\tfinal Matcher matcher = valuePattern.matcher(string);\n\n\t\t// Valid input?\n\t\tif (matcher.matches())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Get double precision value\n\t\t\t\tfinal double value = NumberFormat.getNumberInstance(locale)\n\t\t\t\t\t.parse(matcher.group(1))\n\t\t\t\t\t.doubleValue();\n\n\t\t\t\t// Get units specified\n\t\t\t\tfinal String units = matcher.group(3);\n\n\t\t\t\tif (units.equalsIgnoreCase(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn bytes(value);\n\t\t\t\t}\n\t\t\t\telse if (units.equalsIgnoreCase(\"K\"))\n\t\t\t\t{\n\t\t\t\t\treturn kilobytes(value);\n\t\t\t\t}\n\t\t\t\telse if (units.equalsIgnoreCase(\"M\"))\n\t\t\t\t{\n\t\t\t\t\treturn megabytes(value);\n\t\t\t\t}\n\t\t\t\telse if (units.equalsIgnoreCase(\"G\"))\n\t\t\t\t{\n\t\t\t\t\treturn gigabytes(value);\n\t\t\t\t}\n\t\t\t\telse if (units.equalsIgnoreCase(\"T\"))\n\t\t\t\t{\n\t\t\t\t\treturn terabytes(value);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new StringValueConversionException(\"Units not recognized: \" + string);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (ParseException e)\n\t\t\t{\n\t\t\t\tthrow new StringValueConversionException(\"Unable to parse numeric part: \" + string,\n\t\t\t\t\te);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new StringValueConversionException(\"Unable to parse bytes: \" + string);\n\t\t}\n\t}", "public static byte[] HexStringToBytes(String s) {\n\n int size = s.length();\n byte[] b = new byte[size / 2];\n\n for (int i = 0; i < size; i += 2) {\n b[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4)\n + Character.digit(s.charAt(i + 1), 16));\n }\n return b;\n }", "public static byte[] convertToByteArray(String key)\n\t{\n\t byte[] b = new byte[key.length()/2];\n\t\n\t for(int i=0, bStepper=0; i<key.length()+2; i+=2)\n\t if(i !=0)\n\t b[bStepper++]=((byte) Integer.parseInt((key.charAt(i-2)+\"\"+key.charAt(i-1)), 16));\n\t\n\t return b;\n\t}", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default @ZenCodeType.Unsigned byte asByte() {\n \n return notSupportedCast(BasicTypeID.BYTE);\n }", "public String byteToChar(byte b[], String encoding);", "public byte toByte() {\n return this.toByteArray()[0];\n }", "public static byte[] NumStringToBytes(String in) {\n BigInteger num = new BigInteger(in);\n byte[] bytes = num.toByteArray();\n if (bytes.length > 0) {\n if (bytes[0] == 0) {\n byte[] cuttedByte = new byte[bytes.length - 1];\n System.arraycopy(bytes, 1, cuttedByte, 0, bytes.length - 1);\n return cuttedByte;\n }\n\n }\n return num.toByteArray();\n }" ]
[ "0.72051525", "0.7140552", "0.6776523", "0.66034514", "0.6437179", "0.64328295", "0.63827354", "0.63739514", "0.6361948", "0.6307412", "0.6299452", "0.6284215", "0.6271832", "0.6242552", "0.6235075", "0.62304574", "0.6206423", "0.6199404", "0.61387634", "0.61241037", "0.6112486", "0.6098663", "0.6069101", "0.6047538", "0.6029292", "0.60081714", "0.5977987", "0.5958758", "0.59574515", "0.59191185", "0.58873963", "0.58848536", "0.58495367", "0.5840297", "0.58243823", "0.58221513", "0.58221513", "0.58221513", "0.5819962", "0.5814879", "0.5813682", "0.5811879", "0.5806976", "0.5799607", "0.5794706", "0.5785605", "0.57636046", "0.5762375", "0.5750269", "0.57367426", "0.5716128", "0.5662934", "0.5653272", "0.56455374", "0.5645214", "0.563947", "0.56373316", "0.5620152", "0.5586815", "0.55856395", "0.55738187", "0.55653286", "0.55461246", "0.55363053", "0.55355376", "0.5518646", "0.55156904", "0.5514658", "0.5510481", "0.55087125", "0.55048805", "0.54963744", "0.54947823", "0.5491689", "0.5491689", "0.54873186", "0.5487098", "0.5486192", "0.5458077", "0.54468715", "0.54429513", "0.54354346", "0.54282475", "0.5423081", "0.5420555", "0.54146016", "0.541119", "0.5410727", "0.54106534", "0.5409944", "0.54065293", "0.54049623", "0.54019266", "0.5390885", "0.53893405", "0.53776306", "0.5376249", "0.5369997", "0.5366653", "0.53446996" ]
0.7345531
0
Simple interface to accept/reject clients.
private Menu createServiceMenu() { Menu serviceMenu = new Menu("Service"); startService = new MenuItem("Start"); startService.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { localPeer.startService(); } }); serviceMenu.add(startService); stopService = new MenuItem("Stop"); stopService.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { localPeer.stopService(); } }); stopService.setEnabled(false); serviceMenu.add(stopService); return serviceMenu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void accept(ConnectionClientSocket client) {\n client.visit(this);\n }", "public interface Client {\n\n}", "public interface ClientInterface {\n boolean openConnection();\n void handleSession();\n void closeSession();\n}", "public abstract void handleClient(Client conn);", "public void acceptClient() {\n if (mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, DISCOVERABLE_DURATION);\n mContext.startActivity(discoverableIntent);\n }\n\n stop();\n\n mAcceptThread = new AcceptThread();\n mAcceptThread.start();\n }", "interface Client {\n\n /**\n * Returns an ID string for this client.\n * The returned string should be unique among all clients in the system.\n *\n * @return An unique ID string for this client.\n */\n @Nonnull\n String getId();\n\n /**\n * Called when resources have been reserved for this client.\n *\n * @param resources The resources reserved.\n * @return <code>true</code> if, and only if, this client accepts the resources allocated. A\n * return value of <code>false</code> indicates this client does not need the given resources\n * (any more), freeing them implicitly.\n */\n boolean allocationSuccessful(@Nonnull Set<TCSResource<?>> resources);\n\n /**\n * Called if it was impossible to allocate a requested set of resources for this client.\n *\n * @param resources The resources which could not be reserved.\n */\n void allocationFailed(@Nonnull Set<TCSResource<?>> resources);\n }", "public abstract Client getClient();", "public interface ClientConnectionListener\n{\n /**\n * Event for when a Client connects to a server\n * @param client the client which connected\n */\n void clientConnected(Client client);\n\n /**\n * Event for when a Client Disconnects from a server\n * @param client the client which disconnected\n * @param info information about the disconnection\n */\n void clientDisconnected(Client client, DisconnectInfo info);\n}", "public interface Client extends ClientBase {\n\n\t/**\n\t * Adds a new listener for the client.<br>\n\t * <b>Note</b> that listeners should be added immediately when receiving the incoming notification.\n\t */\n\tpublic Client addListener(ClientListener listener);\n\n}", "interface myClient {\n}", "public void acceptSocket(AsynchronousSocketChannel arg0) {\n\r\n\t\tnew TCPClient(arg0);\r\n\t}", "public interface Client {\n\n\t/**\n\t * @throws Http2Exception\n\t */\n\tvoid init() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean start() throws Http2Exception;\n\n\t/**\n\t * @param request\n\t * @return\n\t * @throws Http2Exception\n\t */\n\t Http2Response request(Http2Request request) throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean isRuning() throws Http2Exception;\n\n\t/**\n\t * @return\n\t * @throws Http2Exception\n\t */\n\tboolean shutdown() throws Http2Exception;\n\n}", "private void beginAcceptClients() throws Exception {\r\n \t\tClientAcceptThread acceptClientsThread = new ClientAcceptThread(this.serverSocket, this);\r\n \t\tacceptClientsThread.start();\r\n \r\n \t\tLogger.logMessage(\"ClientAcceptThread started\");\r\n \t}", "void clientConnected(Client client);", "public interface Client<C extends Client<C,S>, S extends Server<S,C>> {\n\n\t/**\n\t * Callback called when the connection to the server has been established. Should not be called\n\t * directly from the server.\n\t */\n\tvoid onOpen();\n\n\t/**\n\t * Callback called when the connection to the server has been closed. Should not be called\n\t * directly from the server.\n\t */\n\tvoid onClose();\n\n\t/**\n\t * Called when an error occurs while trying to send a message to the server.\n\t * @param error the error that occurred.\n\t */\n\tvoid onError(Throwable error);\n}", "public interface Client<IN, OUT, CONN extends Channel<IN,OUT>> extends Publisher<CONN> {\n\n\t/**\n\t * Open a channel to the configured address and return a {@link reactor.rx.Promise} that will be\n\t * fulfilled with the connected {@link Channel}.\n\t *\n\t * @return {@link reactor.rx.Promise} that will be completed when connected\n\t */\n\tPromise<Boolean> open();\n\n\t/**\n\t * Open a channel to the configured address and return a {@link reactor.rx..Stream} that will be populated\n\t * by the {@link ChannelStream} every time a connection or reconnection is made.\n\t *\n\t * @param reconnect\n\t * \t\tthe reconnection strategy to use when disconnects happen\n\t *\n\t * @return a Stream of reconnected boolean to signal connection success\n\t */\n\tStream<Boolean> open(Reconnect reconnect);\n\n\t/**\n\t * Close this client and the underlying channel.\n\t * @return a Promise successful when closed\n\t */\n\tPromise<Boolean> close();\n\n\t/**\n\t * A global handling pipeline that will be called on each new connection and will listen for signals emitted\n\t * by the returned Publisher to write back.\n\t *\n\t * @return this\n\t */\n\tClient<IN, OUT, CONN> pipeline(Function<CONN, ? extends Publisher<? extends OUT>> serviceFunction);\n\n\n}", "public interface IClient {\n void start(String hostIP);\n void stop();\n}", "public interface ClientListener {\n\t/**\n\t * Fired when client list should be updated\n\t * \n\t * @param clients Array of clients\n\t */\n void onClientsUpdated(String[] clients);\n \n /**\n * Fired when a message has been received\n * \n * @param message Message that was received\n */\n void onMessageReceived(Message message);\n \n /**\n * Fired when client has been disconnected from server\n */\n void onDisconnected();\n}", "public interface IMessageAcceptor {\n\n void acceptMessage(String ip, String message);\n\n void connectionClosed(String ip);\n\n}", "public interface SocketClientInterface {\n boolean openConnection();\n void handleSession();\n void closeSession();\n}", "public MySocket accept(){\n\t\ttry{\r\n\t\t\treturn new MySocket(sSocket.accept());\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public interface Client extends Endpoint, Channel, Resetable {\n\n /**\n * reconnect.\n */\n void reconnect() throws RemotingException;\n\n\n}", "Client getClient();", "private void treatAccept(SelectionKey key) throws IOException\n {\n ServerSocketChannel ssc = (ServerSocketChannel) key.channel();\n SocketChannel sc = ssc.accept();\n sc.configureBlocking(false);\n SelectionKey clientKey = sc.register(selector, SelectionKey.OP_READ,\n new RequestCommandHandler(root));\n\n System.out\n .println(\"New connection accepted for : \"\n + sc.socket().getRemoteSocketAddress() + \", key : \"\n + clientKey);\n }", "ClientConnection connection();", "public interface DataRelayClient {\n\n /**\n * Send data in a loop over UDP\n */\n public void streamData(String pathToFile) throws IOException;\n\n /**\n * Receive data in a loop via UDP\n */\n public void receiveData() throws IOException;\n\n /**\n * Initialize TCP connection\n */\n public void initializeTCP() throws IOException;\n /**\n * Initialize UDP connection\n */\n public void initializeUDP() throws IOException;\n\n /**\n * Get client ID from the server\n */\n public void setID() throws IOException;\n\n /**\n * Check if client is first to connect\n */\n public boolean isFirstToConnect() throws IOException;\n\n /**\n * Initialize the client\n */\n public void initialize() throws Exception;\n}", "public interface ClientHandler {\r\n\r\n\t/**\r\n\t * Handle client.\r\n\t *\r\n\t * @param inFromClient the in from client\r\n\t * @param outToServer the out to server\r\n\t */\r\n\tpublic void handleClient(InputStream inFromClient, OutputStream outToServer);\r\n}", "public interface InterfaceClient extends Remote {\n\n double seConnecter(Client client) throws RemoteException;\n\n \n\n boolean peutReserver(Reservation rv) throws RemoteException;\n\n void visualiser(Vehicule voiture) throws RemoteException;\n\n \n \n \n void deconnexion() throws RemoteException;\n\n boolean sinscrire(Client client) throws RemoteException;\n\n void inscriptionReussite(Client client) throws RemoteException;\n}", "public interface SayHelloToClient {\n public String sayHello(String hello);\n}", "@Override\n\tpublic void run(){\n\t\tInetAddress IPAddress = serverTcpSocket.getInetAddress();\n\t\tfor (ClientObj c: clients)\n\t\t\tif (c.getId() == client.getId()){\n\t\t\t\tSystem.out.print(IPAddress + \" Client already connected!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\ttry{\n\t\t\t// Check handshake received for correctness\n\t\t\t//(connect c->s) [herader | \"JUSTIN\\0\" | connection port] (udp)\n\t\t\t//(connect response s->c) [header | client id | port] (udp)\n\t \n\t // open the connection\n\t\t clientSocket = null;\n\t\t Socket clientListener = null;\n\t\t // wait for client connection on tcp port\n\t\t //serverTcpSocket.setSoTimeout(5000);\n\t \tSystem.out.println (\" Waiting for tcp connection.....\");\n\t \tclientSocket = serverTcpSocket.accept();\n\t \tclientListener = serverTcpSocket.accept();\n\t \tclient.setListenerSocket(clientListener);\n\t\t\tIPAddress = clientSocket.getInetAddress();\n\t\t\tint recv_port = clientSocket.getPort();\n\t\t\tSystem.out.println(IPAddress + \": Client connected @ port \" + recv_port);\n\n\t\t // handle tcp connection\n\t\t\tclientSocket.setSoTimeout(Constants.ACK_TIMEOUT);\n\t\t out = new BufferedOutputStream(clientSocket.getOutputStream());\n\t\t\tin = new BufferedInputStream(clientSocket.getInputStream());\n\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\tclient.setPort(clientSocket.getPort());\n\t\t clients.add(client);\n\t\t\t\n\t\t // handle requests\n\t\t\twhile (!shutdown_normally) {\n\t\t\t\t// read just the header, then handle the req based on the info in the header\n\t\t\t\tif ((buf = Utility.readIn(in, Constants.HEADER_LEN)) == null)\n\t\t\t\t\tbreak;\n\t\t\t\tint flag = buf.getInt(0);\n\t\t\t\tint len2 = buf.getInt(4);\n\t\t\t\tint id = buf.getInt(8);\n\t\t\t\t\n\t\t\t\t// check for correctness of header\n\t\t\t\t\n\t\t\t\tif (flag < Constants.OPEN_CONNECTION || \n\t\t\t\t\t\tflag > Constants.NUM_FLAGS || \n\t\t\t\t\t\tid != client.getId() || \n\t\t\t\t\t\tlen2 < 0){\n\t\t\t\t\tout.close(); \n\t\t\t\t\tin.close(); \n\t\t\t\t\tclientSocket.close(); \n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t\t\tclients.remove(client);\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Connection - FAILURE! (malformed header)\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// read payload\n\t\t\t\tif ((buf = Utility.readIn(in, Utility.getPaddedLength(len2))) == null)\n\t\t\t\t\tthrow new IOException(\"read failed.\");\n\t\t\t\t// update address (necessary?)\n\t\t\t\tclients.get(clients.indexOf(client)).setAddress(clientSocket.getInetAddress());\n\t\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\t\tswitch (flag){\n\t\t\t\t\tcase Constants.ACK:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.VIEW_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing view request...\");\n\t\t\t\t\t\tViewFiles(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download request...\");\n\t\t\t\t\t\tDownload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.UPLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing upload request...\");\n\t\t\t\t\t\tUpload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_ACK:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download acknowledgment...\");\n\t\t\t\t\t\tDownloadCompleted(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.CLOSE_CONNECTION:\n\t\t\t\t\t\tshutdown_normally = true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close all open sockets\n\t\t out.close(); \n\t\t in.close(); \n\t\t clientSocket.close(); \n\t\t serverTcpSocket.close();\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(IPAddress + \": Timeout waiting for response.\");\n\t\t} catch (UnknownHostException e) {\n\t\t\t// IPAdress unknown\n\t\t\tSystem.err.println(\"Don't know about host \" + IPAddress);\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to \" +\n\t\t\t\t\tIPAddress);\n\t\t} catch (RuntimeException e){\n\t\t\t// Malformed Header or payload most likely\n\t\t\tSystem.err.println(IPAddress + \": Connection - FAILURE! (\" + e.getMessage() + \")\");\n\t\t} finally {\n\t\t\t// remove this client from active lists, close all (possibly) open sockets\n\t\t\tSystem.out.println(IPAddress + \": Connection - Closing!\");\n\t\t\tclients.remove(client);\n\t\t\ttry {\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\n\t\t\t\tif (out != null)\n\t\t\t\t\tout.close();\n\t\t\t\tif (in != null)\n\t\t\t\t\tin.close();\n\t\t\t\tif (!clientSocket.isClosed())\n\t\t\t\t\tclientSocket.close();\n\t\t\t\tif (!serverTcpSocket.isClosed())\n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t} catch (IOException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n }", "public interface SslClient {\n List<SupplierSelectionResponse> getSupplierSelectionResponse(List<SupplierSelectionRequest> requests);\n}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:07.245 -0500\", hash_original_method = \"4C7BE72C58D9A70D111AB53708810EA4\", hash_generated_method = \"AF157A7772AD2D9C1E3D30BCBFFC6CCE\")\n \npublic LocalSocket accept() throws IOException\n {\n LocalSocketImpl acceptedImpl = new LocalSocketImpl();\n\n impl.accept (acceptedImpl);\n\n return new LocalSocket(acceptedImpl);\n }", "public Client addListener(ClientListener listener);", "public void acceptConnection(SystemServiceConnection connection);", "public ConnectionAccepter(String inMsg, InetAddress clientAddress, int clientUDPPort, ArrayList<Client> clients, int udpPort)\n {\n this.inMsg = inMsg;\n this.clientAddress = clientAddress;\n this.clientUDPPort = clientUDPPort;\n this.clients = clients;\n this.udpPort = udpPort;\n }", "public interface ClientHandler extends Remote {\n\n public void handleMessage(Message msg) throws RemoteException;\n\n}", "interface Connect extends RconConnectionEvent, Cancellable {}", "public interface SayHelloToClient {\n\n public String sayHello(String hello);\n}", "abstract public void accept() throws SystemException;", "protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Client() {}", "public interface ClientInterface {\r\n\r\n\t/**\r\n\t * Start.\r\n\t */\r\n\tpublic abstract void start();\r\n}", "void acceptArtist(UUID requestId) throws\n CantAcceptRequestException,\n ConnectionRequestNotFoundException;", "private void acceptClient(ServerSocket server) {\n try {\n while (true) {\n Socket socket = server.accept();\n System.out.println(\"Client accepted\");\n new Thread(() -> {\n receive(socket);\n }).start();\n }\n } catch (final Exception e) {\n System.out.println(\"Get an error trying to accept a client.\\n\" + e);\n }\n }", "@Override\n public void accept(VisitorMessageFromClient visitorMessageFromClient) {\n throw new UnsupportedOperationException();\n }", "public void task() {\n try {\n Socket peerSocket = listeningSocket.accept(); // waits here until something tries to connect\n if (peerSocket != null) { addPeer(peerSocket); }\n } catch (IOException e) {\n throw new RuntimeException(\"Error accepting client connection\", e);\n }\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSocket socket = serverSocket.accept();\n\t\t\t\t\t\tclients.add(new Client(socket));\n\t\t\t\t\t\tSystem.out.println(\"[클라이언트 접속] \" + socket.getRemoteSocketAddress() + \": \"\n\t\t\t\t\t\t\t\t+ Thread.currentThread().getName());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tif (!serverSocket.isClosed()) {\n\t\t\t\t\t\t\tstopServer();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void run() {\n try {\n // accepts the connection request.\n SelectableChannel peerHandle = this._handle.accept();\n if (peerHandle != null) {\n // now, create a service handler object to serve the\n // the client.\n ServiceHandler handler =\n this._factory.createServiceHandler(\n this._reactor,\n peerHandle);\n if (handler != null)\n // give the service handler object a chance to initialize itself.\n handler.open();\n }\n } catch (IOException ex) {\n MDMS.ERROR(ex.getMessage());\n }\n }", "public interface HostPlayer {\n /**\n * the client shall register itself as the client to the host\n * the host shall return its reference\n * @param client reference of the client\n */\n HostPlayer registerClient(ClientPlayer client);\n /**\n *the client needs to acknowledge the ready flag called by the host\n */\n void clientReady();\n /**\n * the client should recieve and evaluate the results received from the host\n * acknowledge true if results match, ack false if result mismatch with local calculation\n * @param resultMatch true if the received the calculations matched\n */\n void ackResult(boolean resultMatch);\n\n /**\n *acknowledge the request for a new game if requested\n * @param isAccepted true if the request for new game accepted\n */\n void newGame(boolean isAccepted);\n}", "private void acceptClient(ServerSocketChannel serverSocketChannel) throws ClosedChannelException, IOException {\n SocketChannel socketChannel = serverSocketChannel.accept();\n if (socketChannel != null) {\n\n Socket socket = socketChannel.socket();\n\n socket.setReceiveBufferSize(this._clientReceiveBufferSize);\n socket.setSendBufferSize(this._clientSendBufferSize);\n socket.setTcpNoDelay(true);\n socketChannel.configureBlocking(false);\n ClientManager client = new ClientManager(socketChannel, totSizeHolderBytesCount, pinnedBufferSize);\n\n client.addClientDisposedListner(new NEventStart() {\n @Override\n public Object hanleEvent(Object... obj) throws SocketException, Exception {\n OnClientDisposed((String) obj[1]);\n return null;\n }\n }, null);\n\n if (SocketServer.getLogger().getIsDetailedLogsEnabled()) {\n SocketServer.getLogger().getCacheLog().Info(\"ConnectionManager.AcceptCallback\", \"accepted client : \" + socket.getInetAddress().toString());\n }\n\n socketChannel.register(socketSelector, SelectionKey.OP_READ, client);\n\n }\n\n }", "private void handleAccept(SelectionKey sk) throws IOException {\n\t\t\tSocketChannel accepted_channel = server_socket_channel.accept();\n\t\t\tif (accepted_channel != null) {\n\t\t\t\taccepted_channel.configureBlocking(false);\n\t\t\t\t\n\t\t\t\t//Create an SSL engine for this connection\n\t\t\t\tssl_engine = ssl_context.createSSLEngine(\"localhost\", accepted_channel.socket().getPort());\n\t\t\t\tssl_engine.setUseClientMode(false);\n\t\t\t\t\n\t\t\t\t// Create a SSL Socket Channel for the channel & engine\n\t\t\t\tSSLSocketChannel ssl_socket_channel = new SSLSocketChannel(accepted_channel, ssl_engine);\n\t\t\t\t\n\t\t\t\t// Create a new session class for the user\n\t\t\t\tSSLClientSession session = new SSLClientSession(ssl_socket_channel);\n\t\t\t\t\n\t\t\t\t// Register for OP_READ with ssl_socket_channel as attachment\n\t\t\t\tSelectionKey key = accepted_channel.register(server_selector, SelectionKey.OP_READ, session);\n\t\t\t\t\n\t\t\t\tsession.setSelectionKey(key);\n\t\t\t\t\n\t\t\t\tnum_players_connected++;\n\n\t\t\t\t// Add client to open channels map\n\t\t\t\topen_client_channels.put(ssl_socket_channel, session);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread with ID - \" + this.getName() + \" - accepted a connection.\");\n\t\t\t}\n\t\t}", "public interface Waiter {\n void greetTo(String clientName);\n void serveTo(String clientName);\n}", "public AcceptThread() throws IOException {\n setName(\"TcpHarvester AcceptThread\");\n setDaemon(true);\n selector = Selector.open();\n for (ServerSocketChannel channel : serverSocketChannels) {\n channel.configureBlocking(false);\n channel.register(selector, SelectionKey.OP_ACCEPT);\n }\n }", "void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }", "public static void main(String[] args) throws IOException {\n ServerSocket server = new ServerSocket(8080);\n ExecutorService service = Executors.newCachedThreadPool();\n while (true) {\n Socket socket = server.accept();\n System.out.println(\"Client accept\");\n service.submit(new ClientSession(socket));\n }\n\n }", "boolean supportsAccepts();", "public interface IceAdapter {\n CompletableFuture<Integer> start(int gameId);\n\n void stop();\n\n void setIceServers(Collection<CoturnServer> coturnServers);\n}", "public void waitForClients() {\n\n\t\twhile (!Thread.interrupted()) {\n\t\t\tacceptClient();\n\t\t}\n\n\t}", "public Client(){\r\n\t\t// ask the user for a host, port, and user name\r\n\t\tString host = JOptionPane.showInputDialog(\"Host address:\");\r\n\t\t\r\n\t\tString port = JOptionPane.showInputDialog(\"Host port:\");\r\n\t\tboolean shouldRepeat = true;\r\n\t\tint portNum = 0;\r\n\t\twhile(shouldRepeat){\r\n\t\t\ttry{\r\n\t\t\tportNum = Integer.parseInt(port);\r\n\t\t\tshouldRepeat = false;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e){\r\n\t\t\t\tport = JOptionPane.showInputDialog(\"Host port:\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tclientName = JOptionPane.showInputDialog(\"User name:\");\r\n\t\t\r\n\t\tif (host == null || port == null || clientName == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t// Open a connection to the server\r\n\t\t\tserver = new Socket(host, portNum);\r\n\t\t\tout = new ObjectOutputStream(server.getOutputStream());\r\n\t\t\tin = new ObjectInputStream(server.getInputStream());\r\n\t\t\t\r\n\t\t\tout.writeObject(clientName);\r\n\t\t\t\r\n\t\t\tsetupGUI();\r\n\t\t\t\r\n\t\t\t// start a thread for handling server events\r\n\t\t\tnew Thread(new ServerHandler()).start();\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "private static void esperarCliente() {\n try {\n socket = serverSocket.accept();\n System.out.println(\"Cliente conectado...\");\n } catch (IOException ex) {\n Logger.getLogger(ServidorUnicauca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public Socket AcceptIncomingConnections() {\n try {\n return welcomeSocket.accept();\n } catch (IOException e) {\n System.out.println(\"Welcome Socket could not accept incoming connection. Maybe restart the server\");\n return null;\n }\n }", "public abstract void onClientConnect(ClientWrapper client);", "public static interface Client\n\t{\n\n\t\t/**\n\t\t * Server notify the client to refresh the player list.\n\t\t * @param playerList New player list.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid refreshPlayerList(Map<String, IPlayerConfig> playerList) throws RpcException;\n\n\t\t/**\n\t\t * Server notify the client to refresh the game config. Client is expected to display it in GameCreation panel.\n\t\t * @param gameCfg New game config.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid refreshGameConfig(GameConfig gameCfg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast game creation message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveGameCreationMessage(String fromPlayer, String msg) throws RpcException;\n\n\t\t/**\n\t\t * Server broadcast running game message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveRunningGameMessage(String fromPlayer, String msg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast paused game message from another player.\n\t\t * @param fromPlayer Sender player. \n\t\t * @param msg Message.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receivePausedGameMessage(String fromPlayer, String msg) throws RpcException;\n\t\t\n\t\t/**\n\t\t * Server broadcast new turn events.\n\t\t * Client should process these events on local gameboard.\n\t\t * If there is an error processins events on local gameboard, then it means local gameboard and server gameboard view for this player are out of sync.\n\t\t * In that case, client should call {@link ServerRunningGame#getEntireGameLog()} methods to recreate a fresh local gameboard.\n\t\t * @param newTurnEvents Events generated on turn resolution.\n\t\t * @throws RpcException On connection error.\n\t\t */\n\t\tvoid receiveNewTurnGameBoard(List<IGameEvent> newTurnEvents) throws RpcException;\n\t}", "public SocketChannel accept(SelectionKey key, Selector selector, Pool<String, RequestWorker> clientReqPool, Server parentThread) throws IOException{\r\n\t\t// Step 1- Get the SocketChannel of Server.\r\n\t\tServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel();\r\n\r\n\t\t/*\r\n\t\t * Accept the connection and make it non-blocking\r\n\t\t * Socket can be achieved from client's socketchannel\r\n\t\t * as well as Server Socket channel.\r\n\t\t */\r\n\t\tSocketChannel clientSocketChannel = serverSocketChannel.accept();\r\n\t\tSocket socket = clientSocketChannel.socket();\r\n\t\tclientSocketChannel.configureBlocking(false);\r\n\t\t/*\r\n\t\t * Register the Client's Socket Channel with selector and Key as 'READ'.\r\n\t\t */\t\t\r\n\t\tclientSocketChannel.register(selector, SelectionKey.OP_READ);\t\t\t\t\r\n\r\n\t\tlogger.info(\"Check Point 2 :CLIENT CONNECTED : \"+socket.getRemoteSocketAddress() + \" -- PASS\");\r\n\t\tparentThread.getReqPool().add(socket.getRemoteSocketAddress().toString(), new RequestWorker(key, socket.getRemoteSocketAddress()+\"\",parentThread));\t\t\r\n\t\treturn clientSocketChannel;\r\n\t}", "public interface Client {\n \n /**\n * Get the unique id of current client.\n *\n * @return id of client\n */\n String getClientId();\n \n /**\n * Whether is ephemeral of current client.\n *\n * @return true if client is ephemeral, otherwise false\n */\n boolean isEphemeral();\n \n /**\n * Set the last time for updating current client as current time.\n */\n void setLastUpdatedTime();\n \n /**\n * Get the last time for updating current client.\n *\n * @return last time for updating\n */\n long getLastUpdatedTime();\n \n /**\n * Add a new instance for service for current client.\n *\n * @param service publish service\n * @param instancePublishInfo instance\n * @return true if add successfully, otherwise false\n */\n boolean addServiceInstance(Service service, InstancePublishInfo instancePublishInfo);\n \n /**\n * Remove service instance from client.\n *\n * @param service service of instance\n * @return instance info if exist, otherwise {@code null}\n */\n InstancePublishInfo removeServiceInstance(Service service);\n \n /**\n * Get instance info of service from client.\n *\n * @param service service of instance\n * @return instance info\n */\n InstancePublishInfo getInstancePublishInfo(Service service);\n \n /**\n * Get all published service of current client.\n *\n * @return published services\n */\n Collection<Service> getAllPublishedService();\n \n /**\n * Add a new subscriber for target service.\n *\n * @param service subscribe service\n * @param subscriber subscriber\n * @return true if add successfully, otherwise false\n */\n boolean addServiceSubscriber(Service service, Subscriber subscriber);\n \n /**\n * Remove subscriber for service.\n *\n * @param service service of subscriber\n * @return true if remove successfully, otherwise false\n */\n boolean removeServiceSubscriber(Service service);\n \n /**\n * Get subscriber of service from client.\n *\n * @param service service of subscriber\n * @return subscriber\n */\n Subscriber getSubscriber(Service service);\n \n /**\n * Get all subscribe service of current client.\n *\n * @return subscribe services\n */\n Collection<Service> getAllSubscribeService();\n \n /**\n * Generate sync data.\n *\n * @return sync data\n */\n ClientSyncData generateSyncData();\n \n /**\n * Whether current client is expired.\n *\n * @param currentTime unified current timestamp\n * @return true if client has expired, otherwise false\n */\n boolean isExpire(long currentTime);\n \n /**\n * Release current client and release resources if neccessary.\n */\n void release();\n \n /**\n * Recalculate client revision and get its value.\n * @return recalculated revision value\n */\n long recalculateRevision();\n \n /**\n * Get client revision.\n * @return current revision without recalculation\n */\n long getRevision();\n \n /**\n * Set client revision.\n * @param revision revision of this client to update\n */\n void setRevision(long revision);\n \n}", "public interface ClientInterface {\r\n\r\n //Recebe notificação de operação realizada.\r\n public boolean notifyCompletedOperation(Operacao operacao);\r\n \r\n //Recebe notificação de atualização dos valores da ação de uma empresa.\r\n public void notifyUpdate(Empresa empresaAtualizado);\r\n}", "Client createNewClient(Client client);", "public static void echo_server_single( int portno ) \nthrows IOException\n {\n ServerSocket acc = new ServerSocket( portno );\n print_my_host_port( portno );\n while( true )\n {\n stdout.printf(\"accepting incoming connections (hash== %s) ...\\n\", \n acc.hashCode());\n Socket com = acc.accept();\n tcp_peeraddr_print( com );\n EchoServerWorker esw = new EchoServerWorker(com);\n esw.run();\n } // while\n}", "public Client(Client client) {\n\n }", "public interface IServer extends Remote {\n /**\n * @param auction\n * @throws RemoteException\n */\n void placeAuction(AuctionBean auction) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void register(IClient client) throws RemoteException, InterruptedException;\n\n void disconnect(IClient client) throws RemoteException;\n\n /**\n * @param client\n * @param newBid\n * @throws RemoteException\n */\n void raiseBid(IClient client, int newBid) throws RemoteException;\n\n /**\n * @param client\n * @throws RemoteException\n * @throws InterruptedException\n */\n void timeElapsed(IClient client) throws RemoteException, InterruptedException;\n\n\tvoid registerCredentials(String username, String password) throws RemoteException, InterruptedException;\n\n\tboolean verifyCredentials(String username, String password) throws RemoteException, InterruptedException;\n\t\n}", "public interface ClientType {\n /**\n * Run the client, processing the specified options.\n *\n * @param options The options extracted from the command line.\n */\n public void run(ClientOptions options);\n}", "interface NotifyClient extends Remote {\n\n\t/**\n\t * An identity has been assigned to this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param oldNode\n\t * the last node the identity was assigned to, or {@code null} if\n\t * this is a new node assignment\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid added(Identity id, Node oldNode) throws IOException;\n\n\t/**\n\t * \n\t * An identity has been removed from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNode\n\t * the new node the identity is assigned to, or {@code null} if\n\t * the identity is being removed from the map\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid removed(Identity id, Node newNode) throws IOException;\n\n\t/**\n\t * An identity has been selected for relocation from this node.\n\t * \n\t * @param id\n\t * the identity\n\t * @param newNodeId\n\t * the ID of the new node the identity will be relocated to\n\t * @throws IOException\n\t * if there is a communication problem\n\t */\n\tvoid prepareRelocate(Identity id, long newNodeId) throws IOException;\n}", "public void accept(IDN idn);", "void initAndListen() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t// Startuje nowy watek z odbieraniem wiadomosci.\n\t\t\t\tnew ClientHandler(clientSocket, this);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"Accept failed.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n while (true) {\n try {\n\n Socket clientSocket = serverSock.accept();\n Client user = new Client(this, clientSocket);\n\n } catch (IOException ex) {\n Logger.getLogger(RSAServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public interface NetworkClient {\n \n void connect(String address, int port);\n \n void disconnect();\n\n boolean isConnected();\n \n PacketRegistry getPacketRegistry();\n \n Connection getConnection();\n \n default void sendPacket(Packet packet) {\n Connection conn = getConnection();\n if (conn != null)\n conn.sendPacket(packet);\n }\n \n default <T extends CallbackPacket> void sendPacket(T packet, Consumer<CallbackPacket> callback) {\n sendPacket(packet, callback, 3000L);\n }\n \n default <T extends CallbackPacket> void sendPacket(T packet, Consumer<CallbackPacket> callback, long timeout) {\n sendPacket(packet, callback, timeout, null);\n }\n \n default <T extends CallbackPacket> void sendPacket(T packet, Consumer<CallbackPacket> callback, long timeout, Runnable onTimeout) {\n Connection conn = getConnection();\n if (conn != null)\n conn.sendPacket(packet, callback, timeout, onTimeout);\n }\n \n void onConnected();\n \n void onDisconnected();\n\n void setPacketReceivedListener(Consumer<Packet> listener);\n\n void setPacketSentListener(Consumer<Packet> listener);\n\n NetworkStatistics getStatistics();\n \n}", "public Socket accept() throws IOException {\n\t\treturn new FBSSocket(new URL(rotateUrlList()).openStream());\n\t}", "private static void getClients() throws IOException {\r\n\t\tbidders=new ArrayList<Socket>();\r\n\t\tserverSocket=new ServerSocket(portno);\r\n\t\twhile ((bidders.size()<numBidders)&&(auctioneer==null)) {\r\n\t\t\tSocket temp=serverSocket.accept();\r\n\t\t\t//if (this client is a bidder)\r\n\t\t\t\tbidders.add(temp);\r\n\t\t\t//if (this client is the auctioneer)\r\n\t\t\t\tauctioneer=temp;\r\n\t\t}\r\n\t}", "public interface RemoteClientService extends Remote {\n\n /**\n * Returns a ClientDTO object with the given id.\n * @param sessionId session id to gain access\n * @param id database id of the client\n * @return a client dto with the given id\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n ClientDTO getById(String sessionId, int id) throws RemoteException, UserNotLoggedInException;\n\n /**\n * Returns all clients.\n * @param sessionId session id to gain access\n * @return list with all clients\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n List<ClientDTO> getList(String sessionId) throws RemoteException, UserNotLoggedInException;\n}", "private ISocket acceptISocket() throws IOException {\n // Manage client depending the connection\n if (serverSocket instanceof AdHocServerSocketBluetooth) {\n return new AdHocSocketBluetooth((BluetoothSocket) serverSocket.accept());\n } else {\n return new AdHocSocketWifi((Socket) serverSocket.accept());\n }\n }", "public void acceptedSocket(long socketId) {}", "private void getClient(SocketAddress address, RedisOptions options, Handler<AsyncResult<Redis>> onClient) {\n\n Redis cli = connections.get(address);\n\n // already have a connection to this client, return that\n if (cli != null) {\n onClient.handle(Future.succeededFuture(cli));\n return;\n }\n\n RedisClient.create(vertx, address, options, create -> {\n if (create.failed()) {\n onClient.handle(create);\n return;\n }\n\n final Redis conn = create.result();\n\n conn.exceptionHandler(t -> {\n // broken connection so force a new client to be created\n connections.remove(address);\n // propagate the exception\n if (onException != null) {\n onException.handle(t);\n }\n\n // now since the clients are unbalanced, we need to reload the slots\n getSlots(options, ar -> {\n if (ar.failed()) {\n // getting slots failed, so raise the exception\n if (onException != null) {\n onException.handle(ar.cause());\n }\n }\n });\n });\n\n conn.endHandler(v -> {\n // closed connections should be removed\n connections.remove(address);\n // how many connections are still open?\n // when there's more than 0 then we can still operate\n if (connections.size() == 0) {\n // all connections are closed so we must assume this\n // cluster is ended (or we can't recover)\n if (onEnd != null) {\n onEnd.handle(null);\n }\n }\n });\n\n conn.handler(r -> {\n if (onMessage != null) {\n onMessage.handle(r);\n }\n });\n\n connections.put(address, conn);\n onClient.handle(Future.succeededFuture(conn));\n });\n }", "public void accept() {\n try {\n BufferedReader fromConsole = new BufferedReader(new InputStreamReader(System.in));\n String message;\n\n // loops infinitely, until #quit command is called, which sets run = false, and\n // stops the loop\n while (run) {\n message = fromConsole.readLine();\n if (message != null) {\n if (message.charAt(0) == '#') {\n command(message.substring(1));\n } else {\n client.handleMessageFromClientUI(message);\n }\n } else {\n client.handleMessageFromClientUI(message);\n }\n }\n }\n\n // Exceptions where the reader encounters an error\n catch (Exception ex) {\n System.out.println(\"Unexpected error while reading from console!\");\n System.out.println(ex.getMessage());\n }\n }", "public ClientLoginService(){\n this(MessageConnection.CHANNEL_DEFAULT_RELIABLE);\n }", "@Override\n\tpublic void acceptSession(int id, String agent) {\n\t\t\n\t}", "void clientReady();", "public interface INetworkHandler<T> extends Runnable {\n\n /**\n * The main method which starts the protocol implementation.\n * <p>\n * {@inheritDoc}\n */\n void run();\n\n /**\n * Sends the request of the network handler to all online peers of the node.\n *\n * @throws ConnectionFailedException If the other online clients can not be determined\n */\n void sendRequest(IRequest request)\n throws ConnectionFailedException;\n\n /**\n * Blocks until all notified clients have responded\n *\n * @throws InterruptedException If the thread got interrupted while waiting\n */\n void await()\n throws InterruptedException;\n\n /**\n * Blocks for the given timeout.\n *\n * @param timeout The timeout to wait\n * @param timeUnit The time unit which qualifies the timeout\n *\n * @throws InterruptedException If the thread got interrupted while waiting\n */\n void await(long timeout, TimeUnit timeUnit)\n throws InterruptedException;\n\n /**\n * Returns true once all notified clients have responded.\n *\n * @return True, if all notified clients have responded, false otherwise.\n */\n boolean isCompleted();\n\n /**\n * Returns the progress until this handler's communication\n * is considered complete (See {@link INetworkHandler#isCompleted()}).\n *\n * Returns values between 100 and 0 (inclusive).\n *\n * @return The progress\n */\n int getProgress();\n\n\n /**\n * Returns the final result of the exchange.\n * Note, that the result may be null before all clients have responded.\n *\n * @return The result once the all necessary clients responded. May be null before all clients have responded\n */\n T getResult();\n}", "public interface IClient {\n\n public <E> NetConfig<E> buildStringRequest(NetConfig<E> config);\n\n public <E> NetConfig<E> buildJsonRequest(NetConfig<E> config);\n\n public <E> NetConfig<E> buildStandardJsonRequest(NetConfig<E> config);\n\n public<E> NetConfig<E> buildDownloadRequest(NetConfig<E> config);\n\n <E> NetConfig<E> buildUpLoadRequest(NetConfig<E> config);\n\n <E> NetConfig<E> start(NetConfig<E> config);\n\n <E> NetConfig<E> cancel(NetConfig<E> config);\n\n}", "@Ignore\n\t@Test\n\tpublic void testAgentAccepts() {\n\t\tparty.connect(connection);\n\t\tparty.notifyChange(settings);\n\n\t\tBid bid = makeBid(\"1\", \"1\");// best pssible\n\t\tparty.notifyChange(new ActionDone(new Offer(otherparty, bid)));\n\t\tparty.notifyChange(new YourTurn());\n\t\tassertEquals(1, connection.getActions().size());\n\t\tassertTrue(connection.getActions().get(0) instanceof Accept);\n\n\t}", "public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}", "public interface ChatServerOperations \n{\n String subscribe (String name, chat.ChatClient c) throws chat.NameAlreadyUsed;\n void unsubscribe (String id) throws chat.UnknownID;\n void comment (String id, String text) throws chat.UnknownID;\n}", "@Override\n\tpublic Boolean isClient() {\n\t\treturn true;\n\t}", "public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}", "public interface Channel {\n\n\t/**\n\t * Call this to send an article to its destination.\n\t * @param article the article to send\n\t */\t\n\tvoid accept(Article article);\n}", "private void accept(SelectionKey key) throws IOException {\n ServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel();\n\n // Accept the connection and make it non-blocking\n SocketChannel socketChannel = serverSocketChannel.accept();\n Socket socket = socketChannel.socket();\n // ABHIGYAN:\n socketChannel.socket().setKeepAlive(true);\n socketChannel.configureBlocking(false);\n // lookup ID for this hostIP and port.\n//\t\tincludeSocketChannelInConnectedList(socketChannel);\n\n // Register the new SocketChannel with our Selector, indicating\n // we'd like to be notified when there's data waiting to be read\n socketChannel.register(this.selector, SelectionKey.OP_READ);\n }", "protected ACLMessage handleAcceptProposal(ACLMessage cfp, ACLMessage propose, ACLMessage accept) {\r\n\t\t\tSystem.out.println(myAgent.getLocalName() + \" was accepted by \" + accept.getSender().getName());\r\n\t\t\t\r\n\t\t\t//Allocates space in superPC or queue for client\r\n\t\t\tRequiredSpecs specs = new RequiredSpecs(cfp.getContent());\r\n\t\t\tString resultMsg = allocateClient(specs, cfp.getSender().getName());\r\n\t\t\t\r\n\t\t\t// Creates reply to inform the client\r\n\t\t\tACLMessage result = accept.createReply();\r\n\t\t\tresult.setPerformative(ACLMessage.INFORM);\r\n\t\t\tresult.setContent(resultMsg);\r\n\t\t\t\r\n\t\t\treturn result;\r\n\t\t}", "public static void main(String[] args) throws Throwable {\n ServerSocket server = new ServerSocket();\n server.bind(new InetSocketAddress(3000));\n System.out.println(\"Blocking Socket : listening for new Request\");\n while (true) { // <1>\n Socket socket = server.accept();\n //each incomming request(socket request) allocate in a separate thread\n new Thread(clientHandler(socket)).start();\n }\n }", "public void handleClient(InputStream inFromClient, OutputStream outToClient);", "public interface ClientRemoteInterface extends Remote {\n\n /**\n * Receiver method, used by the server to send to the client\n// * @param playerMessage message that has been sent\n * @throws RemoteException exception due to communication fall\n */\n void receiveFromServer(PlayerMessage playerMessage) throws RemoteException;\n\n /**\n * Method used to\n * @throws RemoteException\n */\n void receiveLifeline() throws RemoteException;\n}", "@Override\n\tpublic boolean isClient() {\n\t\treturn true;\n\t}" ]
[ "0.6370352", "0.6250965", "0.6225592", "0.62111074", "0.61538064", "0.61511314", "0.61419815", "0.6129441", "0.61229235", "0.6094942", "0.60932463", "0.6087372", "0.60676014", "0.6026863", "0.6005886", "0.5930562", "0.5912614", "0.58873034", "0.58717275", "0.58580846", "0.58171463", "0.58125186", "0.57601553", "0.5728109", "0.5721987", "0.57184654", "0.571078", "0.5681332", "0.56806356", "0.56795335", "0.56791306", "0.56763345", "0.56741786", "0.56715083", "0.5659013", "0.5655921", "0.5649287", "0.5647675", "0.5642721", "0.56345797", "0.560467", "0.5601758", "0.5594043", "0.5589029", "0.55839485", "0.5580678", "0.55744416", "0.55734605", "0.55514", "0.5542777", "0.5536961", "0.5527975", "0.55213034", "0.5508008", "0.54892117", "0.5486863", "0.5482132", "0.5472742", "0.5468038", "0.5466156", "0.54533017", "0.5449974", "0.5447925", "0.54380876", "0.54307944", "0.54221904", "0.5417516", "0.54096675", "0.5407029", "0.53989637", "0.5397024", "0.53954685", "0.5395231", "0.53941864", "0.53921825", "0.5382932", "0.53798324", "0.5379443", "0.53746456", "0.53674865", "0.53638333", "0.5363036", "0.5357299", "0.53496075", "0.53482777", "0.5346779", "0.5346454", "0.5346015", "0.5344828", "0.5334979", "0.5334932", "0.533447", "0.53337693", "0.53294885", "0.53263265", "0.5325845", "0.531822", "0.5317772", "0.5312229", "0.53050584", "0.529973" ]
0.0
-1
Provide user a selection of customisation.
private Menu createSettingsMenu() { Menu serviceMenu = new Menu("Settings"); MenuItem networkSettings = new MenuItem("Service"); networkSettings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { Daemon.editRunningService(localPeer); changeDispatcher.stateChanged(new ChangeEvent(localPeer)); } }); serviceMenu.add(networkSettings); MenuItem securitySettings = new MenuItem("Backup"); securitySettings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { } }); serviceMenu.add(securitySettings); return serviceMenu; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CustomizerProvider {\n\n /**\n * Display some kind of customization UI for the project.\n * Typically would mean opening a nonmodal dialog, etc.\n */\n void showCustomizer();\n\n}", "void showCustomizer();", "public interactOption()\n\t{\n\t\tsuper();\n\t\toptionType = \"interact with the\";\n\t\toptionFocus = \"nothing\";\n\t\toptionText = optionType + \" \" + optionFocus;\n\t}", "@Override\n\tpublic void addChoice(String choice) {\n\t}", "void addCustomization(@NotNull EditorEx editor, @NotNull Feature feature);", "public void flavorChosen()\n {\n changeSubtotalTextField();\n }", "public void Custom(View view) {\r\n Intent intent = new Intent(this,Customize.class);\r\n startActivity(intent);\r\n\r\n }", "private boolean askCustom(){\n String title = \"Custom mode?\";\n String message = \"Now the game mode is classical mode. \\nDo you wish to play custom pieces?\";\n ConfirmBox.display(title, message);\n return ConfirmBox.isConfirmed;\n }", "protected abstract void setSpecificViewThemes();", "private static void printOption(){\r\n System.out.println(\"Select option what you want to do\");\r\n System.out.println(\"Input plain(default) / stylish / slide\");\r\n option = scan.nextLine();\r\n try{\r\n if(option.toLowerCase().equals(\"plain\")){\r\n }\r\n else if(option.toLowerCase().equals(\"stylish\")){\r\n }\r\n else if(option.toLowerCase().equals(\"slide\")){\r\n }\r\n else if(option.toLowerCase().equals(\"\")){\r\n option = \"plain\";\r\n }\r\n else{\r\n throw new Exception(\"Check option\\n\");\r\n }\r\n } catch(Exception e){\r\n e.printStackTrace();\r\n } finally {\r\n System.out.println(\"Option : \" + option);\r\n }\r\n }", "public void option() {\n ReusableActionsPageObjects.clickOnElement(driver, options, logger, \"user options.\");\n }", "public void chooseForMe() {\n }", "private void getUserCoownerChoice() {\n int checkedChipId = mBinding.chipGroupCoowner.getCheckedChipId();\n if (checkedChipId == R.id.chip_yes) {\n mChipCoownerInput = 1;\n } else if (checkedChipId == R.id.chip_no) {\n mChipCoownerInput = 0;\n } else {\n mChipCoownerInput = 10;\n }\n }", "public void getOption(View view) {\n Spinner spinner = (Spinner) findViewById(R.id.country_spinner);\n SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(this);\n if (spinner != null) {\n user_choice = String.valueOf(spinner.getSelectedItem());\n }\n Set<String> selections = settings.getStringSet(\"list_option_key\", null);\n if (selections != null) {\n if (selections.isEmpty()) {\n //User must select options for the graph to display.\n displayToast(\"No options selected, please try again.\");\n return;\n } else {\n //User has selected options we we get the country data associated with user options\n boolean use_local = settings.getBoolean(\"use_file_key\", true);\n processData(use_local, selections);\n }\n } else {\n //No options have been selected and this is the first time user is using the app so display message\n displayToast(\"No options selected, please try again.\");\n return;\n }\n }", "public interface ViewCustomization {\n\n void customize(View v);\n\n}", "private void choiceBoxInitializer() {\n searchChoiceBox.getItems().addAll(\"Learning Applications\", \"Learning Categories\",\n \"Learning Units\");\n searchChoiceBox.setValue(\"Learning Applications\");\n }", "public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}", "@Activate\r\n protected void activate(final ReviewConfig reviewConfig) {\r\n text = reviewConfig.getText();\r\n demoBoolean = reviewConfig.getBoolean();\r\n selection = reviewConfig.getSelection();\r\n multifield = reviewConfig.getMultifled();\r\n }", "public void options() {\n\n audio.playSound(LDSound.SMALL_CLICK);\n if (canViewOptions()) {\n Logger.info(\"HUD Presenter: options\");\n uiStateManager.setState(GameUIState.OPTIONS);\n }\n }", "public void chooseColor() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "@Override\n\tpublic void setChoice(Input in, Output out) throws IOException {\n\t\t\n\t}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public void initChoice() {\n\t\t\t\t\n\t\tChoiceDialog<String> dialog = new ChoiceDialog<>(DB_MYSQL);\n\t\tdialog.setTitle(\"Base de datos\");\n\t\tdialog.setContentText(\"Seleccione una base de datos con la que trabajar\");\n\t\tdialog.getItems().addAll(DB_MYSQL, DB_SQL, DB_ACCESS);\n\t\n\t\tOptional<String> dbType = dialog.showAndWait();\n\t\t\n\t\tif( dbType.isPresent() ) {\t\n\t\t\t// Ajustamos nuestro modelo\n\t\t\tsetBd(dbType.get());\n\t\t\t\n\t\t} else {\n\t\t\tPlatform.exit(); // Entonces hemos acabado\n\t\t}\n\t}", "public void askForUserType() {\n System.out.println(\"What type of User would you like to make? (Type Attendee, Speaker, VIP, or Organizer)\");\n }", "private ResourceCubeType humanResourceChoice() {\r\n\t\tfinal String[] playerOptions = new String[4];\r\n\r\n\t\t// Options for the JOption Pane\r\n\t\tplayerOptions[ResourceCubeType.FAVOR.getValue()] = ResourceCubeType.FAVOR.getName();\r\n\t\tplayerOptions[ResourceCubeType.FOOD.getValue()] = ResourceCubeType.FOOD.getName();\r\n\t\tplayerOptions[ResourceCubeType.GOLD.getValue()] = ResourceCubeType.GOLD.getName();\r\n\t\tplayerOptions[ResourceCubeType.WOOD.getValue()] = ResourceCubeType.WOOD.getName();\r\n\r\n\t\tfinal JFrame frame = new JFrame();\r\n\t\tfinal String humanResponse = (String) JOptionPane.showInputDialog(frame,\r\n\t\t\t\t\"Please select which type of Resource to gather from.\", \"Select Resource Type\",\r\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, null, playerOptions, playerOptions[0]);\r\n\r\n\t\treturn ResourceCubeType.getTypeForString(humanResponse);\r\n\t}", "private void printCRUDDoctorOption() {\n\t\tSystem.out.println(\"\\n\\n----Edit DOCTOR----\");\n\t\tSystem.out.println(\"1. Insert a new doctor\");\n\t\tSystem.out.println(\"2. List all doctors\");\n\t\tSystem.out.println(\"3. Update doctor data\");\n\t\tSystem.out.println(\"4. Remove doctor\");\n\t\tSystem.out.println(\"5. Back\");\n\t\tSystem.out.println(\"Enter your choice: \");\n\t}", "public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }", "public void choicePersonage() {\n\t\tSystem.out.println(\"souhaitez-vous créer un guerrier ou un magicien ?\");\n\t\tchoice = sc.nextLine().toLowerCase();\t\t\t\n\t\tSystem.out.println(\"Vous avez saisi : \" + choice);\n\t\tif(!(choice.equals(MAGICIEN) || choice.equals(GUERRIER))) {\n\t\t\tchoicePersonage();\n\t\t}\n\t\tsaisieInfoPersonage(choice);\n\t}", "@OnClick(R.id.converter_organization_cv)\n public void chooseOrganization() {\n mDialog = new DialogList(mContext,\n mOrganizationDialogTitle, null, mListForOrganizationsDialog,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n mOrganizationId = mListForOrganizationsDialog.get(position).getOrganization().getId();\n mPreferenceManager.setConverterOrganizationId(mOrganizationId);\n mDialog.getDialog().dismiss();\n checkDefaultData();\n setLang();\n }\n });\n ((ImageView) mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done))\n .setImageResource(R.drawable.ic_tr);\n mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done)\n .setBackground(getResources().getDrawable(R.drawable.ic_tr));\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "public void setOptions(){\n System.out.println(\"¿Que operacion desea realizar?\");\n System.out.println(\"\");\n System.out.println(\"1- Consultar sus datos\");\n System.out.println(\"2- Ingresar\");\n System.out.println(\"3- Retirar\");\n System.out.println(\"4- Transferencia\");\n System.out.println(\"5- Consultar saldo\");\n System.out.println(\"6- Cerrar\");\n System.out.println(\"\");\n}", "private void handleInsuranceTypeChange() {\n\t\tString insurance = cbInsurance.getText();\n\n\t\tif (optionA[1].equals(insurance))\n\t\t\tbtnInsurancePop.setEnabled(true);\n\t\telse {\n\t\t\tbtnInsurancePop.setEnabled(false);\n\t\t}\n\t}", "@FXML\n void selectType() {\n \t//hide all errors\n \thideErrors();\n \t//get countries from /type/metadata.txt\n \t//Reset range string\n T3_startYear_ComboBox.setValue(\"\");\n T3_endYear_ComboBox.setValue(\"\");\n //update country list\n String type = T3_type_ComboBox.getValue(); // getting type\n countries.clear();\n for (String country: DatasetHandler.getCountries(type)){\n countries.add(country);\n }\n T3_country_ComboBox.setValue(\"\");\n //clearing the StartYear and EndYear values and lists\n }", "private void getUserTypeChoice() {\n mTypeInput = \"(\";\n if (mBinding.chipApartment.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput = mTypeInput + \"'Apartment'\";\n }\n if (mBinding.chipLoft.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Loft'\";\n }\n if (mBinding.chipHouse.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'House'\";\n }\n if (mBinding.chipVilla.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Villa'\";\n }\n if (mBinding.chipManor.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Manor'\";\n }\n mTypeInput += \")\";\n }", "private void setUpiImplementCategory() {\n ArrayAdapter<CharSequence> implementCategoryAdapter = ArrayAdapter.createFromResource(this,\n R.array.categoryImplementArray, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n implementCategoryAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n mImplementCategory.setAdapter(implementCategoryAdapter);\n }", "private static void menuSelector(){\r\n\t\tint answer= getNumberAnswer();\r\n\t\tswitch (answer) {\r\n\t\tcase 0:\r\n\t\t\tshowShapeInfo(shapes[0]);\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tcreateShape();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"Its Perimeter is equal to: \" +calcShapePerimeter(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"Its Area is equal to: \" +calcShapeArea(shapes[0]));\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"Provide integer to use for scaling shape: \");\r\n\t\t\tscaleShape(shapes[0], getNumberAnswer());\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"That's not actually an option.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void courseOptions(int choice) {\n switch (choice) {\n case 1:\n obtainCourseSafely();\n break;\n case 2:\n addSavedCourseToACL();\n break;\n case 3:\n viewActiveCourseList();\n break;\n case 4:\n viewSavedCourseList();\n break;\n case 5:\n removeFromActiveCourseList();\n break;\n case 6:\n removeFromSavedCourseList();\n break;\n case 7:\n addActiveCourseListToCourseList();\n break;\n }\n }", "public void customiseCharacter(View view) {\n\t\tIntent intent = new Intent(this, CustomiseCharacter.class);\n\t\tstartActivity(intent);\n\t}", "private void createThemeDialog() {\n\n\t\tAlertDialog.Builder alb = new AlertDialog.Builder(this);\n\t\talb.setTitle(getString(R.string.choose_theme));\n\t\talb.setCancelable(true);\n\n\t\tString[] items;\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n\t\t\titems = new String[]{getString(R.string.light), getString(R.string.dark),\n\t\t\t\t\tgetString(R.string.time), getString(R.string.system)};\n\t\t} else {\n\t\t\titems = new String[]{getString(R.string.light), getString(R.string.dark),\n\t\t\t\t\tgetString(R.string.time)};\n\t\t}\n\n\t\tAtomicInteger newTheme = new AtomicInteger(currentTheme);\n\n\t\talb.setSingleChoiceItems(items, currentTheme, (dialog, which) -> newTheme.set(which));\n\n\t\talb.setPositiveButton(getString(R.string.set_theme), (dialog, which) -> {\n\t\t\tcurrentTheme = newTheme.get();\n\t\t\tchangeTheme();\n\t\t});\n\n\t\talb.show();\n\t}", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }", "public void editOptions()\n {\n System.out.println(\"\\n\\t\\t:::::::::::::::::::::::::::::::::::\");\n System.out.println(\"\\t\\t| Select Options Below : |\");\n System.out.println(\"\\t\\t:::::::::::::::::::::::::::::::::::\");\n System.out.println(\"\\t\\t| [1] Modify Actors |\");\n System.out.println(\"\\t\\t| [2] Modify Rating |\");\n System.out.println(\"\\t\\t| [3] Modify Actors & Rating |\");\n System.out.println(\"\\t\\t| [4] Back To Menu |\");\n System.out.println(\"\\t\\t===================================\");\n System.out.print(\"\\t\\t Input the option number : \");\n }", "public GenericOptionChoice(ApplicationEnvironment environment) {\n super(environment);\n\n }", "private void selectPhenotype(String option) {\r\n if (option.equals(\"null\") || option.equals(currentPhenotype)){\r\n return;\r\n } \r\n \r\n setDatasets((VerifiedSNP) getController().getActiveSNP(), option);\r\n currentPhenotype = option; \r\n }", "public abstract void pickUp();", "public void setCompositorAsChoice() {\n _compositor = CHOICE;\n }", "private void selectPriority(String priority) {\n delegationDefaultCreationScreen.priorityField.click();\n delegationDefaultCreationScreen.picker.sendKeys(priority);\n delegationDefaultCreationScreen.doneButton.click();\n }", "private void InitForm() {\n\t\t\t// Select default/preferred genre\n\t\tString preferredGenre = PluginPreferences.getGenre();\n\n\t if( preferredGenre != null ) {\n\t\t if( preferredGenre.equals(\"scifi\") ) {\n\t\t\t scifiRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"pirates\") ) {\n\t\t\t priratesRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"hospital\") ) {\n\t\t\t hospitalRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"esoteric\") ) {\n\t\t\t esotericRadioButton.setSelected(true);\n\t\t } else {\n\t\t\t latinRadioButton.setSelected(true);\n\t\t }\n\t }\n \n\t}", "public void pageChanged(String inputDocument, String modelType, boolean documentTypeSelected)\n {\n \n if (inputDocument.endsWith(\".docx\") || inputDocument.endsWith(\".odt\")) //$NON-NLS-1$ //$NON-NLS-2$\n {\n isSpreadsheet = false;\n \n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDRegexOrStyle();\n RecognizedTree newTree = controller.getStylesAndRegex();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n \n boolean b = Constants.SYSML_EXTENSION.equals(modelType) || Constants.UML_EXTENSION.equals(modelType);\n \n descriptionComposite.setAttributeComboVisible(b);\n } \n else\n {\n isSpreadsheet = true;\n\n if (documentTypeSelected)\n {\n valueToRecognizeReq = controller.getIDColumn();\n RecognizedTree newTree = controller.getColumns();\n tree.getChildren().clear();\n if (newTree != null)\n {\n tree.getChildren().addAll(newTree.getChildren());\n }\n }\n }\n \n if (documentTypeSelected)\n {\n descriptionText = controller.getDescriptionEndText();\n descriptionRegex = controller.getDescriptionRegex();\n }\n \n updateWizard();\n \n if (inputDocument != null)\n {\n if (inputDocument.contains(\"file:\")) //$NON-NLS-1$\n {\n currentFileSystem = new File(URI.createURI(inputDocument).toFileString());\n controller.setCurrentFileSystem(currentFileSystem);\n }\n else if (inputDocument.contains(\"platform:\")) //$NON-NLS-1$\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFile(new Path(URI.createURI(inputDocument).toPlatformString(true)));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n else\n {\n currentFile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(URI.createURI(inputDocument).toFileString()));\n controller.setCurrentFile(currentFile);\n if (currentFile != null)\n {\n currentFileSystem = currentFile.getLocation().toFile();\n controller.setCurrentFileSystem(currentFileSystem);\n }\n }\n }\n setDocumentFile(currentFileSystem);\n }", "private ServerCustomization getCustomization(String serverType)\n {\n ServerToolbox serverToolbox = ServerToolboxUtils.getServerToolbox(myToolbox);\n ServerSourceControllerManager mgr = serverToolbox.getServerSourceControllerManager();\n ServerSourceController ctrl = mgr.getServerSourceController(serverType);\n return ctrl == null ? new DefaultCustomization() : ctrl.getServerCustomization(serverType);\n }", "String getOption();", "private void setupChangeVoice() {\n\t\tFestivalVoice[] voices={FestivalVoice.Kiwi, FestivalVoice.British, FestivalVoice.American};\n\t\tfinal JComboBox voice_chooser = new JComboBox(voices);\n\t\tvoice_chooser.setFont(new Font(\"Arial\", Font.PLAIN, 20));\n\t\tvoice_chooser.setForeground(Color.BLACK);\n\t\tvoice_chooser.setBackground(Color.WHITE);\n\n\t\t//set shown item to be the current voice\n\t\tvoice_chooser.setSelectedItem(parent_frame.getFestival().getFestivalVoice());\n\t\tvoice_chooser.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t\tif((FestivalVoice)voice_chooser.getSelectedItem()!=null){\n\t\t\t\t\tparent_frame.getFestival().setFestivalVoice((FestivalVoice)voice_chooser.getSelectedItem());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tvoice_chooser.setBounds(919, 600, 154, 40);\n\t\tadd(voice_chooser);\n\t}", "public StandardSetCreationSelectionWizardPage(String pageName) {\r\n\r\n super(\"standardSetCreationSelectionWizardPage\");\r\n setMessage(pageName);\r\n\r\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "@Override\n public void autonomousInit() {\n m_autoSelected = m_chooser.getSelected();\n // m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n System.out.println(\"Auto selected: \" + m_autoSelected);\n }", "public void autonomousInit() {\n \tautoSelected = (String) chooser.getSelected();\n//\t\tautoSelected = SmartDashboard.getString(\"Auto Selector\", defaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + autoSelected);\n }", "private void defaultSelectedFilterOption() {\n activeSelectBtn.setChecked(true);\n upcomingSelectBtn.setChecked(true);\n inProgressSelctBtn.setChecked(true);\n yettoJoinSelctBtn.setChecked(true);\n bookmarkedSelctBtn.setChecked(false);\n category1SelectBtn.setChecked(true);\n category2SelectBtn.setChecked(true);\n category3SelectBtn.setChecked(true);\n category4SelectBtn.setChecked(true);\n category5SelectBtn.setChecked(true);\n category6SelectBtn.setChecked(true);\n category7SelectBtn.setChecked(true);\n category8SelectBtn.setChecked(true);\n category9SelectBtn.setChecked(true);\n category10SelectBtn.setChecked(true);\n }", "@Override\n public String[] getMenuOptions() {\n String[] options = {\"Change your username\", \"Change your password\", \"Change your email\"};\n return options;\n }", "public static void options(){\n System.out.println(\"Choose from the following options \");\n System.out.println(\"0 Print the options again\");\n System.out.println(\"1 Create Student Records\");\n System.out.println(\"2 Create Teacher Records\");\n System.out.println(\"3 Edit the Records\");\n System.out.println(\"4 Get the Record Count\");\n System.out.println(\"5 Exit\");\n }", "public String returnGenderBox(){\n\t\treturn (String) genderBox.getSelectedItem();//Return the gender options\n\t}", "public void chooseYourMode(){\r\n ActionHandlers.ChooseModeHandler chooseModeHandler = (s) -> {\r\n try {\r\n choice.put(s);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n };\r\n runLater(() -> main.run(chooseModeHandler));\r\n }", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public boolean supportsCustomEditor() {\n\t\treturn true;\n\t}", "@FXML\n void selectCountry() {\n \t//hide all errors\n \thideErrors();\n \t//Getting start year and end year limits from /type/country/metadata.txt\n if (isComboBoxEmpty(T3_country_ComboBox.getValue())){\n //if nothing has been selected do nothing\n return;\n }\n String type = T3_type_ComboBox.getValue(); // getting type\n String country = T3_country_ComboBox.getValue(); // getting country\n //update ranges\n Pair<String,String> validRange = DatasetHandler.getValidRange(type,country);\n\n //update relevant menus\n\n int start = Integer.parseInt(validRange.getKey());\n int end = Integer.parseInt(validRange.getValue());\n //set up end list\n endOptions.clear();\n startOptions.clear();\n for (int i = start; i <= end ; ++i){\n endOptions.add(Integer.toString(i));\n startOptions.add(Integer.toString(i));\n }\n //set up comboBox default values and valid lists\n T3_startYear_ComboBox.setValue(Integer.toString(start));\n T3_endYear_ComboBox.setValue(Integer.toString(end));\n }", "public void selectDesign(int choice) {\n\t\tif (vm == null) {\n\t\t\treturn;\n\t\t}\n\n\t\ttogglePlayPause(false);\n\t\tthis.remove(visualizerPanel);\n\t\tDesign enumChoice = Design.values()[choice];\n\t\tswitch (enumChoice) {\n\t\tcase CIRCLES:\n\t\t\tvisualizerPanel = new Circles(vm, FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tbreak;\n\t\tcase PLOT:\n\t\t\tvisualizerPanel = new SpectralPlot(vm, FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tbreak;\n\t\tcase WAVEFORM:\n\t\t\tvisualizerPanel = new Waveform(vm, FRAME_WIDTH, FRAME_HEIGHT);\n\t\t}\n\t\tvisualizerPanel.setPreferredSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));\n\t\tthis.add(visualizerPanel);\n\t\ttogglePlayPause(true);\n\t}", "@Override\n\tpublic void msgHereIsMyChoice(Customer customerAgent, String choice) {\n\t\t\n\t}", "@Override\r\n\tpublic void adminSelectAdd() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "private void processChoice() {\n switch (this.choice) {\n case 0:\n System.out.println(\"Log Out\");\n break;\n case 1:\n System.out.println(\"Open New Account\");\n break;\n case 2:\n System.out.println(\"View All Accounts\");\n break;\n case 3:\n System.out.println(\"View Transactions\");\n break;\n case 4:\n System.out.println(\"Transfer Funds\");\n break;\n default:\n System.out.println(\"Error! Invalid menu option\");\n break;\n }\n }", "@Override\n public void addChoice(){\n System.out.println(\"Chocolate cake size: \");\n //print out choice\n choice.addChoice();\n }", "private void changedChoiceBox(){\n\t\thideLackUserPermissionsLabel();\n\t\thideShowCheckBoxes();\n\t}", "@Override\n public void installUI ( @NotNull final JComponent c )\n {\n chooser = ( JColorChooser ) c;\n\n // Applying skin\n StyleManager.installSkin ( chooser );\n\n selectionModel = chooser.getSelectionModel ();\n\n chooser.setLayout ( new BorderLayout () );\n\n colorChooserPanel = new WebColorChooserPanel ( StyleId.colorchooserContent.at ( chooser ), false );\n colorChooserPanel.setColor ( selectionModel.getSelectedColor () );\n colorChooserPanel.addChangeListener ( new ChangeListener ()\n {\n @Override\n public void stateChanged ( final ChangeEvent e )\n {\n if ( !modifying )\n {\n modifying = true;\n selectionModel.setSelectedColor ( colorChooserPanel.getColor () );\n modifying = false;\n }\n }\n } );\n chooser.add ( colorChooserPanel, BorderLayout.CENTER );\n\n modelChangeListener = new ChangeListener ()\n {\n @Override\n public void stateChanged ( final ChangeEvent e )\n {\n if ( !modifying )\n {\n modifying = true;\n colorChooserPanel.setColor ( selectionModel.getSelectedColor () );\n modifying = false;\n }\n }\n };\n selectionModel.addChangeListener ( modelChangeListener );\n }", "@RequestMapping\n\tprotected String defaultView(RenderRequest renderRequest) {\n\t\tString tipoReplicador;\n\t\ttipoReplicador = renderRequest.getPreferences().getValue(\"tipoReplicador\", \"\");\n\n\t\trenderRequest.setAttribute(\"tipoReplicador\", tipoReplicador);\n\t\t// JSonUtil.LogAuditoria(renderRequest, indicadorPortlet, indicadorController);\n\n\t\treturn \"edit\";\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tm_autoSelected = m_chooser.getSelected();\n//\t\t m_autoSelected = SmartDashboard.getString(\"Auto Selector\",\n//\t\t \t\tkDefaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + m_autoSelected);\n\t}", "private void ActionChooseCountry() {\n final AlertDialog.Builder dialog = new AlertDialog.Builder(getContext());\n dialog.setTitle(getString(R.string.dialog_title_choose_country));\n\n final List<String> countryNames = Arrays.asList(getResources().getStringArray(R.array.countries_names));\n final List<String> countryArgs = Arrays.asList(getResources().getStringArray(R.array.countries_arg));\n\n final ArrayAdapter<String> arrayAdapter = new ArrayAdapter<>(getContext(), android.R.layout.simple_list_item_1);\n arrayAdapter.addAll(countryNames);\n\n dialog.setNegativeButton(getString(R.string.dialog_btn_cancel), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n\n dialog.setAdapter(arrayAdapter, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n CoutryArg = countryArgs.get(i);\n\n tvChooseCountry.setText(countryNames.get(i));\n if (SourceId != null) {\n SourceId = null;\n tvChooseSource.setText(R.string.tv_pick_sourse);\n currentPage = 1;\n }\n }\n });\n dialog.show();\n }", "public ImportRequirementWizardPageSelectFormat(String pageName, PageController pageController)\n {\n super(pageName);\n controller = pageController;\n }", "@Override\r\n\tpublic void visit(Choose choose)\r\n\t{\n\t\t\r\n\t}", "public void showUserDefinedInputCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_USER_DEFINED_INPUT_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_USER_DEFINED_INPUT_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Custom Input\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n UserDefinedInputCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }", "public SelectStereotypeDialog(Shell parentShell, Point point, NotifyElement pageParent, String model)\n {\n super(parentShell, point, \"Stereotype Selection\"); //$NON-NLS-1$\n if (pageParent instanceof ImportRequirementWizardPageSelectDocument)\n {\n wizard = (ImportRequirementWizardPageSelectDocument) pageParent;\n }\n requirementInheritance = getAllClasses(model);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\n\t\t\t\t\t\tSettingActivity.this);\n\t\t\t\tbuilder.setTitle(\"归属地查询风格\");\n\t\t\t\tbuilder.setSingleChoiceItems(MGApplication.bgNames,\n\t\t\t\t\t\tsharedPreferences.getInt(\n\t\t\t\t\t\t\t\tMobileGuard.SHOW_LOCATION_WHICHSTYLE, 0),\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\t\t\t\t\teditor.putInt(\n\t\t\t\t\t\t\t\t\t\tMobileGuard.SHOW_LOCATION_WHICHSTYLE,\n\t\t\t\t\t\t\t\t\t\twhich);\n\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\tbuilder.show();\n\t\t\t}", "public void init() {\n addStringOption(\"extractionId\", \"Extraction ID\", \"\");\n addStringOption(WORKFLOW_ID, \"Workflow ID\", \"\");\n addEditableComboBoxOption(LIMSConnection.WORKFLOW_LOCUS_FIELD.getCode(), \"Locus\", \"None\", SAMPLE_LOCI);\n addDateOption(\"date\", \"Date\", new Date());\n\n\n addComboBoxOption(RUN_STATUS, \"Reaction state\", STATUS_VALUES, STATUS_VALUES[0]);\n\n addLabel(\"\");\n addPrimerSelectionOption(PRIMER_OPTION_ID, \"Forward Primer\", DocumentSelectionOption.FolderOrDocuments.EMPTY, false, Collections.<AnnotatedPluginDocument>emptyList());\n addPrimerSelectionOption(PRIMER_REVERSE_OPTION_ID, \"Reverse Primer\", DocumentSelectionOption.FolderOrDocuments.EMPTY, false, Collections.<AnnotatedPluginDocument>emptyList());\n addPrimersButton = addButtonOption(ADD_PRIMER_TO_LOCAL_ID, \"\", \"Add primers to my local database\");\n\n\n List<OptionValue> cocktails = getCocktails();\n\n cocktailOption = addComboBoxOption(COCKTAIL_OPTION_ID, \"Reaction Cocktail\", cocktails, cocktails.get(0));\n\n updateCocktailOption(cocktailOption);\n\n cocktailButton = new ButtonOption(COCKTAIL_BUTTON_ID, \"\", \"Edit Cocktails\");\n cocktailButton.setSpanningComponent(true);\n addCustomOption(cocktailButton);\n Options.OptionValue[] cleanupValues = new OptionValue[] {new OptionValue(\"true\", \"Yes\"), new OptionValue(\"false\", \"No\")};\n ComboBoxOption cleanupOption = addComboBoxOption(\"cleanupPerformed\", \"Cleanup performed\", cleanupValues, cleanupValues[1]);\n StringOption cleanupMethodOption = addStringOption(\"cleanupMethod\", \"Cleanup method\", \"\");\n cleanupMethodOption.setDisabledValue(\"\");\n addStringOption(\"technician\", \"Technician\", \"\", \"May be blank\");\n cleanupOption.addDependent(cleanupMethodOption, cleanupValues[0]);\n TextAreaOption notes = new TextAreaOption(\"notes\", \"Notes\", \"\");\n addCustomOption(notes);\n\n labelOption = new LabelOption(LABEL_OPTION_ID, \"Total Volume of Reaction: 0uL\");\n addCustomOption(labelOption);\n }", "protected abstract void switchOnCustom();", "public static void initalize(){\n //Add all of the commands here by name and id\n autonomousChooser.addDefault(\"Base Line\", 0);\n // addOption​(String name, int object)\n\n SmartDashboard.putData(\"Auto mode\", autonomousChooser);\n }", "public void choixDeJeu () {\n\t\t//Affichage d'une fenetre qui permet de choisir entre un labyrinthe genere aleatoirement et un fichier txt\n\t\tString[] choixPossibles = {\"Generer un labyrinthe aleatoirement\", \"Ouvrir un labyrinthe en .txt\"};\n\t\tString choix = (String)JOptionPane.showInputDialog(null, \"Que voulez-vous faire ?\", \"Labyrinthe\", JOptionPane.QUESTION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/icone.gif\")), choixPossibles, choixPossibles[0]);\n\t\t\n\t\t//Si le bouton \"Annuler\" n'est pas presse\n\t\tif (choix != null) {\n\t\t\t//Affichage d'une fenetre qui permet de choisir le theme du jeu\n\t\t\tString[] choixTheme = {\"Theme par defaut\", \"Theme d'ancien labyrinthe en pierre\", \"Theme de The legend of zelda\", \"Theme de Métroid\", \"Theme d'incendie dans un batiment\", \"Theme de Mario\"};\n\t\t\tString theme = (String)JOptionPane.showInputDialog(null, \"Quel theme voulez-vous ?\", \"Choix du theme\", JOptionPane.QUESTION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/icone.gif\")), choixTheme, choixTheme[1]);\n\n\t\t\t//Si le bouton \"Annuler\" n'est pas presse\n\t\t\tif (theme != null) {\n\t\t\t\t\n\t\t\t\t//Enregistrement du theme et changement de la couleur de fond de la fenetre.\t\n\t\t\t\tswitch (theme) {\n\t\t\t\tcase \"Theme par defaut\" : \n\t\t\t\t\tthemeJeu = 0;\n\t\t\t\t\tgrille.setBackground(new Color(91, 60, 17));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme de The legend of zelda\" : \n\t\t\t\t\tthemeJeu = 2; \n\t\t\t\t\tgrille.setBackground(Color.BLACK);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme de Métroid\" : \n\t\t\t\t\tthemeJeu = 3; \n\t\t\t\t\tgrille.setBackground(Color.white);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme d'incendie dans un batiment\" : \n\t\t\t\t\tthemeJeu = 4; \n\t\t\t\t\tgrille.setBackground(new Color(61, 43, 31));\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Theme de Mario\" : \n\t\t\t\t\tthemeJeu = 5; \n\t\t\t\t\tgrille.setBackground(Color.cyan);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tthemeJeu = 1;\n\t\t\t\t\tgrille.setBackground(new Color(69, 69, 69));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//Si l'utilisateur a choisi d'ouvrir un fichier texte\n\t\t\t\tif (choix.equals(\"Ouvrir un labyrinthe en .txt\")) {\t\t\t\t\n\t\t\t\t\t//On ouvre un explorateur qui permet de ne selectionner que des fichiers .txt\n\t\t\t\t\tJFileChooser exploreur = new JFileChooser();\n\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\".txt\", \"txt\");\n\t\t\t\t\texploreur.setFileFilter(filter);\n\t\t\t\t\texploreur.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\tint valeurRetournee = exploreur.showOpenDialog(null);\n\n\t\t\t\t\t//Si le fichier est correct, on enregistre le nom de ce dernier, et on initie une partie.\n\t\t\t\t\tif (valeurRetournee == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\tpartie.fichier = exploreur.getSelectedFile().getPath();\n\t\t\t\t\t\tpartie.largeur = 0;\n\t\t\t\t\t\tpartie.hauteur = 0;\n\t\t\t\t\t\tpartie.nbFilons = 0;\n\t\t\t\t\t\tinitialisation();\n\t\t\t\t\t}\n\t\t\t\t\t//Sinon, on quitte le programme.\n\t\t\t\t\tif (valeurRetournee == JFileChooser.CANCEL_OPTION) {\n\t\t\t\t\t\tpartie.quitter();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Si l'utilisateur a choisi de generer un labyrinthe aleatoirement\n\t\t\t\telse {\n\t\t\t\t\t//On cree une nouvelle fenetre\n\t\t\t\t\tJFrame fenetreDimensions = new JFrame();\n\n\t\t\t\t\t//On cree un premier panneau qui contient un texte et un slider afin de regler la hauteur du labyrinthe\n\t\t\t\t\tJPanel panneauHauteur = new JPanel();\n\t\t\t\t\tJLabel labelHauteur = new JLabel(\"25 cases :\");\n\t\t\t\t\tJSlider sliderHauteur = new JSlider();\t\t\t\t\n\t\t\t\t\tsliderHauteur.setMaximum(21);\n\t\t\t\t\tsliderHauteur.setMinimum(6);\n\t\t\t\t\tsliderHauteur.setValue(13);\n\t\t\t\t\tsliderHauteur.addChangeListener(new ChangeListener(){\n\t\t\t\t\t\t//Action liee au deplacement du slider\n\t\t\t\t\t\tpublic void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\tlabelHauteur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tpanneauHauteur.setBorder(BorderFactory.createTitledBorder(\"Hauteur du labyrinthe\"));\n\t\t\t\t\tpanneauHauteur.add(labelHauteur);\n\t\t\t\t\tpanneauHauteur.add(sliderHauteur);\n\n\t\t\t\t\t//On cree un second panneau qui contient un texte et un slider afin de regler la largeur du labyrinthe\n\t\t\t\t\tJPanel panneauLargeur = new JPanel();\n\t\t\t\t\tJLabel labelLargeur = new JLabel(\"25 cases :\");\n\t\t\t\t\tJSlider sliderLargeur = new JSlider();\n\t\t\t\t\tsliderLargeur.setMaximum(38);\n\t\t\t\t\tsliderLargeur.setMinimum(6);\n\t\t\t\t\tsliderLargeur.setValue(13);\n\t\t\t\t\tsliderLargeur.addChangeListener(new ChangeListener(){\n\t\t\t\t\t\tpublic void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\t//Action liee au deplacement du slider\n\t\t\t\t\t\t\tlabelLargeur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tpanneauLargeur.setBorder(BorderFactory.createTitledBorder(\"Largeur du labyrinthe\"));\n\t\t\t\t\tpanneauLargeur.add(labelLargeur);\n\t\t\t\t\tpanneauLargeur.add(sliderLargeur);\n\n\t\t\t\t\t//On cree un bouton \"Continuer\"\n\t\t\t\t\tJButton boutonContinuer = new JButton(\"Continuer\");\n\t\t\t\t\tboutonContinuer.addActionListener(new ActionListener() {\n\t\t\t\t\t\t//Action liee a l'appui sur le bouton \"continuer\"\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\t//On efface la fenetre precedente et on en recree une\n\t\t\t\t\t\t\tfenetreDimensions.dispose();\n\t\t\t\t\t\t\tJFrame fenetreFilons = new JFrame();\n\n\t\t\t\t\t\t\t//On enregistre les valeurs des sliders precedents\n\t\t\t\t\t\t\tpartie.largeur = 2*sliderLargeur.getValue()-1;\n\t\t\t\t\t\t\tpartie.hauteur = 2*sliderHauteur.getValue()-1;\n\n\t\t\t\t\t\t\t//On cree un nouveau panneau qui contient un texte et un slider afin de regler le nombre de filons\n\t\t\t\t\t\t\tJPanel panneauFilons = new JPanel();\n\t\t\t\t\t\t\tJLabel labelFilons = new JLabel(1 + \" filon(s) :\");\n\t\t\t\t\t\t\tJSlider sliderFilons = new JSlider();\n\t\t\t\t\t\t\tsliderFilons.setMinimum(0);\n\t\t\t\t\t\t\tsliderFilons.setMaximum((partie.largeur*partie.hauteur-partie.largeur-partie.hauteur+3)/4);\n\t\t\t\t\t\t\tsliderFilons.setValue(1);\n\t\t\t\t\t\t\tsliderFilons.setMajorTickSpacing((partie.largeur*partie.hauteur-partie.largeur-partie.hauteur+3)/8);\n\t\t\t\t\t\t\tsliderFilons.setPaintTicks(true);\n\t\t\t\t\t\t\tsliderFilons.setPaintLabels(true);\n\t\t\t\t\t\t\tsliderFilons.addChangeListener(new ChangeListener(){\n\t\t\t\t\t\t\t\tpublic void stateChanged(ChangeEvent event) {\n\t\t\t\t\t\t\t\t\t//Action liee au deplacement du slider\n\t\t\t\t\t\t\t\t\tlabelFilons.setText(((JSlider)event.getSource()).getValue() + \" filons :\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tpanneauFilons.setBorder(BorderFactory.createTitledBorder(\"Nombre de filons\"));\t\n\t\t\t\t\t\t\tpanneauFilons.add(labelFilons);\n\t\t\t\t\t\t\tpanneauFilons.add(sliderFilons);\t\n\n\t\t\t\t\t\t\t//On cree un bouton \"Jouer\"\n\t\t\t\t\t\t\tJButton boutonJouer = new JButton(\"Jouer\");\n\t\t\t\t\t\t\tboutonJouer.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\t\t//Action liee a l'appui sur le bouton \"jouer\"\n\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\t\t\tfenetreFilons.dispose();\n\t\t\t\t\t\t\t\t\tpartie.nbFilons = sliderFilons.getValue();\n\t\t\t\t\t\t\t\t\tinitialisation();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t//On cree un bouton \"Annuler\"\n\t\t\t\t\t\t\tJButton annulerFilons = new JButton(\"Annuler\");\n\t\t\t\t\t\t\tannulerFilons.addActionListener(new ActionListener() {\n\t\t\t\t\t\t\t\t//Action liee a l'appui sur le bouton \"jouer\"\n\t\t\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\t\t\tfenetreFilons.dispose();\n\t\t\t\t\t\t\t\t\tpartie.quitter();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t//On cree un panneau recueillant deux bontons\n\t\t\t\t\t\t\tJPanel boutonsFilons = new JPanel();\n\t\t\t\t\t\t\tboutonsFilons.add(boutonJouer);\n\t\t\t\t\t\t\tboutonsFilons.add(annulerFilons);\t\n\n\t\t\t\t\t\t\t//On parametre la fenetre et agence les differents panneaux, puis on l'affiche\n\t\t\t\t\t\t\tfenetreFilons.setSize(320, 140);\n\t\t\t\t\t\t\tfenetreFilons.setTitle(\"Choix du nombre de filons\");\n\t\t\t\t\t\t\tfenetreFilons.setIconImage(new ImageIcon(getClass().getResource(\"/images/icone.gif\")).getImage());\n\t\t\t\t\t\t\tfenetreFilons.setLocationRelativeTo(null);\n\t\t\t\t\t\t\tfenetreFilons.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\t\t\tfenetreFilons.getContentPane().add(panneauFilons, BorderLayout.CENTER);\n\t\t\t\t\t\t\tfenetreFilons.getContentPane().add(boutonsFilons, BorderLayout.SOUTH);\n\t\t\t\t\t\t\tfenetreFilons.setVisible(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t//On cree un bouton \"Annuler\"\n\t\t\t\t\tJButton annulerDimension = new JButton(\"Annuler\");\n\t\t\t\t\tannulerDimension.addActionListener(new ActionListener() {\n\t\t\t\t\t\t//Un appui sur le bouton \"annuler\" quitte le jeu\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\t\tfenetreDimensions.dispose();\n\t\t\t\t\t\t\tpartie.quitter();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\t//On cree un panneau recueillant deux bontons\n\t\t\t\t\tJPanel boutonsDimensions = new JPanel();\n\t\t\t\t\tboutonsDimensions.add(boutonContinuer);\n\t\t\t\t\tboutonsDimensions.add(annulerDimension);\t\n\n\t\t\t\t\t//On parametre la fenetre et agence les differents panneaux, puis on l'affiche\n\t\t\t\t\tfenetreDimensions.setSize(575, 120);\n\t\t\t\t\tfenetreDimensions.setTitle(\"Choix des dimensions du labyrinthe\");\n\t\t\t\t\tfenetreDimensions.setIconImage(new ImageIcon(getClass().getResource(\"/images/icone.gif\")).getImage());\n\t\t\t\t\tfenetreDimensions.setLocationRelativeTo(null);\n\t\t\t\t\tfenetreDimensions.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\t\tfenetreDimensions.getContentPane().add(panneauHauteur, BorderLayout.EAST);\n\t\t\t\t\tfenetreDimensions.getContentPane().add(panneauLargeur, BorderLayout.WEST);\n\t\t\t\t\tfenetreDimensions.getContentPane().add(boutonsDimensions, BorderLayout.SOUTH);\n\t\t\t\t\tfenetreDimensions.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Un appui sur le bouton \"annuler\" quitte le jeu\n\t\t\telse {\n\t\t\t\tpartie.quitter();\n\t\t\t}\n\t\t}\n\t\t//Un appui sur le bouton \"annuler\" quitte le jeu\n\t\telse {\n\t\t\tpartie.quitter();\n\t\t}\n\t}", "@Override\n public String getFunctionName() {\n return \"internalChoice\";\n }", "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}", "@Override\n\tpublic void autonomousInit() {\n\t\tm_autoSelected = m_chooser.getSelected();\n\t\t// m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + m_autoSelected);\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t\tm_autoSelected = m_chooser.getSelected();\n\t\t// m_autoSelected = SmartDashboard.getString(\"Auto Selector\", kDefaultAuto);\n\t\tSystem.out.println(\"Auto selected: \" + m_autoSelected);\n\t}", "private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }", "void pickUp();", "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 void selectCategory() {\n\t\t\r\n\t}", "@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }", "@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }", "public void getChoice()\n {\n }", "public void chooseColor() {\n Color c = JColorChooser.showDialog(_parent, \"Choose '\" + getLabelText() + \"'\", _color);\n if (c != null) {\n _color = c;\n notifyChangeListeners();\n _updateField(_color);\n } \n }", "protected void mCertificateImageSelection() {\n final CharSequence[] options = {\"Camera\", \"Gallery\", \"Cancel\"};\n\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper\n (ApplicationActivity.this, R.style.AlertDialogCustom));\n\n builder.setIcon(R.mipmap.birth_icon);\n builder.setTitle(\"Birth Certificate\");\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n\n //Camera Option\n if (options[item].equals(\"Camera\")) {\n Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, CAMERA_REQUEST_1);\n }\n\n //Gallery Option\n else if (options[item].equals(\"Gallery\")) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(intent, GALLERY_REQUEST_1);\n }\n\n //Cancel Option\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n\n builder.show();\n }", "Color userColorChoose();", "public static void selectOption(char input) throws IOException {\n\n\t\tswitch (input) {\n\t\tcase 'l': {\n\n\t\t\tloadApplications();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 's': {\n\n\t\t\tSystem.out.println(\"Set the Budget\");\n\t\t\tsetBudget();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 'm': {\n\n\t\t\t\n\t\t\tmakeDecision();\n\t\t\tSystem.out.println(\"Decision made sucessfuly!\");\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 'p': {\n\n\t\t\t\n\t\t\tprint();\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 'u': {\n\n\t\t\tSystem.out.println(\"Update the application\");\n\t\t\tupdateApplication();\n\t\t\tbreak;\n\t\t}\n\t\tcase 'x': {\n\n\t\t\tSystem.out.println(\"Exiting...\");\n\t\t\t\n\t\t\tbreak;\n\t\t}\n\n\t\tdefault:\n\t\t\tSystem.out.println(\"Please enter a valid input\\n**************************************\");\n\t\t\tbreak;\n\n\t\t}\n\t}", "public void customizeToConfirmation(View view) {\n int i = 0;\n boolean choose = false;\n while (i < numLiquors) {\n switch (i) {\n // if starts with 'choose' then automatically grab item at position 1 which holds\n // the default liquor brand in all liquor arrays\n case 0:\n if (liquor1.getSelectedItem().toString().startsWith(\"Choose\")) {\n choose = true;\n liquorReturnList.add(liquor1.getItemAtPosition(1).toString());\n } else {\n liquorReturnList.add(liquor1.getSelectedItem().toString());\n }\n break;\n case 1:\n if (liquor2.getSelectedItem().toString().startsWith(\"Choose\")) {\n choose = true;\n liquorReturnList.add(liquor2.getItemAtPosition(1).toString());\n } else {\n liquorReturnList.add(liquor2.getSelectedItem().toString());\n }\n break;\n case 2:\n if (liquor3.getSelectedItem().toString().startsWith(\"Choose\")) {\n choose = true;\n liquorReturnList.add(liquor3.getItemAtPosition(1).toString());\n } else {\n liquorReturnList.add(liquor3.getSelectedItem().toString());\n }\n break;\n case 3:\n if (liquor4.getSelectedItem().toString().startsWith(\"Choose\")) {\n choose = true;\n liquorReturnList.add(liquor4.getItemAtPosition(1).toString());\n } else {\n liquorReturnList.add(liquor4.getSelectedItem().toString());\n }\n break;\n case 4:\n if (liquor5.getSelectedItem().toString().startsWith(\"Choose\")) {\n choose = true;\n liquorReturnList.add(liquor5.getItemAtPosition(1).toString());\n } else {\n liquorReturnList.add(liquor5.getSelectedItem().toString());\n }\n break;\n default:\n }\n i++;\n }\n\n if (choose) {\n Toast.makeText(this, \"You've failed to specify the liquor brand for one or more \" +\n \"liquors in your drink. The defaults will be applied.\", Toast.LENGTH_SHORT).show();\n }\n\n // send user back to confirmation activity with the appropriate drink order and liquor\n // return list\n Intent intent = new Intent(this, ConfirmationActivity.class);\n intent.putExtra(\"drinkOrder\", drinkOrder);\n intent.putExtra(\"drinkRecipe\", recipe);\n intent.putStringArrayListExtra(\"liquorReturnList\", liquorReturnList);\n startActivity(intent);\n }", "void setOption(String name, Object value);" ]
[ "0.62114304", "0.5856184", "0.53806657", "0.5370766", "0.53697944", "0.5361799", "0.536046", "0.5359706", "0.53496176", "0.527121", "0.5251612", "0.5241409", "0.5219997", "0.5192529", "0.5169578", "0.51262355", "0.51195604", "0.5109867", "0.5106955", "0.50810087", "0.5080154", "0.5078182", "0.5070632", "0.50691134", "0.5062527", "0.5042558", "0.50404716", "0.50400186", "0.5029218", "0.50179446", "0.5003606", "0.49955267", "0.49878627", "0.498166", "0.4976649", "0.49735162", "0.49719834", "0.4970603", "0.4969454", "0.4967251", "0.4962996", "0.49588987", "0.49564454", "0.49559817", "0.49559474", "0.49551398", "0.4952911", "0.494953", "0.49466133", "0.49352154", "0.49305996", "0.49122158", "0.4912153", "0.4912153", "0.4912153", "0.4912153", "0.49038213", "0.48988214", "0.48951927", "0.48933542", "0.48894715", "0.488911", "0.4885827", "0.4885327", "0.4882381", "0.4880192", "0.48789904", "0.48781386", "0.48769358", "0.48743448", "0.48741168", "0.48638818", "0.48602775", "0.48570877", "0.48507437", "0.48402423", "0.48387071", "0.48361275", "0.4834686", "0.48344454", "0.48339272", "0.48255482", "0.4824692", "0.4817573", "0.48147213", "0.4806939", "0.48059294", "0.48059294", "0.48016277", "0.48016214", "0.4800779", "0.47870958", "0.47821862", "0.47821862", "0.47768712", "0.47629344", "0.47606522", "0.47542313", "0.47524908", "0.47503105", "0.47501183" ]
0.0
-1
Constructors Create a detached BillingSettingRecord
public BillingSettingRecord() { super(BillingSetting.BILLING_SETTING); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BillingSettingRecord(String name, String value) {\n super(BillingSetting.BILLING_SETTING);\n\n set(0, name);\n set(1, value);\n }", "public Setting() {\n\t}", "public Setting() {\n }", "ShipmentItemBilling createShipmentItemBilling();", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "public MicrosoftGraphGroupSetting() {\n }", "public PersonRecord() {}", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public PaymentRecordKey() {\n super();\n }", "public BatchRecordInfo(BatchRecordInfo source) {\n if (source.RecordId != null) {\n this.RecordId = new Long(source.RecordId);\n }\n if (source.SubDomain != null) {\n this.SubDomain = new String(source.SubDomain);\n }\n if (source.RecordType != null) {\n this.RecordType = new String(source.RecordType);\n }\n if (source.RecordLine != null) {\n this.RecordLine = new String(source.RecordLine);\n }\n if (source.Value != null) {\n this.Value = new String(source.Value);\n }\n if (source.TTL != null) {\n this.TTL = new Long(source.TTL);\n }\n if (source.Status != null) {\n this.Status = new String(source.Status);\n }\n if (source.Operation != null) {\n this.Operation = new String(source.Operation);\n }\n if (source.ErrMsg != null) {\n this.ErrMsg = new String(source.ErrMsg);\n }\n if (source.Id != null) {\n this.Id = new Long(source.Id);\n }\n if (source.Enabled != null) {\n this.Enabled = new Long(source.Enabled);\n }\n if (source.MX != null) {\n this.MX = new Long(source.MX);\n }\n if (source.Weight != null) {\n this.Weight = new Long(source.Weight);\n }\n if (source.Remark != null) {\n this.Remark = new String(source.Remark);\n }\n }", "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "private ExchangeRecord(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public PowerContactSettings () {\n }", "public AccountsRecord() {\n super(Accounts.ACCOUNTS);\n }", "public ARecord() {\n super(A.A);\n }", "RecordInfo clone();", "protected BlankRecord(int c, int r, BlankRecord br)\r\n/* 30: */ {\r\n/* 31: 84 */ super(Type.BLANK, c, r, br);\r\n/* 32: */ }", "public BookRecord() {\n super(Book.BOOK);\n }", "public MeetingRecord() {\n\t\tsuper(models.tables.Meeting.MEETING);\n\t}", "LockRecord(Record record, String workspace) {\n super(record, workspace);\n }", "public\r\nMBRecord(Name name, int dclass, long ttl, Name mailbox) {\r\n\tsuper(name, Type.MB, dclass, ttl, mailbox, \"mailbox\");\r\n}", "public EmployeeRecord(){}", "SettingType createSettingType();", "private Builder(Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.accountID)) {\n this.accountID = data().deepCopy(fields()[0].schema(), other.accountID);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.createDate)) {\n this.createDate = data().deepCopy(fields()[2].schema(), other.createDate);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.TransferSerials)) {\n this.TransferSerials = data().deepCopy(fields()[3].schema(), other.TransferSerials);\n fieldSetFlags()[3] = true;\n }\n }", "public UserSetingRecord() {\n super(UserSeting.USER_SETING);\n }", "public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }", "public PointRecord(){\n \n }", "private Builder(org.ga4gh.models.CallSet.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.name)) {\n this.name = data().deepCopy(fields()[1].schema(), other.name);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.sampleId)) {\n this.sampleId = data().deepCopy(fields()[2].schema(), other.sampleId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.variantSetIds)) {\n this.variantSetIds = data().deepCopy(fields()[3].schema(), other.variantSetIds);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.created)) {\n this.created = data().deepCopy(fields()[4].schema(), other.created);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.updated)) {\n this.updated = data().deepCopy(fields()[5].schema(), other.updated);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.info)) {\n this.info = data().deepCopy(fields()[6].schema(), other.info);\n fieldSetFlags()[6] = true;\n }\n }", "public CommAreaRecord() {\n\t}", "public SubscriptionRecord() {\n super(Subscription.SUBSCRIPTION);\n }", "private Builder(org.ga4gh.models.CallSet other) {\n super(org.ga4gh.models.CallSet.SCHEMA$);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.name)) {\n this.name = data().deepCopy(fields()[1].schema(), other.name);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.sampleId)) {\n this.sampleId = data().deepCopy(fields()[2].schema(), other.sampleId);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.variantSetIds)) {\n this.variantSetIds = data().deepCopy(fields()[3].schema(), other.variantSetIds);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.created)) {\n this.created = data().deepCopy(fields()[4].schema(), other.created);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.updated)) {\n this.updated = data().deepCopy(fields()[5].schema(), other.updated);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.info)) {\n this.info = data().deepCopy(fields()[6].schema(), other.info);\n fieldSetFlags()[6] = true;\n }\n }", "private BluetoothSettings() {\n }", "public TAssetsDeviceRecord(Long id, Integer customerId, String orderId, Integer productId, String sn, String title, String companyName, Date startDate, Date endDate, BigDecimal deposit, BigDecimal rent, BigDecimal marketPrice, Byte status, Byte rentStatus, Integer belongId, Timestamp cdate, Timestamp mdate) {\n super(TAssetsDevice.T_ASSETS_DEVICE);\n\n set(0, id);\n set(1, customerId);\n set(2, orderId);\n set(3, productId);\n set(4, sn);\n set(5, title);\n set(6, companyName);\n set(7, startDate);\n set(8, endDate);\n set(9, deposit);\n set(10, rent);\n set(11, marketPrice);\n set(12, status);\n set(13, rentStatus);\n set(14, belongId);\n set(15, cdate);\n set(16, mdate);\n }", "public JbootVoModel set(Record record) {\n super.putAll(record.getColumns());\n return this;\n }", "public DoctorRecord(Integer id, Integer age, Integer workTime, Byte sex, String name, String url, Byte duty, String hospitalCode, String certificateCode, String professionalCode, Date registerTime, String registerHospital, String mobile, Integer titleId, BigDecimal consultationPrice, String treatDisease, Byte status, Integer userId, Byte isDelete, Timestamp createTime, Timestamp updateTime, Timestamp onDutyTime, Byte isOnDuty, Byte canConsultation, Integer avgAnswerTime, Integer consultationNumber, BigDecimal avgCommentStar, Integer attentionNumber, String userToken, Timestamp authTime, BigDecimal consultationTotalMoney, Byte isFetch, String signature) {\n super(Doctor.DOCTOR);\n\n set(0, id);\n set(1, age);\n set(2, workTime);\n set(3, sex);\n set(4, name);\n set(5, url);\n set(6, duty);\n set(7, hospitalCode);\n set(8, certificateCode);\n set(9, professionalCode);\n set(10, registerTime);\n set(11, registerHospital);\n set(12, mobile);\n set(13, titleId);\n set(14, consultationPrice);\n set(15, treatDisease);\n set(16, status);\n set(17, userId);\n set(18, isDelete);\n set(19, createTime);\n set(20, updateTime);\n set(21, onDutyTime);\n set(22, isOnDuty);\n set(23, canConsultation);\n set(24, avgAnswerTime);\n set(25, consultationNumber);\n set(26, avgCommentStar);\n set(27, attentionNumber);\n set(28, userToken);\n set(29, authTime);\n set(30, consultationTotalMoney);\n set(31, isFetch);\n set(32, signature);\n }", "public DsAkSettings(DsAkSettings c)\n {\n values_ = Arrays.copyOf(c.getValues(), c.getValues().length);\n }", "public static Builder create(Tribit fillBit){\n return new Builder(fillBit);\n }", "public Record(Record other) {\n if (other.isSetAttrs()) {\n List<AttrVal> __this__attrs = new ArrayList<AttrVal>(other.attrs.size());\n for (AttrVal other_element : other.attrs) {\n __this__attrs.add(new AttrVal(other_element));\n }\n this.attrs = __this__attrs;\n }\n }", "public Settings(){}", "protected BlankRecord(int c, int r)\r\n/* 15: */ {\r\n/* 16: 48 */ super(Type.BLANK, c, r);\r\n/* 17: */ }", "protected BlankRecord(Cell c)\r\n/* 25: */ {\r\n/* 26: 72 */ super(Type.BLANK, c);\r\n/* 27: */ }", "public PostRecord() {\n super(PostTable.POST);\n }", "public MetricSchemaRecord() { }", "protected BlankRecord(int c, int r, CellFormat st)\r\n/* 20: */ {\r\n/* 21: 61 */ super(Type.BLANK, c, r, st);\r\n/* 22: */ }", "public BmAccountsRecord() {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n }", "public DbRecord()\n {\n m_UserName = \"\";\n // Generate user's unique identifier\n m_Key = new byte[16];\n java.util.UUID guid = java.util.UUID.randomUUID();\n long itemHigh = guid.getMostSignificantBits();\n long itemLow = guid.getLeastSignificantBits();\n for( int i = 7; i >= 0; i-- )\n {\n m_Key[i] = (byte)(itemHigh & 0xFF);\n itemHigh >>>= 8;\n m_Key[8+i] = (byte)(itemLow & 0xFF);\n itemLow >>>= 8;\n }\n m_Template = null;\n }", "public LocksRecord() {\n\t\tsuper(org.jooq.example.gradle.db.information_schema.tables.Locks.LOCKS);\n\t}", "public SavingsAccount() {\n\t}", "public GenericTcalRecord() {\n this(-1);\n }", "public BillDetail(BillDetail source) {\n if (source.BusinessCodeName != null) {\n this.BusinessCodeName = new String(source.BusinessCodeName);\n }\n if (source.ProductCodeName != null) {\n this.ProductCodeName = new String(source.ProductCodeName);\n }\n if (source.PayModeName != null) {\n this.PayModeName = new String(source.PayModeName);\n }\n if (source.ProjectName != null) {\n this.ProjectName = new String(source.ProjectName);\n }\n if (source.RegionName != null) {\n this.RegionName = new String(source.RegionName);\n }\n if (source.ZoneName != null) {\n this.ZoneName = new String(source.ZoneName);\n }\n if (source.ResourceId != null) {\n this.ResourceId = new String(source.ResourceId);\n }\n if (source.ResourceName != null) {\n this.ResourceName = new String(source.ResourceName);\n }\n if (source.ActionTypeName != null) {\n this.ActionTypeName = new String(source.ActionTypeName);\n }\n if (source.OrderId != null) {\n this.OrderId = new String(source.OrderId);\n }\n if (source.BillId != null) {\n this.BillId = new String(source.BillId);\n }\n if (source.PayTime != null) {\n this.PayTime = new String(source.PayTime);\n }\n if (source.FeeBeginTime != null) {\n this.FeeBeginTime = new String(source.FeeBeginTime);\n }\n if (source.FeeEndTime != null) {\n this.FeeEndTime = new String(source.FeeEndTime);\n }\n if (source.ComponentSet != null) {\n this.ComponentSet = new BillDetailComponent[source.ComponentSet.length];\n for (int i = 0; i < source.ComponentSet.length; i++) {\n this.ComponentSet[i] = new BillDetailComponent(source.ComponentSet[i]);\n }\n }\n if (source.PayerUin != null) {\n this.PayerUin = new String(source.PayerUin);\n }\n if (source.OwnerUin != null) {\n this.OwnerUin = new String(source.OwnerUin);\n }\n if (source.OperateUin != null) {\n this.OperateUin = new String(source.OperateUin);\n }\n if (source.Tags != null) {\n this.Tags = new BillTagInfo[source.Tags.length];\n for (int i = 0; i < source.Tags.length; i++) {\n this.Tags[i] = new BillTagInfo(source.Tags[i]);\n }\n }\n if (source.BusinessCode != null) {\n this.BusinessCode = new String(source.BusinessCode);\n }\n if (source.ProductCode != null) {\n this.ProductCode = new String(source.ProductCode);\n }\n if (source.ActionType != null) {\n this.ActionType = new String(source.ActionType);\n }\n if (source.RegionId != null) {\n this.RegionId = new String(source.RegionId);\n }\n if (source.ProjectId != null) {\n this.ProjectId = new Long(source.ProjectId);\n }\n if (source.PriceInfo != null) {\n this.PriceInfo = new String[source.PriceInfo.length];\n for (int i = 0; i < source.PriceInfo.length; i++) {\n this.PriceInfo[i] = new String(source.PriceInfo[i]);\n }\n }\n if (source.AssociatedOrder != null) {\n this.AssociatedOrder = new BillDetailAssociatedOrder(source.AssociatedOrder);\n }\n if (source.Formula != null) {\n this.Formula = new String(source.Formula);\n }\n if (source.FormulaUrl != null) {\n this.FormulaUrl = new String(source.FormulaUrl);\n }\n }", "public Record makeReferenceRecord(RecordOwner recordOwner)\n {\n try {\n return (Record)this.getRecord().clone();\n } catch (CloneNotSupportedException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "private Builder(Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.transferId)) {\n this.transferId = data().deepCopy(fields()[0].schema(), other.transferId);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.accountID)) {\n this.accountID = data().deepCopy(fields()[2].schema(), other.accountID);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.accountAuthId)) {\n this.accountAuthId = data().deepCopy(fields()[3].schema(), other.accountAuthId);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.accountPassword)) {\n this.accountPassword = data().deepCopy(fields()[4].schema(), other.accountPassword);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.fundPassword)) {\n this.fundPassword = data().deepCopy(fields()[5].schema(), other.fundPassword);\n fieldSetFlags()[5] = true;\n }\n if (isValidValue(fields()[6], other.tradeCode)) {\n this.tradeCode = data().deepCopy(fields()[6].schema(), other.tradeCode);\n fieldSetFlags()[6] = true;\n }\n if (isValidValue(fields()[7], other.bankID)) {\n this.bankID = data().deepCopy(fields()[7].schema(), other.bankID);\n fieldSetFlags()[7] = true;\n }\n if (isValidValue(fields()[8], other.bankBranchID)) {\n this.bankBranchID = data().deepCopy(fields()[8].schema(), other.bankBranchID);\n fieldSetFlags()[8] = true;\n }\n if (isValidValue(fields()[9], other.bankPassword)) {\n this.bankPassword = data().deepCopy(fields()[9].schema(), other.bankPassword);\n fieldSetFlags()[9] = true;\n }\n if (isValidValue(fields()[10], other.currencyID)) {\n this.currencyID = data().deepCopy(fields()[10].schema(), other.currencyID);\n fieldSetFlags()[10] = true;\n }\n if (isValidValue(fields()[11], other.secuPwdFlag)) {\n this.secuPwdFlag = data().deepCopy(fields()[11].schema(), other.secuPwdFlag);\n fieldSetFlags()[11] = true;\n }\n }", "public DataModelBuilder but() {\n DataModelBuilder _builder = create();\n _builder.m_featureEntitySet = m_featureEntitySet;\n _builder.m_entity = m_entity;\n _builder.m_featureEntityBuilder = m_featureEntityBuilder;\n _builder.m_featureNameSet = m_featureNameSet;\n _builder.m_name = m_name;\n return _builder;\n }", "public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }", "BankDetail() {\n this.isValid = new Boolean(false);\n this.bankAccountNo = new String();\n this.bankAccountHolderName = new String();\n this.bankCountry = new String();\n this.IFSC = new String();\n }", "public BmAccountsRecord(String bmAccountsId, String id, String bmCorpId, String bmAccstatus, String bmAccounttype, Double bmAccountbalance,\n Timestamp createdAt, Timestamp updatedAt) {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n\n set(0, bmAccountsId);\n set(1, id);\n set(2, bmCorpId);\n set(3, bmAccstatus);\n set(4, bmAccounttype);\n set(5, bmAccountbalance);\n set(6, createdAt);\n set(7, updatedAt);\n }", "public StudentRecord() {}", "public SalesRecords(Long id, Long opportunityId, Long salesmanId, Integer departmentId, Boolean status, Double money, Date createDate) {\n this.id = id;\n this.opportunityId = opportunityId;\n this.salesmanId = salesmanId;\n this.departmentId = departmentId;\n this.status = status;\n this.money = money;\n this.createDate = createDate;\n }", "private Builder(com.trg.fms.api.Trip.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.id)) {\n this.id = data().deepCopy(fields()[0].schema(), other.id);\n fieldSetFlags()[0] = other.fieldSetFlags()[0];\n }\n if (isValidValue(fields()[1], other.driverId)) {\n this.driverId = data().deepCopy(fields()[1].schema(), other.driverId);\n fieldSetFlags()[1] = other.fieldSetFlags()[1];\n }\n if (isValidValue(fields()[2], other.carId)) {\n this.carId = data().deepCopy(fields()[2].schema(), other.carId);\n fieldSetFlags()[2] = other.fieldSetFlags()[2];\n }\n if (isValidValue(fields()[3], other.state)) {\n this.state = data().deepCopy(fields()[3].schema(), other.state);\n fieldSetFlags()[3] = other.fieldSetFlags()[3];\n }\n }", "public AccountsRecord(Long id, String password, String email, Long userId, Timestamp createdAt, Timestamp updatedAt) {\n super(Accounts.ACCOUNTS);\n\n set(0, id);\n set(1, password);\n set(2, email);\n set(3, userId);\n set(4, createdAt);\n set(5, updatedAt);\n }", "private BattlePartySettingsProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "DataHRecordData() {}", "public DBRecord(String encodedForm)\n\t{\n\t\tselected = false;\n\t\tbindings = new ChunkList<DBBinding>();\n\t\tloadFromEncodedForm(encodedForm);\n\t}", "@Test\n public void billEmptyConstructorCustomSetters_isCorrect() throws Exception {\n\n int billId = 100;\n String billName = \"test Bill\";\n int userId = 101;\n int accountId = 202;\n double billAmount = 300.25;\n String dueDate = \"02/02/2018\";\n int occurrenceRte = 1;\n\n //Create empty bill\n Bill bill = new Bill();\n\n //Set the values\n bill.setBillId(billId);\n bill.setBillName(billName);\n bill.setUserId(userId);\n bill.setAccountId(accountId);\n bill.setBillAmount(billAmount);\n bill.setDueDate(dueDate);\n bill.setOccurrenceRte(occurrenceRte);\n\n // Verify Values\n assertEquals(billId, bill.getBillId());\n assertEquals(billName, bill.getBillName());\n assertEquals(userId, bill.getUserId());\n assertEquals(accountId, bill.getAccountId());\n assertEquals(billAmount, bill.getBillAmount(), 0);\n assertEquals(dueDate, bill.getDueDate());\n assertEquals(occurrenceRte, bill.getOccurrenceRte());\n }", "@JsonCreator(mode = JsonCreator.Mode.DEFAULT)\n private UpdateTransaction() {\n this.sourceId = Optional.empty();\n this.type = Optional.empty();\n this.description = Optional.empty();\n this.balance = Optional.empty();\n this.inputDate = Optional.empty();\n }", "public OrderInventedRecord(Integer id, String orderSn, Integer sellerId, Integer memberId, String memberName, Byte orderState, Timestamp payTime, Byte paymentStatus, Byte invoiceStatus, String invoiceTitle, Byte invioceState, String invoiceType, BigDecimal moneyProduct, BigDecimal moneyOrder, BigDecimal moneyPaidBalance, BigDecimal moneyPaidReality, BigDecimal moneyGiftcardAmount, BigDecimal moneyCouponcode, BigDecimal moneyLowerAmount, BigDecimal moneyBack, Integer moneyIntegral, Integer lowerId, Integer giftcardId, Integer couponcodeId, String ip, String paymentName, String paymentCode, String mobile, String codeExchange, Byte isSuccess, String email, String zipCode, String remark, Timestamp finishTime, String tradeSn, String source, Byte isGiftCardOrder, Integer productCommentsId, Timestamp createTime, Timestamp updateTime) {\n super(OrderInvented.ORDER_INVENTED);\n\n set(0, id);\n set(1, orderSn);\n set(2, sellerId);\n set(3, memberId);\n set(4, memberName);\n set(5, orderState);\n set(6, payTime);\n set(7, paymentStatus);\n set(8, invoiceStatus);\n set(9, invoiceTitle);\n set(10, invioceState);\n set(11, invoiceType);\n set(12, moneyProduct);\n set(13, moneyOrder);\n set(14, moneyPaidBalance);\n set(15, moneyPaidReality);\n set(16, moneyGiftcardAmount);\n set(17, moneyCouponcode);\n set(18, moneyLowerAmount);\n set(19, moneyBack);\n set(20, moneyIntegral);\n set(21, lowerId);\n set(22, giftcardId);\n set(23, couponcodeId);\n set(24, ip);\n set(25, paymentName);\n set(26, paymentCode);\n set(27, mobile);\n set(28, codeExchange);\n set(29, isSuccess);\n set(30, email);\n set(31, zipCode);\n set(32, remark);\n set(33, finishTime);\n set(34, tradeSn);\n set(35, source);\n set(36, isGiftCardOrder);\n set(37, productCommentsId);\n set(38, createTime);\n set(39, updateTime);\n }", "public Settings(String accountName, boolean createEntry) {\n this.accountSettings = accountName;\n if (createEntry) {\n ACCOUNT_SETTINGS_DB.createOrUpdate(this);\n }\n }", "public static DataModelBuilder create() {\n return new DataModelBuilder();\n }", "public UserGroupMemberRecord() {\n super(UserGroupMember.USER_GROUP_MEMBER);\n }", "public JobPreference(Integer id) {\n super.id=id;\n }", "public SalesRecord() {\n super(Sales.SALES);\n }", "public Builder clearSerializedPaymentDetails() {\n copyOnWrite();\n instance.clearSerializedPaymentDetails();\n return this;\n }", "public JobBuilder() {\r\n job = new Job();\r\n }", "public ProfileBankAccount() {\r\n }", "public SavingsAccount() {\n super();\n }", "public LockRecord(NodeId nodeId, Record record, String workspace) {\n super(record, workspace);\n\n this.nodeId = nodeId;\n this.isLock = false;\n }", "private ContactSettingsProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public UserPreferencesRecord() {\n\t\tsuper(us.fok.lenzenslijper.models.jooq.tables.UserPreferences.USER_PREFERENCES);\n\t}", "public CleaningTransaction create(CleaningTransaction cleaningTransaction);", "public DriverForCreateBuilder() {\r\n driverForCreate = new DriverForCreate();\r\n }", "private Builder(TransferSerialMessage other) {\n super(TransferSerialMessage.SCHEMA$);\n if (isValidValue(fields()[0], other.accountID)) {\n this.accountID = data().deepCopy(fields()[0].schema(), other.accountID);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.brokerId)) {\n this.brokerId = data().deepCopy(fields()[1].schema(), other.brokerId);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.createDate)) {\n this.createDate = data().deepCopy(fields()[2].schema(), other.createDate);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.TransferSerials)) {\n this.TransferSerials = data().deepCopy(fields()[3].schema(), other.TransferSerials);\n fieldSetFlags()[3] = true;\n }\n }", "public BillResource() {\n super();\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "public SalesRecords() {\n super();\n }", "private Builder(com.babbler.ws.io.avro.model.BabbleValue other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.author)) {\n this.author = data().deepCopy(fields()[0].schema(), other.author);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.content)) {\n this.content = data().deepCopy(fields()[1].schema(), other.content);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.timestamp)) {\n this.timestamp = data().deepCopy(fields()[2].schema(), other.timestamp);\n fieldSetFlags()[2] = true;\n }\n if (isValidValue(fields()[3], other.location)) {\n this.location = data().deepCopy(fields()[3].schema(), other.location);\n fieldSetFlags()[3] = true;\n }\n if (isValidValue(fields()[4], other.tags)) {\n this.tags = data().deepCopy(fields()[4].schema(), other.tags);\n fieldSetFlags()[4] = true;\n }\n if (isValidValue(fields()[5], other.mentions)) {\n this.mentions = data().deepCopy(fields()[5].schema(), other.mentions);\n fieldSetFlags()[5] = true;\n }\n }", "public Building(Building building){\n\t\ttype = building.type;\n\t\tcost = building.cost;\n\t\timage = building.image;\n\t}", "public DataEntry create(long dataEntryId);", "public TesttabRecord() {\n\t\tsuper(org.jooq.h2.generated.tables.Testtab.TESTTAB);\n\t}", "Transaction createTransaction(Settings settings);", "public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}", "public <T> EntityViewSetting<T, CriteriaBuilder<T>> createSetting(Class<T> entityViewClass, DataFetchingEnvironment dataFetchingEnvironment, String elementRoot) {\n KeysetPage keysetPage = extractKeysetPage(dataFetchingEnvironment);\n Integer pageSize = null;\n Integer offset = null;\n Integer last = null;\n if (keysetPage != null) {\n pageSize = dataFetchingEnvironment.getArgument(pageSizeName);\n offset = dataFetchingEnvironment.getArgument(offsetName);\n last = dataFetchingEnvironment.getArgument(RELAY_LAST_NAME);\n }\n return createSetting(entityViewClass, dataFetchingEnvironment, elementRoot, keysetPage, pageSize, last, offset);\n }", "public Account() {\n this(null, 0);\n }", "private PassageRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }", "public DomainBatchDetailSet(DomainBatchDetailSet source) {\n if (source.Id != null) {\n this.Id = new Long(source.Id);\n }\n if (source.Domain != null) {\n this.Domain = new String(source.Domain);\n }\n if (source.Status != null) {\n this.Status = new String(source.Status);\n }\n if (source.Reason != null) {\n this.Reason = new String(source.Reason);\n }\n if (source.CreatedOn != null) {\n this.CreatedOn = new String(source.CreatedOn);\n }\n if (source.UpdatedOn != null) {\n this.UpdatedOn = new String(source.UpdatedOn);\n }\n }", "public static DummyBuilder fromInstance(Object instance) {\n return new DummyBuilder(instance);\n }", "RecordPropertyType createRecordPropertyType();", "public Builder clearBidid() {\n bitField0_ = (bitField0_ & ~0x00000002);\n bidid_ = getDefaultInstance().getBidid();\n onChanged();\n return this;\n }", "public Builder() {}", "public Builder() {}" ]
[ "0.5617004", "0.53778887", "0.5323436", "0.51873004", "0.5102196", "0.5081894", "0.504826", "0.5014134", "0.50014067", "0.49677727", "0.4959541", "0.49426544", "0.49392503", "0.4934021", "0.4924814", "0.492262", "0.49220285", "0.49098453", "0.48936117", "0.48829165", "0.48801023", "0.48619837", "0.48531175", "0.48526007", "0.48452368", "0.48313713", "0.47620916", "0.4755409", "0.4748803", "0.4743561", "0.4740472", "0.4740349", "0.47366804", "0.4722015", "0.47153327", "0.47109136", "0.47066048", "0.4696919", "0.46941283", "0.46866575", "0.46863854", "0.46839392", "0.4666869", "0.4665278", "0.4658806", "0.46476537", "0.4639852", "0.46334082", "0.46245486", "0.46138763", "0.46122834", "0.46089283", "0.46087107", "0.46002105", "0.45999283", "0.45924646", "0.45896807", "0.45893005", "0.45870343", "0.4585944", "0.4585846", "0.45808142", "0.45703486", "0.4569677", "0.45691648", "0.45683905", "0.4567533", "0.45580828", "0.45580646", "0.455339", "0.45510763", "0.454637", "0.4538909", "0.45374292", "0.45373842", "0.4534472", "0.45317757", "0.4523409", "0.45201015", "0.4518281", "0.45144033", "0.45023477", "0.4501264", "0.44996172", "0.4499543", "0.44990024", "0.44921893", "0.44920197", "0.4483444", "0.44792175", "0.44774222", "0.4474636", "0.44738913", "0.44734567", "0.4465737", "0.4465284", "0.4463109", "0.44552127", "0.4452442", "0.4452442" ]
0.7403726
0
Create a detached, initialised BillingSettingRecord
public BillingSettingRecord(String name, String value) { super(BillingSetting.BILLING_SETTING); set(0, name); set(1, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BillingSettingRecord() {\n super(BillingSetting.BILLING_SETTING);\n }", "ShipmentItemBilling createShipmentItemBilling();", "int insert(MrpConfigSettingsEntity record);", "SettingType createSettingType();", "public void create(Singer newRecord);", "int insertSelective(MrpConfigSettingsEntity record);", "public static PostponeRecord createEntity(EntityManager em) {\n PostponeRecord postponeRecord = new PostponeRecord()\n .driverId(DEFAULT_DRIVER_ID)\n .vehicleId(DEFAULT_VEHICLE_ID)\n .companyId(DEFAULT_COMPANY_ID)\n .receiptNumber(DEFAULT_RECEIPT_NUMBER)\n .operationTime(DEFAULT_OPERATION_TIME)\n .plateNumber(DEFAULT_PLATE_NUMBER)\n .driverName(DEFAULT_DRIVER_NAME)\n .postponeData(DEFAULT_POSTPONE_DATA)\n .remark(DEFAULT_REMARK);\n return postponeRecord;\n }", "protected void perRecordInit(Record record)\n {\n }", "public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }", "public DriverForCreateBuilder() {\r\n driverForCreate = new DriverForCreate();\r\n }", "public Setting() {\n\t}", "private LDBRecord createRecord(DataHSpecification spec,Hashtable fieldValues)\n\t\tthrows LRException\n\t{\n\t\tclearStatus();\n\t\tif (fieldValues==null) fieldValues=new Hashtable();\n\t\t// Create a new empty record\n\t\tLDBRecord record=new LDBRecord(background.getClient(),spec.getTableName());\n\t\t// Get the fields of the specification\n\t\t// and fill the record from the values passed in.\n\t\t// If a field is not identified create one with a default value.\n\t\tHashtable fields=spec.getFields();\n\t\tEnumeration en=fields.keys();\n\t\twhile (en.hasMoreElements())\n\t\t{\n\t\t\t// Get the field name from the spec\n\t\t\tString name=(String)en.nextElement();\n\t\t\t// Get the field spec for that name\n\t\t\tLDBFieldSpec fieldSpec=(LDBFieldSpec)fields.get(name);\n\t\t\t// See if we have a value for this field.\n\t\t\t// Remember that the keys of fieldValues are LVValues.\n\t\t\tObject value=(LVValue)fieldValues.get(name);\n\t\t\tif (value!=null)\n\t\t\t{\n\t\t\t\tString obj=((LVValue)value).getStringValue();\n\t\t\t\tswitch (fieldSpec.getType())\n\t\t\t\t{\n\t\t\t\tcase LDBFieldSpec.BYTE:\n\t\t\t\t\tvalue=new Byte((byte)LUUtil.getInt(obj));\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.INT:\n\t\t\t\t\tvalue=new Integer(LUUtil.getInt(obj));\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.LONG:\n\t\t\t\t\tvalue=new Long(LUUtil.getLong(obj));\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.CHAR:\n\t\t\t\t\tvalue=obj;\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.BINARY:\n\t\t\t\t\tvalue=obj;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// No value given so use a sensible default\n\t\t\t\t// depending on the type of the field.\n\t\t\t\tswitch (fieldSpec.getType())\n\t\t\t\t{\n\t\t\t\tcase LDBFieldSpec.BYTE:\n\t\t\t\t\tvalue=new Byte((byte)0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.INT:\n\t\t\t\t\tvalue=new Integer(0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.LONG:\n\t\t\t\t\tvalue=new Long(0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.CHAR:\n\t\t\t\t\tvalue=\"\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase LDBFieldSpec.BINARY:\n\t\t\t\t\tvalue=\"\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Add the new field to the record\n\t\t\ttry\n\t\t\t{\n\t\t\t\trecord.addField(fieldSpec,value);\n\t\t\t}\n\t\t\tcatch (LDBException e) { setStatus(e); }\n\t\t}\n\t\treturn record;\n\t}", "public gDBR createRecord(Element record)\n throws DBException \n {\n\n /* load field values from XML Element */\n Map<String,String> valMap = new HashMap<String,String>();\n NodeList fieldNodes = XMLTools.getChildElements(record,TAG_Field);\n for (int f = 0; f < fieldNodes.getLength(); f++) {\n Element field = (Element)fieldNodes.item(f);\n String name = XMLTools.getAttribute(field, ATTR_name, null, false);\n if (!StringTools.isBlank(name)) {\n String val = XMLTools.getNodeText(field, \"\\\\n\", false, \"\");\n valMap.put(name, val);\n } else {\n throw new DBException(\"Field does not specify a 'name'\");\n }\n }\n\n /* return DBRecord */\n return this.createRecord(valMap);\n\n }", "public MeetingRecord() {\n\t\tsuper(models.tables.Meeting.MEETING);\n\t}", "public DbRecord()\n {\n m_UserName = \"\";\n // Generate user's unique identifier\n m_Key = new byte[16];\n java.util.UUID guid = java.util.UUID.randomUUID();\n long itemHigh = guid.getMostSignificantBits();\n long itemLow = guid.getLeastSignificantBits();\n for( int i = 7; i >= 0; i-- )\n {\n m_Key[i] = (byte)(itemHigh & 0xFF);\n itemHigh >>>= 8;\n m_Key[8+i] = (byte)(itemLow & 0xFF);\n itemLow >>>= 8;\n }\n m_Template = null;\n }", "public PaymentRecordKey() {\n super();\n }", "public Setting() {\n }", "private ExchangeRecord(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public UserSetingRecord() {\n super(UserSeting.USER_SETING);\n }", "private void initial(){\n storeAccount(\"201799990001030047\");\n }", "public Settings(String accountName, boolean createEntry) {\n this.accountSettings = accountName;\n if (createEntry) {\n ACCOUNT_SETTINGS_DB.createOrUpdate(this);\n }\n }", "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "private Bdm getTestBdm() {\n\n\t\tBdm bdm = new Bdm();\n\t\tbdm.setBdmCode(BDM_CODE);\n\t\tbdm.setFirstName(FIRST_NAME);\n\t\tbdm.setLastName(LAST_NAME);\n\t\tbdm.setFullName(FULL_NAME);\n\t\treturn bdm;\n\t}", "public JbootVoModel set(Record record) {\n super.putAll(record.getColumns());\n return this;\n }", "RecordPropertyType createRecordPropertyType();", "public void resetNew() {\n setC_Payment_ID(0);\t\t//\tforces new Record\n set_ValueNoCheck(\"DocumentNo\", null);\n setDocAction(DOCACTION_Prepare);\n setDocStatus(DOCSTATUS_Drafted);\n setProcessed(false);\n setPosted(false);\n setIsReconciled(false);\n setIsAllocated(false);\n setIsOnline(false);\n setIsDelayedCapture(false);\n //\tsetC_BPartner_ID(0);\n setC_Invoice_ID(0);\n setC_Order_ID(0);\n setC_Charge_ID(0);\n setC_Project_ID(0);\n setIsPrepayment(false);\n }", "public Long createRecord(Record object);", "public void setRecord(Record record) {\n this.record = record;\n }", "LockRecord(Record record, String workspace) {\n super(record, workspace);\n }", "public AccountsRecord() {\n super(Accounts.ACCOUNTS);\n }", "private void bufferBillingProject() {\n if (getUnfilledBufferSpace() <= 0) {\n return;\n }\n\n final String projectName = createBillingProjectName();\n\n billingProjectBufferEntryDao.save(makeCreatingBufferEntry(projectName));\n\n fireCloudService.createAllOfUsBillingProject(projectName);\n }", "public Record makeReferenceRecord(RecordOwner recordOwner)\n {\n try {\n return (Record)this.getRecord().clone();\n } catch (CloneNotSupportedException ex) {\n ex.printStackTrace();\n }\n return null;\n }", "public IDRecord createAccount(IDRecord theIDRecord) {\n\n IDRecord updatedIDRecord = theIDRecord;\n\n // pull out or generate info for BankAccount\n String userName = updatedIDRecord.getName();\n\n // generate an account number\n int acctNum = getUniqueAccountNumber();\n double initBalance = updatedIDRecord.getInitialBalance();\n updatedIDRecord.setNumericalID(acctNum);\n\n // Formalize info into an actual BankAccount object.\n // Some as-yet unused options here for future development.\n BankAccount.AccountType baType;\n switch (updatedIDRecord.getRecordType()) {\n case AGENT:\n baType = BankAccount.AccountType.AGENT;\n break;\n\n case AUCTION_HOUSE:\n baType = BankAccount.AccountType.AUCTION_HOUSE;\n break;\n\n case BANK:\n baType = BankAccount.AccountType.BANK;\n break;\n\n default:\n baType = BankAccount.AccountType.OTHER;\n break;\n }\n BankAccount newBankAccount =\n new BankAccount(baType, userName, acctNum, initBalance);\n\n // Update Bank's list(s) of accounts.\n // Note: at account initiation, secretKeys HashMap not relevant.\n hashMapOfAllAccts.put(acctNum, newBankAccount);\n if (baType == BankAccount.AccountType.AUCTION_HOUSE) {\n\n listOfAuctionHouseIDRecords.add(updatedIDRecord);\n\n } else if (baType == BankAccount.AccountType.AGENT) {\n\n listOfAgentIDRecords.add(updatedIDRecord);\n }\n\n // Send requests to the BankDisplay thread to update display\n // to reflect new account information\n updateBankDisplay();\n\n return updatedIDRecord;\n }", "public BmAccountsRecord() {\n super(Tue4BmAccounts.BM_ACCOUNTS);\n }", "RecordSet generatePremiumAccounting(Record inputRecord);", "public UserPreferencesRecord() {\n\t\tsuper(us.fok.lenzenslijper.models.jooq.tables.UserPreferences.USER_PREFERENCES);\n\t}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public MicrosoftGraphGroupSetting() {\n }", "public PersonRecord() {}", "Transaction createTransaction(Settings settings);", "public void createSetting(Integer userId, UserSetting userSetting) {\r\n\t\tuserSettingMapper.insertUserSetting(userId, userSetting);\r\n\t}", "public abstract ExternalRecord createExternalRecord()\r\n\t\t\tthrows Exception;", "@Override\n\tpublic void create(StockDataRecord bo) throws SQLException, BusinessObjectException {\n\t\tthis.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) );\n\t\tbo.get();\n\t\t\n\t}", "public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "public Builder clearBankID() {\n bankID = null;\n fieldSetFlags()[7] = false;\n return this;\n }", "public\r\nMBRecord(Name name, int dclass, long ttl, Name mailbox) {\r\n\tsuper(name, Type.MB, dclass, ttl, mailbox, \"mailbox\");\r\n}", "DataHRecordData() {}", "public PowerContactSettings () {\n }", "public UnaryCallSettings<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }", "@Override\n\tpublic boolean createOrderBill(OrderBill orderBill) {\n\t\treturn false;\n\t}", "RecordInfo clone();", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public DataModelBuilder but() {\n DataModelBuilder _builder = create();\n _builder.m_featureEntitySet = m_featureEntitySet;\n _builder.m_entity = m_entity;\n _builder.m_featureEntityBuilder = m_featureEntityBuilder;\n _builder.m_featureNameSet = m_featureNameSet;\n _builder.m_name = m_name;\n return _builder;\n }", "public DataEntry create(long dataEntryId);", "public DBRecord(String encodedForm)\n\t{\n\t\tselected = false;\n\t\tbindings = new ChunkList<DBBinding>();\n\t\tloadFromEncodedForm(encodedForm);\n\t}", "public LocksRecord() {\n\t\tsuper(org.jooq.example.gradle.db.information_schema.tables.Locks.LOCKS);\n\t}", "WithCreate withCreationData(CreationData creationData);", "@Test\r\n public void testCreate() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(record.getId());\r\n }", "com.google.ads.googleads.v6.resources.BillingSetupOrBuilder getBillingSetupOrBuilder();", "public Builder clearSerializedPaymentDetails() {\n copyOnWrite();\n instance.clearSerializedPaymentDetails();\n return this;\n }", "public static Builder create(Tribit fillBit){\n return new Builder(fillBit);\n }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "BTable createBTable();", "public TAssetsDeviceRecord(Long id, Integer customerId, String orderId, Integer productId, String sn, String title, String companyName, Date startDate, Date endDate, BigDecimal deposit, BigDecimal rent, BigDecimal marketPrice, Byte status, Byte rentStatus, Integer belongId, Timestamp cdate, Timestamp mdate) {\n super(TAssetsDevice.T_ASSETS_DEVICE);\n\n set(0, id);\n set(1, customerId);\n set(2, orderId);\n set(3, productId);\n set(4, sn);\n set(5, title);\n set(6, companyName);\n set(7, startDate);\n set(8, endDate);\n set(9, deposit);\n set(10, rent);\n set(11, marketPrice);\n set(12, status);\n set(13, rentStatus);\n set(14, belongId);\n set(15, cdate);\n set(16, mdate);\n }", "WithCreate withConnectionProfile(ConnectionProfile connectionProfile);", "private BluetoothSettings() {\n }", "public DataRecord getEmptyCreationRecord() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getNewActionRecord(creation.getName(), currentRole,\r\n getLanguage(), null);\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.UNKNOWN_ACTION\", e);\r\n }\r\n }", "public CleaningTransaction create(CleaningTransaction cleaningTransaction);", "public BookRecord() {\n super(Book.BOOK);\n }", "protected void setAddRecord() {\n\t\tbackIV.setVisibility(View.GONE);\r\n\t\tbarLayout.setVisibility(View.GONE);\r\n\t\tif (addRecordFrag == null) {\r\n\t\t\tfTransaction.add(R.id.content, new AddRecordFrag(),\r\n\t\t\t\t\tAddRecordFrag.TAG);\r\n\t\t} else {\r\n\t\t\tfTransaction.attach(addRecordFrag);\r\n\t\t}\r\n\t\ttitleTV.setText(R.string.add_record);\r\n\t}", "protected void createSmartField() {\n\t\tthis.smartField = new SmartField();\n\t}", "public GenericRecordSet createRecordSet(String externalId,\n RecordTemplate template) throws FormException {\n return createRecordSet(externalId, template, null, false);\n }", "public SubscriptionRecord() {\n super(Subscription.SUBSCRIPTION);\n }", "public Builder clearBidid() {\n bitField0_ = (bitField0_ & ~0x00000002);\n bidid_ = getDefaultInstance().getBidid();\n onChanged();\n return this;\n }", "@Before\n public void initTest() {\n AccountCapsule ownerAccountFirstCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_FIRST),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_FIRST)),\n AccountType.Normal,\n 10000_000_000L);\n AccountCapsule ownerAccountSecondCapsule =\n new AccountCapsule(\n ByteString.copyFromUtf8(ACCOUNT_NAME_SECOND),\n ByteString.copyFrom(ByteArray.fromHexString(OWNER_ADDRESS_SECOND)),\n AccountType.Normal,\n 20000_000_000L);\n\n dbManager.getAccountStore()\n .put(ownerAccountFirstCapsule.getAddress().toByteArray(), ownerAccountFirstCapsule);\n dbManager.getAccountStore()\n .put(ownerAccountSecondCapsule.getAddress().toByteArray(), ownerAccountSecondCapsule);\n\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderTimestamp(1000000);\n dbManager.getDynamicPropertiesStore().saveLatestBlockHeaderNumber(10);\n dbManager.getDynamicPropertiesStore().saveNextMaintenanceTime(2000000);\n }", "public Builder clearField1242() {\n \n field1242_ = getDefaultInstance().getField1242();\n onChanged();\n return this;\n }", "public static DataModelBuilder create() {\n return new DataModelBuilder();\n }", "protected BlankRecord(int c, int r, BlankRecord br)\r\n/* 30: */ {\r\n/* 31: 84 */ super(Type.BLANK, c, r, br);\r\n/* 32: */ }", "WithCreate withProperties(AccountProperties properties);", "public <T> EntityViewSetting<T, CriteriaBuilder<T>> createSetting(Class<T> entityViewClass, DataFetchingEnvironment dataFetchingEnvironment, String elementRoot) {\n KeysetPage keysetPage = extractKeysetPage(dataFetchingEnvironment);\n Integer pageSize = null;\n Integer offset = null;\n Integer last = null;\n if (keysetPage != null) {\n pageSize = dataFetchingEnvironment.getArgument(pageSizeName);\n offset = dataFetchingEnvironment.getArgument(offsetName);\n last = dataFetchingEnvironment.getArgument(RELAY_LAST_NAME);\n }\n return createSetting(entityViewClass, dataFetchingEnvironment, elementRoot, keysetPage, pageSize, last, offset);\n }", "Account create();", "public BatchRecordInfo(BatchRecordInfo source) {\n if (source.RecordId != null) {\n this.RecordId = new Long(source.RecordId);\n }\n if (source.SubDomain != null) {\n this.SubDomain = new String(source.SubDomain);\n }\n if (source.RecordType != null) {\n this.RecordType = new String(source.RecordType);\n }\n if (source.RecordLine != null) {\n this.RecordLine = new String(source.RecordLine);\n }\n if (source.Value != null) {\n this.Value = new String(source.Value);\n }\n if (source.TTL != null) {\n this.TTL = new Long(source.TTL);\n }\n if (source.Status != null) {\n this.Status = new String(source.Status);\n }\n if (source.Operation != null) {\n this.Operation = new String(source.Operation);\n }\n if (source.ErrMsg != null) {\n this.ErrMsg = new String(source.ErrMsg);\n }\n if (source.Id != null) {\n this.Id = new Long(source.Id);\n }\n if (source.Enabled != null) {\n this.Enabled = new Long(source.Enabled);\n }\n if (source.MX != null) {\n this.MX = new Long(source.MX);\n }\n if (source.Weight != null) {\n this.Weight = new Long(source.Weight);\n }\n if (source.Remark != null) {\n this.Remark = new String(source.Remark);\n }\n }", "public TAssetsDeviceRecord() {\n super(TAssetsDevice.T_ASSETS_DEVICE);\n }", "public PostRecord() {\n super(PostTable.POST);\n }", "BankDetail() {\n this.isValid = new Boolean(false);\n this.bankAccountNo = new String();\n this.bankAccountHolderName = new String();\n this.bankCountry = new String();\n this.IFSC = new String();\n }", "public TesttabRecord() {\n\t\tsuper(org.jooq.h2.generated.tables.Testtab.TESTTAB);\n\t}", "public DBObject createNew() {\n DBObjectImpl obj = (DBObjectImpl) getNewObject();\n obj.DELETE_STMT_STR = DELETE_STMT_STR;\n obj.INSERT_STMT_STR = INSERT_STMT_STR;\n obj.UPDATE_STMT_STR = UPDATE_STMT_STR;\n obj.QUERY_STMT_STR = QUERY_STMT_STR;\n\n return obj;\n }", "protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;", "public ARecord() {\n super(A.A);\n }", "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SETTINGS_TABLE_NAME + \" (\"\n + KEY_SETTINGS_ROWID + \" integer primary key, \"\n + KEY_SETTINGS_VALUE + \" integer not null);\");\n }", "public void InitialiseBackup(int backupSetId)\n\t{\n\t\t\n\t\tthis.backup = new Backup();\n\t\tthis.backupFileHandler = new BackupFileHandler(backup, connection.dalClient);\n\t\tthis.backup.setDatetime(Calendar.getInstance().getTime());\n\t\tthis.backup.setName(this.backupFileHandler.CreateBackupFolder());\n\t\tthis.backup.setIscdp(false);\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tsession.beginTransaction();\n\t\tthis.backupset = (Backupset)session.get(Backupset.class, backupSetId);\n\t\tthis.backup.setBackupset(this.backupset);\n\t\tthis.backup.setType(this.backupset.getType());\n\t\tthis.backup.setFilepermissions(this.backupset.getFilepermissions());\n\t\tthis.backup.setServerid(Integer.parseInt(Config.getProperty(\"ServerID\")));\n\t\tsession.save(backup);\n\t\tsession.getTransaction().commit();\n\n\t}", "private ActivityRecord setActivityRecord() {\r\n ActivityRecord actv = new ActivityRecord();\r\n actv.setActivity(sportActivity);\r\n actv.setDistance(5);\r\n actv.setTime(45L);\r\n actv.setBurnedCalories(240);\r\n actv.setUser(user);\r\n return actv;\r\n }", "@Override\n\tpublic Legacydb create(long legacydbid) {\n\t\tLegacydb legacydb = new LegacydbImpl();\n\n\t\tlegacydb.setNew(true);\n\t\tlegacydb.setPrimaryKey(legacydbid);\n\n\t\treturn legacydb;\n\t}", "private Transaction creatTransaction(Bill bill, boolean b) {\n Transaction transaction = new Transaction();\n transaction.setDateOfTransaction(new Date());\n transaction.setCostOfTransaction(String.valueOf(bill.getCostOfBill()));\n transaction.setSerialOfTransaction(new TransactionSerialProducer().serialProducer());\n transaction.setFinished(b);\n transaction.setTypeOfTransaction(\"پرداخت قبض\");\n transaction.setBillingId(bill.getBillingId());\n transaction.setPaymentCode(bill.getPaymentCode());\n dbHelper = new DBHelper();\n dbHelper.insertTransaction(transaction);\n return transaction;\n }", "ShipmentGatewayConfig createShipmentGatewayConfig();", "public OrderInventedRecord(Integer id, String orderSn, Integer sellerId, Integer memberId, String memberName, Byte orderState, Timestamp payTime, Byte paymentStatus, Byte invoiceStatus, String invoiceTitle, Byte invioceState, String invoiceType, BigDecimal moneyProduct, BigDecimal moneyOrder, BigDecimal moneyPaidBalance, BigDecimal moneyPaidReality, BigDecimal moneyGiftcardAmount, BigDecimal moneyCouponcode, BigDecimal moneyLowerAmount, BigDecimal moneyBack, Integer moneyIntegral, Integer lowerId, Integer giftcardId, Integer couponcodeId, String ip, String paymentName, String paymentCode, String mobile, String codeExchange, Byte isSuccess, String email, String zipCode, String remark, Timestamp finishTime, String tradeSn, String source, Byte isGiftCardOrder, Integer productCommentsId, Timestamp createTime, Timestamp updateTime) {\n super(OrderInvented.ORDER_INVENTED);\n\n set(0, id);\n set(1, orderSn);\n set(2, sellerId);\n set(3, memberId);\n set(4, memberName);\n set(5, orderState);\n set(6, payTime);\n set(7, paymentStatus);\n set(8, invoiceStatus);\n set(9, invoiceTitle);\n set(10, invioceState);\n set(11, invoiceType);\n set(12, moneyProduct);\n set(13, moneyOrder);\n set(14, moneyPaidBalance);\n set(15, moneyPaidReality);\n set(16, moneyGiftcardAmount);\n set(17, moneyCouponcode);\n set(18, moneyLowerAmount);\n set(19, moneyBack);\n set(20, moneyIntegral);\n set(21, lowerId);\n set(22, giftcardId);\n set(23, couponcodeId);\n set(24, ip);\n set(25, paymentName);\n set(26, paymentCode);\n set(27, mobile);\n set(28, codeExchange);\n set(29, isSuccess);\n set(30, email);\n set(31, zipCode);\n set(32, remark);\n set(33, finishTime);\n set(34, tradeSn);\n set(35, source);\n set(36, isGiftCardOrder);\n set(37, productCommentsId);\n set(38, createTime);\n set(39, updateTime);\n }", "public static UserSetting createEntity(EntityManager em) {\n UserSetting userSetting = new UserSetting()\n .name(DEFAULT_NAME)\n .value(DEFAULT_VALUE)\n .type(DEFAULT_TYPE);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n userSetting.setUser(user);\n return userSetting;\n }", "private void guardaRecord() {\n // Guardamos el record\n SharedPreferences datos = PreferenceManager.getDefaultSharedPreferences(this);\n SharedPreferences.Editor miEditor = datos.edit();\n miEditor.putInt(\"RECORD\", record);\n miEditor.apply();\n }", "public Record(Record other) {\n if (other.isSetAttrs()) {\n List<AttrVal> __this__attrs = new ArrayList<AttrVal>(other.attrs.size());\n for (AttrVal other_element : other.attrs) {\n __this__attrs.add(new AttrVal(other_element));\n }\n this.attrs = __this__attrs;\n }\n }" ]
[ "0.701692", "0.55144614", "0.49613178", "0.49128497", "0.48283637", "0.48152786", "0.48080352", "0.47962412", "0.47613847", "0.47412446", "0.47175223", "0.47116706", "0.46791235", "0.46777442", "0.46560785", "0.46467504", "0.46459582", "0.4637785", "0.4636929", "0.46322817", "0.46275333", "0.46229208", "0.45977432", "0.4582522", "0.45703653", "0.4567222", "0.45663524", "0.45591974", "0.45580417", "0.45526654", "0.45471698", "0.4542288", "0.4527995", "0.45265412", "0.45165288", "0.44965246", "0.4492034", "0.4487321", "0.4484257", "0.44837865", "0.44718865", "0.4467819", "0.44610232", "0.44411033", "0.4438008", "0.4436922", "0.44364867", "0.4434086", "0.4424862", "0.4424643", "0.44240913", "0.4424054", "0.44167876", "0.44133934", "0.44055092", "0.44023392", "0.43879622", "0.43822172", "0.43812498", "0.4379157", "0.43750772", "0.43728286", "0.43674576", "0.43629467", "0.43619144", "0.436018", "0.4359691", "0.4355723", "0.43496406", "0.43468392", "0.4342846", "0.4339532", "0.43377006", "0.4329622", "0.43262234", "0.4326082", "0.43251672", "0.43210506", "0.43204057", "0.4318411", "0.43176398", "0.43091425", "0.43083626", "0.43004555", "0.4300082", "0.42919356", "0.4291523", "0.4290043", "0.42842615", "0.42815727", "0.42679146", "0.426756", "0.42666006", "0.42654195", "0.42635673", "0.4261894", "0.42587724", "0.4255365", "0.4252799", "0.4252542" ]
0.54007643
2
This method will retrieve the learning objects which match user profile If the preferred object type is not set, any learning object which matches the course requirement and student profile is displayed in recommended If the preferred object type is set, only the learning objects of this type which match the course requirement and student preference are displayed
public HashMap<String, ArrayList<String>> queryRecommendedLearningObjects(StudentAnnotationsBean studentAnnotationsBean, String keywords) throws Exception{ String LOG_METHOD_NAME = "void queryLearningObject(StudentAnnotationsBean studentAnnotationsBean, ArrayList<String> orSearchTerms)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<String> imagesList = new ArrayList<String>(); ArrayList<String> audioList = new ArrayList<String>(); ArrayList<String> videoList = new ArrayList<String>(); ArrayList<String> textList = new ArrayList<String>(); HashMap<String, ArrayList<String>> returnMap = new HashMap<String, ArrayList<String>>(); try{ StringBuffer sparqlQueryString = new StringBuffer(); sparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_ONTOLOGY); sparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_IMAGE); sparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_AUDIO); sparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_VIDEO); sparqlQueryString.append(TripleStoreConstants.PREFIX_TEN_TEXT); sparqlQueryString.append(TripleStoreConstants.PREFIX_RDF); sparqlQueryString.append(TripleStoreConstants.PREFIX_DUBLIN_CORE); sparqlQueryString.append(" SELECT DISTINCT ?learning_object ?learningObjectType "); sparqlQueryString.append(" WHERE { "); //base query with basic keywords conditions StringBuffer baseQuery = new StringBuffer(); baseQuery.append(" ?learning_object a ?learningObjectType"); baseQuery.append(" ;?predicate ?object"); //exclude type predicate baseQuery.append(" . FILTER ("); baseQuery.append(" (?predicate != rdf:type)"); //add filter for keywords if(!Utils.isEmptyOrNull(keywords)){ ArrayList<String> orSearchTerms = new ArrayList<String>(); StringTokenizer st = new StringTokenizer(keywords); while (st.hasMoreTokens()) { orSearchTerms.add(st.nextToken().trim()); } int i = 0; if((orSearchTerms != null) && (orSearchTerms.size()>0)){ i=0; baseQuery.append(" && "); for(String searchTerm:orSearchTerms){ baseQuery.append("(regex(?object, \""); baseQuery.append(searchTerm); baseQuery.append("\", \"i\"))"); //if this is not the last element add || if(i != (orSearchTerms.size()-1)){ baseQuery.append(" || "); } i++; } } } baseQuery.append(" )"); //add learning object type preference if(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredLearningObjectType())){ baseQuery.append("FILTER ( ?learningObjectType = TenOntology:" + studentAnnotationsBean.getPreferredLearningObjectType() + " )"); }else{ baseQuery.append("FILTER ((?learningObjectType = TenOntology:" + TripleStoreConstants.LEARNING_OBJECT_TYPE_IMAGE + " )"); baseQuery.append("|| (?learningObjectType = TenOntology:" + TripleStoreConstants.LEARNING_OBJECT_TYPE_TEXT + " )"); baseQuery.append("|| (?learningObjectType = TenOntology:" + TripleStoreConstants.LEARNING_OBJECT_TYPE_AUDIO + " )"); baseQuery.append("|| (?learningObjectType = TenOntology:" + TripleStoreConstants.LEARNING_OBJECT_TYPE_VIDEO + " )"); baseQuery.append(" )"); } boolean upperCondition = false; //Add tribe if(!Utils.isEmptyOrNull(studentAnnotationsBean.getTribe())){ if(upperCondition){ sparqlQueryString.append( " UNION " ); } sparqlQueryString.append(" { "); sparqlQueryString.append(baseQuery.toString()); sparqlQueryString.append(" ?learning_object <" + TripleStoreConstants.URI_PREDICATE_TEN_LO_TRIBE + "> ?tribe . "); sparqlQueryString.append(" FILTER (regex(?tribe, \"" + studentAnnotationsBean.getTribe() + "\", \"i\" ))" ); sparqlQueryString.append(" } "); upperCondition = true; } //Add language preference if(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredLanguage())){ if(upperCondition){ sparqlQueryString.append( " UNION " ); } sparqlQueryString.append(" { "); sparqlQueryString.append(baseQuery.toString()); sparqlQueryString.append(" ?learning_object <" + TripleStoreConstants.URI_PREDICATE_DC_LANGUAGE + "> ?language . "); sparqlQueryString.append(" FILTER (regex(?language, \"" + studentAnnotationsBean.getPreferredLanguage() + "\", \"i\" ))" ); sparqlQueryString.append(" } "); upperCondition = true; } //Add preferred text type if(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredTextContent())){ if(upperCondition){ sparqlQueryString.append( " UNION " ); } sparqlQueryString.append(" { "); sparqlQueryString.append(baseQuery.toString()); sparqlQueryString.append(" ?learning_object <" + TripleStoreConstants.URI_PREDICATE_TEN_TEXT_TYPE + "> ?textType . "); sparqlQueryString.append(" FILTER (regex(?textType, \"" + studentAnnotationsBean.getPreferredTextContent() + "\", \"i\" ))" ); sparqlQueryString.append(" } "); upperCondition = true; } //Add preferred image type if(!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredImageContent())){ if(upperCondition){ sparqlQueryString.append( " UNION " ); } sparqlQueryString.append(" { "); sparqlQueryString.append(baseQuery.toString()); sparqlQueryString.append(" { ?learning_object <" + TripleStoreConstants.URI_PREDICATE_TEN_IMAGE_TYPE + "> ?imageType . "); sparqlQueryString.append(" FILTER (regex(?imageType, \"" + studentAnnotationsBean.getPreferredImageContent() + "\", \"i\" )) " ); sparqlQueryString.append(" } "); upperCondition = true; } //display learning objects of type as recommeded if((upperCondition == false) && (!Utils.isEmptyOrNull(studentAnnotationsBean.getPreferredLearningObjectType()))){ sparqlQueryString.append(baseQuery.toString()); upperCondition = true; } sparqlQueryString.append(" }"); log.debug("SEARCH QUERY: " + sparqlQueryString.toString()); if(upperCondition == true){ //STEP 1 - Connect to virtuoso database VirtGraph graph = new VirtGraph (TripleStoreConstants.VIRTUOSO_GRAPH_URI, m_ds); Query sparql = QueryFactory.create(sparqlQueryString.toString()); VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create(sparql.toString(), graph); //STEP 3 - Execute ResultSet results = vqe.execSelect(); while (results.hasNext()) { QuerySolution result = results.nextSolution(); RDFNode rdfNodeSubject = result.get("learning_object"); RDFNode rdfNodeObject = result.get("learningObjectType"); if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_IMAGE).equals(rdfNodeObject.toString())){ imagesList.add(rdfNodeSubject.toString()); }else if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_AUDIO).equals(rdfNodeObject.toString())){ audioList.add(rdfNodeSubject.toString()); }else if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_VIDEO).equals(rdfNodeObject.toString())){ videoList.add(rdfNodeSubject.toString()); }else if((TripleStoreConstants.URI_TEN_ONTOLOGY + TripleStoreConstants.LEARNING_OBJECT_TYPE_TEXT).equals(rdfNodeObject.toString())){ textList.add(rdfNodeSubject.toString()); } } } returnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_IMAGE, imagesList); returnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_AUDIO, audioList); returnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_VIDEO, videoList); returnMap.put(TripleStoreConstants.LEARNING_OBJECT_TYPE_TEXT, textList); }catch (Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return returnMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProfileInterface recommend();", "public List<Theater> findPreferedTheaterListByUserNo(int user_no) throws Exception;", "public abstract List<String> getRequiredProfiles();", "public void recommended() {\n MainActivity activity = (MainActivity) getActivity();\n ArrayList<Integer> results = new ArrayList<>();\n int highest = 0;\n for (int i = 0; i < activity.getUserLocations().size(); i++) {\n int lid = activity.database.getLocID(1, activity.userLocations.get(i).getProvider());\n ArrayList<LocationMoodObject> locmood = activity.database.getLocMood(lid);\n int result = 0;\n\n for (int j = 0; j < locmood.size(); j++) {\n switch (locmood.get(j).mood) {\n case (1):\n result = result + 1;\n break;\n case (2):\n result = result + 2;\n break;\n case (3):\n result = result + 3;\n break;\n case (4):\n result = result + 4;\n break;\n case (5):\n result = result + 5;\n break;\n }\n }\n if (locmood.size()>0){\n result = result / locmood.size();\n results.add(result);}\n\n }\n\n for (int i = 0; i < results.size(); i++) {\n if (results.get(i) > highest) {\n highest = results.get(i);\n }\n }\n\n recommended = activity.userLocations.get(highest).getProvider();\n }", "ImmutableList<SchemaOrgType> getLearningResourceTypeList();", "public ArrayList<University> findRecommended(String schoolToCompare) {\n\t\tArrayList<University> closeMatch = sfCon.rankUniversity(schoolToCompare);\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tSystem.out.println(closeMatch.get(i).getName());\n\t\t}\n\n\t\treturn closeMatch;\n\t}", "Collection<? extends PM_Learning_Material> getHasRecommendation();", "public Set<UserProfile> getLearnersWithCourse(int courseCRN)\n\t{\n\t\tSet<UserProfile> rVal = null;\n\n\t\tif (containsCourse(courseCRN))\n\t\t{\n\t\t\trVal = new HashSet<UserProfile>();\n\n\t\t\tfor (Connector e : network)\n\t\t\t{\n\t\t\t\tif (e.relationship == COURSE_LEARNER_RELATIONSHIP)\n\t\t\t\t{\n\t\t\t\t\tif (e.courseCRN == courseCRN)\n\t\t\t\t\t{\n\t\t\t\t\t\trVal.add(e.person);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rVal;\n\t}", "List<Accessprofile> listWithCritera(SearchCriteria searchCriteria);", "private String championRecommendation(LeagueOfLegendsAccount account, String difficultyLevel) {\r\n if (difficultyLevel.equals(\"Beginner\")) {\r\n account.myRecommended.addChampionName(\"Darius\");\r\n return \"For Beginner difficulty we recommend Darius\";\r\n } else if (difficultyLevel.equals(\"Novice\")) {\r\n account.myRecommended.addChampionName(\"Blitzcrank\");\r\n account.myRecommended.addChampionName(\"Lucian\");\r\n account.myRecommended.addChampionName(\"Sejuani\");\r\n return \"For Novice difficulty we recommend Blitzcrank, Lucian, and Sejuani\";\r\n } else if (difficultyLevel.equals(\"Advanced\")) {\r\n account.myRecommended.addChampionName(\"Syndra\");\r\n account.myRecommended.addChampionName(\"Akali\");\r\n account.myRecommended.addChampionName(\"Fiddlesticks\");\r\n return \"For Advanced difficulty we recommend Syndra, Akali, and Fiddlesticks\";\r\n } else {\r\n return \"Not an existing classification of difficulty (Beginner, Novice, Advanced)\";\r\n }\r\n }", "public static void main(String[] args) {\n ArrayList<Course> courses = new ArrayList<>();\n courses.add(new Course(\"Math\", \"12030\"));\n courses.add(new Course(\"English\", \"46537\"));\n courses.add(new Course(\"Programming\", \"64537\"));\n\n ArrayList<Teacher> teachers = new ArrayList<>();\n teachers.add(new Teacher(\"Albert\", \"Einstein\", \"[email protected]\", \"1\"));\n teachers.add(new Teacher(\"Nikola\", \"Tesla\", \"[email protected]\", \"2\"));\n teachers.add(new Teacher(\"Ada\", \"Lovelace\", \"[email protected]\", \"3\"));\n teachers.add(new Teacher(\"Charles\", \"Babbage\", \"[email protected]\", \"4\"));\n\n courses.get(0).getTaughtBy().add(teachers.get(1));\n courses.get(0).getTaughtBy().add(teachers.get(2));\n courses.get(1).getTaughtBy().add(teachers.get(0));\n courses.get(1).getTaughtBy().add(teachers.get(1));\n courses.get(2).getTaughtBy().add(teachers.get(2));\n\n\n\n ArrayList<Student> students = new ArrayList<>();\n students.add(new Student(\"Irina\", \"Smirnova\", \"[email protected]\", \"245\"));\n students.add(new Student(\"Andrey\", \"Smirnov\", \"[email protected]\", \"249\"));\n students.add(new Student(\"Galina\", \"Kutarina\", \"[email protected]\", \"246\"));\n\n courses.get(0).getTakenBy().add(students.get(1));\n courses.get(0).getTakenBy().add(students.get(2));\n courses.get(1).getTakenBy().add(students.get(1));\n courses.get(2).getTakenBy().add(students.get(0));\n\n\n listCourses(courses);\n // listTeachers(teachers);\n// listStudents(students);\n\n\n\n }", "public List<T> getProfiles();", "public List<String> getRankedCourses(String user) {\n\n\t\tSet<String> usersL1 = new HashSet<String>();\n\t\tSet<String> usersL2 = new HashSet<String>();\n\t\tusersL1.addAll(getDirectFriendsForUser(user));\n\n\t\tfor (String u : usersL1) {\n\t\t\tusersL2.addAll(getDirectFriendsForUser(u));\n\t\t}\n\t\tSet<String> users = usersL1;\n\t\tusers.addAll(usersL2);\n\n\t\tMap<String, CourseCounter> courses = new HashMap<>();\n\n\t\tfor (String u : users) {\n\t\t\tList<String> courseListByUser = getAttendedCoursesForUser(u);\n\n\t\t\tfor (String c : courseListByUser) {\n\t\t\t\tCourseCounter counter = courses.get(c);\n\t\t\t\tif (counter == null) {\n\t\t\t\t\tcounter = new CourseCounter(c);\n\t\t\t\t\tcourses.put(c, counter);\n\t\t\t\t} else {\n\t\t\t\t\tcounter.increaseCounter();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tList<String> coursesByUser = getAttendedCoursesForUser(user);\n\t\tfor (String c : coursesByUser) {\n\t\t\tcourses.remove(c);\n\t\t}\n\n\t\tList<CourseCounter> coursesAll = new ArrayList<>(courses.values());\n\n\t\tCollections.sort(coursesAll, new Comparator<CourseCounter>() {\n\t\t\t@Override\n\t\t\tpublic int compare(CourseCounter arg0, CourseCounter arg1) {\n\t\t\t\treturn -arg0.getCounter().compareTo(arg1.getCounter());\n\t\t\t}\n\t\t});\n\n\t\tList<String> recommendedCourses = new ArrayList<>();\n\t\tfor (CourseCounter c:coursesAll){\n\t\t\trecommendedCourses.add(c.getName());\n\t\t}\n\t\t\n\t\treturn recommendedCourses;\n\t}", "protected abstract Profile[] getProfileSet();", "public void isAllRecommended() {\n //Get ScoredId\n for(int i = 0; i < originalList.size(); i++) {\n Boolean isPresent = true;\n\n ScoredId sc = originalList.get(i);\n\n long m = sc.getId();\n\n //Check if it is present in all other lists\n for(Map.Entry<Long, List<ScoredId>> entry : recMap.entrySet()) {\n List<ScoredId> sco = entry.getValue();\n\n HashSet moovies = new HashSet<>();\n\n for(int j=0; j < sco.size(); j++) {\n ScoredId mov = sco.get(j);\n\n long moo = mov.getId();\n\n moovies.add(moo);\n }\n\n if(!moovies.contains(m)){\n isPresent = false;\n }\n }\n\n //Movie should be added to list here, after all lists examined\n if(isPresent) {\n commonRec.add(sc);\n }\n }\n\n //Commenting out as was used for testing purposes.\n //System.out.println(commonRec);\n\n obtainFinalRecs();\n }", "public void loadPreferecences()\n {\n // Load preferences for chapter\n chapterPref = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_CHAPTER);\n if (controller != null)\n { \n\t\t\tcontroller.setHierarchical(chapterPref);\n\t\t}\n // Load preferences for value to recognize req\n String pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_VALUE_TO_RECOGNIZE_REQ);\n if (pref != null && pref.length() > 0)\n {\n Serializer<RecognizedElement> serializer = new Serializer<RecognizedElement>();\n RecognizedElement element = serializer.unSerialize(pref);\n if (element != null)\n {\n valueToRecognizeReq = element;\n }\n }\n\n // Load preferences for attributes list\n pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_LIST_RECOGNIZED_ELEMENT);\n if (pref != null && pref.length() > 0)\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n Collection<RecognizedElement> paramDecoded = serializer.unSerialize(pref);\n if (paramDecoded != null && paramDecoded.size() > 0)\n {\n for (Iterator<RecognizedElement> iterator = paramDecoded.iterator(); iterator.hasNext();)\n {\n tree.add((RecognizedElement) iterator.next());\n }\n }\n }\n \n // Load preferences for the description\n descriptionChecked = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_DESCRIPTION);\n }", "List<Accessprofile> listAll();", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "public interface IRecommender {\n\n /**\n * Generate an set of user profiles that are recommended to be followed by a user profile.\n *\n * @param profileId unique identifier of the user profile.\n * @param influencers map of influencer user profiles and those that follow them.\n * @param followers map of follower user profiles and the influencers they follow.\n * @param profiles list of all user profiles in the network.\n * @param numRecs number of user profiles to recommend.\n * @param threshold threshold for the number of followers a user profile needs to have to be\n * considered an influencer.\n * @param recs current set of recommended user profiles.\n * @return unique set of user profiles to follow.\n */\n Set<Integer> recommend(Integer profileId, Map<Integer, Set<Integer>> influencers,\n Map<Integer, Set<Integer>> followers, List<Profile> profiles, Integer numRecs,\n Integer threshold, Set<Integer> recs);\n\n}", "public Set<Course> getCoursesWithLearner(UserProfile learner)\n\t{\n\t\tSet<Course> rVal = null;\n\n\t\tif ((learner.getPermLevel() == UserProfile.STUDENT) || (learner.getPermLevel() == UserProfile.TA))\n\t\t{\n\t\t\trVal = new HashSet<Course>();\n\n\t\t\tfor (Connector e : network)\n\t\t\t{\n\t\t\t\tif (e.relationship == COURSE_LEARNER_RELATIONSHIP)\n\t\t\t\t{\n\t\t\t\t\tif (e.person.equals(learner))\n\t\t\t\t\t{\n\t\t\t\t\t\trVal.add(getCourse(e.courseCRN));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rVal;\n\t}", "public Collection<Profile> searchProfiles( Map<String, String> parameters){\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"searchProfiles\", parameters);\n \t\t}\n \t\tDocument data = null;\n \t\tCollection<Profile> profiles = null;\n \t\tif (null == parameters) {\n \t\t\tparameters = new HashMap<String, String>();\n \t\t}\n \t\ttry {\n \t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\t\tProfileType.SEARCH.getProfileType());\n \t\t\tdata = (Document)getClientService().get(url, parameters);\n \t\t\tprofiles = Converter.returnProfileEntries(this, data);\n \t\t} catch (ClientServicesException e) {\n \t\t\tif (logger.isLoggable(Level.SEVERE)) {\n \t\t\t\tlogger.log(Level.SEVERE, Messages.ProfileServiceException_1 + \"searchProfiles()\", e);\n \t\t\t}\n \t\t}\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.exiting(sourceClass, \"getColleagues\");\n \t\t}\n \t\treturn profiles;\n \t}", "@Override\n\tpublic List<UserProfile> getQuickProfiles(List<String> userList)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "List<Map<String, Object>> listAccessprofileForSelect();", "public void manageProfile(String username)\n {\n User tmpUser = getUser(username);\n Scanner input = new Scanner(System.in);\n String option = \"\";\n if(tmpUser.getRole().equals(\"Job Seeker\"))\n {\n JobSeeker tmpSeeker = getJobSeeker(username);\n tmpSeeker.displayJobSeeker();\n do\n {\n menu.manageSeekerProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpSeeker.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpSeeker.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpSeeker.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please add new skill: \");\n String newSkill = input.nextLine().trim();\n tmpSeeker.addSkill(newSkill);break;\n case \"5\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-5)\");\n break;\n }\n }while(!option.equals(\"5\"));\n System.out.println(\"Your new profile is:\");\n tmpSeeker.displayJobSeeker();\n runOJSSJobSeeker(tmpSeeker);\n }\n \n if(tmpUser.getRole().equals(\"Job Recruiter\"))\n {\n JobRecruiter tmpRecruiter = getJobRecruiter(username);\n tmpRecruiter.displayJobRecruiter();\n do\n {\n menu.manageRecruiterProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpRecruiter.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpRecruiter.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpRecruiter.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please enter new company name: \");\n tmpRecruiter.setCompanyName(input.nextLine().trim());break;\n case \"5\":\n System.out.println(\"Please enter new location: \");\n tmpRecruiter.setLocation(input.nextLine().trim());break;\n case \"6\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-6)\");\n break;\n }\n }while(!option.equals(\"6\"));\n System.out.println(\"Your new profile is:\");\n tmpRecruiter.displayJobRecruiter();\n runOJSSJobRecruiter(tmpRecruiter);\n }\n }", "TasteProfile.UserProfile getUserProfile (String user_id);", "public List<SmmProfile> getProfiles();", "public Skills getChosenSkill();", "@Override\n\tpublic Profile getProfile(Users user) {\n\t\treturn null;\n\t}", "private void filter(List<String> filterIdList, List<RecommendedItem> recommendedList, Set<RecommendedItem> filterRecommendedSet, String filterType) {\r\n if (filterIdList != null && filterIdList.size() > 0) {\r\n for (String filterId : filterIdList) {\r\n for (RecommendedItem recommendedItem : recommendedList) {\r\n String recommendedId = null;\r\n if (StringUtils.equals(\"user\", filterType)) {\r\n recommendedId = recommendedItem.getUserId();\r\n } else if (StringUtils.equals(\"item\", filterType)) {\r\n recommendedId = recommendedItem.getItemId();\r\n }\r\n if (StringUtils.equals(filterId, recommendedId)) {\r\n filterRecommendedSet.add(recommendedItem);\r\n }\r\n }\r\n }\r\n }\r\n }", "List<Movie> recommendationFallback(String user) {\n return familyRecommendations;\n }", "private void getProfil() {\n\n try {\n pseudo.setText(users.get(id - 1).getPseudo());\n height.setText(users.get(id - 1).getHeight().toString());\n weight.setText(users.get(id - 1).getWeight().toString());\n hemoglobin.setText(users.get(id - 1).getHb());\n vgm.setText(users.get(id - 1).getVgm());\n tcmh.setText(users.get(id - 1).gettcmh());\n idr_cv.setText(users.get(id - 1).getIdr_cv());\n hypo.setText(users.get(id - 1).getHypo());\n ret_he.setText(users.get(id - 1).getRet_he());\n platelet.setText(users.get(id - 1).getPlatelet());\n ferritin.setText(users.get(id - 1).getFerritin());\n transferrin.setText(users.get(id - 1).getTransferrin());\n serum_iron.setText(users.get(id-1).getSerum_iron());\n cst.setText(users.get(id - 1).getCst());\n fibrinogen.setText(users.get(id - 1).getFibrinogen());\n crp.setText(users.get(id - 1).getCrp());\n other.setText(users.get(id - 1).getOther());\n age.setText(users.get(id - 1).getAge());\n\n String sex = users.get(id - 1).getSexe();\n if(!sex.equals(null)){\n int genderSpinnerPosition = genderSpinnerAdapter.getPosition(sex);\n genderSpinner.setSelection(genderSpinnerPosition);\n }\n\n String serum_iron_unit = users.get(id - 1).getSerum_iron_unit();\n if(!serum_iron_unit.equals(null)){\n int ironUnitPosition = ironSpinnerAdapter.getPosition(serum_iron_unit);\n ironSpinner.setSelection(ironUnitPosition);\n }\n\n //Mise en place du bon radioButton\n String carence = users.get(id - 1).getDeficiency();\n switch(carence) {\n case \"Carence certaine\":\n rbCertain.toggle();\n break;\n case \"Absence de carence\":\n rbAbsence.toggle();\n break;\n case \"Carence incertaine\":\n rbIncertain.toggle();\n break;\n }\n\n } catch (Exception e) {\n }\n }", "public static void printListOfAssignmentsPerStudentPerCourse() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"~~~~~~~~~Select the student to see the Assignments~~~~~~~~~\");\n boolean caseCheck = false;\n String flag = \"Y\";\n do {\n if (flag.equalsIgnoreCase(\"Y\")) {\n Student chosenStudent = studentSelection();\n for (int i = 0; i < chosenStudent.getListOfAssignmentsPerStudentPerCourse().size(); i++) {\n System.out.println((i + 1) + \") \" + chosenStudent.getListOfAssignmentsPerStudentPerCourse().get(i));\n System.out.println(\"\");\n }\n } else if (flag.equalsIgnoreCase(\"N\")) {\n return;\n } else {\n\n System.err.println(\"Invalid Answer, type: Y or N\");\n\n }\n System.out.println(\"Do you want to check another Student? (Y / N)\");\n flag = input.nextLine();\n } while (caseCheck == false);\n }", "People getObjUser();", "public List<UserProfile> getProfili() {\r\n\t\t// return upDao.findAll();\r\n\t\treturn upDao.getAllUserProfile();\r\n\t}", "public Set<Course> getCoursesWithInstructor(UserProfile instructor)\n\t{\n\t\tSet<Course> rVal = null;\n\n\t\tif ((instructor.getPermLevel() >= UserProfile.TA) && (instructor.getPermLevel() <= UserProfile.ADMIN))\n\t\t{\n\t\t\trVal = new HashSet<Course>();\n\n\t\t\tfor (Connector e : network)\n\t\t\t{\n\t\t\t\tif (e.relationship == COURSE_INSTRUCTOR_RELATIONSHIP)\n\t\t\t\t{\n\t\t\t\t\tif (e.person.equals(instructor))\n\t\t\t\t\t{\n\t\t\t\t\t\trVal.add(getCourse(e.courseCRN));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rVal;\n\t}", "@WithSpan\n List<RecommendationContent> getRecommendations(@Nonnull Urn userUrn, @Nonnull RecommendationRequestContext requestContext);", "private void loadLazyObjects(List<User> userList, VolunteerSearchModel searchDTO) {\n\n\t\tif (userList == null || userList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (User user : userList) {\n\n\t\t\t// load causes\n\t\t\tif (searchDTO.getCauses() != null) {\n\t\t\t\tfor (Party party : user.getParties()) {\n\t\t\t\t\tparty.getPartyCauseXrefs();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// load jobTypes\n\t\t\tif (searchDTO.getSkills() != null) {\n\t\t\t\tfor (Party party : user.getParties()) {\n\t\t\t\t\tparty.getPartyJobTypeXrefs();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}", "public static void printListOfTrainersPerCourse() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"~~~~~~~~~Select the course to see the Trainers~~~~~~~~~\");\n boolean caseCheck = false;\n String flag = \"Y\";\n do {\n if (flag.equalsIgnoreCase(\"Y\")) {\n SchoolCourse chosenSchoolCourse = schoolCourseSelection();\n for (int i = 0; i < chosenSchoolCourse.getListOfTrainersPerCourse().size(); i++) {\n System.out.println((i + 1) + \") \" + chosenSchoolCourse.getListOfTrainersPerCourse().get(i));\n System.out.println(\"\");\n }\n } else if (flag.equalsIgnoreCase(\"N\")) {\n return;\n } else {\n\n System.err.println(\"Invalid Answer, type: Y or N\");\n\n }\n System.out.println(\"Do you want to check another Course? (Y / N)\");\n flag = input.nextLine();\n } while (caseCheck == false);\n\n }", "public Object getFacet(String name, IProfile profile, Object targetObject, Class targetObjectType);", "public List<OWLObject> search(OWLObject queryObj) {\n\t\tList<OWLObject> hits = new ArrayList<OWLObject>(maxHits);\n\t\tSystem.out.println(\"gettings atts for \"+queryObj+\" -- \"+simEngine.comparisonProperty);\n\t\tSet<OWLObject> atts = simEngine.getAttributeClosureFor(queryObj);\n\t\tSystem.out.println(\"all atts: \"+atts.size());\n\t\tif (atts.size() == 0)\n\t\t\treturn hits;\n\t\t\n\t\t// only compare using significant atts;\n\t\t// we don't do the same test on candidates as these will be removed by the\n\t\t// intersection operation. they will have a small effect on the score, as\n\t\t// we don't divide by the union, but instead the sum of sizes\n\t\tatts = filterNonSignificantAttributes(atts);\n\t\tSystem.out.println(\"filtered atts: \"+atts.size());\n\n\t\t//bloomFilter = new BloomFilter<OWLObject>(0.05, atts.size());\n\t\t//bloomFilter.addAll(atts);\n\t\t\t\t\n\t\tSortedMap<Integer,Set<OWLObject>> scoreCandidateMap = new TreeMap<Integer,Set<OWLObject>>();\n\t\t\n\t\tfor (OWLObject candidate : getCandidates()) {\n\t\t\tif (candidate.equals(queryObj))\n\t\t\t\tcontinue;\n\t\t\tSet<OWLObject> iAtts = simEngine.getAttributeClosureFor(candidate);\n\t\t\t//Set<OWLObject> iAtts = simEngine.getGraph().getAncestors(candidate);\n\n\t\t\tif (iAtts.size() == 0)\n\t\t\t\tcontinue;\n\t\t\tint cAttsSize = iAtts.size();\n\t\n\t\t\tiAtts.retainAll(atts);\n\t\t\t//Collection<OWLObject> iAtts = bloomFilter.intersection(cAtts);\n\t\t\t\n\t\t\t// simJ, one-sided, scaled by 1000\n\t\t\t// negate to ensure largest first\n\t\t\t//Integer score = - (iAtts.size() * 1000 / cAttsSize);\n\t\t\t\n\t\t\t// this biases us towards genes with large numbers of annotations,\n\t\t\t// but it is better at finding the models that share all features\n\t\t\tInteger score = - iAtts.size();\n\t\t\tif (!scoreCandidateMap.containsKey(score)) \n\t\t\t\tscoreCandidateMap.put(score, new HashSet<OWLObject>());\n\t\t\tscoreCandidateMap.get(score).add(candidate);\n\t\t\treporter.report(this,\"query_candidate_overlap_total\",queryObj,candidate,iAtts.size(),cAttsSize);\n\t\t}\n\t\t\n\t\tint n = 0;\n\t\tfor (Set<OWLObject> cs : scoreCandidateMap.values()) {\n\t\t\tn += cs.size();\n\t\t\thits.addAll(cs);\n\t\t}\n\t\t\n\t\tn = 0;\n\t\tfor (OWLObject hit : hits) {\n\t\t\tn++;\n\t\t\treporter.report(this,\"query_hit_rank_threshold\",queryObj,hit,n,maxHits);\n\t\t}\n\t\tif (hits.size() > maxHits)\n\t\t\thits = hits.subList(0, maxHits);\n\t\t\n\n\n\t\treturn hits;\n\t}", "public ProfileCompletenessReport getProfileCompletenessReport(User user)\n throws ProfileCompletenessRetrievalException {\n ParameterCheckUtility.checkNotNull(user, \"user\");\n // Prepare report entity\n ProfileCompletenessReport report = new ProfileCompletenessReport();\n report.setTaskCompletionStatuses(new ArrayList<TaskCompletionStatus>());\n // Prepare calculation fields:\n int totalFields = 0;\n int totalCompletedFields = 0;\n for (ProfileTaskChecker checker : profileTaskCheckers) {\n ProfileTaskReport profileTaskReport = checker.getTaskReport(user);\n totalFields += profileTaskReport.getTotalFieldCount();\n totalCompletedFields += profileTaskReport.getCompletedFieldCount();\n TaskCompletionStatus taskCompletionStatus = new TaskCompletionStatus();\n taskCompletionStatus.setTaskName(profileTaskReport.getTaskName());\n taskCompletionStatus.setCompleted(profileTaskReport.getCompleted());\n report.getTaskCompletionStatuses().add(taskCompletionStatus);\n }\n // Perform calculation:\n report.setCompletionPercentage(totalCompletedFields * 100 / totalFields);\n return report;\n }", "List<Sex> getUsersWithCorrectedGender(List<User> users);", "public static void main(String[] args) {\n Course AbstractAdvancedJavaSuperClass = new AdvancedJavaCourse(\"AdvancedJava\", \"-003\");\r\n Course AbstractJavaSuperClass = new IntroJavaCourse(\"IntroJava\", \"-002\");\r\n Course AbstractProgramClass = new IntroToProgrammingCourse(\"Intro\", \"-001\");\r\n\r\n AbstractAdvancedJavaSuperClass.setCredits(4);\r\n AbstractJavaSuperClass.setCredits(4.0);\r\n AbstractProgramClass.setCredits(4.0);\r\n \r\n //this is a test\r\n \r\n AbstractAdvancedJavaSuperClass.setPrerequisites(AbstractJavaSuperClass.getCourseNumber());\r\n AbstractJavaSuperClass.setPrerequisites(AbstractProgramClass.getCourseNumber());\r\n \r\n System.out.println(AbstractProgramClass.getCapitalizedCourseName()\r\n + \" \" + AbstractProgramClass.getCourseNumber() );\r\n \r\n System.out.println(AbstractJavaSuperClass.getCourseName()\r\n + \" \" + AbstractJavaSuperClass.getCourseNumber() \r\n + \" \" + AbstractJavaSuperClass.getPrerequisites());\r\n \r\n System.out.println(AbstractAdvancedJavaSuperClass.getCourseName()\r\n + \" \" + AbstractAdvancedJavaSuperClass.getCourseNumber() \r\n + AbstractAdvancedJavaSuperClass.getPrerequisites() );\r\n}", "List<PersonHelpfulness> topKHelpfullUsers(final int k) {\n // map to pairs of uID and helpfulness, then cut the helpfulness to 2 parts\n // filter out 0s, then sum both parts using reduce by key\n // then, map to PersonHelpfulness CLASS that has it's own comparator\n // then, return topK (validity checked) list (collect)\n JavaRDD<PersonHelpfulness> helpfulUsers = movieReviews\n .mapToPair(a -> new Tuple2<>(a.getUserId(), a.getHelpfulness()))\n .mapToPair(s -> new Tuple2<>(s._1, new Tuple2<>(Double.parseDouble(s._2.substring(0,s._2.lastIndexOf('/'))),\n Double.parseDouble(s._2.substring(s._2.lastIndexOf('/') + 1, s._2.length())))))\n .filter(s -> s._2._2 != 0)\n .reduceByKey((a,b) -> new Tuple2<>(a._1 + b._1, a._2 + b._2))\n .map(s -> new PersonHelpfulness(s._1, roundFiveDecimal(s._2._1/s._2._2)));\n return helpfulUsers.top(getRealTopK(k,helpfulUsers.count() ));\n }", "java.util.List<org.beangle.security.session.protobuf.Model.Profile>\n getProfilesList();", "public void printByUser() {\r\n TUseStatus useStatus;\r\n\t for (int a=0; a < m_current_resources_count; a++)\r\n\t for (int b=0; b < m_current_users_count; b++) {\r\n\t useStatus = m_associations[a][b];\r\n\t if (useStatus!=null) System.out.println(useStatus.toString()); \r\n\t } \r\n }", "private void filterOnAffordances(\n\t\t\tArrayList<SocialPractice> candidateSocialPractices) {\n\t\tIterator<SocialPractice> iter = candidateSocialPractices.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tSocialPractice sp = iter.next();\n\t\t\tboolean contextAffordsSP = false;\n\n\t\t\tfor (PContext affordance : sp.getAffordances()) {\n\n\t\t\t\t/* check affordance location matches with current location */\n\t\t\t\tLocation locationToCheck = affordance.getPhysical()\n\t\t\t\t\t\t.getMyLocation();\n\t\t\t\tLocation l = getMyLocation();\n\t\t\t\tif (getMyLocation().getClass() == locationToCheck.getClass())\n\t\t\t\t\tcontextAffordsSP = true;\n\t\t\t\t// TODO: change affordances to list of classes. Problem though,\n\t\t\t\t// it is a context object right now.\n\t\t\t\t/* check affordance social matches with current socialcontext */\n\t\t\t}\n\t\t\tif (!contextAffordsSP)\n\t\t\t\titer.remove();\n\t\t}\n\t}", "@Override\r\n public void mostrarProfesores(){\n for(Persona i: listaPersona){\r\n if(i instanceof Profesor){\r\n i.mostrar();\r\n }\r\n }\r\n }", "@Override\n\t protected Boolean doInBackground(Void... params) {\n\t \trecommended = controller.getRecommendedUsers();\n\t \tif(recommended != null)\n\t \t\treturn true;\n\t \treturn false;\n\t }", "public UserPracticeSummaryCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public List<MusicVideo> getMusicVideoRecommendations(ServletContext servletContext, int profileAccountId){\n \n //init the servletContext field with the one coming from the caller\n this.servletContext = servletContext ;\n //list of music video recommendations to return\n List<MusicVideo> listOfMusicVideoRecommendations ;\n //find artiste id whose music videos the user has downloaded most\n int artisteDownloadedMostByUser = getArtisteDownloadedMostByUser(profileAccountId) ;\n //find genre id of music videos the user has downloaded most\n int genreDownloadedMostByUser = getGenreDownloadedMostByUser(profileAccountId) ;\n \n //if the user has not made any downloads, depend on all downloads to suggest music videos to user\n if(artisteDownloadedMostByUser == -1 || genreDownloadedMostByUser == -1){\n \n //find artiste id whose music videos have been downloaded most\n int artisteDownloadedMostByAllUsers = getArtisteDownloadedMostByAllUsers() ;\n //find genre id of music videos that have been downloaded most\n int genreDownloadedMostByAllUsers = getGenreDownloadedMostByAllUsers() ;\n //use the artiste and genre downloaded most by all users to find recommendations for user\n //in case there are no downloads in the system, then no recommendations will be made to the user\n listOfMusicVideoRecommendations = getMusicVideosThatMatchArtisteOrGenre(artisteDownloadedMostByAllUsers, genreDownloadedMostByAllUsers) ;\n \n }\n //use artiste and genre to find recommendations for user\n else\n listOfMusicVideoRecommendations = getMusicVideosThatMatchArtisteOrGenre(artisteDownloadedMostByUser, genreDownloadedMostByUser) ;\n \n //set details for each music video in the list\n listOfMusicVideoRecommendations = setPosterImageForMusicVideos(listOfMusicVideoRecommendations) ;\n \n //sort list\n listOfMusicVideoRecommendations.sort(null) ;\n \n return listOfMusicVideoRecommendations ;\n }", "@Override\n\tpublic JCRPageList getPageListUserProfile() throws Exception {\n\t\treturn null;\n\t}", "private void loadUserData() {\n\t\t// Load and update all profile views\n\n\t\t// Load profile photo from internal storage\n\t\ttry {\n\t\t\t// open the file using a file input stream\n\t\t\tFileInputStream fis = openFileInput(getString(R.string.profile_photo_file_name));\n\t\t\t// the file's data will be read into a bytearray output stream\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\t\t// inputstream -> buffer -> outputstream\n\t\t\tbyte[] buffer = new byte[5 * 1024];\n\t\t\tint n;\n\t\t\t// read data in a while loop\n\t\t\twhile ((n = fis.read(buffer)) > -1) {\n\t\t\t\tbos.write(buffer, 0, n); // Don't allow any extra bytes to creep\n\t\t\t\t// in, final write\n\t\t\t}\n\t\t\tfis.close();\n\t\t\t// get the byte array from the ByteArrayOutputStream\n\t\t\tbytePhoto = bos.toByteArray();\n\t\t\tbos.close();\n\t\t} catch (IOException e) {\n\t\t}\n\n\t\t// load the byte array to the image view\n\t\tloadImage();\n\n\t\t// Get the shared preferences - create or retrieve the activity\n\t\t// preference object.\n\t\tString mKey = getString(R.string.preference_name);\n\t\tSharedPreferences mPrefs = getSharedPreferences(mKey, MODE_PRIVATE);\n\n\t\t// Load name\n\t\tmKey = getString(R.string.name_field);\n\t\tString mValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editName)).setText(mValue);\n\n\t\t// Load class info\n\t\tmKey = getString(R.string.class_field);\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editClass)).setText(mValue);\n\n\t\t// Load Major\n\t\tmKey = getString(R.string.major_field);\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editMajor)).setText(mValue);\n\n\t\t// Load course information\n\t\t// Course 1 name\n\t\tmKey = \"Course #1 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse1name)).setText(mValue);\n\n\t\t// Course 1 Time\n\t\tmKey = Globals.COURSE1_TIME_KEY;\n\t\tSpinner mSpinnerSelection = (Spinner) findViewById(R.id.course1TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #1 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse1loc)).setText(mValue);\n\n\t\t// Course 2\n\t\tmKey = \"Course #2 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2name)).setText(mValue);\n\n\t\t// Course 2 Time\n\t\tmKey = Globals.COURSE2_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course2TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #2 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2loc)).setText(mValue);\n\n\t\t// Course 3\n\t\tmKey = \"Course #3 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse2name)).setText(mValue);\n\n\t\t// Course 3 Time\n\t\tmKey = Globals.COURSE3_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course3TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #3 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse3loc)).setText(mValue);\n\n\t\t// Course 4\n\t\tmKey = \"Course #4 Name\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse4name)).setText(mValue);\n\n\t\t// Course 4 Time\n\t\tmKey = Globals.COURSE4_TIME_KEY;\n\t\tmSpinnerSelection = (Spinner) findViewById(R.id.course4TimeSpinner);\n\t\tmSpinnerSelection.setSelection(mPrefs.getInt(mKey, 0));\n\n\t\tmKey = \"Course #4 Location\";\n\t\tmValue = mPrefs.getString(mKey, \"\");\n\t\t((EditText) findViewById(R.id.editCourse4loc)).setText(mValue);\n\t}", "public List<User> getPotFriends() {\n //friends;\n compareMajor();\n compareClasses();\n compareLanguage();\n Collections.sort(friends);\n return friends;\n }", "@Override\r\n\t\tpublic List<EObject> caseProfile(Profile object) {\r\n\t\t\tList<EObject> result = safeList(basicGetContentsToMerge(object,\r\n\t\t\t\tphase), phase);\r\n\r\n\t\t\tresult.remove(object.getEAnnotation(PROFILE_DIAGRAMS_ANNOTATION));\r\n\r\n\t\t\treturn result;\r\n\t\t}", "private ResultPagingVO readCommonCtrlItemAndPropList(HttpServletRequest req, String objectType) {\n\n\t\tResultPagingVO resultVO = new ResultPagingVO();\n\t\tHashMap<String, Object> options = new HashMap<String, Object>();\n\n\t\t// << options >>\n\t\tString searchKey = ((req.getParameter(\"keyword\") != null) ? req.getParameter(\"keyword\").replace(\"_\", \"\\\\_\")\n\t\t\t\t: \"\");\n\n\t\t// search keyword\n\t\toptions.put(\"searchKey\", searchKey);\n\n\t\t// << paging >>\n\t\tString paramOrderColumn = req.getParameter(\"orderColumn\");\n\t\tString paramOrderDir = req.getParameter(\"orderDir\");\n\t\tString paramStart = StringUtils.defaultString(req.getParameter(\"start\"), \"0\");\n\t\tString paramLength = StringUtils.defaultString(req.getParameter(\"length\"), \"10\");\n\n\t\t// << Order >>\n\t\tif (\"chConfName\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.OBJ_NM\");\n\t\t} else if (\"chModUser\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.MOD_USER_ID\");\n\t\t} else if (\"chRegUser\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.REG_USER_ID\");\n\t\t} else if (\"chConfId\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.OBJ_ID\");\n\t\t} else if (\"chModDate\".equalsIgnoreCase(paramOrderColumn)) {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.MOD_DT\");\n\t\t} else {\n\t\t\toptions.put(\"paramOrderColumn\", \"M.OBJ_ID\");\n\t\t}\n\n\t\tif (\"DESC\".equalsIgnoreCase(paramOrderDir)) {\n\t\t\toptions.put(\"paramOrderDir\", \"DESC\");\n\t\t} else {\n\t\t\toptions.put(\"paramOrderDir\", \"ASC\");\n\t\t}\n\t\tif (\"desc\".equalsIgnoreCase(paramOrderDir)) {\n\t\t\toptions.put(\"defaultOrderValue\", \"힣힣힣힣힣힣힣\");\n\t\t\toptions.put(\"defaultOrderSecondValue\", \"힣힣힣힣힣힣힢\");\n\t\t} else {\n\t\t\toptions.put(\"defaultOrderValue\", null);\n\t\t\toptions.put(\"defaultOrderSecondValue\", null);\n\t\t}\n\t\toptions.put(\"paramStart\", Integer.parseInt(paramStart));\n\t\toptions.put(\"paramLength\", Integer.parseInt(paramLength));\n\n\t\toptions.put(\"mngObjTp\", objectType);\n\n\t\ttry {\n\n\t\t\tresultVO = ctrlMstService.readCtrlItemAndPropListPaged(options);\n\t\t\tresultVO.setDraw(String.valueOf(req.getParameter(\"page\")));\n\t\t\tresultVO.setOrderColumn(paramOrderColumn);\n\t\t\tresultVO.setOrderDir(paramOrderDir);\n\t\t\tresultVO.setRowLength(paramLength);\n\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readClientConfList : {}, {}, {}\", GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR), ex.toString());\n\t\t\tresultVO = null;\n\t\t}\n\n\t\treturn resultVO;\n\t}", "public JavaproductModel getreviewList(JavaproductModel oJavaproductModel){\n\n /* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Find the product of which the review resource list is needed*/\n oJavaproductModel = (JavaproductModel) hibernateSession.get(JavaproductModel.class, oJavaproductModel.getproductId());\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaproductModel;\n }", "private void checkRights() {\n image.setEnabled(true);\n String user = fc.window.getUserName();\n \n for(IDataObject object : objects){\n ArrayList<IRights> rights = object.getRights();\n \n if(rights != null){\n boolean everybodyperm = false;\n \n for(IRights right : rights){\n String name = right.getName();\n \n //user found, therefore no other check necessary.\n if(name.equals(user)){\n if(!right.getOwner()){\n image.setEnabled(false);\n }else{\n image.setEnabled(true);\n }\n return;\n //if no user found, use everybody\n }else if(name.equals(BUNDLE.getString(\"Everybody\"))){\n everybodyperm = right.getOwner();\n }\n }\n image.setEnabled(everybodyperm);\n if(!everybodyperm){\n return;\n }\n }\n }\n }", "protected void computeOWLOntologyObjectPropertyUsage(){\n\t\tfor(OWLOntology ont : super.getOntologies()){\n\t\t\tfor(OWLObjectProperty prop : ont.getObjectPropertiesInSignature()){\n\t\t\t\t\n\t\t\t\tint objectPropUsageInt = getOWLObjectPropertyUsage(prop);\n\t\t\t\t\n\t\t\t\tobjectPropertyUsageMap.put(prop, objectPropUsageInt);\n\t\t\n\t\t\t\t//find the class with the maximum usage \n\t\t\t\t//In these exclude the owl:thing class because\n\t\t\t\t//this information is redundant \n\t\t\t\tif (!prop.isTopEntity()) {\n\t\t\t\t\tif(max < objectPropUsageInt){\n\t\t\t\t\t\tmax = objectPropUsageInt;\n\t\t\t\t\t\tpropertyWithMaxUsage = prop;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private ObjectListDataProvider getObjectListDataProvider() {\n return this.getLdpGrupoFamiliar();\n }", "public static void printListOfAssignmentsPerCourse() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"~~~~~~~~~Select the course to see the Assignments~~~~~~~~~\");\n boolean caseCheck = false;\n String flag = \"Y\";\n do {\n if (flag.equalsIgnoreCase(\"Y\")) {\n SchoolCourse chosenSchoolCourse = schoolCourseSelection();\n for (int i = 0; i < chosenSchoolCourse.getListOfAssignmentsPerCourse().size(); i++) {\n System.out.println((i + 1) + \") \" + chosenSchoolCourse.getListOfAssignmentsPerCourse().get(i));\n System.out.println(\"\");\n }\n } else if (flag.equalsIgnoreCase(\"N\")) {\n return;\n } else {\n\n System.err.println(\"Invalid Answer, type: Y or N\");\n\n }\n System.out.println(\"Do you want to check another Course? (Y / N)\");\n flag = input.nextLine();\n } while (caseCheck == false);\n }", "com.google.ads.googleads.v6.resources.Recommendation getRecommendation();", "private void printRecommendation(){\n\t\t\n\t\tSystem.out.println( \"\\n\\nRecommendations for you to save money......\");\n\t\t\n\t\tSystem.out.println( \"\\n\\n\\tBest restaurants ......\");\n\t\tfor(int i = 0 ; i < 3 ; i++){\n\t\t\tif(restaurantTransactions.size() > 0){\n\t\t\t\tSystem.out.println( \"\\t\\t\"+(i+1) +\".\"+ restaurantTransactions.pollFirst().getName());\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println( \"\\n\\tBest markets ......\");\n\t\tfor(int i = 0 ; i < 3 ; i++){\n\t\t\tif(marketTransactions.size() > 0){\n\t\t\t\tSystem.out.println( \"\\t\\t\"+(i+1) +\".\"+ marketTransactions.pollFirst().getName());\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println( \"\\n\\tBest housing options ......\");\n\t\tfor(int i = 0 ; i < 3 ; i++){\n\t\t\tif(stayTransactions.size() > 0){\n\t\t\t\tSystem.out.println( \"\\t\\t\"+(i+1) +\".\"+ stayTransactions.pollFirst().getName().substring(0,42));\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println( \"\\n\\tBest gas pump stations ......\");\n\t\tfor(int i = 0 ; i < 3 ; i++){\n\t\t\tif(gaspumpTransactions.size() > 0){\n\t\t\t\tSystem.out.println( \"\\t\\t\"+(i+1) +\".\"+ gaspumpTransactions.pollFirst().getName());\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nTIPS and Strategies for you to save more money........\");\n\t\t\n\t\tint counter = 1;\n\t\t\n\t\tfloat totalAmountTaxi = 0;\n\t\tint numTimesToMarket = 0;\n\t\tint numTimesToRestaurant = 0;\n\t\t\n\t\t\n\t\tfor(String transactionKey: userData.keySet()){\n\t\t\t\n\t\t\tif(userData.get(transactionKey).getCategory() == 'T'){\n\t\t\t\ttotalAmountTaxi += userData.get(transactionKey).getTotalAmountSpend();\n\t\t\t}\n\t\t\telse if(userData.get(transactionKey).getCategory() == 'M'){\n\t\t\t\tnumTimesToMarket += userData.get(transactionKey).getFrequency();\n\t\t\t}\n\t\t\telse if(userData.get(transactionKey).getCategory() == 'R'){\n\t\t\t\tnumTimesToRestaurant += userData.get(transactionKey).getFrequency();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(totalAmountTaxi > 1500){\n\t\t\tSystem.out.println( \"\\n\\t\" + counter++ +\".Plan to buy a vehicle.\"\n\t\t\t\t\t+ \"\\n\\n\\t It would be better if you buy a car for the time being\"\n\t\t\t\t\t+ \"\\n\\t as the average expense for taxis are more.\"\n\t\t\t\t\t+ \"Also once you are done with the trip you\\n\\t can sell it off.\");\n\t\t}\n\t\t\n\t\tif(totalAmountTaxi < 1500)\n\t\t{\t\tSystem.out.println( \"\\n\\t\" + counter++ +\".Prefer taxi over buying a car.\"\n\t\t\t\t\t+ \"\\n\\n\\t It would be better if you prefer taxi instead of buying a car\"\n\t\t\t\t\t+ \"\\n\\t as the average expense for travel are comparitively less.\");\n\t\t}\n\t\t\n\t\tif(numTimesToMarket > 48){\n\t\t\tSystem.out.println( \"\\n\\t\" + counter++ +\".Switch to online shopping.\"\n\t\t\t\t\t+ \"\\n\\n\\t It would be better if you prefer online shopping \"\n\t\t\t\t\t+ \"instead of going market\\n\\t which saves time also for you\");\n\t\t}\n\t\t\n\t if(numTimesToRestaurant > 300){\n\t\t System.out.println( \"\\n\\t\" + counter++ +\".Prefer cooking instead going restaurants.\"\n\t\t\t\t\t+ \"\\n\\n\\t It would be better if you prefer cooking \"\n\t\t\t\t\t+ \"instead of going resturants / pubs\\n\\t which saves more money for you\");\n\t\t\n\t }\n\t \n\t System.out.println(\"\\n\\n\\nGenerating file \\\"Report_Unknown_Transactions.txt\\\" \"\n\t \t\t+ \"for unknown transactions .... Please check....\");\n\t \n\t try{\n\t \tPrintWriter writer = new PrintWriter(\"Report_Unknown_Transactions.txt\", \"UTF-8\");\n\n\t \t writer.println(\"\\n\\nList of the unknown transactions .. \\n\\n\");\n\t\t for(TransactionData unknownData :unknownTransactions ){\n\t\t\t\twriter.println(unknownData.getName());\n\t\t\t}\n\t\t writer.println(\"\\n\\nPlease check README/TransactionDataInfokey.txt to know how can you\"+\n\t\t \t\t\t\" help me to identify the unknown transactions .. \");\n\t\t writer.close();\n\t }\n\t catch(Exception e){\n\t \tSystem.out.println(\"Unable to create the report . Please check permission \"\n\t \t\t\t+ \"or ensure disk space..\");\n\t }\n\t\t\n\t\t\n\t}", "public List<MovieDTO> getRecommendations(final long thisUserId, final int maxSize) {\n\n\t\tisTrue(thisUserId >= 0, \"The user id cannot be negative.\");\n\t\tisTrue(maxSize >= 0, \"The maximum recommendations size cannot be negative.\");\n\n\n\t\tfinal Map<Long, Double> otherSimilarUsers = userProfiler.getSimilarUsers(thisUserId);\n\n\t\tLOGGER.debug(\"Found [\" + otherSimilarUsers.size() +\"] similar users ...\");\n\n\n\t\tfinal double thisUserAverageRating = ratingRepository.findAverageByUserId(thisUserId);\n\n\t\tfinal Map<Long, MovieEntity> movieEntities = movieRepository.findAllNotViewedByThisUserButViewedByOtherUsers(thisUserId, newLinkedList(otherSimilarUsers.keySet()))\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.parallelStream()\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.collect(toMap(MovieEntity::getId, identity()));\n\n\t\tLOGGER.debug(\"Found [\" + movieEntities.size() +\"] candidate recommended movies ...\");\n\n\n\t\tfinal Map<Long, Double> predictedRatings = newHashMap();\n\n\n\t\tfor (final Long movieId : movieEntities.keySet()) {\n\n\t\t\tdouble numerator = 0D;\n\t\t\tdouble denominator = 0D;\n\n\n\t\t\tfor (final Long otherUserId : otherSimilarUsers.keySet()) {\n\n\t\t\t\tdouble matchScore = otherSimilarUsers.get(otherUserId);\n\n\n\t\t\t\tfinal Optional<RatingEntity> optionalRatingEntity = ratingRepository.findByUserIdAndMovieId(otherUserId, movieId);\n\n\t\t\t\tif (optionalRatingEntity.isPresent()) {\n\n\t\t\t\t\tfinal double otherUserMovieRating = optionalRatingEntity.get().getRating();\n\n\t\t\t\t\tfinal double otherUserAverageRating = ratingRepository.findAverageByUserId(otherUserId);\n\n\n\t\t\t\t\tnumerator += matchScore * (otherUserMovieRating - otherUserAverageRating);\n\n\t\t\t\t\tdenominator += abs(matchScore);\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tdouble predictedRating = 0D;\n\n\t\t\tif (denominator > 0D) {\n\n\t\t\t\tpredictedRating = thisUserAverageRating + (numerator / denominator);\n\n\n\t\t\t\tif (predictedRating > MAX_RATING_SCORE) {\n\n\t\t\t\t\tpredictedRating = MAX_RATING_SCORE;\n\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tLOGGER.debug(\"MovieId: [\" + movieId + \"] - predicted rating: [\" + predictedRating + \"]\");\n\n\t\t\tpredictedRatings.put(movieId, predictedRating);\n\t\t}\n\n\n\t\tfinal Map<Long, Double> recommendationsSorted = newTreeMap(new MapValueComparator(predictedRatings));\n\n\t\trecommendationsSorted.putAll(predictedRatings);\n\n\n\t\tLOGGER.debug(\"Returning the top-most [\" + maxSize + \"] recommended movies ...\");\n\n\t\treturn recommendationsSorted\n\t\t\t\t\t\t\t\t.entrySet()\n\t\t\t\t\t\t\t\t\t.stream()\n\t\t\t\t\t\t\t\t\t\t.limit(maxSize)\n\t\t\t\t\t\t\t\t\t\t.map(entry -> new MovieDTO( movieEntities.get(entry.getKey()).getPlainTitle(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetMovieDescription(theMovieDBClient, movieEntities.get(entry.getKey())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getPlainTitle()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.replaceAll(\".*?\\\\(.*?\\\\).*?\",\"\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(\",\", \"\")),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmovieEntities.get(entry.getKey()).getYear(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmovieEntities.get(entry.getKey()).getRating()))\n\t\t\t\t\t\t\t\t\t\t.collect(toList());\n\t}", "private String runRecommendation(LeagueOfLegendsAccount account, String difficultyLevel) {\r\n if (difficultyLevel.equals(\"Beginner\")) {\r\n return championRecommendation(account, \"Beginner\");\r\n } else if (difficultyLevel.equals(\"Novice\")) {\r\n return championRecommendation(account, \"Novice\");\r\n } else if (difficultyLevel.equals(\"Advanced\")) {\r\n return championRecommendation(account, difficultyLevel);\r\n } else {\r\n return \"Not an existing classification of difficulty (Beginner, Novice, Advanced)\";\r\n }\r\n }", "public abstract Properties getProfileProperties();", "public Object getFacet(String name, IProfile profile, Object targetObject);", "List<ProfileStatusReader> getActiveProfiles();", "private static void print_Assignment(Gradebook gradebook, String[] flags) {\n //sort grades highest to lowest\n if (flags[3] != null && flags[3].equals(\"G\")) {\n List<Student> studentList = gradebook.getAllStudents();\n Map<Integer, Set<Student>> gradeToName = new HashMap<Integer, Set<Student>>();\n Set<Integer> grades = new HashSet<Integer>();\n\n for(Student s : studentList){\n Assignment assign = gradebook.getAssignment(flags[0]);\n Map<Assignment, Integer> gradeMap = gradebook.getStudentGrades(s);\n Integer grade = gradeMap.get(assign);\n\n Set<Student> studs = gradeToName.get(grade);\n if(studs == null){\n\n studs = new HashSet<Student>();\n }\n\n studs.add(s);\n gradeToName.put(grade, studs);\n grades.add(grade);\n }\n\n List<Integer> sortedList = new ArrayList<Integer>(grades);\n Collections.sort(sortedList, Collections.reverseOrder());\n\n for(Integer i : sortedList){\n Set<Student> studs = gradeToName.get(i);\n for(Student s : studs)\n System.out.println(\"(\" + s.getLast() + \", \" + s.getFirst() + \", \" + i + \")\");\n }\n\n // sort display aplhabetically\n } else if (flags[4] != null && flags[4].equals(\"A\")){\n //compare override class at bottom of file\n List<Student> studentsAlpha = gradebook.getAllStudents();\n Collections.sort(studentsAlpha, new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n if ( o2.getLast().compareToIgnoreCase(o1.getLast()) == 0) {\n return o1.getFirst().compareToIgnoreCase(o2.getFirst());\n } else {\n return o1.getLast().compareToIgnoreCase(o2.getLast());\n }\n }\n });\n\n for (Student stud: studentsAlpha) {\n // flags[0] should be assign name\n System.out.println(\"(\" + stud.getLast() + \", \" + stud.getFirst() + \", \" + gradebook.getPointsAssignment(stud, gradebook.getAssignment(flags[0])) + \")\");\n }\n\n } else {\n throw new IllegalArgumentException(\"Please specify if you want the display to be alphabetical or by grades highest to lowest.\");\n }\n return;\n }", "private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }", "org.beangle.security.session.protobuf.Model.Profile getProfiles(int index);", "@Override\r\n public List<RecommendedItem> filter(List<RecommendedItem> recommendedList) {\r\n if (recommendedList != null && recommendedList.size() > 0) {\r\n if ((userIdList != null && userIdList.size() > 0) || (itemIdList != null && itemIdList.size() > 0)) {\r\n \t//从userIdList中,选出recommendedList包含的用户集合\r\n Set<RecommendedItem> filterRecommendedSet = new HashSet<>();//无序不重复\r\n filter(userIdList, recommendedList, filterRecommendedSet, \"user\");\r\n //在上述用户集合的基础上,再从itemIdList中,选出recommendedList包含的物品集合\r\n List<RecommendedItem> tempRecommendedList = new ArrayList<>(filterRecommendedSet);//修改\r\n Set<RecommendedItem> tempFilterRecommendedSet = new HashSet<>();//修改;无序不重复\r\n filter(itemIdList, tempRecommendedList,tempFilterRecommendedSet , \"item\");//修改\r\n return new ArrayList<>(tempFilterRecommendedSet);//修改\r\n }\r\n }\r\n return recommendedList;\r\n }", "@Override\n\tpublic UserProfile getUserInformations(UserProfile userProfile)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public LinkedList<Curve> getSelectedProfiles() {\r\n\t\tLinkedList<Curve> retList = new LinkedList<>();\r\n\t\t/**\r\n\t\t * Enable access to the imported profiles only if the import button was\r\n\t\t * pressed.\r\n\t\t */\r\n\t\tif (enableAccessToImpProfile) {\r\n\t\t\tString infoMessage = null;\r\n\t\t\tint len = Integer.parseInt(textfieldLenCorrection.getText());\r\n\t\t\tfor (Curve p : parsedProfiles) {\r\n\t\t\t\tif (selectedProfiles.get(parsedProfiles.indexOf(p)) == true) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * Check if length correction is enabled\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (cbEnableLenCorrect.isSelected()) {\r\n\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t * Add the profiles according to the length correction\r\n\t\t\t\t\t\t * definition\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tretList.add(new Curve(p.getName(), p.getYequiX( len ) ));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/**\r\n\t\t\t\t\t\t * If no length correction is enabled check against the\r\n\t\t\t\t\t\t * minimum number of required data points and correct\r\n\t\t\t\t\t\t * automatically if smaller.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (p.size() < minRequiredDataPoints) {\r\n\t\t\t\t\t\t\t// interpolate to minimal point number\r\n\t\t\t\t\t\t\tretList.add(new Curve(p.getName(),\r\n\t\t\t\t\t\t\t\t\tp.getYequiX(minRequiredDataPoints)\r\n\t\t\t\t\t\t\t\t\t));\r\n\t\t\t\t\t\t\tif (infoMessage == null)\r\n\t\t\t\t\t\t\t\tinfoMessage = new String();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tinfoMessage += \"> Profile \" + p.getName()\r\n\t\t\t\t\t\t\t\t\t+ \" = \" + p.size()\r\n\t\t\t\t\t\t\t\t\t+ \" data points\\n\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tretList.add(p);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**\r\n\t\t\t * Show user information if automatically length correction was\r\n\t\t\t * performed\r\n\t\t\t */\r\n\t\t\tif (infoMessage != null) {\r\n\t\t\t\tString additionalInfo = \"The following profiles had less than \"\r\n\t\t\t\t\t\t+ minRequiredDataPoints\r\n\t\t\t\t\t\t+ \" data points.\\n\"\r\n\t\t\t\t\t\t+ \"These profiles were interpolated.\\n\\n\";\r\n\t\t\t\tString title = \"Length correction information\";\r\n\t\t\t\tJOptionPane.setDefaultLocale(Locale.ENGLISH);\r\n\t\t\t\tJOptionPane.showMessageDialog(null, additionalInfo\r\n\t\t\t\t\t\t+ infoMessage, title, JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn retList;\r\n\t}", "public ResourceReadPolicy getReadPolicy(Class<?> resourceClass, User user)\n\t{\n\t\tString resourceAlias = resourceClass.getSimpleName();\n\t\tresourceAlias = resourceAlias.substring(0, 1).toLowerCase() + resourceAlias.substring(1);\n\t\tString projectAlias = \"project\";\n\t\t\n\t\tif (this.getLogicOperator() == LogicOperator.AND)\n\t\t{\n\t\t\tResourceReadPolicy readPolicy = new ResourceReadPolicy();\n\n\t\t\tif (this.isEntityAccessGranted(user))\n\t\t\t{\n\t\t\t\treadPolicy.setReadGranted(true);\n\t\t\t\tString conditions = this.readAttributeAndFieldPolicies(resourceAlias, projectAlias, user);\n\t\t\t\t\n\t\t\t\tfor (AbacPolicy subPolicy : this.getSubPolicies())\n\t\t\t\t{\n\t\t\t\t\tif (subPolicy.isEntityAccessGranted(user))\n\t\t\t\t\t{\n\t\t\t\t\t\tString groupConditions = subPolicy.readAttributeAndFieldPolicies(resourceAlias, projectAlias, user);\n\t\t\t\t\t\tif (conditions.isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tconditions = groupConditions;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (!groupConditions.isEmpty())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tconditions = conditions + \" \" + this.logicOperator + \" \" + groupConditions;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse // If subgroup entity access is not granted\n\t\t\t\t\t{\n\t\t\t\t\t\treadPolicy.setReadGranted(false);\n\t\t\t\t\t\treadPolicy.setReadConditions(null);\n\t\t\t\t\t\treturn readPolicy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treadPolicy.setReadConditions(conditions);\n\t\t\t\treturn readPolicy;\n\t\t\t}\n\t\t\telse // If group entity access is not granted\n\t\t\t{\n\t\t\t\treadPolicy.setReadGranted(false);\n\t\t\t\treturn readPolicy;\n\t\t\t}\n\t\t}\n\t\telse // If Logic Operator is OR \n\t\t{\n\t\t\tResourceReadPolicy resourceReadPolicy = new ResourceReadPolicy();\n\t\t\t\n\t\t\tif (this.isEntityAccessGranted(user))\n\t\t\t{\n\t\t\t\tresourceReadPolicy.setReadGranted(true);\n\t\t\t\tresourceReadPolicy.setReadConditions(this.readAttributeAndFieldPolicies(resourceAlias, projectAlias, user));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (AbacPolicy subPolicy : this.getSubPolicies())\n\t\t\t{\n\t\t\t\tResourceReadPolicy groupReadPolicy = subPolicy.readGroupPolicy(resourceAlias, projectAlias, user);\n\t\t\t\tif (groupReadPolicy.isReadGranted())\n\t\t\t\t{\n\t\t\t\t\tresourceReadPolicy.setReadGranted(true);\n\t\t\t\t\t\n\t\t\t\t\tString conditions = resourceReadPolicy.getReadConditions();\n\t\t\t\t\tif (conditions.isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tconditions = groupReadPolicy.getReadConditions();\n\t\t\t\t\t}\n\t\t\t\t\telse if (!groupReadPolicy.getReadConditions().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tconditions += \" \" + this.logicOperator + \" \" + groupReadPolicy.getReadConditions();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tresourceReadPolicy.setReadConditions(conditions);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn resourceReadPolicy;\n\t\t}\n\t}", "@RequestMapping(value = \"/LoadCourse.htm\", method = RequestMethod.GET)\n public void LoadCourse(HttpServletRequest request, HttpServletResponse response) throws IOException {\n response.setContentType(\"application/json\");\n PrintWriter out = response.getWriter();\n User active_user = GenUtils.getActiveUser();\n String instructor_email = active_user.getEmail();\n if (instructor_email== null) {\n System.out.print(\"There is no active_user\");\n }\n else{\n System.out.println(\"instructor email: \"+instructor_email);\n ArrayList<CourseBean> newList= isOwned(instructor_email);\n System.out.println(CourseListJson(newList));\n out.println(CourseListJson(newList));\n }\n }", "@GetMapping(value = \"/\")\n\tpublic String getMyProfile(Model model) {\t\t\n\t\tlong profileId =3; \n\t\tSystem.out.println(\"Mapping done for profile id\"+profileId);\n\t\tProfile profile = profileService.getProfile(profileId);\n\t\tList<Education> edu = educationService.getEducationList();\n Address address = addressService.getAddress(profileId);\n List<WorkExp> workExpList = workExpService.getWorkExpList();\n List<AreaOfExpertise> areaOfExpertiseList = areaOfExpertiseService.getAreaOfExpertiseList();\n List<Project> projectList = projectService.getProjectsList();\n List<Skill> skillsList =skillService.getSkill();\n\t\tmodel.addAttribute(\"Profile\",profile);\n\t\tmodel.addAttribute(\"Address\",address);\n\t\tmodel.addAttribute(\"EducationList\",edu);\n\t\tmodel.addAttribute(\"WorkExpList\",workExpList);\n\t\tmodel.addAttribute(\"AreaOfExpertiseList\",areaOfExpertiseList);\n\t\tmodel.addAttribute(\"ProjectList\",projectList);\n\t\tmodel.addAttribute(\"SkillsList\",skillsList);\n\t\treturn \"home\";\n\t\t}", "private void getTeacherDetails() {\n\t\tString tag_string_req = \"req_login\";\n\n\t\tpDialog.setMessage(\"Please wait ...\");\n\t\tshowDialog();\n\n\t\tStringRequest strReq = new StringRequest(Request.Method.GET,\n\t\t\t\tAppConfig.BASE_URL + \"viewprofilemembers/\" + User_id,\n\t\t\t\tnew Response.Listener<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\tLog.d(TAG, \"Login Response: \" + response.toString());\n\t\t\t\t\t\thideDialog();\n\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\tJSONObject json = new JSONObject(response);\n\t\t\t\t\t\t\tJSONObject resp = json.getJSONObject(\"response\");\n\t\t\t\t\t\t\tJSONArray studentdetails = resp\n\t\t\t\t\t\t\t\t\t.getJSONArray(\"users\");\n\n\t\t\t\t\t\t\tfor (int i = 0; i < studentdetails.length(); i++) {\n\n\t\t\t\t\t\t\t\tJSONObject c = studentdetails.getJSONObject(i);\n\n\t\t\t\t\t\t\t\ttFirstame = c.getString(\"firstname\");\n\n\t\t\t\t\t\t\t\ttLastname = c.getString(\"lastname\");\n\t\t\t\t\t\t\t\ttaddress = c.getString(\"address\");\n\t\t\t\t\t\t\t\t// tphone = c1.getString(\"phone1\");\n\t\t\t\t\t\t\t\ttmobile = c.getString(\"mobile\");\n\t\t\t\t\t\t\t\ttemail = c.getString(\"email\");\n\t\t\t\t\t\t\t\ttusername = c.getString(\"username\");\n\t\t\t\t\t\t\t\ttpassword = c.getString(\"password\");\n\t\t\t\t\t\t\t\ttqualification = c.getString(\"education\");\n\t\t\t\t\t\t\t\tthobbies = c.getString(\"hobbies\");\n\n\t\t\t\t\t\t\t\tuPhotopath = c.getString(\"photo\");\n\n\t\t\t\t\t\t\t\t//tname.setText(tFirstame + \" \" + tLastname);\n\t\t\t\t\t\t\t\ttFname.setText(tFirstame);\n\t\t\t\t\t\t\t\t//tLname.setHint(tLastname);\n\t\t\t\t\t\t\t\ttAddress.setText(taddress);\n\t\t\t\t\t\t\t\t// tPhone.setHint(tphone);\n\t\t\t\t\t\t\t\ttMobile.setText(tmobile);\n\t\t\t\t\t\t\t\ttEmail.setText(temail);\n\t\t\t\t\t\t\t\ttUsername.setText(tusername);\n\t\t\t\t\t\t\t\ttPassword.setText(tpassword);\n\t\t\t\t\t\t\t\ttQualification.setText(tqualification);\n\t\t\t\t\t\t\t\ttHobbies.setText(thobbies);\n\t\t\t\t\t\t\t\tif (uPhotopath != null) {\n\n\n\n\n\n\t\t\t\t\t\t\t\t\tnew DownloadImageTask(iv)\n\t\t\t\t\t\t\t\t\t\t\t.execute(AppConfig.CLIENT_URL\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"../uploads/\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ uPhotopath);\n\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\"Sorry there is no Image\",\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// iv.setImageURI(uPhotopath);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * else if (i == 1) { JSONArray studentnoArray = c\n\t\t\t\t\t\t\t * .getJSONArray(\"teaching_sub\");\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * for (int k = 0; k < studentnoArray.length(); k++)\n\t\t\t\t\t\t\t * { JSONObject c2 = studentnoArray\n\t\t\t\t\t\t\t * .getJSONObject(k); String assign_class = c2\n\t\t\t\t\t\t\t * .getString(\"ClassName\"); String subject = c2\n\t\t\t\t\t\t\t * .getString(\"SubjectName\"); tteaching_sub =\n\t\t\t\t\t\t\t * assign_class + \"-\" + subject;\n\t\t\t\t\t\t\t * teachingSub.add(tteaching_sub); } }\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\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}, new Response.ErrorListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\tLog.e(TAG, \"Data Error: \" + error.getMessage());\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\terror.getMessage(), Toast.LENGTH_LONG).show();\n\t\t\t\t\t\thideDialog();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t// Adding request to request queue\n\t\tAppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n\n\t}", "@RequestMapping(\"chooseRdpOrConsoleGloab\")\n @ResponseBody\n public String chooseRdpOrConsoleGloab(@RequestParam(value = \"rdpOrConsole\", required = false) String rdpOrConsole,\n ModelMap map, HttpServletRequest request) {\n \t_LOG.info(\"chooseRdpOrConsoleGloab().............................\");\n HttpSession session = request.getSession();\n User user = (User) session.getAttribute(\"user\");\n String instructorName = user.getUserName();\n \n if(user.getType().equals(\"attendees\")){\n \t_LOG.info(\"returning attendees..............\");\n \treturn \"<html><script>alert(\\\"You are Not Authorized User\\\");</script></html>\";\n }\n \n ApplicationContainer applicationContainer = ApplicationContainer.getInstance();\n\n String contextDataKey = user.getEventId() + Event.contextDataFlag;\n List<VAppModel> vAppModelList = (List<VAppModel>) applicationContainer.getObject(contextDataKey);\n\n InstructorGloab gloabInstructor = new InstructorGloab();\n gloabInstructor.setInstructorName(instructorName);\n gloabInstructor.setGloabOption(true);\n\n for (int i = 0; i < vAppModelList.size(); i++) {\n for (int j = 0; j < vAppModelList.get(i).getVmModelList().size(); j++) {\n if (vAppModelList.get(i).getVmModelList().get(j).getIsWindows() != null\n //&& vAppModelList.get(i).getVmModelList().get(j).getIsWindows() == true) {\n \t) {\n if (rdpOrConsole.equals(\"showRdp\")) {\n\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(true);\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(false);\n gloabInstructor.setGloabConsole(false);\n gloabInstructor.setGloabRdp(true);\n } else if (rdpOrConsole.equals(\"showConsole\")) {\n\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(true);\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(false);\n gloabInstructor.setGloabConsole(true);\n gloabInstructor.setGloabRdp(false);\n } else if (rdpOrConsole.equals(\"showBoth\")) {\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(true);\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(true);\n gloabInstructor.setGloabConsole(true);\n gloabInstructor.setGloabRdp(true);\n }\n } else {\n vAppModelList.get(i).getVmModelList().get(j).setVmRdp(false);\n vAppModelList.get(i).getVmModelList().get(j).setVmConsole(true);\n }\n\n }\n }\n\n session.setAttribute(\"instructorGloabOption\", gloabInstructor);\n applicationContainer.setObject(contextDataKey, vAppModelList);\n return \"ok\";\n }", "public Boolean getProfile()\n {\n return profile;\n }", "public abstract LearningEditProposal getBestEdit (boolean onlyAllowedEdits, boolean onlyPositiveEdits);", "public interface ProfileType\n {\n /**\n * Parent profile type\n */\n String ADMIN = \"0\";\n\n /**\n * remeber profile type\n */\n String GENERAL = \"1\";\n }", "private String[] evaluate()\n {\n //there must be some recommender selected by the user on the UI\n if (selectedRecommenderPanel.getObject() == null\n || selectedRecommenderPanel.getObject().getTool() == null) {\n LOG.error(\"Please select a recommender from the list\");\n return null;\n }\n\n //get all the source documents related to the project\n Map<SourceDocument, AnnotationDocument> listAllDocuments = documentService\n .listAllDocuments(project, userDao.getCurrentUser());\n\n //create a list of CAS from the pre-annotated documents of the project\n List<CAS> casList = new ArrayList<>();\n listAllDocuments.forEach((source, annotation) -> {\n try {\n CAS cas = documentService.createOrReadInitialCas(source);\n casList.add(cas);\n }\n catch (IOException e1) {\n LOG.error(\"Unable to render chart\", e1);\n return;\n }\n });\n \n IncrementalSplitter splitStrategy = new IncrementalSplitter(TRAIN_PERCENTAGE,\n INCREMENT, LOW_SAMPLE_THRESHOLD);\n\n @SuppressWarnings(\"rawtypes\")\n RecommendationEngineFactory factory = recommenderRegistry\n .getFactory(selectedRecommenderPanel.getObject().getTool());\n RecommendationEngine recommender = factory.build(selectedRecommenderPanel.getObject());\n \n if (recommender == null) {\n LOG.warn(\"Unknown Recommender selected\");\n return null;\n }\n \n if (!evaluate) {\n return getEvaluationScore(evaluationResults);\n }\n\n evaluationResults = new ArrayList<EvaluationResult>();\n \n // create a list of comma separated string of scores from every iteration of\n // evaluation.\n while (splitStrategy.hasNext()) {\n splitStrategy.next();\n\n try {\n EvaluationResult evaluationResult = recommender.evaluate(casList, splitStrategy);\n \n if (evaluationResult.isEvaluationSkipped()) {\n LOG.warn(\"Evaluation skipped. Chart cannot to be shown\");\n continue;\n }\n\n evaluationResults.add(evaluationResult);\n }\n catch (RecommendationException e) {\n LOG.error(e.toString(),e);\n continue;\n }\n }\n\n return getEvaluationScore(evaluationResults);\n }", "@Override\r\n\tpublic List<SessionObject> getExistingProviders(SessionObject needer, List<SessionObject> existingProviders, ModelObject rule) throws EngineException {\r\n\t\t// Get property name and permitted values\r\n\t\tString propertyName = (String) rule.getPropertyValue(RULE_PROPERTY_NAME);\r\n\t\tList<?> permittedValues = rule.getListPropertyValue(RULE_PROPERTY_PERMITTED_VALUES);\r\n\t\t\r\n\t\t// If not fully specified, skip filtering\r\n\t\tif (propertyName.length() == 0 || permittedValues.size() == 0) {\r\n\t\t\treturn existingProviders;\r\n\t\t}\r\n\t\t\r\n\t\t// Check for parent provider flag\r\n\t\tboolean useParent = ((Boolean) rule.getPropertyValue(RULE_PROPERTY_ON_PARENT)).booleanValue();\r\n\t\tList<SessionObject> filteredProviders = new ArrayList<SessionObject>();\r\n\t\t\r\n\t\tfor(SessionObject existingProvider : existingProviders) {\r\n\t\t\t// Get appropriate provider property value from candidate\r\n\t\t\tObject value = useParent ? existingProvider.getParentObject().getPropertyValue(propertyName) : existingProvider.getPropertyValue(propertyName);\r\n\t\t\t\r\n\t\t\t// Compare candidate value against permitted values to determine validity\r\n\t\t\tif (permittedValues.contains(value)) {\r\n\t\t\t\tfilteredProviders.add(existingProvider);\t\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// Return filtered provider list\r\n\t\treturn filteredProviders;\r\n\t}", "@Override\n\tpublic ArrayList<UserProfile> viewAllFriends(String userId) {\n\t\tArrayList<UserProfile> arrUserProfile = new ArrayList<UserProfile>();\n\t\tUserProfile profile;\n\t\tUserProfileService userProfileService = new UserProfileService();\n\t\t\n\t\tconn = ConnectionFactory.getConnection();\n\n\t\ttry {\n\t\t\tString sql = \"select user_id_2 from friendship where user_id_1=? and status='Y'\";\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, userId);\n\n\t\t\tset = pstmt.executeQuery();\n\n\t\t\twhile(set.next()){\n\t\t\t\t//Retrieve by column name\n\t\t\t\tprofile = userProfileService.viewUserProfile(set.getString(\"user_id_2\"));\n\t\t\t\t\n\t\t\t\tarrUserProfile.add(profile);\n\t\t\t}\n\t\t} catch(SQLException sqlex) {\n\t\t\tsqlex.printStackTrace();\n\t\t} catch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionFactory.closeResources(set, pstmt, conn);\n\t\t}\n\n\t\treturn arrUserProfile;\n\t}", "public List<CheckItem> getUserProfileGuestList() {\n\t\treturn null;\r\n//\t\treturn getBoCheckItems(\"userProfileName\", UserProfile.class,new FilterParams(\"networkObj.networkType\",VpnNetwork.VPN_NETWORK_TYPE_GUEST),\r\n//\t\t\t\tCHECK_ITEM_BEGIN_BLANK, CHECK_ITEM_END_NO);\r\n\t}", "public static void printListOfStudentsPerCourse() {\n Scanner input = new Scanner(System.in);\n System.out.println(\"~~~~~~~~~Please select a course to see the Students~~~~~~~~~\");\n boolean caseCheck = false;\n String flag = \"Y\";\n do {\n if (flag.equalsIgnoreCase(\"Y\")) {\n SchoolCourse chosenSchoolCourse = schoolCourseSelection();\n for (int i = 0; i < chosenSchoolCourse.getListOfStudentsPerCourse().size(); i++) {\n System.out.println((i + 1) + \") \" + chosenSchoolCourse.getListOfStudentsPerCourse().get(i));\n System.out.println(\"\");\n }\n } else if (flag.equalsIgnoreCase(\"N\")) {\n\n return;\n\n } else {\n\n System.err.println(\"Invalid Answer, type: Y or N\");\n\n }\n System.out.println(\"Do you want to check another Course? (Y / N)\");\n flag = input.nextLine();\n } while (caseCheck == false);\n }", "private Map<Profile, String> review(){\n\t\treturn allReviews;\n\t}", "public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }", "List<RepStuLearning> selectByExample(RepStuLearningExample example);", "public T getSelectedProfile(int Id);", "public StandardBean[] loadStandardViaLabtestparams(SampletypeBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n String strSQL = \" SELECT \"\n + \" *\"\n + \" FROM \"\n + \" standard,labtestparams\"\n + \" WHERE \" \n + \" labtestparams.sampletypeid = ?\"\n + \" AND labtestparams.standardid = standard.standardid\";\n try\n {\n c = getConnection();\n ps = c.prepareStatement(strSQL,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n Manager.setInteger(ps, 1, pObject.getSampletypeid());\n return StandardManager.getInstance().loadByPreparedStatement(ps);\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "@Override\n\tpublic ArrayList<Professor> consultarTudo() {\n\t\treturn listaprof;\n\t}", "Page<Accessprofile> listWithCriteraByPage(SearchCriteria searchCriteria, Pageable pageable);", "@Override\n protected double getScore(TestUser testUser, double[] predictions) {\n\n int[] recommendations = Search.findTopN(predictions, this.numberOfRecommendations);\n\n int recommendedAndRelevant = 0, recommended = 0;\n\n for (int pos : recommendations) {\n if (pos == -1) break;\n\n double rating = testUser.getTestRatingAt(pos);\n if (rating >= this.relevantThreshold) {\n recommendedAndRelevant++;\n }\n\n recommended++;\n }\n\n if (recommended == 0) return Double.NEGATIVE_INFINITY;\n return (double) recommendedAndRelevant / (double) recommended;\n }", "List<PersonPageRank> getPageRank() throws Exception {\n // first map to pair of pID and uID and keep only distinct\n JavaPairRDD<String, String> graph = movieReviews\n .mapToPair(s->new Tuple2<>(s.getMovie().getProductId(), s.getUserId())).distinct();\n // now, join graph to graph (by pId) and filter out those with the same uID\n // then, map to \" \" divided string of pID and uID and keep only distinct pairs\n JavaRDD<String> graphCart =\n graph.join(graph)\n .filter(s->(!s._2._1.equals(s._2._2)))\n .map(s->s._2._1 + \" \" + s._2._2)\n .distinct();\n // call pageRank code and return it's result\n return JavaPageRank.pageRank(graphCart, 100);\n }", "@RequestMapping(path = \"/v1/recommendations\", method = RequestMethod.GET)\n public ResponseEntity<Object> getRecommendations(@RequestParam(\"ag\") String assetGroup,\n @RequestParam(name = \"targettype\", required = false) String targetType) {\n if (Strings.isNullOrEmpty(assetGroup)) {\n return ResponseUtils.buildFailureResponse(new Exception(ASSET_MANDATORY));\n }\n ResponseData response = null;\n try {\n response = new ResponseData(complianceService.getRecommendations(assetGroup, targetType));\n } catch (ServiceException e) {\n return complianceService.formatException(e);\n }\n return ResponseUtils.buildSucessResponse(response);\n\n }", "private static void print_Final(Gradebook gradebook, String[] flags){\n if (flags[3] != null && flags[3].equals(\"G\")){\n List<Student> studentsList = gradebook.getAllStudents();\n //Map<Student, Double>\n Map<Double, List<Student>> grades = new HashMap<Double, List<Student>>();\n Set<Double> gradeSet = new HashSet<Double>();\n\n for(Student s : studentsList){\n double grade = gradebook.getGradeStudent(s);\n List<Student> studs = grades.get(grade);\n\n if(studs == null){\n studs = new ArrayList<Student>();\n }\n\n studs.add(s);\n grades.put(grade, studs);\n gradeSet.add(grade);\n }\n\n List<Double> gradeList = new ArrayList<Double>(gradeSet);\n Collections.sort(gradeList, Collections.reverseOrder());\n\n DecimalFormat df = new DecimalFormat(\"#.####\"); //Round to 4 decimal places\n df.setRoundingMode(RoundingMode.HALF_UP);\n for(Double d : gradeList){\n\n List<Student> studs = grades.get(d);\n for(Student s : studs){\n\n System.out.println(\"(\" + s.getLast() + \", \" + s.getFirst() + \", \" + df.format(d) + \")\");\n }\n }\n } else if (flags[4] != null && flags[4].equals(\"A\")){\n //compare override class at bottom of file\n List<Student> studentsAlpha = gradebook.getAllStudents();\n Collections.sort(studentsAlpha, new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n if ( o2.getLast().compareToIgnoreCase(o1.getLast()) == 0) {\n return o1.getFirst().compareToIgnoreCase(o2.getFirst());\n } else {\n return o1.getLast().compareToIgnoreCase(o2.getLast());\n }\n }\n });\n\n DecimalFormat df = new DecimalFormat(\"#.####\"); //Round to 4 decimal places\n df.setRoundingMode(RoundingMode.HALF_UP);\n for (Student stud: studentsAlpha) {\n System.out.println(\"(\" + stud.getLast() + \", \" + stud.getFirst() + \", \" + df.format(gradebook.getGradeStudent(stud)) + \")\");\n }\n\n }\n else{\n throw new IllegalArgumentException(\"Grade or Alphabetical flag missing.\");\n }\n return;\n }", "@Query(\"\"\"\n SELECT pe FROM ProgrammingExercise pe\n WHERE pe.shortName IS NOT NULL AND (\n pe.id IN (\n SELECT coursePe.id\n FROM ProgrammingExercise coursePe\n WHERE coursePe.course.instructorGroupName IN :groups\n AND (coursePe.title LIKE %:partialTitle% OR coursePe.course.title LIKE %:partialCourseTitle%)\n ) OR pe.id IN (\n SELECT examPe.id\n FROM ProgrammingExercise examPe\n WHERE examPe.exerciseGroup.exam.course.instructorGroupName IN :groups\n AND (examPe.title LIKE %:partialTitle% OR examPe.exerciseGroup.exam.course.title LIKE %:partialCourseTitle%)\n )\n )\n \"\"\")\n Page<ProgrammingExercise> findByTitleInExerciseOrCourseAndUserHasAccessToCourse(@Param(\"partialTitle\") String partialTitle,\n @Param(\"partialCourseTitle\") String partialCourseTitle, @Param(\"groups\") Set<String> groups, Pageable pageable);", "org.beangle.security.session.protobuf.Model.ProfileOrBuilder getProfilesOrBuilder(\n int index);" ]
[ "0.5450615", "0.5225482", "0.51959455", "0.5024717", "0.48954195", "0.48451668", "0.48406428", "0.47942564", "0.4737595", "0.46714914", "0.46224377", "0.45817924", "0.45591477", "0.45368078", "0.4529735", "0.45020086", "0.44737253", "0.44109097", "0.43866906", "0.4381518", "0.43654305", "0.4363738", "0.43528083", "0.43426815", "0.43322334", "0.43308833", "0.4330135", "0.430092", "0.4297915", "0.42907122", "0.42903322", "0.428658", "0.42829883", "0.4278252", "0.42777196", "0.42736787", "0.42680964", "0.4254052", "0.42504072", "0.4246276", "0.4245283", "0.42442825", "0.42237866", "0.42196715", "0.42092717", "0.4207763", "0.42044067", "0.41994786", "0.41887116", "0.41855505", "0.41812268", "0.41768497", "0.41740993", "0.41694698", "0.4165651", "0.41609097", "0.41601953", "0.41574937", "0.41558155", "0.41528448", "0.41489094", "0.41467956", "0.4142666", "0.41424325", "0.41366348", "0.4136026", "0.41332588", "0.41321078", "0.41309842", "0.41286325", "0.41254655", "0.4122973", "0.41185546", "0.41177145", "0.41108733", "0.41097376", "0.41061294", "0.4104792", "0.40921915", "0.40882376", "0.40875998", "0.4086074", "0.4078991", "0.4075266", "0.40743956", "0.40743765", "0.40715677", "0.40712848", "0.40686676", "0.40652668", "0.4062384", "0.4061704", "0.4050422", "0.4044087", "0.4038328", "0.4033134", "0.40236753", "0.40203822", "0.40180695", "0.4013806" ]
0.49840605
4
This method is invoked for creating Dublin core annotation triples of images,audios,videos and text It creates an arraylist containing triples for the the learning object dublic core annotations, to be inserted in triple store.
public ArrayList<Triple> createDigitalRightsAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){ String LOG_METHOD_NAME = "ArrayList createDigitalRightsAnnotationTriples(Node, DigitalRightsManagementBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); try{ tripleList.addAll(addAdministrativeAnnotationTriples(subject, digitalRightsManagementBean)); tripleList.addAll(addCopyRightHolderAnnotationTriples(subject, digitalRightsManagementBean)); tripleList.addAll(addPublisherAnnotationTriples(subject, digitalRightsManagementBean)); tripleList.addAll(addContributorAnnotationTriples(subject, digitalRightsManagementBean)); }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createTenCommonAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenCommonAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//isPartOf\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getIsPartOf())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_ISPARTOF);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getIsPartOf());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createTenLearningObjectAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenLearningObjectAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//annotator name\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getAnnotator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_ANNOTATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getAnnotator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addDescriptiveAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addStructuralAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void buildTFIDFAnnotations() throws IOException {\n\t\tTFIDFTrendExtractor trendExtractor = new TFIDFTrendExtractor(false, trainingInstances);\n\t\tTFIDFInvestigationMethodExtractor invMExtractor = new TFIDFInvestigationMethodExtractor(false,\n\t\t\t\ttrainingInstances);\n\n\t\tnew File(\"data/annotations/invMTFIDF/\").mkdirs();\n\t\tnew File(\"data/annotations/trendTFIDF/\").mkdirs();\n\n\t\tfor (Instance instance : testInstances) {\n//\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\tSet<DocumentLinkedAnnotation> invAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\tinvAnns.addAll(invMExtractor.getInvestigationMethodForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(invAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/invMTFIDF/\" + instance.getName()), invAnns);\n\t\t\tSet<DocumentLinkedAnnotation> trendAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\ttrendAnns.addAll(trendExtractor.getTrendsForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(trendAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/trendTFIDF/\" + instance.getName()), trendAnns);\n//\t\t\tSystem.out.println(\"SIZE = \" + annotations.get(instance).size());\n\t\t}\n\n//\t\treturn annotations;\n\n\t}", "public ArrayList<Triple> addStructuralAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> addStructuralAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//STRUCTURAL\t\r\n\t\t\t//date of annotation\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getDate())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_ANNOTATION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getDate());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//format\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getFormat())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_FORMAT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getFormat());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public void addInstances (InstanceList training)\n\t{\n\t\tSystem.out.println(\"LabeledLDA Model : Adding training instances ..%\");\n\t\t//Data Alphabet\n\t\talphabet = training.getDataAlphabet();\n\t\tnumTypes = alphabet.size();\n\t\tbetaSum = beta * numTypes;\n\t\t\n\t\t// We have one topic for every possible label.\n\t\tlabelAlphabet = training.getTargetAlphabet();\n\t\tnumTopics = labelAlphabet.size();\n\t\toneDocTopicCounts = new int[numTopics];\n\t\ttokensPerTopic = new int[numTopics];\n\t\ttypeTopicCounts = new int[numTypes][numTopics];\n\n\t\t//topicAlphabet = AlphabetFactory.labelAlphabetOfSize(numTopics); //generate d0,d1 [3shan target string w hwa 3wzo label]\n topicAlphabet = new LabelAlphabet();\n\t\tfor (int i = 0; i < numTopics; i++) {\n\t\t\tString target = labelAlphabet.lookupObject(i).toString();\n topicAlphabet.lookupLabel(target);\n\t\t}\n //System.out.println(topicAlphabet);\n\n for (Instance instance : training)\n\t\t{\n\t\t\tFeatureSequence tokens = (FeatureSequence) instance.getData(); //read data featureSequence\n\t\t\tLabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n FeatureVector labels = (FeatureVector) instance.getTarget(); //read target featurevector\n\n\t\t\tint[] topics = topicSequence.getFeatures();\n\t\t\tfor (int position = 0; position < tokens.size(); position++)\n\t\t\t{\n\t\t\t\tint topic = labels.indexAtLocation(random.nextInt(labels.numLocations()));\n\t\t\t\ttopics[position] = topic;\n\t\t\t\ttokensPerTopic[topic]++;\n\t\t\t\tint type = tokens.getIndexAtPosition(position);\n\t\t\t\ttypeTopicCounts[type][topic]++;\n\t\t\t}\n\t\t\tTopicAssignment t = new TopicAssignment(instance, topicSequence);\n\t\t\tdata.add(t);\n\t\t}\n\t\t/*\n for (Instance instance : training)\n {\n FeatureSequence tokens = (FeatureSequence) instance.getData();\n LabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n\n int[] topics = topicSequence.getFeatures();\n for (int position = 0; position < topics.length; position++) {\n int topic = random.nextInt(numTopics);\n topics[position] = topic;\n }\n TopicAssignment t = new TopicAssignment(instance, topicSequence);\n data.add(t);\n }\n\n buildInitialTypeTopicCounts();\n initializeHistograms();\n\t\t */\n\t\tSystem.out.println(\"Data loaded.\");\n\t}", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }", "public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public void addText(IText text) {\n var name = \"Text\"; // TODO should texts have a name? E.g. the filename etc.?\n var textIndividual = ontologyConnector.addIndividualToClass(name, textClass);\n var uuid = ontologyConnector.getLocalName(textIndividual);\n ontologyConnector.addPropertyToIndividual(textIndividual, uuidProperty, uuid);\n\n ImmutableList<IWord> words = text.getWords();\n\n // first add all word individuals\n var wordIndividuals = new ArrayList<Individual>();\n var wordsToIndividuals = new HashMap<IWord, Individual>();\n for (var word : words) {\n var wordIndividual = addWord(word);\n wordIndividuals.add(wordIndividual);\n wordsToIndividuals.put(word, wordIndividual);\n }\n\n // add dependencies to words.\n // We only add outgoing dependencies as ingoing are the same (but viewed from another perspective)\n for (var word : words) {\n var wordIndividual = wordsToIndividuals.get(word);\n for (var dependencyType : DependencyTag.values()) {\n var outDependencies = word.getWordsThatAreDependencyOfThis(dependencyType);\n for (var outDep : outDependencies) {\n var outWordIndividual = wordsToIndividuals.get(outDep);\n addDependencyBetweenWords(wordIndividual, dependencyType, outWordIndividual);\n }\n }\n }\n\n // create the list that is used for the words property\n var olo = ontologyConnector.addList(\"WordsOf\" + name, wordIndividuals);\n var listIndividual = olo.getListIndividual();\n ontologyConnector.addPropertyToIndividual(textIndividual, wordsProperty, listIndividual);\n\n // add coref stuff\n var corefClusters = text.getCorefClusters();\n for (var corefCluster : corefClusters) {\n var representativeMention = corefCluster.getRepresentativeMention();\n var corefClusterIndividual = ontologyConnector.addIndividualToClass(representativeMention, corefClusterClass);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, uuidProperty, \"\" + corefCluster.getId());\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, representativeMentionProperty, representativeMention);\n ontologyConnector.addPropertyToIndividual(textIndividual, hasCorefClusterProperty, corefClusterIndividual);\n\n var counter = 0;\n for (var mention : corefCluster.getMentions()) {\n var id = corefCluster.getId() + \"_\" + counter;\n counter += 1;\n var label = ICorefCluster.getTextForMention(mention);\n\n var mentionIndividual = ontologyConnector.addIndividualToClass(label, corefMentionClass);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, uuidProperty, id);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, mentionProperty, mentionIndividual);\n\n var mentionWordsIndividuals = getMentionWordIndividuals(mention, wordsToIndividuals);\n var mentionOlo = ontologyConnector.addList(\"WordsOf Mention \" + id, mentionWordsIndividuals);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, wordsProperty, mentionOlo.getListIndividual());\n }\n }\n\n }", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void saveTrainingDataToFileHybridSampling1() throws Exception {\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n //up sampling using SMOTE\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n //downsampling using ?? \r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(300.0);//464\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataHybridRandom.arff\"));\r\n saver.writeBatch();\r\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "public static void main(String[] args) \n\t{\n\t\t// Konfiguration\n\t\tTraining training = new Training();\n\t\tint numberOfAttributes = 18;\n\t\tStatisticOutput statisticWriter = new StatisticOutput(\"data/statistics.txt\");\n\t\t\n\t\ttraining.printMessage(\"*** TCR-Predictor: Training ***\");\n\t\t\n\t\ttraining.printMessage(\"Datenbank von Aminosäure-Codierungen wird eingelesen\");\n\t\t// Lies die EncodingDB ein\n\t\tAAEncodingFileReader aa = new AAEncodingFileReader();\n\t\tAAEncodingDatabase db = aa.readAAEncodings(\"data/AAEncodings.txt\");\n\t\ttraining.printMessage(\"Es wurden \" + db.getEncodingDatabase().size() + \" Codierungen einglesen\");\n\t\t\n\t\ttraining.printMessage(\"Trainingsdatensatz wird eingelesen und prozessiert\");\n\t\t// Lies zunächst die gesamten Trainingsdaten ein\n\t\tExampleReader exampleReader = new ExampleReader();\n\t\t\n\t\t// Spalte das Datenset\n\t\tDataSplit dataSplit_positives = new DataSplit(exampleReader.getSequnces(\"data/positive.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_positiv = dataSplit_positives.getDataSet();\n\t\t\n\t\tDataSplit dataSplit_negatives = new DataSplit(exampleReader.getSequnces(\"data/negative.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_negativ = dataSplit_negatives.getDataSet();\n\t\t\n\t\t// Lege Listen für die besten Klassifizierer und deren Evaluation an\n\t\tModelCollection modelCollection = new ModelCollection();\n\t\t\n\t\t/*\n\t\t * \n\t\t * Beginne Feature Selection\n\t\t * \n\t\t */\n\t\tArrayList<String> positivesForFeatureSelection = training.concatenateLists(complete_list_positiv);\n\t\tArrayList<String> negativesForFeatureSelection = training.concatenateLists(complete_list_negativ);\n\t\t\n\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t// Convertiere Daten in Wekas File Format\n\t\tARFFFileGenerator arff = new ARFFFileGenerator();\n\t\tInstances dataSet = arff.createARFFFile(positivesForFeatureSelection, negativesForFeatureSelection, db.getEncodingDatabase());\n\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\n\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) aus\");\n\t\t// Beginne Feature Selection\n\t\tFeatureFilter featureFilter = new FeatureFilter();\n\t\tfeatureFilter.rankFeatures(dataSet, numberOfAttributes);\t\t\t\t\t// Wähle die x wichtigsten Features aus\n\t\tdataSet = featureFilter.getProcessedInstances();\n\t\ttraining.printMessage(\"Ausgewählte Features: \" + featureFilter.getTopResults());\n\n\t\t/*\n\t\t * Führe die äußere Evaluierung fünfmal durch und wähle das beste Modell\n\t\t */\n\t\tfor (int outer_run = 0; outer_run < 5; outer_run++)\n\t\t{\n\t\t\tstatisticWriter.writeString(\"===== Äußere Evaluation \" + (outer_run + 1) + \"/5 =====\\n\\n\");\n\t\t\t\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_positives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_positives.addAll(complete_list_positiv);\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_negatives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_negatives.addAll(complete_list_negativ);\n\t\t\t\n\t\t\t// Lege das erste Fragment beider Listen für nasted-Crossvalidation beiseite\n\t\t\tArrayList<String> outer_List_pos = new ArrayList<String>();\n\t\t\touter_List_pos.addAll(list_positives.get(outer_run));\n\t\t\tlist_positives.remove(outer_run);\n\t\t\t\n\t\t\tArrayList<String> outer_List_neg = new ArrayList<String>();\n\t\t\touter_List_neg.addAll(list_negatives.get(outer_run));\n\t\t\tlist_negatives.remove(outer_run);\n\t\t\t\n\t\t\t// Füge die verbleibende Liste zu einer Zusammen\n\t\t\tArrayList<String> inner_List_pos = training.concatenateLists(list_positives);\n\t\t\tArrayList<String> inner_List_neg = training.concatenateLists(list_negatives);\n\t\t\t\t\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * Ab hier nur noch Arbeiten mit innerer Liste, die Daten zum Evaluieren bekommt Weka vorerst \n\t\t\t * nicht zu sehen!\n\t\t\t * \n\t\t\t */\n\t\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t\t// Convertiere Daten in Wekas File Format\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(inner_List_pos, inner_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes); // Filtere das innere Datenset nach Vorgabe\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\ttraining.printMessage(\"Beginne Gridsearch\");\n\t\t\t// Gridsearch starten\n\t\n\t\t\t\n\t\t\t\n\t\t\tParameterOptimization optimizer = new ParameterOptimization();\n\t\t\tString logFileName = outer_run + \"_\" + numberOfAttributes;\n\t\t\tGridSearch gridSearch = optimizer.performGridSearch(dataSet, logFileName);\n\t\t\ttraining.printMessage(\"Gefundene Parameter [C, gamma]: \" + gridSearch.getValues()); // liefert unter diesen Settings 1.0 und 0.0\n\n\t\t\tSMO sMO = (SMO)gridSearch.getBestClassifier();\n\t\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t * Evaluationsbeginn \n\t\t\t *\n\t\t\t */\n\t\t\ttraining.printMessage(\"Evaluiere die Performance gegen das äußere Datenset\");\n\t\t\ttraining.printMessage(\"Transcodierung des Evaluationsdatensatzes\");\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(outer_List_pos, outer_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\t// Führe Feature-Filtering mit den Einstellungen der GridSearch aus\n\t\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) auf GridSearch-Basis aus\");\n\t\t\t// Beginne Feature Selection\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes);\t // Wähle die x wichtigsten Features aus\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttraining.printMessage(\"Ermittle Performance\");\n\t\t\tEvaluator eval = new Evaluator();\n\t\t\teval.classifyDataSet(sMO, dataSet);\n\t\t\ttraining.printMessage(eval.printRawData());\n\t\t\t\n\t\t\t/*\n\t\t\t * Füge das Modell und die externe Evaulation zur Sammlung hinzu\n\t\t\t */\t\t\t\n\t\t\tmodelCollection.bestClassifiers.add(sMO);\n\t\t\tmodelCollection.evalsOfBestClassifiers.add(eval);\n\t\t\tmodelCollection.listOfNumberOfAttributes.add(numberOfAttributes);\n\t\t\tmodelCollection.listOfFeatureFilters.add(featureFilter);\n\t\t\t\n\t\t\tstatisticWriter.writeString(\"Verwendete Attribute: \" + featureFilter.getTopResults());\n\t\t\tstatisticWriter.writeString(eval.printRawData());\n\t\t\t\n\t\t}\n\t\tstatisticWriter.close();\n\t\t\n\t\t// Wähle das beste aller Modelle aus\n\t\ttraining.printMessage(\"Ermittle die allgemein besten Einstellungen\");\n\t\tModelSelection modelSelection = new ModelSelection();\n\t\tmodelSelection.calculateBestModel(modelCollection);\n\t\t\n\t\ttraining.printMessage(\"Das beste Model: \");\n\t\ttraining.printMessage(modelSelection.getBestEvaluator().printRawData());\n\t\tSystem.out.println(\"------ SMO ------\");\n\t\tfor (int i = 0; i < modelSelection.getBestClassifier().getOptions().length; i++)\n\t\t{\n\t\t\tSystem.out.print(modelSelection.getBestClassifier().getOptions()[i] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n--- Features ---\");\n\t\tSystem.out.println(modelSelection.getBestListOfFeatures().getTopResults());\n\t\t\n\t\t// Schreibe das Modell in eine Datei\n\t\ttraining.printMessage(\"Das beste Modell wird auf Festplatte geschrieben\");\n\t\ttry\n\t\t{\n\t\t\tSerializationHelper.write(\"data/bestPredictor.model\", modelSelection.getBestClassifier());\n\t\t\tSerializationHelper.write(\"data/ranking.filter\", modelSelection.getBestListOfFeatures().getRanking());\n\t\t\tSerializationHelper.write(\"data/components.i\", (modelSelection.getBestListOfFeatures().getProcessedInstances().numAttributes()-1));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(\"Fehler beim Schreiben des Modells auf Festplatte: \" + ex);\n\t\t}\n\t}", "public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "public void trainFeatureList(){\n File trainFolder = new File(SoundEffectDemo.s_basePath);\n File[] trainList = trainFolder.listFiles();\n\n try {\n\n FileWriter fwMs = new FileWriter(s_msFeaturePath);\n FileWriter fwEnergy = new FileWriter(s_energyFeaturePath);\n FileWriter fwZc = new FileWriter(s_zcFeaturePath);\n FileWriter fwMfcc = new FileWriter(s_mfccFeaturePath);\n\n for (int i = 0; i < trainList.length; i++) {\n WaveIO waveIO = new WaveIO();\n short[] signal = waveIO.readWave(trainList[i].getAbsolutePath());\n\n // Extract Magnitude Spectrum\n MagnitudeSpectrum ms = new MagnitudeSpectrum();\n double[] msFeature = ms.getFeature(signal);\n \n String line = trainList[i].getName() + \"\\t\";\n for (double f: msFeature){\n line += f + \"\\t\";\n }\n fwMs.append(line+\"\\n\");\n \n // Extract Energy\n Energy energy = new Energy();\n double[] energyFeature = energy.getFeature(signal);\n \n String line2 = trainList[i].getName() + \"\\t\";\n for (double f: energyFeature){\n line2 += f + \"\\t\";\n }\n fwEnergy.append(line2+\"\\n\");\n \n // Extract Zero Crossing\n ZeroCrossing zc = new ZeroCrossing();\n double[] zcFeature = zc.getFeature(signal);\n \n String line3 = trainList[i].getName() + \"\\t\";\n for (double f: zcFeature){\n line3 += f + \"\\t\";\n }\n fwZc.append(line3+\"\\n\");\n \n // Extract mfcc\n MFCC mfcc = new MFCC(Frames.frameLength);\n mfcc.process(signal);\n double[] mfccFeature = mfcc.getMeanFeature();\n \n String line4 = trainList[i].getName() + \"\\t\";\n for (double f: mfccFeature){\n line4 += f + \"\\t\";\n }\n fwMfcc.append(line4+\"\\n\");\n \n System.out.println(\"@=========@\" + i);\n }\n fwMs.close();\n fwEnergy.close();\n fwZc.close();\n fwMfcc.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "private void applyMetadataTemplateProjectES_BU_TF() {\n\t\tArrayList<ArtifactType> artifactTypes = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> dependencyTypes = new ArrayList<DependencyType>();\n\t\tArrayList<TaskType> taskTypes = new ArrayList<TaskType>();\n\t\tArrayList<RuleType> ruleTypes = new ArrayList<RuleType>();\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArtifactType> u = new ArrayList<ArtifactType>();\n\t\tArrayList<ArtifactType> p = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> d = new ArrayList<DependencyType>();\n\t\tString description = \"\";\n\t\t\n\t\tArtifactType ATstart = new ArtifactType(\"Start\",\".start\");\n\t\tArtifactType ATstory = new ArtifactType(\"Story\",\".txt\");\n\t\tArtifactType ATstoryTest = new ArtifactType(\"StoryTest\",\".java\");\n\t\tArtifactType ATinterface = new ArtifactType(\"Interface\",\".java\");\n\t\tArtifactType ATdomainClass = new ArtifactType(\"DomainClass\",\".java\");\n\t\tArtifactType ATdomainTest = new ArtifactType(\"DomainTest\",\".java\");\n\t\tartifactTypes.add(ATstart);\n\t\tartifactTypes.add(ATstory);\n\t\tartifactTypes.add(ATstoryTest);\n\t\tartifactTypes.add(ATinterface);\t\t\n\t\tartifactTypes.add(ATdomainClass);\n\t\tartifactTypes.add(ATdomainTest);\n\n\t\tu.add(ATstart);\n\t\tp.add(ATstory);\n\t\tDependencyType DTstory = new DependencyType(ATstart,ATstory,\"DTstory\");\n\t\td.add(DTstory);\n\t\tdependencyTypes.add(DTstory);\n\t\tdescription = \"Create a story for the project\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATstory);\n\t\tp.add(ATdomainTest);\n\t\tDependencyType DTdomainTest = new DependencyType(ATstory,ATdomainTest,\"DTdomainTest\");\n\t\td.add(DTdomainTest);\n\t\tDTdomainTest.setMultiplicity(0);\n\t\tdependencyTypes.add(DTdomainTest);\n\t\tdescription = \"Create a domain test for the story\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATdomainClass);\n\t\tDependencyType DTdomainClass = new DependencyType(ATdomainTest,ATdomainClass,\"DTdomainClass\");\n\t\td.add(DTdomainClass);\n\t\tdependencyTypes.add(DTdomainClass);\n\t\tdescription = \"Create a domain class for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATinterface);\n\t \tDependencyType DTinterface = new DependencyType(ATdomainTest,ATinterface,\"DTinterface\");\n\t\td.add(DTinterface);\n\t\tdependencyTypes.add(DTinterface);\n\t\tdescription = \"Create a interface for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATinterface);\n\t p.add(ATstoryTest);\n\t\tDependencyType DTstoryTest = new DependencyType(ATinterface,ATstoryTest,\"DTstoryTest\");\n\t\td.add(DTstoryTest);\n\t\tdependencyTypes.add(DTstoryTest);\n\t\tdescription = \"Create a story test for the interface\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tstatus.setArtifactTypes(artifactTypes);\n\t\tstatus.setDependencyTypes(dependencyTypes);\n\t\tstatus.setTaskTypes(taskTypes);\t\n\t\tstatus.setRuleTypes(ruleTypes);\n\t\tstatus.setRules(rules);\n\t}", "private static List<TextAnnotation> getInstancesFromDb(Configuration runConfig) {\n String datasetName = runConfig.dataset;\n POSReader posReader = new POSReader();\n System.out.println(\"Retrieving instances from db\");\n List<TextAnnotation> TextAnnotations = posReader.getTextAnnotationsFromDB(runConfig.dataset);\n return TextAnnotations;\n }", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "public static void main(String[] args) throws Exception\n\t{\n\t\tList<Artifact> docs = Artifact.listByType(Type.Document,false);\n\t\tint counter = 0;\n\t\tfor(Artifact doc : docs)\n\t\t{\n\t\t\t\tMLExample.hibernateSession = HibernateUtil.clearSession(MLExample.hibernateSession);\n\t\t\t\tString doc_path = doc.getAssociatedFilePath();\n//\t\t\t\tList<MLExample> trainExamples = \n//\t\t\t\t\tMLExample.getExamplesInDocument(LinkExampleBuilder.ExperimentGroupTimexEvent, doc_path);\n//\t\t\t\tList<MLExample> trainExamples2 = \n//\t\t\t\t\tMLExample.getExamplesInDocument(LinkExampleBuilder.ExperimentGroupEventEvent, doc_path);\n\n\t\t\t\tList<MLExample> trainExamples3 = \n\t\t\t\t\tMLExample.getExamplesInDocument(SecTimeEventExampleBuilder.ExperimentGroupSecTimeEvent,\n\t\t\t\t\t\t\tdoc_path);\n\t\t\t\t\n\t\t\t\tList<MLExample> all_train_examples = new ArrayList<MLExample>();\n//\t\t\t\tall_train_examples.addAll(trainExamples);\n//\t\t\t\tall_train_examples.addAll(trainExamples2);\n\t\t\t\tall_train_examples.addAll(trainExamples3);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(MLExample example_to_process: all_train_examples)\n\t\t\t\t{\n\t\t\t\t\tNormalizedDependencyFeatures ndf = new NormalizedDependencyFeatures();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tndf.calculateFeatures(example_to_process);\n\n\t\t\t\t\tHibernateUtil.clearLoaderSession();\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t\t\tFileUtil.logLine(null, \"Doc processed:\"+counter);\n\t\t//\t\tMLExample example_to_process = MLExample.getInstanceForLink\n\t\t//\t\t(PhraseLink.getInstance(4117), experimentgroup);\n\t\t}\n\t\t\n\t}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "void newAnnotation() {\n\n //start by resetting variables\n selectXmin = 0;\n selectXmax = 0;\n selectYmin = 0;\n selectYmax = 0;\n\n preObjLabel = null;\n curObjLabel = null;\n\n filenameItem.getChildren().clear();\n\n //remove all handlers\n objCanvas.getObjLabels().forEach((oL) -> {\n objCanvas.removeEventHandler(MouseEvent.MOUSE_MOVED, oL);\n });\n\n if (photos != null && photos.length > 0) {\n status(\"Image: \" + photos[fileIndex]);\n String image = getImage(fileIndex);\n if (image != null && !image.isEmpty()) {\n\n _img = new ObjFrame(image);\n objCanvas.setImage(_img);\n objCanvas.setPreserveRatio(true);\n objCanvas.setSmooth(true);\n\n primaryStage.minWidthProperty().bind(objCanvas.getFitWidth());\n primaryStage.minHeightProperty().bind(objCanvas.getFitHeight());\n primaryStage.setWidth(_img.getWidth() + 100);\n primaryStage.setHeight(_img.getHeight() + 100);\n// primaryStage.setMinWidth(iView.getFitWidth());\n// primaryStage.setMinHeight(iView.getFitHeight());\n\n filename = getFilename();\n filenameItem.setValue(filename);\n\n// objCanvas = new LabelobCanvas(LabelobJ.this);\n objCanvas.setSourceInfo(databaseField.getText().isEmpty() ? \"THE VOC2007 DB\" : databaseField.getText(),\n annotationField.getText().isEmpty() ? \"PASCAL VOC2007\" : annotationField.getText(),\n \"flickr\",\n \"12121212\")\n .setOwnerInfo(\"myflickerId\", ownerField.getText().isEmpty() ? \"UruGN Code Systems\" : ownerField.getText())\n .setImageInfo(\"images\", filename, 0)\n .setSizeInfo((int) Math.round(_img.getWidth()), (int) Math.round(_img.getWidth()), 3);\n\n objCanvas.init();\n\n primaryStage.setTitle(\"LabelobJ - \" + filename);\n\n //parse existing xml\n parseXml();\n\n //populate the tree\n objCanvas.getObjLabels().forEach((oL) -> {\n filenameItem.getChildren().add(oL.getInfoItem());\n });\n } else {\n status(\"No images found: \" + imagesDir);\n }\n\n //TODO render the annotations if any\n }\n\n }", "private Collection<ConceptLabel> createConceptLabels(Concept concept, int offset) {\n\t\t//int offset = concept.getOffset();\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\t\t// add annotation the new way\n\t\tfor(Annotation a: concept.getAnnotations()){\n\t\t\tConceptLabel lbl = new ConceptLabel(a.getText(), offset + a.getOffset());\n\t\t\tlbl.setConcept(concept);\n\t\t\tlbl.setReportPanel(reportInterface);\n\t\t\tlbl.setColor(Color.black);\n\t\t\tlabels.add(lbl);\n\t\t}\n\t\t\n\t\t\n\t\treturn labels;\n\t}", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public static void main(String[] args) throws SKOSCreationException {\n SKOSManager man = new SKOSManager();\n\n // a skos vocabulary is essentially an OWL ontology that can contain multiple concept schemes\n SKOSDataset vocab = man.createSKOSDataset(URI.create(baseURI));\n\n // a data factory is used to create types of SKOS Objects\n SKOSDataFactory factory = man.getSKOSDataFactory();\n\n SKOSConceptScheme scheme = factory.getSKOSConceptScheme(URI.create(baseURI + \"conceptSchemeA\"));\n\n // make a concept scheme assertion in a particular data set\n SKOSEntityAssertion schemaAss = factory.getSKOSEntityAssertion(scheme);\n\n SKOSConcept concept1 = factory.getSKOSConcept(URI.create(baseURI + \"concept1\"));\n SKOSConcept concept2 = factory.getSKOSConcept(URI.create(baseURI + \"concept2\"));\n\n // just add it with a Concept Assertion\n SKOSEntityAssertion conAss1 = factory.getSKOSEntityAssertion(concept1);\n SKOSEntityAssertion conAss2 = factory.getSKOSEntityAssertion(concept2);\n\n // make assertion on concepts in your SKOS vocabulary - you do it by making SKOS assertion objects\n SKOSObjectRelationAssertion inScheme = factory.getSKOSObjectRelationAssertion(concept1, factory.getSKOSInSchemeProperty(), scheme);\n SKOSObjectRelationAssertion inScheme1 = factory.getSKOSObjectRelationAssertion(concept2, factory.getSKOSInSchemeProperty(), scheme);\n\n SKOSObjectRelationAssertion topConcept = factory.getSKOSObjectRelationAssertion(scheme, factory.getSKOSHasTopConceptProperty(), concept1);\n\n // add object relation between individuals, this is with respect to a vocabulary\n\n SKOSObjectRelationAssertion assertion1 = factory.getSKOSObjectRelationAssertion(concept2, factory.getSKOSBroaderProperty(), concept1);\n\n // add data relation on individuals, this is with respect to a vocabulary\n\n SKOSAnnotation labelAnno = factory.getSKOSAnnotation(factory.getSKOSPrefLabelProperty().getURI(), \"Some Label\", \"en\");\n SKOSAnnotation altLabelAnno = factory.getSKOSAnnotation(factory.getSKOSAltLabelProperty().getURI(), \"Another Label\", \"en\");\n SKOSAnnotationAssertion assertion2 = factory.getSKOSAnnotationAssertion(concept2, labelAnno);\n SKOSAnnotationAssertion assertion3 = factory.getSKOSAnnotationAssertion(concept2, altLabelAnno);\n\n\n /* creating a sub property of altLabel */\n\n SKOSAnnotationProperty newAltLabel = factory.getSKOSAnnotationProperty(URI.create(\"http://myexample/altLable/newSubAltLabel\"));\n SKOSAltLabelProperty altLabel = factory.getSKOSAltLabelProperty();\n\n SKOStoOWLConverter converter = new SKOStoOWLConverter();\n\n OWLOntologyManager owlMan = man.getOWLManger();\n OWLDataFactory owlFact = owlMan.getOWLDataFactory();\n OWLSubAnnotationPropertyOfAxiom axiom = owlFact.getOWLSubAnnotationPropertyOfAxiom(converter.getAsOWLAnnotationProperty(newAltLabel), converter.getAsOWLAnnotationProperty(altLabel));\n try {\n owlMan.applyChange(new AddAxiom(converter.getAsOWLOntology(vocab), axiom));\n } catch (OWLOntologyChangeException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n /*\n * The full legal use of SKOS documantation propertiiies canno't be supported by this implmentation with the OWL API\n * The documantation properties can be used as either data or object properties, depending on how they are being used\n */\n\n // SKOS documentation properties as object properties\n\n // we might want to create some abritary resource, e.g. a web page that is used as a scope note\n SKOSResource someResource = factory.getSKOSResource(URI.create(\"http://www.wikipedia.org/someExample\"));\n SKOSObjectRelationAssertion assertion4 = factory.getSKOSObjectRelationAssertion(concept2, factory.getSKOSScopeNoteObjectProperty(), someResource);\n\n // we might want to use the documentation properties with a filler that is a literal\n SKOSDataRelationAssertion assertion5 = factory.getSKOSDataRelationAssertion(concept2, factory.getSKOSScopeNoteDataProperty(), \"A scope note for the concept\", \"en\");\n\n\n /* Annotations - you can assign any kind of annotation (e.g. dublic core) to your entities\n * here is an example adding a dc:creator and a rdfs:comment\n */\n\n SKOSAnnotation anno1 = factory.getSKOSAnnotation(DublinCoreVocabulary.DATE.getURI(), \"12-07-2008\");\n SKOSAnnotation anno2 = factory.getSKOSAnnotation(DublinCoreVocabulary.CREATOR.getURI(), \"Simon Jupp\", \"en\");\n SKOSAnnotation anno3 = factory.getSKOSAnnotation(URI.create(\"http://my-custom-annotation.com/example\"), someResource);\n SKOSAnnotation anno4 = factory.getSKOSAnnotation(DublinCoreVocabulary.CREATOR.getURI(), factory.getSKOSUntypedConstant(\"Simon Jupp\", \"en\"));\n // todo need to work on typed on objects\n //factory.getSKOSAnnotationsByURI(DublinCoreVocabulary.CREATOR.getURI(), factory.getSKOSTypedConstant(\"String\", \"Simon Jupp\"));\n\n \n SKOSAnnotationAssertion assertion6 = factory.getSKOSAnnotationAssertion(concept2, anno1);\n SKOSAnnotationAssertion assertion7 = factory.getSKOSAnnotationAssertion(concept2, anno2);\n SKOSAnnotationAssertion assertion8 = factory.getSKOSAnnotationAssertion(concept2, anno3);\n SKOSAnnotationAssertion assertion9 = factory.getSKOSAnnotationAssertion(concept2, anno4);\n\n /* Add some utility stuff fomr creating single or multiple inScheme objects,\n * these are afetr all just ObjectPropertyAssertions */\n // or add it to concept shceme in a paryicular vocab\n // SKOSInSchemeAssertion insSchemeAss = factory.getSKOSInSchemeAssertion(vocab, concept1, scheme);\n // this can also takes sets\n // SKOSInSchemeAssertion insSchemeAss = factory.getSKOSInsCHEMEAssertion(vocab, Set <SKOSConcept> concept1, scheme);\n\n List<SKOSChange> addList = new ArrayList<SKOSChange>();\n addList.add(new AddAssertion(vocab, schemaAss));\n addList.add(new AddAssertion(vocab, inScheme));\n addList.add(new AddAssertion(vocab, inScheme1));\n addList.add(new AddAssertion(vocab, conAss1));\n addList.add(new AddAssertion(vocab, conAss2));\n addList.add(new AddAssertion(vocab, topConcept));\n addList.add(new AddAssertion(vocab, assertion1));\n addList.add(new AddAssertion(vocab, assertion2));\n addList.add(new AddAssertion(vocab, assertion3));\n addList.add(new AddAssertion(vocab, assertion4));\n addList.add(new AddAssertion(vocab, assertion5));\n addList.add(new AddAssertion(vocab, assertion6));\n addList.add(new AddAssertion(vocab, assertion7));\n addList.add(new AddAssertion(vocab, assertion8));\n addList.add(new AddAssertion(vocab, assertion9));\n try {\n\n// man.applyChange(new AddAssertion(vocab, schemaAss));\n// man.applyChange(new AddAssertion(vocab, inScheme));\n// man.applyChange(new AddAssertion(vocab, inScheme1));\n// man.applyChange(new AddAssertion(vocab, conAss1));\n// man.applyChange(new AddAssertion(vocab, conAss2));\n// man.applyChange(new AddAssertion(vocab, topConcept));\n// man.applyChange(new AddAssertion(vocab, assertion1));\n// man.applyChange(new AddAssertion(vocab, assertion2));\n// man.applyChange(new AddAssertion(vocab, assertion3));\n\n man.applyChanges(addList);\n\n System.err.println(\"writing ontology\");\n man.save(vocab, SKOSFormatExt.RDFXML, URI.create(\"file:/Users/simon/testskos.rdf\"));\n\n } catch (SKOSChangeException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n } catch (SKOSStorageException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n\n\n\n//\n// // create a Label relation...\n// List<OWLConstant> labels = new ArrayList<OWLConstant>();\n// labels.add(factory.getOWLUntypedConstant(\"Some Label\"));\n// labels.add(factory.getOWLUntypedConstant(\"Another Label\"));\n//\n// SKOSLabelRelation labRel = factory.getSKOSLabelRelation(URI.create(baseURI + \"labelRel1\"), labels);\n// vocab.addSKOSLabelRelation(labRel);\n//\n// SKOSObjectRelationAssertion assertion4 = factory.getSKOSLabelRelationAssertion(concept2, labRel);\n//\n System.out.println(\"Read\");\n\n // get all the concept schemes\n for (SKOSConceptScheme sch : vocab.getSKOSConceptSchemes()) {\n\n System.err.println(\"Concept Scheme_______\");\n // get all the concepts in that scheme\n for (SKOSConcept co : vocab.getConceptsInScheme(sch)) {\n\n System.out.println(\"\\tConcept: \" + co.getURI());\n\n // get any pref labels\n for (SKOSAnnotation con : co.getSKOSAnnotationsByURI(vocab, factory.getSKOSPrefLabelProperty().getURI())) {\n if (con.getAnnotationValueAsConstant() instanceof SKOSUntypedLiteral) {\n SKOSUntypedLiteral unCon = con.getAnnotationValueAsConstant().getAsSKOSUntypedLiteral();\n System.out.println(\"\\t\\tPrefLabel: \" + unCon.getLiteral() + \" lang: \" + unCon.getLang());\n }\n else if (con.getAnnotationValueAsConstant() instanceof SKOSTypedLiteral) {\n SKOSTypedLiteral unCon = con.getAnnotationValueAsConstant().getAsSKOSTypedLiteral();\n System.out.println(\"\\t\\tPrefLabel: \" + unCon.getLiteral());\n }\n }\n\n // get definitions\n for (SKOSObject object : co.getSKOSRelatedEntitiesByProperty(vocab, factory.getSKOSDefinitionObjectProperty())) {\n\n if (object instanceof SKOSLiteral) {\n \n }\n else if (object instanceof SKOSEntity) {\n\n }\n\n\n }\n\n // get broader concepts from all schemes\n for (SKOSEntity c : co.getSKOSRelatedEntitiesByProperty(vocab, factory.getSKOSBroaderProperty())) {\n System.out.println(\"\\t\\thasBroader: \" + c.getURI());\n }\n\n // get label relations\n// for (SKOSLabelRelation rel : co.getSKOSLabelRelations(vocab)) {\n//\n// Iterator it = rel.getLabels().iterator();\n// while (it.hasNext()) {\n// OWLConstant con = (OWLConstant) it.next();\n// System.out.println(\"Releated Labels: \" + con.getLiteral() );\n// }\n// }\n\n\n }\n\n }\n//\n// // do a simple lookup\n// SKOSEntity entity = vocab.getSKOSEntity(\"Another Label\");\n// System.out.println(\"Entity lookup : \" + entity.asSKOSConcept().getAsOWLIndividual().getURI());\n//\n//\n//\n// } catch (OWLOntologyChangeException e) {\n// e.printStackTrace();\n// } catch (OWLOntologyStorageException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n// }\n\n }", "public static void main(String[] args) throws Exception {\n\t\t\n\n BufferedReader reader = new BufferedReader(new FileReader(\"src/main/resources/example/ontologytemp.owl\"));\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"src/main/resources/example/test.owl\"));\n\t\t\n\t\t\n\t\t/*File owl = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology5.owl\");\n File obda = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology-conf.obda\");\n\t\tString baseUri = \"http://www.semanticweb.org/user/ontologies/\";\n\t\tString jdbcUrl = \"jdbc:mysql://localhost/conference10\";\n\t\tString jdbcUserName = \"root\";\n\t\tString jdbcPassword = \"root\";\n\t\tString jdbcDriverClass = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\tDirectMappingBootstrapper dm = new DirectMappingBootstrapper(baseUri, jdbcUrl, jdbcUserName, jdbcPassword, jdbcDriverClass);\n\t\tOBDAModel model = dm.getModel();\n\t\tOWLOntology onto = dm.getOntology();\n\t\tModelIOManager mng = new ModelIOManager(model);\n\t\tmng.save(obda);\n onto.getOWLOntologyManager().saveOntology(onto,\n new FileDocumentTarget(owl));*/\n\t\t\n\t\t\n\t\t/*\n\t\tXFactoryBufferedImpl factory = new XFactoryBufferedImpl();\t\n\t\t\n\t\tXAttribute attr = factory.createAttributeLiteral(\"concept:name\", \"tracevalue\", null); // create attribute for trace\n\t\tXAttributeMap attrMapTrace = new XAttributeMapImpl(); // create a new map attribute\n\t\tattrMapTrace.put(\"concept:name\", attr);\t// put attribute to the map attribute\n\t\tXTrace xtrace = factory.createTrace(attrMapTrace); // create xtrace\n\t\t\n\t\tXAttributeMap attrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent = factory.createEvent(attrMap); // create xevent\n\t\txtrace.insertOrdered(xevent); // insert event in correct order in a trace\n\t\t\n\t\tattrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent2 = factory.createEvent(attrMap); // create xevent\n\t\t\n\t\tSystem.out.println(xtrace.contains(xevent2));\n\t\t*/\n\t}", "private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }", "protected void createInputAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/input\";\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getPrint_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t}", "public static void main(String[] args) throws Exception {\n\t\tint i;\r\n\t\tint [][]preci_recall = new int [5][6]; \r\n\r\n\t\tNGRAM ngram = new NGRAM();\r\n\t\t\r\n\t\tfor(i=0; i<5; i++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println((i+1) + \" th FOLD IS A TEST SET\");\r\n\t\t\t\r\n\t\t\tdouble[][] test_ngram_features = ngram.feature(i,1);\r\n\t\t\tdouble[][] train_ngram_features = ngram.feature(i,0);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"NGRAM FEATURES...OK\");\r\n\t\r\n//\t\t\t\r\n//\t\t\tLIWC liwc = new LIWC();\r\n//\t\t\t\r\n//\t\t\tdouble[][] test_liwc_features = liwc.feature(i,1,test_ngram_features.length);\r\n//\t\t\tdouble[][] train_liwc_features = liwc.feature(i,0,train_ngram_features.length);\r\n//\r\n//\t\t\tSystem.out.println(\"LIWC FEATURES..OK\");\r\n//\t\t\t\r\n//\t\t\tCOMBINE combine = new COMBINE();\r\n//\t\t\tdouble[][] train_features = combine.sum(train_liwc_features,train_ngram_features);\r\n//\t\t\tdouble[][] test_features = combine.sum(test_liwc_features,test_ngram_features);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"COMBINE...OK\");\r\n\t\t\r\n\t\t\tSVMLIGHT svmlight = new SVMLIGHT();\r\n\t\t\tpreci_recall[i]=svmlight.calcc(train_ngram_features, test_ngram_features);\r\n\r\n\t\t}\r\n\t\t\r\n//\t 0 : truthful TP\r\n//\t 1 : truthful TP+FP\r\n//\t 2 : truthful TP+FN\r\n//\t 3 : deceptive TP\r\n//\t 4 : deceptive TP+FP\r\n//\t 5 : deceptive TP+FN\r\n\t\t\r\n\t\tint truthful_TP_sum=0,truthful_TPFP_sum=0,truthful_TPFN_sum=0;\r\n\t\tint deceptive_TP_sum=0,deceptive_TPFP_sum=0,deceptive_TPFN_sum=0;\r\n\t\t\r\n\t\tfor(i=0;i<5;i++) {\r\n\t\t\ttruthful_TP_sum+=preci_recall[i][0];\r\n\t\t\ttruthful_TPFP_sum+=preci_recall[i][1];\r\n\t\t\ttruthful_TPFN_sum+=preci_recall[i][2];\r\n\t\t\t\r\n\t\t\tdeceptive_TP_sum+=preci_recall[i][3];\r\n\t\t\tdeceptive_TPFP_sum+=preci_recall[i][4];\r\n\t\t\tdeceptive_TPFN_sum+=preci_recall[i][5];\r\n\t\t}\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\n\\nTRUTHFUL_TP_SUM : \" + truthful_TP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFP_SUM : \" + truthful_TPFP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFN_SUM : \" + truthful_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE_TP_SUM : \" + deceptive_TP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFP_SUM : \" + deceptive_TPFP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFN_SUM : \" + deceptive_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTRUTHFUL PRECISION : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFP_sum));\r\n\t\tSystem.out.println(\"TRUTHFUL RECALL : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFN_sum));\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE PRECISION : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFP_sum));\r\n\t\tSystem.out.println(\"DECEPTIVE RECALL : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFN_sum));\r\n\t\t\r\n\r\n\t}", "public static void main(String abc[]) throws Exception{\n\tScanner scan=new Scanner(System.in); //for taking the input from user\n\t//Asking the user for the description\n\tSystem.out.println(\"Please mention the description of the ontology\");\n\tString s1_des;\n\ts1_des=scan.nextLine();\n\t//Asking the user for the competency questions\n\tSystem.out.println(\"Please mention the Competency Questions related to the Ontology\");\n\tString s2_cq;\n\ts2_cq=scan.nextLine();\t\n\t//This java file has code for OWL file and classifying different properties\n\tOwl_Lexical owl_ontology=new Owl_Lexical();\n\towl_ontology.owlOntology();\n\t//Saving the description of the ontology in a file\n\tBufferedWriter writer_des=new BufferedWriter(new FileWriter(\"ontology_description\"));\n\twriter_des.write(s1_des);\n\twriter_des.close();\n\t//Saving the competency questions of the ontology in a file\n\tBufferedWriter writer_cq=new BufferedWriter(new FileWriter(\"ontology_cq\"));\n\twriter_cq.write(s2_cq);\n\twriter_cq.close();\n\t//Stop words from competency questions are removed\n\tStopWords_CqOntology stop_cq=new StopWords_CqOntology();\n\tstop_cq.stopWordsCQOntology();\n\t//Stop Words from the description are removed\n\tStopWords_Ontology stop_des=new StopWords_Ontology();\n\tstop_des.stopWordsDesOntology();\t\n\t\n/*--------------------------------EXECUTION PART------------------------------------------------\n <-------------------------------STRUCTURAL ANALYSIS---------------------------------------------->\t\n Properties obtained from the OWL file are analysed. Doc2Vec is used and cosine similarity \n gives the numeric score of the ontology against each ODP.The below functions call the respective\n class that holds the code for each Structural Property that we have taken under consideration \n for the analysis. */\n\t// 1. CHAIN OF PROPERTY\n\tParagraphVectorsChainOfProperty cp=new ParagraphVectorsChainOfProperty();\n\tcp.chainOf();\n\t// 2. DATA DOMAIN Property\n\tParagraphVectorsDataPropertyDomain pd=new ParagraphVectorsDataPropertyDomain();\n\tpd.dataPropertyDomain();\n\t// 3. DATA RANGE PROPERTY\n\tParagraphVectorsDataPropertyRange pr=new ParagraphVectorsDataPropertyRange();\n\tpr.dataPropertyRange();\n\t// 4. DISJOINT CLASSES\n\tParagraphVectorsDisjointClasses dc=new ParagraphVectorsDisjointClasses();\n\tdc.disjointClasses();\n\t// 5. OBJECT DOMAIN PROPERTY\n\tParagraphVectorsObjectDomainProperty od=new ParagraphVectorsObjectDomainProperty();\n\tod.objectDomainProperty();\n\t// 6. OBJECT RANGE PROPERTY\n\tParagraphVectorsObjectPropertyRange op=new ParagraphVectorsObjectPropertyRange();\n\top.objectRangeProperty();\n\t// 7. SUB-CLASS PROPERTY\n\tParagraphVectorsSubClassProperty sc=new ParagraphVectorsSubClassProperty();\n\tsc.subClassProperty();\n\t// 8. SUB-DATA PROPERTY\n\tParagraphVectorsSubDataProperty sd=new ParagraphVectorsSubDataProperty();\n\tsd.subDataProperty();\n\t// 9. SUB-OBJECT PROPERTY\n\tParagraphVectorsSubObjectProperty so=new ParagraphVectorsSubObjectProperty();\n\tso.subObjectProperty();\n\t\n/*<-----------------------------------BEHAVIOURAL ANALYSIS-------------------------------------------->\n The Competency Question of the ontology are saved and mappped with the competency questions \n of the ODPs in the list. The ODPs obtained manchester site do not have competency questions, but \n the rest all ontologies have.So, approximately 15 among the 73 ODPs present are without CQs\t\n\t*/\n\tParagraphVectors_CQ cq=new ParagraphVectors_CQ();\n\tcq.cqMapping();\n/*<------------------------------------LEXICAL ANALYSIS------------------------------------------------>\n Lexical Analysis involves the analysis by use of the description and by the names of classes\n properties present in the OWL file. The description along with the description(classes and properties) \n of the OWL file of the ontology are compared against the ODPs. All the ODPs present have description\n *along with the classes and properties.\n */\n // 1. DESCRIPTION\n\tParagraphVectorsTextExample te=new ParagraphVectorsTextExample();\n\tte.description();\n\t// 2. SIGNATURE\n\tParagraphVectors_Signature vs=new ParagraphVectors_Signature();\n\tvs.signature();\n/*<--------------------------------------INTEGRATION OF SCORES----------------------------------------->\n * After obtaning the numeric values of lexical, structural and behavioural parts, the cosine \n * similarity scores are combined together of the ontology and the ODPs and placed in a single\n * file.\n */\n\tIntegration_Of_Scores os=new Integration_Of_Scores();\n\tos.integratingScores();\n/*<----------------------------------------NORMALISING SCORES------------------------------------------->\n * After all the scores of an ODP (against the given ontology) are added up, the scores are normalised\n * so that these range between 0 to 1 and we can set a particular threshold for the ODP recommendations\n */\n\tNormalising_Scores ns=new Normalising_Scores();\n\tns.normalisingScores();\n/*<------------------------------------------ODP RECOMMENDER-------------------------------------------->\n * \tAfter we have normalised the scores against the ODPs, we run the this java program from where the\n * recommendations can be suggested. \n */\n ODPRecommender reco=new ODPRecommender();\n reco.odpRecommender();\n\t\n}", "public static void main(String[] args) throws IOException {\n // All but last arg is a file/directory of LDC tagged input data\n File[] files = new File[args.length - 1];\n for (int i = 0; i < files.length; i++)\n files[i] = new File(args[i]);\n\n // Last arg is the TestFrac\n double testFraction = Double.valueOf(args[args.length -1]);\n\n // Get list of sentences from the LDC POS tagged input files\n List<List<String>> sentences = POSTaggedFile.convertToTokenLists(files);\n int numSentences = sentences.size();\n\n // Compute number of test sentences based on TestFrac\n int numTest = (int)Math.round(numSentences * testFraction);\n\n // Take test sentences from end of data\n List<List<String>> testSentences = sentences.subList(numSentences - numTest, numSentences);\n\n // Take training sentences from start of data\n List<List<String>> trainSentences = sentences.subList(0, numSentences - numTest);\n System.out.println(\"# Train Sentences = \" + trainSentences.size() +\n \" (# words = \" + BigramModel.wordCount(trainSentences) +\n \") \\n# Test Sentences = \" + testSentences.size() +\n \" (# words = \" + BigramModel.wordCount(testSentences) + \")\");\n\n // Create a BidirectionalBigramModel model and train it.\n BidirectionalBigramModel model = new BidirectionalBigramModel();\n\n System.out.println(\"Training...\");\n model.train(trainSentences);\n\n // Test on training data using test2\n model.test2(trainSentences);\n\n System.out.println(\"Testing...\");\n // Test on test data using test2\n model.test2(testSentences);\n }", "TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}", "public void addExampleList(String classKey, List<Roi> roi, String type) ;", "public static void main(String[] args) {\n\n\t\tString urlClassification = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/classification.txt\";\n\t\tString urlExpert = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/expert.txt\";\n\t\tString urlLocations = \"http://www.hep.ucl.ac.uk/undergrad/0056/exam-data/2018-19/locations.txt\";\n\n\t\tArrayList<ImageData> classification = ImageData.classificationFromURL(urlClassification);\n\t\tArrayList<ImageData> expert = ImageData.expertFromURL(urlExpert);\n\t\tArrayList<ImageData> locations = ImageData.locationsFromURL(urlLocations);\n\t\t\n\t\t// For part 2. we need to print the number of images\n\t\t// This will be the length of expert list\n\n\t\tSystem.out.println(expert.size());\n\t\t\n\t\t// For part 3. we need to print the number of images classified by at least 1\n\t\t// volunteer. We will utilise the properties of Sets in java.\n\t\t\n\t\tHashSet<Integer> idsClassifiedByOne = new HashSet<Integer>();\n\t\tfor (ImageData image : classification) {\n\t\t\tidsClassifiedByOne.add(image.getIdentifier());\n\t\t}\n\t\tSystem.out.println(idsClassifiedByOne.size());\n\t\t\n\t\t// For part 4. we need to print details of the images classified by at least 10\n\t\t// volunteers. \n\t\t\n\t\tArrayList<ImageData> atLeast10Vols = new ArrayList<ImageData>();\n\t\tatLeast10Vols = ImageData.atLeast10(classification);\n\t\t\n\t\t// Must merge the information from classification, locations and expert lists\n\t\tArrayList<ImageData> atLeast10CompleteList = new ArrayList<ImageData>();\n\t\tatLeast10CompleteList = ImageData.collectAll(atLeast10Vols, expert, locations);\n\t\tArrayList<ImageData> clean10CompleteList = ImageData.clean(atLeast10CompleteList);\n\t\t\n\t\t// Printing out the data\n\t\t\n\t\tSystem.out.println(clean10CompleteList);\n\n\t}", "public NaiveBayesTFIDF(ArrayList<TFIDF> trainedClasses)\n {\n this.trainedClasses = trainedClasses;\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "public static void main(String[] args) {\n\t\t/*Tuple[] tuples = new Tuple[]{\n\t\t\tnew Tuple(\"0 0 1 0 0\", \"1 3\", ' '),\n\t\t\tnew Tuple(\"1 0 0 1 1\", \"1 2\", ' '),\n\t\t\tnew Tuple(\"0 0 0 1 1\", \"1 1\", ' '),\n\t\t\tnew Tuple(\"1 1 0 0 1\", \"2 1\", ' '),\n\t\t\tnew Tuple(\"1 1 0 0 1\", \"3 1\", ' '),\n\t\t\tnew Tuple(\"1 1 0 0 1\", \"3 2\", ' '),\n\t\t\tnew Tuple(\"0 0 0 1 0\", \"3 3\", ' '),\n\t\t\tnew Tuple(\"0 1 0 1 1\", \"2 3\", ' ')\n\t\t};\n\t\tdata = new DataSet(tuples);*/\n\t\t\n\t\t//data = Parser.parseAttributes(\"Corel5k-train.arff\", 374);\n\t\tdata = Parser.parseShortNotation(\"diabetes.txt\", 1, new NumericalItemSet(new int[]{}));\n\t\ts = data.s();\n\t\tn = data.getTuples().length;\n\t\tm = data.getTuples()[0].getClassValues().length;\n\t\t\n\t\t/*double u = 0;\n\t\tlong l = 0;\n\t\tfor(int j = 0; j < 10; j++) {\n\t\t\tdouble t = System.currentTimeMillis();\n\t\t\tfor(int i = 0; i < 10000; i++)\n\t\t\t\tu = data.getBluePrint().getOneItemSet(2, 48).ub();\n\t\t\tl += (System.currentTimeMillis() - t);\n\t\t}\n\t\tSystem.out.println(((double)l/10));*/\n\t\n\t\t\n\t\tSystem.out.println(\"Data loaded, \"+data.getTuples().length+\" tuples, \"+\n\t\t\t\tdata.getTuples()[0].getItemSet().getLength()+\" items, \"+\n\t\t\t\tdata.getTuples()[0].getClassValues().length+\" class values\");\n\t\t\t\t\n\t\tStopWatch.tic(\"Full time\");\n\t\tSystem.out.println(icc());\n\t\tStopWatch.printToc(\"Full time\");\n\t}", "public void WritePredictionImages() {\r\n\r\n\t\tString str = new String();\r\n\r\n\t\tModelSimpleImage img = new ModelSimpleImage();\r\n\t\tCDVector texture = new CDVector();\r\n\t\tint n = m_pModel.Rc().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rc().Row(n - i - 1, texture); // take largest first\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rc_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rc_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t\tn = m_pModel.Rt().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rt().Row(i, texture);\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rt_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rt_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t}", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "public void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) {\n if (currentSentence != tokens) {\n currentSentence = tokens;\n if (isBilou) {\n currentEntities = dictionary.getBilouDictionaryMatch(tokens);\n } else {\n currentEntities = dictionary.getBioDictionaryMatch(tokens);\n }\n }\n \n String currentEntity = currentEntities.get(index);\n \n features.add(attributes.get(\"dict\") + \"=\" + currentEntity);\n features.add(attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n features.add(attributes.get(\"dict\") + \",w=dict\");\n if (Flags.DEBUG) {\n System.err.println(\"-> \" + tokens[index] + \": \" + attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n }\n }", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "public static void main(String args[]){\n\t\t//parameters that can be modified\n\t\tint topicNum=100;\n\t\tString sourceID=\"1864252027/\";\n\t\tint subnetworkSize=1100;\n\t\tString dir=\"sampleTest/\"+sourceID+subnetworkSize+\"/\";\n\t\tString fileName=\"ldaInput.txt\";\n\t\tint iterationNum=1000;\n\t\t\n\t\t//read training data from file\n\t\tSystem.out.println(\"loading files\");\n\t\tGraph network=GraphOperator.getFromFile(dir+\"sample.network\");\n\t\tHashMap<String,Message>trainingStatusMap=MessageListOperator.readMessageFromFile(dir+\"trainingSet.status\");\n\t\tHashMap<String,Message>commentMap=MessageListOperator.readMessageFromFile(dir+\"samplePreDoc.comment\");\n\t\t\n\t\tDocumentAssign.relateMessageToNetwork(network,trainingStatusMap,commentMap);\n\t\tDocumentAssign.optimizedAssign(network,dir,fileName);\n\t\t\n\t\tSystem.out.println(\"Training\");\t\n\t\t//training with Optimized assignment\n\t\tLDA_InfluMax.estimationFromScratch(50/((double)topicNum),0.01,topicNum,\n\t\t\t\titerationNum,iterationNum/2,dir,fileName,50);\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 }", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "private List<EntityAnnotation> sciGraphAnnotate(String text) throws AnnotationException\n {\n List<EntityAnnotation> entities;\n try {\n StringReader reader = new StringReader(text);\n EntityFormatConfiguration.Builder builder = new EntityFormatConfiguration.Builder(reader);\n builder.includeCategories(CATEGORIES);\n builder.longestOnly(false);\n builder.includeAbbreviations(false);\n builder.includeAncronyms(false);\n builder.includeNumbers(false);\n entities = wrapper.annotate(builder.get());\n } catch (IOException e) {\n throw new AnnotationException(e.getMessage());\n }\n return entities;\n }", "public static void main(String[] args) {\n\t\tList<String> listSouceCode = Helper.getAllDataFromFolder(DATASET1);\n\n\t\t//Create the HMM for concepts\n\t\tHMMConcept hmmConcept = new HMMConcept();\n\t\thmmConcept.init();\n\t\tHMMConceptInit.initTransition(hmmConcept);\n\n\t\t//Now, let us test the training phase\n\t\t//Transition probabilities\n\t\tHMMConceptTransition.\n\t\t\tpreTransition(listSouceCode, hmmConcept);\n\t\tHMMConceptTransition.\n\t\t\ttargetTransition(listSouceCode, hmmConcept);\n\t\tHMMConceptTransition.\n\t\t\totherTransition(listSouceCode, hmmConcept);\n//\t\t//Observations probabilities\n\t\tHMMConceptObservation.\n\t\t\tpreObservation(listSouceCode, hmmConcept);\n\t\tHMMConceptObservation.\n\t\t\ttargetObservation(listSouceCode, hmmConcept);\n\t\tHMMConceptObservation.\n\t\t\totherObservation(listSouceCode, hmmConcept);\n\t\t\n//\t\tSystem.out.println(hmmConcept);\n\n//\t\t//*************************END of the HMM training***************************************\n\n\t\t///To extract knowledge, just uncomment the corresponding source code\n\t\t\n\t\t/**\n\t\t * EPICAM Knowledge extraction\n//\t\t */\n//\t\t//Knowledge extraction\n//\t\tList<String> testedSourceCode = Helper.getAllDataFromFolder(DATASET2);\n//\t\tList<Column> alphaTable;\n//\t\t\n//\t\tfor (String sourceFile : testedSourceCode) {\n//\t\t\talphaTable = MostLikelyExplanationConcept.\n//\t\t\t\t\tfillAlphaStartTable4Concepts(hmmConcept, sourceFile);\n//\n//\t\t\tString extracted = MostLikelyExplanationConcept.knowledgeExtraction(alphaTable);\n////\t\t\tWriting to an OWL file\n//\t\t\tHelper.writeDataToFile(CONCEPTSEXTRACTED, extracted);\n//\t\t\t//The number of false positives and the number of target\n//\t\t\tSystem.out.println(MostLikelyExplanationConcept.nbFalsePositive+\"\\n and nb target: \"+\n//\t\t\tMostLikelyExplanationConcept.nbTarget);\n//\t\t\t\n////\t\t\tSystem.out.println(Term2OWL.term2OWL(new File(CONCEPTSEXTRACTED)));\n//\n//\t\t}\n\n\t\t/**\n\t\t * Geoserver knowledge extraction\n\t\t */\n\n\t\tList<String> testedSourceCode = Helper.getAllDataFromFolder(GEOSERVER);\n\t\tList<Column> alphaTable;\n\t\t\n\t\tfor (String sourceFile : testedSourceCode) {\n\t\t\talphaTable = MostLikelyExplanationConcept.\n\t\t\t\t\tfillAlphaStartTable4Concepts(hmmConcept, sourceFile);\n\n\t\t\tString extracted = MostLikelyExplanationConcept.knowledgeExtraction(alphaTable);\n//\t\t\tWriting to an OWL file\n\t\t\tHelper.writeDataToFile(TERMSEXTRACTED2GEOSERVER, extracted);\n\t\t\t//The number of false positives and the number of target\n\t\t\t\n//\t\t\tSystem.out.println(Term2OWL.term2OWL(new File(CONCEPTSEXTRACTED)));\n\n\t}\n\t\tSystem.out.println(MostLikelyExplanationConcept.nbFalsePositive+\"\\n and nb target: \"+\n\t\tMostLikelyExplanationConcept.nbTarget);\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "protected void createDslfactoryAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/dsl/2007/dslfactory\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"trackResourceModification\", \"true\",\n\t\t\t \"useUUIDs\", \"false\",\n\t\t\t \"useIDAttributes\", \"true\",\n\t\t\t \"extensibleProviderFactory\", \"true\",\n\t\t\t \"childCreationExtenders\", \"true\"\n\t\t });\n\t}", "private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }", "public static JSONArray add_Annotations (String sessionID, String pathOrUid, String classification,\n\t\t\tint layerID, String notes, String geometry, String color) throws Exception {\n\t\tJSONObject data = new JSONObject();\n\t\tString urlS;\n\t\tsessionID = sessionId(sessionID);\n\t\tif (sessionID == pmaCoreLiteSessionID) {\n\t\t\tif (isLite()) {\n\t\t\t\tthrow new Exception(\"PMA.core.lite found running, but doesn't support adding annotations.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"PMA.core.lite not found, and besides; it doesn't support adding annotations.\");\n\t\t\t}\n\t\t}\n\t\turlS = pmaUrl(sessionID) + \"api/json/AddAnnotation\";\n\t\tURL url = new URL(urlS);\n\t\tdata.put(\"sessionID\", sessionID);\n\t\tdata.put(\"pathOrUid\", pathOrUid);\n\t\tdata.put(\"classification\", classification);\n\t\tdata.put(\"layerID\", layerID);\n\t\tdata.put(\"notes\", notes);\n\t\tdata.put(\"geometry\", geometry);\n\t\tdata.put(\"color\", color);\n\n\t\tURLConnection con = url.openConnection();\n\t\tHttpURLConnection http = (HttpURLConnection) con;\n\t\thttp.setRequestMethod(\"POST\"); // PUT is another valid option\n\t\thttp.setDoOutput(true);\n\t\tout.println(con);\n\t\tout.println(http);\n\n\t\tbyte[] out = data.toString().getBytes(StandardCharsets.UTF_8);\n\t\tint length = out.length;\n\t\tSystem.out.println(length);\n\n\t\thttp.setFixedLengthStreamingMode(length);\n\t\thttp.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n\t\thttp.connect();\n\t\ttry (OutputStream os = http.getOutputStream()) {\n\t\t\tos.write(out);\n\t\t\tSystem.out.println(os);\n\t\t}\n\t\treturn null;\n\t}", "public void train(Annotation annotation, Document doc) {\n\t\t// Find all possible same-sentence event pairs\n\t\t// Extract JUST the links between events from parsed XML (doc)\n\t\tSet<Pair<CoreLabel, CoreLabel>> pairs = getEventPairs(annotation);\n\t\tMap<String, Map<String, String>> relationships = getEventRelationships(doc, null);\n\n\t\tfor (Pair<CoreLabel, CoreLabel> pair: pairs) {\n\t\t\tDatum<String, String> binaryDatum = \n\t\t\t\t\tgetDatum(pair.first, pair.second, pairs, relationships, BINARY);\n\t\t\tbinaryTrainingData.add(binaryDatum);\n\t\t\tif (!binaryDatum.label().equals(\"O\")) {\n\t\t\t\tDatum<String, String> multiDatum = \n\t\t\t\t\t\tgetDatum(pair.first, pair.second, pairs, relationships, NOT_BINARY);\n\t\t\t\tmultiTrainingData.add(multiDatum);\n\t\t\t}\n\t\t}\n\t}", "public void onCreate() {\n\r\n\r\n \tRDFResource newResource = (RDFResource) ProtegeUI.getSelectionDialogFactory().selectClass(AssertedInstancesListOntoMorphPanel.this, owlModel, \"Select a named class to add\");\r\n \tif (newResource instanceof Cls)\r\n \t{\r\n\r\n \t\t/* How creation works:\r\n\t\t\t\t\t\t1. First, create a resource\r\n\t\t\t\t\t\t2. add resource to the 'classes' list\r\n\t\t\t\t\t\t3. refresh the display list based on the 'classes'\r\n\t\t\t\t\t\t4. create the instance in the owlModel\r\n\t\t\t\t\t\t5. set the selected on the display list value to match\r\n \t\t*/\r\n\r\n \t\tArrayList type = new ArrayList();\r\n \t\ttype.add(newResource);\r\n\r\n \t\t//** Not sure what this does, but deleteding it will criple the 'delete individual' button\r\n \t\tArrayList acsum = new ArrayList();\r\n \t\tacsum.addAll(classes);\r\n \t\tacsum.add(newResource);\r\n \t\tremoveClsListeners();\r\n \t\tclasses = acsum;\r\n \t\tlist.setClasses(acsum);\r\n \t\t//****\r\n \t\t\r\n\r\n \t\tInstance instance = owlModel.createInstance(null, type);\r\n \t\tif (instance instanceof Cls) {\r\n \t\t\tCls newCls = (Cls) instance;\r\n \t\t\t//if this is a top level class, make it at least be a subclass of owlThing\r\n \t\t\tif (newCls.getDirectSuperclassCount() == 0) {\r\n \t\t\t\tnewCls.addDirectSuperclass(owlModel.getOWLThingClass());\r\n \t\t\t}\r\n \t\t}\r\n\r\n \t\t//make it ready for markup\r\n \t\tnewResource = (RDFResource) instance;\r\n \t\t\r\n \t\t//To create an 'empty' instance as below\r\n \t\t//assignImgSelection(newResource, \"none\", 0, 0, 0);\r\n \t\t//***\r\n \t\tif (instance != null)\r\n \t\t{\r\n \t\t\tint[] plist = {0,0};\r\n \t\t\tint reqNodes = 3;\r\n \t\t\tplist=oTab.getSelectedNodes();\r\n\r\n \t\t\tif (plist == null)\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"*** Error creating instance: No points were selected, needed\" + reqNodes);\r\n \t\t\t\tassignImgSelection(newResource, \"none\", 0, 0, 0); //create an 'empty' instance\r\n \t\t\t}\r\n \t\t\telse if (plist.length == reqNodes)\r\n \t\t\t{\r\n \t\t\t\tassignImgSelection(newResource, oTab.neuronPanel.getURL(), plist[0], plist[1], plist[2]);\t//graphically display the class that was selected by calling this method on current image\r\n \t\tSystem.out.println(\"*** New OMT individual: \" + newResource.getName());\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"*** Error creating instance: Could not resolve selection list (Needed \" + reqNodes + \" have \" + plist.length);\r\n \t\t\t}\r\n \t\t}\r\n\r\n \t\t//Reload the list\r\n \t\treload();\r\n \t\tupdateButtons();\r\n \t\taddClsListeners();\r\n\r\n \t\tlist.setSelectedValue(instance, true);\r\n \t}\r\n }", "public static void main(String[] args) throws Exception\n {\n if (args.length==0 || args[0].equals(\"-h\")){\n System.err.println(\"Tests: call as $0 org1=g1.fa,org2=g2.fa annot.txt 5ss-motif 5ss-boundary 3ss-motif 3ss-boundary\");\n System.err.println(\"Outputs splice site compositions.\");\n System.exit(9);\n }\n \n int arg_idx=0;\n String genome_fa_list = args[arg_idx++];\n String annotation_file = args[arg_idx++];\n int donor_motif_length = Integer.parseInt(args[arg_idx++]);\n int donor_boundary_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_motif_length = Integer.parseInt(args[arg_idx++]);\n int acceptor_boundary_length = Integer.parseInt(args[arg_idx++]);\n\n AnnotatedGenomes annotations = new AnnotatedGenomes();\n List<String> wanted_organisms = annotations.readMultipleGenomes(genome_fa_list);\n annotations.readAnnotations(annotation_file); \n \n SpliceSiteComposition ss5[] = new SpliceSiteComposition[wanted_organisms.size()];\n SpliceSiteComposition ss3[] = new SpliceSiteComposition[wanted_organisms.size()];\n \n for (int org_idx=0; org_idx<wanted_organisms.size(); org_idx++)\n {\n String org = wanted_organisms.get(org_idx);\n System.out.println(\"#SSC organism \"+org);\n \n SpliceSiteComposition don = ss5[org_idx] = new SpliceSiteComposition(donor_motif_length, donor_boundary_length, true);\n SpliceSiteComposition acc = ss3[org_idx] = new SpliceSiteComposition(acceptor_motif_length, acceptor_boundary_length, false);\n\n for (GenePred gene: annotations.getAllAnnotations(org))\n {\n don.countIntronSites(gene);\n acc.countIntronSites(gene);\n\n } // for gene \n \n //don.reportStatistics(System.out);\n //acc.reportStatistics(System.out);\n don.writeData(System.out);\n acc.writeData(System.out);\n \n } // for org\n }", "private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annotation completed ....\");\n MyWriter.write(corpus, outCorpusFile);\n Out.prln(\"*** ENTITY ANNOTATION COMPLETED *** \");\n }", "public void preprocess(String trainDataFolder)\n\t{\n\t\tFile folder = new File(trainDataFolder);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor(int i=0;i<listOfFiles.length;i++){\n\t\t\t\ttry{\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(listOfFiles[i].getAbsoluteFile()));\n\t\t\t\t\tString allLines = new String();\n\t\t\t\t\tString line = null;\n\t\t\t\t\tint tabIndex;\n\t\t\t\t\tString type, msg;\n\t\t\t\t\tint label;\n\t\t\t\t\tint line_count = 0;\n\t\t\t\t\tallDocs = new ArrayList<String>();\n\t\t\t\t\twhile((line=reader.readLine())!=null && !line.isEmpty()){\n\t\t\t\t\t\tallDocs.add(line);\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(allDocs.size());\n\t\t\t\t\t//System.out.println(offset);\n\t\t\t\t\tfor(int s=0;s<offset;s++){\n\t\t\t\t\t\tline = allDocs.get(s);\n\t\t\t\t\t\ttabIndex = line.indexOf('\\t');\n\t\t\t\t\t\ttype = line.substring(0, tabIndex);\n\t\t\t\t\t\tmsg = line.substring(tabIndex + 1);\n\t\t\t\t\t\tmsg = msg.toLowerCase();\n\t\t\t\t\t\tif(type.equals(\"ham\")){label = 0;}\n\t\t\t\t\t\telse{label = 1;}\n\t\t\t\t\t\tclassStrings[label] += (line + \" \");\n\t\t\t\t\t\tclassCounts[label]++;\n\t\t\t\t\t\ttrainingDocs.add(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(IOException ioe){ioe.printStackTrace();}\n\t\t}\n\t\t/*System.out.println(\"number of ham tokens \"+classStrings[0].length());\n\t\tSystem.out.println(\"number of spam tokens \" +classStrings[1].length());\n\t\t*/\n\t\tSystem.out.println(\"Training Data Class Distribution:\");\n\t\tSystem.out.println(\"Ham: \"+classCounts[0]+\"(\"+Math.round(classCounts[0]*10000.0/trainingDocs.size())/100.0+\"%)\");\n\t\tSystem.out.println(\"Spam: \"+classCounts[1]+\"(\"+Math.round(classCounts[1]*10000.0/trainingDocs.size())/100.0+\"%)\");\n\t\tSystem.out.println(\"Total: \"+trainingDocs.size());\n\t}", "public void saveTrainingDataToFileUpSampling() throws Exception {\r\n //set tokenizer - we can specify n-grams for classification\r\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n //SELECT content, label FROM article_the_island_2012 where `label` IS NOT NULL\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n for (int k = 0; k < 5; k++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n }\r\n }\r\n }\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == crimeArticlesCount) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == crimeArticlesCount) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n Random r = new Random();\r\n dataFiltered.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataFiltered);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataUSRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }", "private void startParsing(){\r\n pondred = new ArrayList<>();\r\n //extract docs from corpus\r\n for (String xml:parseDocsFile(docs_file))\r\n {\r\n try {\r\n pondred.add(loadXMLFromString(xml));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n System.out.println(\"Ending parsing\");\r\n for (Core pon:pondred){\r\n for (String string:pon.abstractTerm){\r\n Double tf = pon.getAbstractFerq(string)/pon.getAbstractSize();\r\n Double idf = Math.log10(Core.count/countingDuplicates(string));\r\n pon.abstractFrequence.put(string,tf*idf);\r\n }\r\n pon.finish();\r\n }\r\n }", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "void addTestTermsAndCourses() {\n // Creates Terms\n addTerm(\"Term 1\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 2\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 3\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 4\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 5\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 6\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 7\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 8\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 9\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 10\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 11\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 12\", \"5/19/2019\", \"6/23/2019\");\n int term1Id = getTermIdFromIndex(0);\n int term2Id = getTermIdFromIndex(1);\n// int term3Id = getTermIdFromIndex(2);\n\n // Creates Courses\n addCourse(\"course 1\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 2\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 3\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n addCourse(\"course 4\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 5\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 6\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n int course1Id = getCourseIdFromIndex(0);\n int course2Id = getCourseIdFromIndex(1);\n\n // Creates Assignments\n addAssignment(\"Assignment 1\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 2\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 3\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 4\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 5\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 6\", \"this shit is whack\", \"5/29/2019\", null);\n addAssignment(\"Assignment 7\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 8\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 9\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 10\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 11\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 12\", \"this shit is whack\", \"5/29/2019\", null);\n }", "public void makeInput(ArrayList<double[][]> matricesList, double[][] myEntry, ArrayList<String> labels){\n\t\t int l=0;\t\t \n\t\t \n\t\t for(int i=0;i<matricesList.size();i++){\n\t\t\t double[][] aux = new double[XDIMENSION*YDIMENSION][1];\n\t\t\t for(int y=0;y<YDIMENSION;y++){\n\t\t\t\t for(int x=0;x<XDIMENSION;x++){\t\t\t\t \n\t\t\t\t\t aux[l++][0] = matricesList.get(i)[y][x];\n\t\t\t\t }\n\t\t\t }\t\t\t \n\t\t\t trainingChar.add(labels.get(i));\t \n\t\t\t trainingList.add(aux);\n\t\t\t l=0;\t \t\t \n\t\t }\n\t\t \n\t\t for(int y=0;y<YDIMENSION;y++){\n\t\t\t for(int x=0;x<XDIMENSION;x++){\n\t\t\t\t entryCoord[l++][0] = myEntry[y][x];\n\t\t\t }\n\t\t }\n\t }", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void initOntology() {\n\n\tontology = ModelFactory.createDefaultModel();\n\t\t\t\n\ttry \n\t{\n\t\t//ontology.read(new FileInputStream(\"ontology.ttl\"),null,\"TTL\");\n\t\tontology.read(new FileInputStream(\"Aminer-data.ttl\"),null,\"TTL\");\n\t\t//ontology.read(new FileInputStream(\"SO data.ttl\"),null,\"TTL\");\n\t} \n\tcatch (FileNotFoundException e) \n\t{\n\t\tSystem.out.println(\"Error creating ontology model\" +e.getMessage());\n\t\te.printStackTrace();\n\t}\n\t\t\t\n\t\t\n\t}", "protected void createBikeshedAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Abstract-Syntax\"\n\t\t });\n\t\taddAnnotation\n\t\t (elementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (identifiedElementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (importEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (axiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (assertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (predicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (argumentEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (ontologyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (memberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (statementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (termEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (ruleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializableTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationBaseEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializablePropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (entityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (aspectEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (semanticPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (structuredPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (forwardRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (reverseRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (unreifiedRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (namedInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (keyAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRangeRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyCardinalityRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertySelfRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (unaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (binaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (typePredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (sameAsPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (differentFromPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (quotedLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (integerLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (doubleLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (booleanLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (separatorKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (rangeRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (cardinalityRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (importKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t}", "public ArrayList getClassList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n String adj = \"\";\n String storingClass = \"\";\n HashSet classWithAttr = new HashSet();\n storingClassWithAttr = new HashMap<String, HashSet>();\n\n List<Tree> leaves;\n String phraseNotation = \"(NP([<NNS|NN|NNP]$VP))\";//@\" + phrase + \"! << @\" + phrase;\n\n /*For the single Tree */\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n String tempClass = \"\";\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n adjectiveExist = 0;\n adjectiveNoun = 0;\n int separator = 0;\n\n if (innerChild.length > 1) {\n int count = 1;\n int loopCount = 1;\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).yieldWords().get(0).word();\n if (dictionaryForClassList.contains(adj)) {\n adj = \"\";\n }\n }\n //if adjective exist store the classes and attributes separately\n if (adjectiveExist == 1) {\n storeClassesAndAttributesWhenAdjectiveExistToIdentifyClasses(inChild, adjectiveNoun, adj);\n } else {\n //storeClassesAndAttributesWhenAdjectiveNotExistToIdentifyClasses(inChild, loopCount, innerChild, separator, tempClass, count);\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\") || (inChild.value().equals(\"NNP\")))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (separator == 0) {\n if (loopCount == innerChild.length) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n String word = \"\";\n word = stemmingForAWord(identifiedWord);\n if (!dictionaryForClassList.contains(word)) {\n nounList.remove(tempClass);\n nounList.add(word);\n attributeLists.add(tempClass);\n \n }\n\n } else if (count == 1) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n\n } else {\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n if (tempClass.contains(\"_\")) {\n nounList.remove(tempClass);\n } else {\n nounList.remove(morphology.stem(tempClass));\n nounList.remove(tempClass);\n }\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n\n tempClass += \" \" + identifiedWord;\n nounList.add(tempClass);\n storingClass = tempClass;\n }\n\n count++;\n } else {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n }\n }\n\n }\n loopCount++;\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n nounList.add(morphology.stem(identifiedWord));\n } else {\n nounList.add(identifiedWord);\n }\n }\n if (inChild.value().equals(\"JJ\")) {\n //leaves correspond to the tokens\n leaves = inChild.getLeaves();\n nounList.add(((leaves.get(0).yieldWords()).get(0).word()));\n }\n }\n }\n }\n System.out.println(\"NOUN LIST :\" + nounList);\n return nounList;\n }", "public static void main(String[] args) {\n\r\n\t\ttry{\r\n\t\t\tString tac2008Path = \"C:/Users/jipeng/Desktop/Qiang/updateSum/TAC2008_Update_Summarization_Documents/UpdateSumm08_test_docs_files\";\r\n\t\t\tExtractPrag ep = new ExtractPrag();\r\n\t\t\t\r\n\t\t\t//String wordPath = \"\";\r\n\t\t\t//ep.extractWords(wordPath)\r\n\t\t\tep.allDataset(tac2008Path);\r\n\t\t\t\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public ArrayList<Trial> createTrials(){\n Profile profile1 = new Profile(\"id1\");\n Profile profile2 = new Profile(\"id2\");\n Profile profile3 = new Profile(\"id3\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=0; i<15; i++){\n if (i<4){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile1));\n } else if (i<10){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile2));\n } else {\n trials.add(new TrialCount(\"\"+i, uni_loc, profile3));\n }\n }\n\n return trials;\n }", "private void setUpList() {\n\n\n Contents s1 = new Contents(R.drawable.bishist,\"Bishisht Bhatta\",\"+977-9849849525\", Color.parseColor(\"#074e87\"));\n list.add(s1);\n Contents s2 = new Contents(R.drawable.sagar,\"Sagar Pant\",\"+977-9865616888\",Color.parseColor(\"#074e87\"));\n list.add(s2);\n Contents s3 = new Contents(R.drawable.rabins,\"Rabin Nath\",\"+977-9848781007\",Color.parseColor(\"#074e87\"));\n list.add(s3);\n\n\n }", "static public List<Pair<String, List<Stroke>>> generateTrainingPairs() {\n\t\tList<String> refFiles = new ArrayList<String>();\n\n\t\t// list of files containing actual stroke data points\n\t\tList<String> dataFiles = new ArrayList<String>();\n\n\t\tString[] dirs = FileUtil.subDirectoryNames(TRAINING_DATA_SET_DIR\n\t\t\t\t+ \"/ref\");\n\n\t\tfor (String dir : dirs) {\n\t\t\tString[] files = FileUtil\n\t\t\t\t\t.fileNamesInDirectory(TRAINING_DATA_SET_DIR + \"/ref/\" + dir);\n\t\t\tfor (String file : files) {\n\t\t\t\trefFiles.add(TRAINING_DATA_SET_DIR + \"/ref/\" + dir + \"/\" + file);\n\t\t\t\tdataFiles.add(TRAINING_DATA_SET_DIR + \"/data/\" + dir + \"/\"\n\t\t\t\t\t\t+ file);\n\t\t\t}\n\t\t}\n\n\t\treturn generatePairs(refFiles, dataFiles);\n\t}", "protected List<Das2FeatureI> convertAnnots(UcscType type, UcscSequence seq, ResultSet rs) throws SQLException {\n\t// to cut down on copy ops, starting with space for 10K annots\n\tList<Das2FeatureI> annots = new ArrayList<Das2FeatureI>(10000); \n\tTrackType track_type = type.getTrackType();\n\tString seqid = seq.getName();\n\n\tif (track_type == TrackType.BED3 || \n\t track_type == TrackType.BED4 || \n\t track_type == TrackType.BED5 || \n\t track_type == TrackType.BED6 || \n\t track_type == TrackType.BED8 || \n\t track_type == TrackType.BED9 || \n\t track_type == TrackType.BED12 || \n\t track_type == TrackType.BED15 ) {\n\t while (rs.next()) {\n\t\tint min = rs.getInt(type.start_col);\n\t\tint max = rs.getInt(type.end_col);\n\t\tStrand strand = Strand.FORWARD; \n\t\tif (type.strand_col >= 0) {\n\t\t if (rs.getString(type.strand_col).equals(\"-\")) {\n\t\t\tstrand = Strand.REVERSE;\n\t\t }\n\t\t}\n\t\tString annotid;\n\t\tif (type.name_col >= 0) {\n\t\t annotid = rs.getString(type.name_col);\n\t\t}\n\t\telse {\n\t\t if (strand == Strand.REVERSE) {\n\t\t\tannotid = seqid + \"/\" + min + \"-\" + max + \"-\";\n\t\t } else {\n\t\t\tannotid = seqid + \"/\" + min + \"-\" + max;\n\t\t }\n\t\t}\n\t\tString title = annotid;\n\t\tif (type.hasOtherName()) { title = rs.getString(type.other_name_col); }\n\n\t\tDas2LocationI loc = new Das2Location(seq, min, max, strand);\n\t\tUcscCdsFeature annot = new UcscCdsFeature(response_base_uri,\n\t\t\t\t\t\t annotid, // local_uri_string for feature \n\t\t\t\t\t\t title, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t type, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null);\n\t\tannot.addLocation(loc);\n\t\tif (type.hasCDS()) {\n\t\t int cds_min = rs.getInt(type.cds_start_col);\n\t\t int cds_max = rs.getInt(type.cds_end_col);\n\t\t // check for no CDS: convention is if table has CDS column but no CDS, then cds_min == cds_max\n\t\t if (cds_min != cds_max) { \n\t\t\tDas2LocationI cds_loc = new Das2Location(seq, cds_min, cds_max, strand);\n\t\t\tannot.setCds(cds_loc);\n\t\t }\n\t\t}\n\t\tif (type.hasBlocks()) {\n\t\t int child_count = rs.getInt(type.block_count_col);\n\t\t // List child_list = new ArrayList(child_count);\n\t\t String startsblock = rs.getString(type.block_starts_col);\n\t\t String sizesblock = rs.getString(type.block_sizes_col);\n\t\t String[] cstarts = block_splitter.split(startsblock);\n\t\t String[] csizes = block_splitter.split(sizesblock); // BED uses blockSizes\n\n\t\t List<Das2LocationI> child_locs = new ArrayList();\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tint cmin = min + Integer.parseInt(cstarts[i]); // BED startBlocks relative to parent start\n\t\t\tint cmax = cmin + Integer.parseInt(csizes[i]);\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tchild_locs.add(child_loc);\n\t\t }\n\t\t handleChildren(annot, child_locs);\n\t\t \n\t\t /*\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tString child_annotid = annotid + \".\" + Integer.toString(i);\n\t\t\tint cmin = min + Integer.parseInt(cstarts[i]); // BED startBlocks relative to parent start\n\t\t\tint cmax = cmin + Integer.parseInt(csizes[i]);\n\t\t\t// strand of child is always same as strand of parent\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tDas2Feature child_annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t\t\t child_annotid, // local_uri_string for child\n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null);\n\t\t\tchild_annot.addLocation(child_loc);\n\t\t\t//\t\t\tchild_list.add(child_annot);\n\t\t\tannot.addPart(child_annot);\n\t\t\tchild_annot.addParent(annot);\n\t\t }\n\t\t */\n\t\t}\n\t\tannots.add(annot);\n\t }\n\t} // end BED branch\n\n\telse if (track_type == TrackType.GENEPRED) {\n\t while (rs.next()) {\n\t\tString annotid = rs.getString(type.name_col);\n\t\tString title = annotid;\n\t\tif (type.hasOtherName()) { title = rs.getString(type.other_name_col); }\n\t\tint min = rs.getInt(type.start_col);\n\t\tint max = rs.getInt(type.end_col);\n\t\tStrand strand = Strand.FORWARD;\n\t\tif (type.strand_col >= 0) {\n\t\t if (rs.getString(type.strand_col).equals(\"-\")) {\n\t\t\tstrand = Strand.REVERSE;\n\t\t }\n\t\t}\n\t\tDas2LocationI loc = new Das2Location(seq, min, max, strand);\n\t\tUcscCdsFeature annot = new UcscCdsFeature(response_base_uri, \n\t\t\t\t\t\t\t annotid, // local_uri_string for feature \n\t\t\t\t\t\t\t title, \n\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t null);\n\t\tannot.addLocation(loc);\n\t\tif (type.hasCDS()) {\n\t\t int cds_min = rs.getInt(type.cds_start_col);\n\t\t int cds_max = rs.getInt(type.cds_end_col);\n\t\t // check for no CDS: convention is if table has CDS column but no CDS, then cds_min == cds_max\n\t\t if (cds_min != cds_max) { \n\t\t\tDas2LocationI cds_loc = new Das2Location(seq, cds_min, cds_max, strand);\n\t\t\tannot.setCds(cds_loc);\n\t\t }\n\t\t}\n\t\tif (type.hasBlocks()) {\n\t\t int child_count = rs.getInt(type.block_count_col);\n\t\t String startsblock = rs.getString(type.block_starts_col);\n\t\t String endsblock = rs.getString(type.block_ends_col); // GENEPRED uses exonEnds/blockEnds\n\t\t String[] cstarts = block_splitter.split(startsblock);\n\t\t String[] cends = block_splitter.split(endsblock);\n\t\t List<Das2LocationI> child_locs = new ArrayList();\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tint cmin = Integer.parseInt(cstarts[i]); // GENEPRED blockStarts coords are absolute\n\t\t\tint cmax = Integer.parseInt(cends[i]); // GENEPRED blockEnds coords are absolute\n\t\t\t// strand of child is always same as strand of parent\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tchild_locs.add(child_loc);\n\t\t }\n\t\t handleChildren(annot, child_locs);\n\t\t /*\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tString child_annotid = annotid + \".\" + Integer.toString(i);\n\t\t\tint cmin = Integer.parseInt(cstarts[i]); // GENEPRED blockStarts coords are absolute\n\t\t\tint cmax = Integer.parseInt(cends[i]); // GENEPRED blockEnds coords are absolute\n\t\t\t// strand of child is always same as strand of parent\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tDas2Feature child_annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t\t\t child_annotid, // local_uri_string for child\n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null);\n\t\t\tchild_annot.addLocation(child_loc);\n\t\t\tannot.addPart(child_annot);\n\t\t\tchild_annot.addParent(annot);\n\t\t }\n\t\t */\n\t\t}\n\t\tannots.add(annot);\n\t }\n\t} // end GENEPRED branch\n\n\telse if (track_type == TrackType.PSL) {\n\t Map<String, Das2SegmentI> qseqs = new HashMap<String, Das2SegmentI>();\n\t while (rs.next()) {\n\t\tint qlength = rs.getInt(\"qSize\");\n\t\t// int tlength = rs.getInt(\"tSize\");\n\t\tint tlength = seq.getLength();\n\t\t\n\t\tString annotid = rs.getString(type.name_col);\n\t\tString title = annotid;\n\t\tif (type.hasOtherName()) { title = rs.getString(type.other_name_col); }\n\t\tint tmin = rs.getInt(type.start_col);\n\t\tint tmax = rs.getInt(type.end_col);\n\t\tint qmin = rs.getInt(\"qStart\");\n\t\tint qmax = rs.getInt(\"qEnd\");\n\t\tStrand tstrand = Strand.FORWARD;\n\t\tStrand qstrand = Strand.FORWARD;\n\t\tif (type.strand_col >= 0) {\n\t\t // current implentation assumes the only possibilities for strand are: \n\t\t // \"+\", \"-\", \"++\", \"--\", \"+-\", \"-+\"\n\t\t String strands = rs.getString(type.strand_col);\n\t\t if (strands.length() == 1) {\n\t\t\tqstrand = ((strands.charAt(0) == '-') ? Strand.REVERSE : Strand.FORWARD);\n\t\t\ttstrand = Strand.FORWARD;\n\t\t }\n\t\t else if (strands.length() >= 2) {\n\t\t\tqstrand = ((strands.charAt(0) == '-') ? Strand.REVERSE : Strand.FORWARD);\n\t\t\ttstrand = ((strands.charAt(1) == '-') ? Strand.REVERSE : Strand.FORWARD);\n\t\t }\n\n\t\t}\n\t\tboolean same_orientation = (qstrand == tstrand);\n\n\t\tDas2Feature annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t annotid, // local_uri_string for feature \n\t\t\t\t\t\t title, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t type, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null);\n\t\t\n\t\tDas2SegmentI qseq = qseqs.get(annotid);\n\t\tif (qseq == null) { \n\t\t qseq = new Das2Segment(response_base_uri, annotid, null, null, qlength, null);\n\t\t qseqs.put(annotid, qseq);\n\t\t}\n\n\t\t// Das2LocationI tloc = new Das2Location(seq, tmin, tmax, tstrand);\n\t\t// Das2LocationI qloc = new Das2Location(qseq, qmin, qmax, qstrand);\n\t\tDas2LocationI tloc;\n\t\tif (same_orientation) {\n\t\t tloc = new Das2Location(seq, tmin, tmax, Strand.FORWARD);\n\t\t}\n\t\telse {\n\t\t tloc = new Das2Location(seq, tmin, tmax, Strand.REVERSE);\n\t\t}\n\t\tDas2LocationI qloc = new Das2Location(qseq, qmin, qmax, Strand.FORWARD);\n\t\tannot.addLocation(tloc);\n\t\tannot.addLocation(qloc);\n\n\t\tif (type.hasBlocks()) {\n\t\t int child_count = rs.getInt(type.block_count_col);\n\t\t String tstarts_block = rs.getString(type.block_starts_col);\n\t\t String qstarts_block = rs.getString(\"qStarts\");\n\t\t String sizes_block = rs.getString(type.block_sizes_col); // PSL uses blockSizes\n\t\t String[] tstarts = block_splitter.split(tstarts_block);\n\t\t String[] qstarts = block_splitter.split(qstarts_block);\n\t\t String[] sizes = block_splitter.split(sizes_block);\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\t// query = forward, target = forward\n\t\t\tint block_index;\n\t\t\tif (qstrand == Strand.REVERSE) {\n\t\t\t block_index = child_count - i - 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t block_index = i;\n\t\t\t}\n\t\t\tint tstart = Integer.parseInt(tstarts[block_index]);\n\t\t\tint qstart = Integer.parseInt(qstarts[block_index]);\n\t\t\tint match_length = Integer.parseInt(sizes[block_index]);\n\t\t\tint child_qmin;\n\t\t\tint child_tmin;\n\t\t\tif (qstrand == Strand.FORWARD && tstrand == Strand.FORWARD) {\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[i]);\n\t\t\t child_qmin = qstart;\n\t\t\t child_tmin = tstart;\n\t\t\t}\n\t\t\t// query = reverse, target = forward\n\t\t\telse if (qstrand == Strand.REVERSE && tstrand == Strand.FORWARD) { \n\t\t\t //\t\t\t int block_index = child_count-i-1;\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[block_index]);\n\t\t\t child_qmin = qlength - qstart - match_length;\n\t\t\t child_tmin = tstart;\n\t\t\t}\n\t\t\t// query = forward, target = reverse\n\t\t\telse if (qstrand == Strand.FORWARD && tstrand == Strand.REVERSE) {\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[i]);\n\t\t\t child_qmin = qstart;\n\t\t\t child_tmin = tlength - tstart - match_length;\n\t\t\t}\n\t\t\telse { // query = reverse, target = reverse\n\t\t\t //\t\t\t int block_index = child_count-i-1;\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[block_index]);\n\t\t\t child_qmin = qlength - qstart - match_length;\n\t\t\t child_tmin = tlength - tstart - match_length;\n\t\t\t}\n\t\t\t//\t\t\tfor (int i=0; i<child_count; i++) {\n\t\t\tString child_annotid = annotid + \".\" + Integer.toString(i);\n\n\t\t\tDas2Feature child_annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t\t\t child_annotid, // local_uri_string for child\n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null);\n\t\t\t\n\t\t\t// Das2LocationI child_tloc = \n\t\t\t// new Das2Location(seq, child_tmin, child_tmin + match_length, tstrand);\n\t\t\t// Das2LocationI child_qloc = \n\t\t\t// new Das2Location(qseq, child_qmin, child_qmin + match_length, qstrand);\n\n\t\t\tDas2LocationI child_tloc;\n\t\t\tif (same_orientation) {\n\t\t\t child_tloc = new Das2Location(seq, child_tmin, child_tmin + match_length, Strand.FORWARD);\n\t\t\t}\n\t\t\telse {\n\t\t\t child_tloc = new Das2Location(seq, child_tmin, child_tmin + match_length, Strand.REVERSE);\n\t\t\t}\n\t\t\tDas2LocationI child_qloc = \n\t\t\t new Das2Location(qseq, child_qmin, child_qmin + match_length, Strand.FORWARD);\n\t\t\tchild_annot.addLocation(child_tloc);\n\t\t\tchild_annot.addLocation(child_qloc);\n\t\t\tannot.addPart(child_annot);\n\t\t\tchild_annot.addParent(annot);\n\t\t\t//\t\t }\n\t\t }\n\t\t}\n\t\tannots.add(annot);\n\t }\n\t} // end PSL branch\n\n\treturn annots;\n }", "public static void main(String[] args) {\n\t\tUtility.dirPath = \"C:\\\\Users\\\\imSlappy\\\\workspace\\\\FeelingAnalysis\\\\Documents\\\\2_group_eng\";\n\t\tString sub[] = {\"dup\",\"bug\"};\n\t\tUtility.classLabel = sub;\n\t\tUtility.numdoc = 350;\n\t\tSetClassPath.read_path(Utility.dirPath);\n\t\tUtility.language = \"en\";\n\t\t\n\t\tUtility.stopWordHSEN = Fileprocess.FileHashSet(\"data/stopwordAndSpc_eng.txt\");\n\t\tUtility.dicen = new _dictionary();\n\t\tUtility.dicen.getDictionary(\"data/dicEngScore.txt\");\n\t\t\n\t\tUtility.vocabHM = new HashMap();\n\t\t// ================= completed initial main Program ==========================\n\n\t\tMainExampleNaive ob = new MainExampleNaive();\n\t\t\n\t\t// --------------------- Pre-process -----------------------\n\t\tob.word_arr = new HashSet [Utility.listFile.length][];\n\t\tob.wordSet = new ArrayList<String>();\n\t\tfor (int i = 0; i < Utility.listFile.length; i++) {\n\t\t\tob.word_arr[i]=new HashSet[Utility.listFile[i].length];\n\t\t\tfor (int j = 0; j < Utility.listFile[i].length; j++) {\n\t\t\t\tStringBuffer strDoc = Fileprocess.readFile(Utility.listFile[i][j]);\n\t\t\t\tob.word_arr[i][j]=ob.docTokenization(new String(strDoc));\n\t\t\t}\n\t\t\tob.checkBound(3, 10000);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"++ Total : \"+Utility.vocabHM.size()+\" words\");\n\t\tSystem.out.println(\"++ \"+Utility.vocabHM);\n\t\t\n\t\t// ---------------------- Selection ------------------------\n//\t\tInformationGain ig = new InformationGain(ob.word_arr.length*ob.word_arr[0].length , ob.wordSet,ob.word_arr);\n//\t\tArrayList<String> ban_word = ig.featureSelection(0.0); // selected out with IG = 0\n//\t\t//ob.banFeature(ban_word);\n//\t\tSystem.out.println(\"ban list[\"+ban_word.size()+\"] : \"+ban_word);\n//\t\t\n//\t\tSystem.out.println(\"-- After \"+Utility.vocabHM.size());\n//\t\tSystem.out.println(\"-- \"+Utility.vocabHM);\n\t\t\n\t\tob.setWordPosition();\n\t\t// ---------------------- Processing -----------------------\n\t\tNaiveBayes naive = new NaiveBayes();\n\t\tnaive.naiveTrain(true);\n\t\t\n\t\tint result = naive.naiveUsage(\"after cold reset of my pc (crash of xp) the favorites of firefox are destroyed and all settings are standard again! Where are firefox-favorites stored and the settings ? how to backup them rgularely? All other software on my pc still works properly ! even INternetExplorer\");\n\t\tSystem.out.println(\"\\nResult : \"+Utility.classLabel[result]);\n\t}", "public static void main(String[] args) {\n\t\tPropertyManager.setPropertyFilePath(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/TextDigesterConfig.properties\");\n\t\t\n\t\tString text = MultilingImport.readText(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/multilingMss2015Training/body/text/\" + lang + \"/\" + docName);\n\n\t\t/* Process text document */\n\t\tLangENUM languageOfHTMLdoc = FlProcessor.getLanguage(text);\n\t\t\n\t\tTDDocument TDdoc = FlProcessor.generateDocumentFromFreeText(text, null, languageOfHTMLdoc);\n\n\t\t// Store GATE document\n\t\tWriter out = null;\n\t\ttry {\n\t\t\tout = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"/home/francesco/Desktop/NLP_HACHATHON_4YFN/EXAMPLE_TEXTS/\" + lang + \"_\" + docName.replace(\".txt\", \"_GATE.xml\")), \"UTF-8\"));\n\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tout.write(TDdoc.getGATEdoc().toXml());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tout.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\ttry {\n\t\t\tLexRankSummarizer lexRank = new LexRankSummarizer(languageOfHTMLdoc, SentenceSimilarityENUM.cosineTFIDF, false, 0.01);\n\t\t\tMap<Annotation, Double> sortedSentences = lexRank.sortSentences(TDdoc);\n\t\t\t\n\t\t\tList<Annotation> sentListOrderedByRelevance = new ArrayList<Annotation>();\n\t\t\tfor(Entry<Annotation, Double> sentence : sortedSentences.entrySet()) {\n\t\t\t\tlogger.info(\"Score: \" + sentence.getValue() + \" - '\" + GtUtils.getTextOfAnnotation(sentence.getKey(), TDdoc.getGATEdoc()) + \"'\");\n\t\t\t\tsentListOrderedByRelevance.add(sentence.getKey());\n\t\t\t}\n\t\t\t\n\t\t\tlogger.info(\"Summary max 100 tokens: \");\n\t\t\tList<Annotation> summarySentences = GtUtils.orderAnnotations(sentListOrderedByRelevance, TDdoc.getGATEdoc(), 100);\n\t\t\tfor(Annotation ann : summarySentences) {\n\t\t\t\tlogger.info(GtUtils.getTextOfAnnotation(ann, TDdoc.getGATEdoc()));\n\t\t\t}\n\t\t} catch (TextDigesterException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t*/\n\t}", "public static void main(final String[] args)\r\n {\r\n // Set the path to the data files\r\n Dictionary.initialize(\"c:/Program Files/WordNet/2.1/dict\");\r\n \r\n // Get an instance of the Dictionary object\r\n Dictionary dict = Dictionary.getInstance();\r\n \r\n // Declare a filter for all terms starting with \"car\", ignoring case\r\n TermFilter filter = new WildcardFilter(\"car*\", true);\r\n \r\n // Get an iterator to the list of nouns\r\n Iterator<IndexTerm> iter = \r\n dict.getIndexTermIterator(PartOfSpeech.NOUN, 1, filter);\r\n \r\n // Go over the list items\r\n while (iter.hasNext())\r\n {\r\n // Get the next object\r\n IndexTerm term = iter.next();\r\n \r\n // Write out the object\r\n System.out.println(term.toString());\r\n \r\n // Write out the unique pointers for this term\r\n int nNumPtrs = term.getPointerCount();\r\n if (nNumPtrs > 0)\r\n {\r\n // Print out the number of pointers\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumPtrs) +\r\n \" pointers\");\r\n \r\n // Print out all of the pointers\r\n String[] ptrs = term.getPointers();\r\n for (int i = 0; i < nNumPtrs; ++i)\r\n {\r\n String p = Pointer.getPointerDescription(term.getPartOfSpeech(), ptrs[i]);\r\n System.out.println(ptrs[i] + \": \" + p);\r\n }\r\n }\r\n \r\n // Get the definitions for this term\r\n int nNumSynsets = term.getSynsetCount();\r\n if (nNumSynsets > 0)\r\n {\r\n // Print out the number of synsets\r\n System.out.println(\"\\nThis term has \" + Integer.toString(nNumSynsets) +\r\n \" synsets\");\r\n \r\n // Print out all of the synsets\r\n Synset[] synsets = term.getSynsets();\r\n for (int i = 0; i < nNumSynsets; ++i)\r\n {\r\n System.out.println(synsets[i].toString());\r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Demo processing finished.\");\r\n }", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "public List<HashMap<Integer,AttributeInfo>> generateTrainingSetDataseAttributes(Dataset dataset, Properties properties) throws Exception {\n List<HashMap<Integer,AttributeInfo>> candidateAttributesList = new ArrayList<>();\n String[] classifiers = properties.getProperty(\"classifiersForMLAttributesGeneration\").split(\",\");\n\n //obtaining the attributes for the dataset itself is straightforward\n DatasetBasedAttributes dba = new DatasetBasedAttributes();\n for (String classifier : classifiers) {\n\n //For each dataset and classifier combination, we need to get the results on the \"original\" dataset so we can later compare\n Evaluation evaluationResults = runClassifier(classifier, dataset.generateSet(true), dataset.generateSet(false), properties);\n double originalAuc = CalculateAUC(evaluationResults, dataset);\n\n //Generate the dataset attributes\n HashMap<Integer, AttributeInfo> datasetAttributes = dba.getDatasetBasedFeatures(dataset, classifier, properties);\n\n //Add the identifier of the classifier that was used\n\n AttributeInfo classifierAttribute = new AttributeInfo(\"Classifier\", Column.columnType.Discrete, getClassifierIndex(classifier), 3);\n datasetAttributes.put(datasetAttributes.size(), classifierAttribute);\n\n\n //now we need to generate the candidate attributes and evaluate them. This requires a few preliminary steps:\n // 1) Replicate the dataset and create the discretized features and add them to the dataset\n OperatorsAssignmentsManager oam = new OperatorsAssignmentsManager(properties);\n List<Operator> unaryOperators = oam.getUnaryOperatorsList();\n //The unary operators need to be evaluated like all other operator assignments (i.e. attribtues generation)\n List<OperatorAssignment> unaryOperatorAssignments = oam.getOperatorAssignments(dataset, null, unaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n Dataset replicatedDataset = generateDatasetReplicaWithDiscretizedAttributes(dataset, unaryOperatorAssignments, oam);\n\n // 2) Obtain all other operator assignments (non-unary). IMPORTANT: this is applied on the REPLICATED dataset so we can take advantage of the discretized features\n List<Operator> nonUnaryOperators = oam.getNonUnaryOperatorsList();\n List<OperatorAssignment> nonUnaryOperatorAssignments = oam.getOperatorAssignments(replicatedDataset, null, nonUnaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n\n // 3) Generate the candidate attribute and generate its attributes\n nonUnaryOperatorAssignments.addAll(unaryOperatorAssignments);\n\n //oaList.parallelStream().forEach(oa -> {\n int counter = 0;\n //for (OperatorAssignment oa : nonUnaryOperatorAssignments) {\n ReentrantLock wrapperResultsLock = new ReentrantLock();\n nonUnaryOperatorAssignments.parallelStream().forEach(oa -> {\n try {\n OperatorsAssignmentsManager oam1 = new OperatorsAssignmentsManager(properties);\n Dataset datasetReplica = dataset.replicateDataset();\n ColumnInfo candidateAttribute = null;\n try {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n catch (Exception ex) {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n\n\n OperatorAssignmentBasedAttributes oaba = new OperatorAssignmentBasedAttributes();\n HashMap<Integer, AttributeInfo> candidateAttributes = oaba.getOperatorAssignmentBasedAttributes(dataset, oa, candidateAttribute, properties);\n\n datasetReplica.addColumn(candidateAttribute);\n Evaluation evaluationResults1 = runClassifier(classifier, datasetReplica.generateSet(true), datasetReplica.generateSet(false), properties);\n\n double auc = CalculateAUC(evaluationResults1, datasetReplica);\n double deltaAuc = auc - originalAuc;\n AttributeInfo classAttrubute;\n if (deltaAuc > 0.01) {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 1,2);\n System.out.println(\"found positive match\");\n } else {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 0,2);\n }\n\n //finally, we need to add the dataset attribtues and the class attribute\n for (AttributeInfo datasetAttInfo : datasetAttributes.values()) {\n candidateAttributes.put(candidateAttributes.size(), datasetAttInfo);\n }\n\n candidateAttributes.put(candidateAttributes.size(), classAttrubute);\n wrapperResultsLock.lock();\n candidateAttributesList.add(candidateAttributes);\n wrapperResultsLock.unlock();\n }\n catch (Exception ex) {\n System.out.println(\"Error in ML features generation : \" + oa.getName() + \" : \" + ex.getMessage());\n }\n });\n }\n\n return candidateAttributesList;\n }", "public static Model Analize(ArrayList<String> arraylist) throws IOException\n\t{\n\t\tModel model = ModelFactory.createOntologyModel();\n\t\tmodel.read(\"C:\\\\Users\\\\Hamza\\\\workspace\\\\Crime\\\\crime.owl\");\n\t\tResource predicate;\n\t\tProperty pred = null;\n\t\tint flag=0;\n\t\t\tword=(String) arraylist.get(1);\n\t\t\tpredicate=model.getResource(defaultNameSpace+word);\n\t\t\t\n\t\t\tif(model.contains(predicate, RDF.type,OWL.ObjectProperty))\n\t\t\t{\n\t\t\t pred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse if(model.contains(predicate, RDF.type,OWL.DatatypeProperty))\n\t\t\t{\n\t\t\t\tpred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\tif(flag==1)\n\t\t\t{\n\t\t\t\tword=(String) arraylist.get(0);\n\t\t\t\tResource subject = model.createResource(defaultNameSpace+word);\n\t\t\t\tword=(String) arraylist.get(2);\n\t\t\t\tResource object = model.createResource(defaultNameSpace+word);\n\t\t\t\tResource class1=model.getResource(defaultNameSpace+\"Match\");\n\t\t\t\tmodel.add(subject,RDF.type,class1);\n\t\t\t\tmodel.add(object,RDF.type,class1);\n\t\t\t\tmodel.add(subject,pred,object);\n\t\t\t\t\n\t\t\t}\n\t\t\treturn model;\n\t\t}", "public Classifier generateBackgroundClassificationModel(Dataset dataset, Properties properties) throws Exception {\n String backgroundFilePath = properties.getProperty(\"backgroundClassifierLocation\") + \"_background_\" + dataset.getName() + \"_classifier_obj\";\n Path path = Paths.get(backgroundFilePath);\n\n //If the classification model already exists, load and return it\n if (Files.exists(path)) {\n FileInputStream streamIn = new FileInputStream(backgroundFilePath);\n ObjectInputStream objectinputstream = new ObjectInputStream(streamIn);\n try {\n Classifier backgroundModel = (Classifier) objectinputstream.readObject();\n objectinputstream.close();\n return backgroundModel;\n }\n catch (Exception ex) {\n System.out.println(\"Error reading Instances from file: \" + dataset.getName() + \" : \" + ex.getMessage());\n return null;\n }\n }\n //Otherwise, generate, save and return it (WARNING - takes time)\n else {\n File folder = new File(properties.getProperty(\"DatasetInstancesFilesLocation\"));\n File[] filesArray = folder.listFiles();\n\n boolean addHeader = true;\n boolean foundDatasets = false;\n for (int i = 0; i < filesArray.length; i++) {\n //for (int i = 0; i < 1; i++) {\n //we're making sure that the analyzed item is both a file AND not generated from the dataset we're currently analyzing\n if (filesArray[i].isFile() && !filesArray[i].getName().contains(dataset.getName()) && filesArray[i].getPath().contains(\".arff\")) {\n addArffFileContentToTargetFile(backgroundFilePath, filesArray[i].getAbsolutePath(), addHeader);\n addHeader = false;\n foundDatasets = true;\n }\n else {\n System.out.println(\"skipping file: \" + filesArray[i].getName());\n }\n }\n if (!foundDatasets) {\n throw new Exception(\"If no background model is trained, please provide additional Datasets at \" + properties.getProperty(\"DatasetInstancesFilesLocation\"));\n }\n //now we load the contents of the ARFF file into an Instances object and train the classifier\n BufferedReader reader = new BufferedReader(new FileReader(backgroundFilePath + \".arff\"));\n //Instances data = new Instances(reader);\n //reader.close();\n\n ArffLoader.ArffReader arffReader = new ArffLoader.ArffReader(reader);\n //Instances structure = arffReader.getStructure();\n Instances data = arffReader.getData();\n\n data.setClassIndex(data.numAttributes() - 1);\n\n //the chosen classifier\n RandomForest classifier = new RandomForest();\n classifier.setNumExecutionSlots(Integer.parseInt(properties.getProperty(\"numOfThreads\")));\n\n classifier.buildClassifier(data);\n\n File file = new File(backgroundFilePath + \".arff\");\n file.delete();\n\n //now we write the classifier to file prior to returning the object\n FileOutputStream out = new FileOutputStream(backgroundFilePath);\n ObjectOutputStream oout = new ObjectOutputStream(out);\n oout.writeObject(classifier);\n oout.flush();\n oout.close();\n\n return classifier;\n }\n }", "public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ParticularDWGToImage.class) + \"DWGDrawings/\";\n String sourceFilePath = dataDir + \"visualization_-_conference_room.dwg\";\n\n CadImage cadImage = ((CadImage)(Image.load(sourceFilePath)));\n\n CadBaseEntity[] entities = cadImage.getEntities();\n \n List<CadBaseEntity> filteredEntities = new ArrayList<CadBaseEntity>();\n for (CadBaseEntity baseEntity : entities) {\n // selection or filtration of entities\n if ((baseEntity.getTypeName() == CadEntityTypeName.TEXT)) {\n filteredEntities.add(baseEntity);\n }\n\n }\n \n CadBaseEntity[] arr = new CadBaseEntity[filteredEntities.size()];\n cadImage.setEntities(filteredEntities.toArray(arr));\n // Create an instance of CadRasterizationOptions and set its various properties\n CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();\n rasterizationOptions.setPageWidth(1600);\n rasterizationOptions.setPageHeight(1600);\n // Set Auto Layout Scaling\n rasterizationOptions.setAutomaticLayoutsScaling(true);\n // Create an instance of PdfOptions\n PdfOptions pdfOptions = new PdfOptions();\n // Set the VectorRasterizationOptions property\n pdfOptions.setVectorRasterizationOptions(rasterizationOptions);\n String outFile = dataDir + \"result_out_generated.pdf\";\n // Export the CAD to PDF\n cadImage.save(outFile, pdfOptions);\n //ExEnd:ParticularDWGToImage\n }", "public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//PUBLISHER information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER);\r\n\t\t\tStringBuffer publisherAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisher());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherEmail());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//approved\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false;\r\n\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\tpublisherAttributes.append(approved);\r\n\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherFax());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCity());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherState());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(publisherAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void trainLexicon() throws Exception\n\t{\n\t\tSystem.out.println(\"Starting reading Lexicon Training set ..\");\n\t\tInstanceList lexicon_instance = dbiterator.getInstancesFromAlphabets(DBInstanceIterator.DBSource.LEXICON);\n\t\tSystem.out.println(\"Lexicon Training set : \" + lexicon_instance.size());\n\t\t/*svm_parameter param = new svm_parameter();\n\t\tparam.gamma = 0.0;\n\t\tparam.C = 100.0;*/\n\t\tSVMClassifierTrainer trainer = new SVMClassifierTrainer(new LinearKernel(), true);\n\t\tSystem.out.println(\"SVM Starts Training on lexicon training set ..\");\n\t\tSVMClassifier classifier = trainer.train(lexicon_instance);\n\t\tSystem.out.println(\"Saving SVM Classifier ..\");\n\t\tSystem.out.println(lexicon_instance.targetLabelDistribution());\n\t\tsaveModel(classifier, Lexicon_Train);\n\t\tSystem.out.println(\"Lexicon classifier saved to : \" + Lexicon_Train);\n\t}", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "private void initMleCluster() {\n\t\tpseudoTf = new double[documents.size()][];\n\t\tpseudoTermIndex = new int[documents.size()][];\n\t\tpseudoTermWeight = new double[documents.size()][];\n\t\t\n\t\tfor(int docIdx=0; docIdx<documents.size(); docIdx++) {\n\t\t\tcountOnePseudoDoc(docIdx);\n\t\t}\n\t}", "@Override\n\tpublic void setTraining(String text) {\n\t\tmyWords = text.split(\"\\\\s+\");\n\t\tmyMap = new HashMap<String , ArrayList<String>>();\n\t\t\n\t\tfor (int i = 0; i <= myWords.length-myOrder; i++)\n\t\t{\n\t\t\tWordGram key = new WordGram(myWords, i, myOrder);\n\t\t\tif (!myMap.containsKey(key))\n\t\t\t{\n\t\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\tlist.add(myWords[i+myOrder]);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t} else {\n\t\t\t\t\tlist.add(PSEUDO_EOS);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(myWords[i+myOrder]);\n\t\t\t\t} else {\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(PSEUDO_EOS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }" ]
[ "0.6560549", "0.638855", "0.61423916", "0.59197754", "0.5729221", "0.5498475", "0.54457295", "0.53545254", "0.53455764", "0.5288106", "0.52603704", "0.52193385", "0.5203828", "0.51827115", "0.5160286", "0.5099", "0.5088687", "0.50879234", "0.50831664", "0.502044", "0.50198126", "0.5016477", "0.5015579", "0.50006455", "0.49949092", "0.49897844", "0.49888712", "0.49844605", "0.49824184", "0.49599424", "0.49573064", "0.49538314", "0.4932486", "0.4922127", "0.4916602", "0.4908611", "0.489842", "0.48958614", "0.48916706", "0.48720828", "0.48714185", "0.487035", "0.48670205", "0.48536226", "0.48417005", "0.48219553", "0.48213956", "0.48118708", "0.4803888", "0.47959948", "0.47917598", "0.47891352", "0.47879717", "0.47855026", "0.47848684", "0.47845855", "0.47744876", "0.4758565", "0.47527033", "0.47523576", "0.47500402", "0.4739547", "0.47305492", "0.47272858", "0.4719677", "0.47170994", "0.47117773", "0.47038242", "0.47004002", "0.46988568", "0.4698498", "0.46955812", "0.469297", "0.46911502", "0.46894166", "0.46735793", "0.46660292", "0.46629584", "0.46553442", "0.46539226", "0.46519524", "0.46495217", "0.46484932", "0.46288577", "0.4605549", "0.46047947", "0.459319", "0.4590618", "0.45877314", "0.45762137", "0.45720392", "0.4567131", "0.45633018", "0.4559801", "0.45578408", "0.4557504", "0.4555882", "0.4555016", "0.45527765", "0.4548179" ]
0.47997728
49
add structural annotation triples
public ArrayList<Triple> addStructuralAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){ String LOG_METHOD_NAME = "ArrayList<Triple> addStructuralAnnotationTriples(Node, DigitalRightsManagementBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //STRUCTURAL //date of annotation if(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getDate())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_ANNOTATION); predicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getDate()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //format if(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getFormat())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_FORMAT); predicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getFormat()); tripleList.add(new Triple(subject, predicate, predicate_value)); } }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "public abstract Annotations mo30682c();", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "Annotation createAnnotation();", "Annotation createAnnotation();", "InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "DataMap getCustomAnnotations();", "protected void createUML2MappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/UML2Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"interfaceRealization\",\n\t\t\t \"featureOwner\", \"BehavioredClassifier\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Property\",\n\t\t\t \"stereotype\", \"eng.PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\",\n\t\t\t \"stereotype\", \"eng.InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Interface\",\n\t\t\t \"stereotype\", \"eng.Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"mechanism\",\n\t\t\t \"featureOwner\", \"eng.Interface\",\n\t\t\t \"fromStereotype\", \"true\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"contract\",\n\t\t\t \"umlOppositeReferenceOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"implementingClassifier\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Namespace\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"role\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"partWithPort\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\n\t}", "public Framework_annotation<T> build_annotation();", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "private static void addAnnotationsImpl(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n Set<AnnotatedTypeMirror> visited,\n ArrayList<AnnotatedTypeMirror> types) {\n\n final AnnotatedTypeMirror origalub = alub;\n boolean shouldAnnoOrig = false;\n Set<AnnotationMirror> putOnOrig = AnnotationUtils.createAnnotationSet();\n\n // get rid of wildcards and type variables\n if (alub.getKind() == TypeKind.WILDCARD) {\n final QualifierHierarchy qualifierHierarchy = atypeFactory.getQualifierHierarchy();\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> lowerBounds = new HashSet<>(qualifierHierarchy.getTopAnnotations().size());\n for (AnnotatedTypeMirror type : types) {\n\n final Set<? extends AnnotationMirror> annos = findEffectiveLowerBoundAnnotations(qualifierHierarchy, type);\n if (lowerBounds.isEmpty()) {\n lowerBounds = annos;\n } else if (!annos.isEmpty()) { //for some reason this algorithm some times adds the lub itself\n //into the list of type which may lead to an empty annos set\n lowerBounds = qualifierHierarchy.greatestLowerBounds(lowerBounds, annos);\n }\n }\n\n ((AnnotatedWildcardType)alub).getSuperBound().replaceAnnotations(lowerBounds);\n\n\n //TODO: AGAIN, ALL LUB CODE SHOULD BE EXTRACTED OUT TO IT'S OWN CLASS OR THE TYPE HIERARCHY\n //TODO: AND REWRITTEN\n boolean allWildcards = true;\n for (int i = 0; i < types.size() && allWildcards; i++) {\n if (types.get(i).getKind() != TypeKind.WILDCARD) {\n allWildcards = false;\n }\n }\n\n if (allWildcards) {\n if (wildcards.contains(alub.getUnderlyingType())) {\n return;\n }\n wildcards.add(alub.getUnderlyingType());\n final List<AnnotatedTypeMirror> upperBounds = new ArrayList<>(types.size());\n for (final AnnotatedTypeMirror type : types) {\n upperBounds.add(((AnnotatedWildcardType)type).getExtendsBound());\n }\n\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n\n annotateAsLub(atypeFactory.getProcessingEnv(), atypeFactory, alub, upperBounds);\n return;\n\n } else {\n //old behavior\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n }\n\n\n // TODO using the getEffective versions copies objects, losing side-effects.\n }\n while (alub.getKind() == TypeKind.TYPEVAR) {\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> glb = glbAll(atypeFactory.getQualifierHierarchy(), types);\n ((AnnotatedTypeVariable)alub).getLowerBound().replaceAnnotations(glb);\n alub = ((AnnotatedTypeVariable)alub).getUpperBound();\n }\n\n if (visited.contains(alub)) {\n return;\n }\n visited.add(alub);\n\n for (int i = 0; i < types.size(); ++i) {\n final AnnotatedTypeMirror typei = types.get(i);\n\n if (!(typei.getAnnotations().isEmpty() ||\n bottomsOnly(elements, atypeFactory, typei.getAnnotations()))) {\n shouldAnnoOrig = true;\n }\n\n if (typei.getKind() == TypeKind.WILDCARD) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedWildcardType wildcard = (AnnotatedWildcardType) typei;\n if (wildcard.getExtendsBound() != null) {\n types.set(i, wildcard.getExtendsBound().deepCopy());\n } else if (wildcard.getSuperBound() != null) {\n types.set(i, wildcard.getSuperBound().deepCopy());\n }\n }\n if (typei.getKind() == TypeKind.TYPEVAR) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedTypeVariable typevar = (AnnotatedTypeVariable) types.get(i);\n if (typevar.getUpperBound() != null) {\n types.set(i, typevar.getUpperBound());\n } else if (typevar.getLowerBound() != null) {\n types.set(i, typevar.getLowerBound());\n }\n }\n }\n\n Collection<? extends AnnotationMirror> unification = Collections.emptySet();\n\n boolean isFirst = true;\n for (AnnotatedTypeMirror type : types) {\n if (type.getAnnotations().isEmpty()) {\n continue;\n }\n // TODO: unification fails with an empty set of annotations.\n // Why are they sometimes empty, e.g. in the FlowNegation test case.\n\n if (isFirst) {\n unification = type.getAnnotations();\n } else {\n unification = atypeFactory.getQualifierHierarchy().leastUpperBounds(unification, type.getAnnotations());\n }\n isFirst = false;\n }\n\n // Remove a previously existing unqualified annotation on the type.\n alub.replaceAnnotations(unification);\n\n if (alub.getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adt = (AnnotatedDeclaredType) alub;\n\n for (int i = 0; i < adt.getTypeArguments().size(); ++i) {\n AnnotatedTypeMirror adtArg = adt.getTypeArguments().get(i);\n ArrayList<AnnotatedTypeMirror> dTypesArg = new ArrayList<>();\n for (int j = 0; j < types.size(); ++j) {\n if (types.get(j).getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adtypej = (AnnotatedDeclaredType) types.get(j);\n if (adtypej.getTypeArguments().size() == adt.getTypeArguments().size()) {\n dTypesArg.add(adtypej.getTypeArguments().get(i));\n } else {\n // TODO: actually not just the number of type arguments should match, but\n // the base types should be equal. See test case framework/GenericTest1\n // for when this test fails.\n }\n }\n }\n\n //TODO: If we have a list of raw types, or null/raw types this code can create an empty set of\n //TODO: type arguments (dTypesArg) below. This will then cause an exception.\n //TODO: To test this: make the conditional always true and run the nullness checker on\n //TODO: jdk/nullness/src/java/lang/ref/ReferenceQueue.java\n //TODO: I think this will only happen when we \"fix-up\" the lub type with a wildcard\n //TODO: in which case, the type annotator will add the annotation from the bound of\n //TODO: the type parameter for which the wildcard is an argument and we will NOT have an\n //TODO: unannotated type. That said, we might want to just call that here to ensure\n //TODO: that when this is called in places that are not followed by annotate implicit\n //TODO: the type is fully annotated\n if (!dTypesArg.isEmpty()) {\n addAnnotationsImpl(elements, atypeFactory, adtArg, visited, dTypesArg);\n }\n }\n } else if (alub.getKind() == TypeKind.ARRAY) {\n AnnotatedArrayType aat = (AnnotatedArrayType) alub;\n\n ArrayList<AnnotatedTypeMirror> compTypes = new ArrayList<>();\n for (AnnotatedTypeMirror atype : types) {\n if (atype.getKind() == TypeKind.ARRAY) {\n compTypes.add(((AnnotatedArrayType)atype).getComponentType());\n }\n }\n\n if (aat.getComponentType().getKind() == TypeKind.TYPEVAR) {\n //TODO: TERRIBLE HACK UNTIL WE FIX LUB\n final AnnotatedTypeVariable lubAtv = (AnnotatedTypeVariable) aat.getComponentType();\n final List<AnnotatedTypeVariable> subtypesAsTvs =\n LubTypeVariableAnnotator.getSubtypesAsTypevars(lubAtv, compTypes);\n\n if (subtypesAsTvs != null) {\n LubTypeVariableAnnotator.annotateTypeVarAsLub(lubAtv, subtypesAsTvs, atypeFactory);\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n }\n if (alub != origalub && shouldAnnoOrig) {\n // These two are not the same if origalub is a wildcard or type variable.\n // In that case, add the found annotations to the type variable also.\n // Do not put the annotations inferred for the declared type\n // on a type variable/wildcard.\n // origalub.replaceAnnotations(alub.getAnnotations());\n // Instead, keep track of the annotations that originally\n // existed on the type variable, stored in putOnOrig, and\n // put them back on now.\n origalub.replaceAnnotations(putOnOrig);\n }\n }", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "public abstract AnnotationMap mo30683d();", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "public abstract AnnotationCollector mo30681b(Annotation annotation);", "Set<String> annotations();", "@Override\n\tprotected void setDataStructurePropertyOfAnnotation(DataStructure ds){\n\t\tif( ! ds.isImportedViaSubmodel()){\n\t\t\t\n\t\t\tif(ds.hasPhysicalProperty()){\n\t\t\t\tResource propres = getResourceForDataStructurePropertyAndAnnotate(rdf, ds);\n\n\t\t\t\tif(ds.hasAssociatedPhysicalComponent()){\n\t\t\t\t\tPhysicalModelComponent propof = ds.getAssociatedPhysicalModelComponent();\n\t\t\t\t\t\n\t\t\t\t\t// If the variable is a property of an entity\n\t\t\t\t\tif(propof instanceof PhysicalEntity){\n\t\t\t\t\t\tCompositePhysicalEntity cpe = (CompositePhysicalEntity)propof;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (cpe.getArrayListOfEntities().size()>1) {\n\t\t\t\t\t\t\t// Get the Resource corresponding to the index entity of the composite entity\n\t\t\t\t\t\t\tURI indexuri = setCompositePhysicalEntityMetadata(cpe);\n\t\t\t\t\t\t\tResource indexresource = rdf.getResource(indexuri.toString());\n\t\t\t\t\t\t\tStatement propofst = rdf.createStatement(\n\t\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\t\tindexresource);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\taddStatement(propofst);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// else it's a singular physical entity\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tResource entity = getResourceForPMCandAnnotate(cpe.getArrayListOfEntities().get(0));\n\t\t\t\t\t\t\tStatement st = rdf.createStatement(\n\t\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\t\tentity);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\taddStatement(st);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// If it's a property of a process\n\t\t\t\t\telse if(propof instanceof PhysicalProcess){\n\t\t\t\t\t\tPhysicalProcess process = (PhysicalProcess)ds.getAssociatedPhysicalModelComponent();\n\n\t\t\t\t\t\tResource processres = getResourceForPMCandAnnotate(ds.getAssociatedPhysicalModelComponent());\n\t\t\t\t\t\tStatement st = rdf.createStatement(\n\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\tprocessres);\n\t\t\t\t\t\t\n\t\t\t\t\t\taddStatement(st);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If the participants for the process have already been set, do not duplicate\n\t\t\t\t\t\t// statements (in CellML models mapped codewords may be annotated against the\n\t\t\t\t\t\t// same process, and because each process participant is created anew here, duplicate\n\t\t\t\t\t\t// participant statements would appear in CellML RDF block).\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(rdf.contains(processres, SemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(processres, SemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(processres, SemSimRelation.HAS_MEDIATOR_PARTICIPANT.getRDFproperty()))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If we're here, the process hasn't been assigned its participants yet\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Set the sources\n\t\t\t\t\t\tfor(PhysicalEntity source : process.getSourcePhysicalEntities()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(process, source, \n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty(), process.getSourceStoichiometry(source));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Set the sinks\n\t\t\t\t\t\tfor(PhysicalEntity sink : process.getSinkPhysicalEntities()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(process, sink,\n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty(), process.getSinkStoichiometry(sink));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Set the mediators\n\t\t\t\t\t\tfor(PhysicalEntity mediator : process.getMediatorPhysicalEntities()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(process, mediator,\n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_MEDIATOR_PARTICIPANT.getRDFproperty(), null);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Otherwise we assume it's a property of a force\n\t\t\t\t\telse{\n\t\t\t\t\t\tPhysicalForce force = (PhysicalForce)ds.getAssociatedPhysicalModelComponent();\n\n\t\t\t\t\t\tResource forceres = getResourceForPMCandAnnotate(ds.getAssociatedPhysicalModelComponent());\n\t\t\t\t\t\tStatement st = rdf.createStatement(\n\t\t\t\t\t\t\t\tpropres, \n\t\t\t\t\t\t\t\tSemSimRelation.PHYSICAL_PROPERTY_OF.getRDFproperty(), \n\t\t\t\t\t\t\t\tforceres);\n\t\t\t\t\t\t\n\t\t\t\t\t\taddStatement(st);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If the participants for the process have already been set, do not duplicate\n\t\t\t\t\t\t// statements (in CellML models mapped codewords may be annotated against the\n\t\t\t\t\t\t// same process, and because each process participant is created anew here, duplicate\n\t\t\t\t\t\t// participant statements would appear in CellML RDF block).\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(rdf.contains(forceres, SemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(forceres, SemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty())\n\t\t\t\t\t\t\t\t|| rdf.contains(forceres, SemSimRelation.HAS_MEDIATOR_PARTICIPANT.getRDFproperty()))\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// If we're here, the process hasn't been assigned its participants yet\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Set the sources\n\t\t\t\t\t\tfor(PhysicalEntity source : force.getSources()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(force, source, \n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SOURCE_PARTICIPANT.getRDFproperty(), null);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Set the sinks\n\t\t\t\t\t\tfor(PhysicalEntity sink : force.getSinks()){\n\t\t\t\t\t\t\tsetRDFstatementsForEntityParticipation(force, sink,\n\t\t\t\t\t\t\t\t\tSemSimRelation.HAS_SINK_PARTICIPANT.getRDFproperty(), null);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public Framework_annotation<T> build_normal();", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "private Collection<ConceptLabel> createConceptLabels(Concept concept, int offset) {\n\t\t//int offset = concept.getOffset();\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\t\t// add annotation the new way\n\t\tfor(Annotation a: concept.getAnnotations()){\n\t\t\tConceptLabel lbl = new ConceptLabel(a.getText(), offset + a.getOffset());\n\t\t\tlbl.setConcept(concept);\n\t\t\tlbl.setReportPanel(reportInterface);\n\t\t\tlbl.setColor(Color.black);\n\t\t\tlabels.add(lbl);\n\t\t}\n\t\t\n\t\t\n\t\treturn labels;\n\t}", "private static void addNextNullnessAnnotation(final Set<NullnessAnnotation> result,\n DetailAST ast) {\n final DetailAST identifier = ast.findFirstToken(TokenTypes.IDENT);\n if (identifier != null) {\n final String annotationName = identifier.getText();\n final NullnessAnnotation annotation = STRING2ANNOTATION.get(annotationName);\n if (annotation != null) {\n result.add(annotation);\n }\n }\n }", "public abstract Annotations getClassAnnotations();", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public void addMember(Annotation member);", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "Set<? extends Class<? extends Annotation>> annotations();", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "@Override\r\n public void annotate(Annotation annotation) {\r\n// System.out.println(\"Tokens\");\r\n// for(CoreLabel token : annotation.get(CoreAnnotations.TokensAnnotation.class)){\r\n for(int i=0;i<annotation.get(CoreAnnotations.TokensAnnotation.class).size();i++){\r\n CoreLabel token = annotation.get(CoreAnnotations.TokensAnnotation.class).get(i);\r\n// System.out.println(token.word() +\", tokenIndex = \"+i);\r\n if(token.word().equals(sch)) {\r\n// positions.add(token.index());\r\n token.set(SearchAnnotation.class,i); //index of the token is saved\r\n\r\n }\r\n }\r\n }", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "private static void annotationOut(SchemaComponent sc) {\n if (sc.getAnnotation().getAppinfos().size() > 0) {\n System.out\n .print(\" Annotation (appinfos) available with the content: \");\n for (Appinfo appinfo : sc.getAnnotation().getAppinfos()) {\n out(appinfo.getContent());\n }\n } else {\n System.out\n .print(\" Annotation (documentation) available with the content: \");\n for (Documentation doc : sc.getAnnotation().getDocumentations()) {\n out(doc.getContent());\n }\n }\n }", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\n\t\taddAnnotation\n\t\t (controlEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"control\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Midi(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"midi\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Background(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"background\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Centered(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"centered\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Color(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"color\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_H(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"h\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Inverted(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_LocalOff(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"local_off\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Number(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_OscCs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"osc_cs\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Outline(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"outline\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Response(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"response\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalet(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalet\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Seconds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"seconds\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Size(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"size\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Text(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"text\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_W(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"w\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_X(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Y(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (layoutEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"layout\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Tabpage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"tabpage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Mode(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"mode\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Orientation(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"orientation\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Version(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"version\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (midiEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"midi\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Channel(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"channel\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data1(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data1\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2f(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2f\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2t(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2t\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Var(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"var\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (tabpageEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"tabpage\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Control(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"control\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (topEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"TOP\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTOP_Layout(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"layout\"\n\t\t });\n\t}", "private void processAdditionalAnnotation(AnnotationMirror annotation) {\n\t\tstack.push(elementUtils.getElementValuesWithDefaults(annotation));\n\t\tElement element = annotation.getAnnotationType().asElement();\n\t\tprocessElement(element);\n\t\tstack.pop();\n\t}", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "public String getAnnotation();", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "public void convertAnnotations(JCas cas, String serviceType) {\n for (Map.Entry<String, List<Annotation>> entityEntry : entities.entrySet()) {\n String annotationName = entityEntry.getKey();\n annotationName = TypeSystemUtils.UIMA_ANNOTATION_TYPES_PACKAGE + serviceType + \".\" + TypeSystemUtils.removeDashes(annotationName);\n List<Annotation> annotations = entityEntry.getValue();\n for (Annotation ann : annotations) {\n casAnnotation = getFeatureStructureForS4Annotation(cas, annotationName);\n if (casAnnotation == null) {\n LOG.warn(annotationName + \" not available\");\n continue;\n }\n\n Type type = casAnnotation.getType();\n LOG.info(\">>>>>>>>>>> Get Type -> \" + type);\n casAnnotation.setBegin((int) ann.startOffset);\n casAnnotation.setEnd((int) ann.endOffset);\n Map<String, Object> features = ann.features;\n for (Map.Entry<String, Object> entry : features.entrySet()) {\n String featureName = TypeSystemUtils.patchMatchingFeatureNamesWithUimaReservedKeywords(entry.getKey());\n Feature feature = type.getFeatureByBaseName(featureName);\n if (feature == null) {\n continue;\n }\n\n Object value = entry.getValue();\n String stringValue;\n if (value != null) {\n stringValue = value.toString();\n } else {\n continue;\n }\n\n casAnnotation.setFeatureValueFromString(feature, stringValue);\n }\n cas.addFsToIndexes(casAnnotation);\n }\n }\n }", "public void addAnnotation(Annotation annotation) {\r\n\t\tannotations.add(annotation);\r\n\t}", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getPartyQual_QualificationDesc(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_PartyQualTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeText(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Rating(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillLevel(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_YearsExperience(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_PerfRatingTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_ManagerRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_PerfReviewItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_ApprovalStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Reason(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_ResponsibilityTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_SkillTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_TrainingClassTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}", "private void mergeAnnotations(JsonObject targetNode, JsonObject sourceNode, JsonObject tree) {\n JsonArray annotationAttachments = sourceNode.has(\"annotationAttachments\")\n ? sourceNode.getAsJsonArray(\"annotationAttachments\")\n : sourceNode.getAsJsonArray(\"annAttachments\");\n for (JsonElement item : annotationAttachments) {\n JsonObject sourceNodeAttachment = item.getAsJsonObject();\n\n JsonObject matchedTargetNode = findAttachmentNode(targetNode, sourceNodeAttachment);\n\n if (matchedTargetNode != null) {\n if (sourceNodeAttachment.getAsJsonObject(\"expression\").get(\"kind\").getAsString()\n .equals(\"RecordLiteralExpr\") && matchedTargetNode.getAsJsonObject(\"expression\").get(\"kind\")\n .getAsString().equals(\"RecordLiteralExpr\")) {\n\n JsonObject sourceRecord = sourceNodeAttachment.getAsJsonObject(\"expression\");\n JsonObject matchedTargetRecord = matchedTargetNode.getAsJsonObject(\"expression\");\n\n if (sourceNodeAttachment.getAsJsonObject(\"annotationName\").get(\"value\").getAsString()\n .equals(\"MultiResourceInfo\")) {\n JsonArray sourceResourceInformations = sourceRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInformations = matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n // Get map values of the resourceInformation map in MultiResourceInfo annotation.\n for (JsonElement sourceResourceInfoItem : sourceResourceInformations) {\n JsonObject sourceResourceInfo = sourceResourceInfoItem.getAsJsonObject();\n JsonObject matchedTargetResourceInfo = null;\n for (JsonElement targetResourceInfoItem : targetResourceInformations) {\n JsonObject targetResourceInfo = targetResourceInfoItem.getAsJsonObject();\n if (targetResourceInfo.has(\"key\")\n && targetResourceInfo.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"Literal\")) {\n JsonObject targetResourceInfoKey = targetResourceInfo.getAsJsonObject(\"key\");\n JsonObject sourceResourceInfoKey = sourceResourceInfo.getAsJsonObject(\"key\");\n\n if (sourceResourceInfoKey.get(\"value\").getAsString()\n .equals(targetResourceInfoKey.get(\"value\").getAsString())) {\n matchedTargetResourceInfo = targetResourceInfo;\n }\n }\n }\n\n if (matchedTargetResourceInfo != null) {\n JsonArray sourceResourceInfoOperation = sourceResourceInfo.getAsJsonObject(\"value\")\n .getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInfoOperation = matchedTargetResourceInfo\n .getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n for (JsonElement keyValueItem : sourceResourceInfoOperation) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n for (JsonElement matchedKeyValueItem : targetResourceInfoOperation) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n targetResourceInfoOperation\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, firstTokenIndex);\n targetResourceInfoOperation.add(sourceKeyValue);\n } else {\n // Add new key value pair to the annotation record.\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, -1);\n targetResourceInfoOperation.add(sourceKeyValue);\n\n if (targetResourceInfoOperation.size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetResourceInfo\n .getAsJsonObject(\"value\"), tree, \"\", \",\", true, startIndex);\n }\n }\n }\n\n } else {\n FormattingSourceGen.reconcileWS(sourceResourceInfo, targetResourceInformations,\n tree, -1);\n targetResourceInformations.add(sourceResourceInfo);\n }\n }\n\n } else {\n for (JsonElement keyValueItem : sourceRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n\n for (JsonElement matchedKeyValueItem :\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, firstTokenIndex);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n } else {\n // Add the new record key value pair.\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, -1);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n\n if (matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetRecord, tree, \"\", \",\", true, startIndex);\n }\n }\n }\n }\n }\n } else {\n int startIndex = FormattingSourceGen.getStartPosition(targetNode, \"annAttachments\", -1);\n JsonArray targetAnnAttachments = targetNode.has(\"annotationAttachments\")\n ? targetNode.getAsJsonArray(\"annotationAttachments\")\n : targetNode.getAsJsonArray(\"annAttachments\");\n FormattingSourceGen.reconcileWS(sourceNodeAttachment, targetAnnAttachments, tree, startIndex);\n targetAnnAttachments.add(sourceNodeAttachment);\n }\n\n }\n }", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "protected void createGmf_1Annotations() {\n\t\tString source = \"gmf.node\";\t\n\t\taddAnnotation\n\t\t (nodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxLabel\", \"name\",\n\t\t\t \"mxFill\", \"1\",\n\t\t\t \"mxHtml\", \"1\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxChildLayout\", \"stackLayout\",\n\t\t\t \"mxCollapsible\", \"1\",\n\t\t\t \"mxHorizontalStack\", \"0\",\n\t\t\t \"mxResizeParent\", \"0\",\n\t\t\t \"mxResizeLast\", \"1\",\n\t\t\t \"mxRounded\", \"1\",\n\t\t\t \"mxMarginBottom\", \"0\",\n\t\t\t \"mxMarginLeft\", \"0\",\n\t\t\t \"mxMarginRight\", \"0\",\n\t\t\t \"mxMarginTop\", \"0\",\n\t\t\t \"mxWhiteSpace\", \"wrap\",\n\t\t\t \"mxWidth\", \"200\",\n\t\t\t \"mxHeight\", \"120\"\n\t\t });\n\t}", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}", "@Override\n\t\tpublic void annotate(JCas arg0) throws AnalysisEngineProcessException {\n\t\t\t\n\t\t}", "void addTypedFeature(StructuralFeature typedFeature);", "public final void annotations() throws RecognitionException {\n int annotations_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"annotations\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(527, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 70) ) { return ; }\n // Java.g:528:5: ( ( annotation )+ )\n dbg.enterAlt(1);\n\n // Java.g:528:9: ( annotation )+\n {\n dbg.location(528,9);\n // Java.g:528:9: ( annotation )+\n int cnt88=0;\n try { dbg.enterSubRule(88);\n\n loop88:\n do {\n int alt88=2;\n try { dbg.enterDecision(88);\n\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==73) ) {\n int LA88_2 = input.LA(2);\n\n if ( (LA88_2==Identifier) ) {\n int LA88_3 = input.LA(3);\n\n if ( (synpred128_Java()) ) {\n alt88=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(88);}\n\n switch (alt88) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: annotation\n \t {\n \t dbg.location(528,9);\n \t pushFollow(FOLLOW_annotation_in_annotations2704);\n \t annotation();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt88 >= 1 ) break loop88;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(88, input);\n dbg.recognitionException(eee);\n\n throw eee;\n }\n cnt88++;\n } while (true);\n } finally {dbg.exitSubRule(88);}\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, 70, annotations_StartIndex); }\n }\n dbg.location(529, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"annotations\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "@rdf(FOAF.SPATIALTHING)\npublic interface SpatialThing extends Thing {\n}", "protected void createInputAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/input\";\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getPrint_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t}", "protected void createBikeshedAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Abstract-Syntax\"\n\t\t });\n\t\taddAnnotation\n\t\t (elementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (identifiedElementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (importEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (axiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (assertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (predicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (argumentEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (ontologyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (memberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (statementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (termEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (ruleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializableTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationBaseEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializablePropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (entityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (aspectEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (semanticPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (structuredPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (forwardRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (reverseRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (unreifiedRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (namedInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (keyAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRangeRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyCardinalityRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertySelfRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (unaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (binaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (typePredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (sameAsPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (differentFromPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (quotedLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (integerLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (doubleLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (booleanLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (separatorKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (rangeRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (cardinalityRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (importKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t}", "default List<AnnotationContext<?>> allAnnotations() {\n\n return annotations().stream()\n .flatMap(annotation -> annotation.valueType().<Stream<AnnotationContext<?>>>map(valueType -> {\n if (valueType.isArray()) {\n final TypeContext componentType = valueType.arrayComponentType();\n final AnnotationContext<Repeatable> rep = componentType.annotation(Repeatable.class);\n if (rep != null && rep.value().equals(annotation.annotationType())) {\n final Annotation[] repeated = annotation.value();\n return Arrays.stream(repeated).map(AnnotationContext::new);\n }\n }\n return Stream.of(annotation);\n }).orElseGet(() -> Stream.of(annotation)))\n .collect(Collectors.toList());\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"org.abchip.mimo.core.base.invocation\",\n\t\t\t \"settingDelegates\", \"org.abchip.mimo.core.base.setting\"\n\t\t });\n\t}", "UMLStructuralFeature createUMLStructuralFeature();", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "void annotate(final StylesheetModule module) {\n\n Document doc = module.getDocument(StylesheetModule.CORE);\n\n Visitor annotatorVisitor = new VisitorSupport() {\n @Override\n\tpublic void visit(Element element) {\n if (element.getNamespaceURI().equals(XSLConstants.NAMESPACE_URI)) {\n\n // Attribute at =\n // element.attribute(XMLConstants.ELEMENT_CORE_ID_QNAME);\n // if (at!=null)\n // throw new RuntimeException(\"Already had core id! \" +\n // element);\n\n if (element.getName().equals(XSLConstants.ELEM_TEMPLATE)\n || element.getName().equals(XSLConstants.ELEM_APPLY_TEMPLATES)) {\n String coreKey = element.attributeValue(XMLConstants.ELEMENT_CORE_ID_QNAME);\n if (coreKey == null) {\n coreKey = names.getFreshId(XMLConstants.CORE_ELEMENT_ENUMERATION_FORMAT);\n element.addAttribute(XMLConstants.ELEMENT_CORE_ID_QNAME, coreKey);\n }\n module.addElementById(coreKey, element, StylesheetModule.CORE);\n }\n }\n }\n };\n doc.accept(annotatorVisitor);\n }", "public abstract boolean mo30680a(Annotation annotation);", "void annotate(String line);", "private static void addShapeless()\n {}", "public interface IfcAnnotationSurfaceOccurrence extends IfcAnnotationOccurrence {\n}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\n\t\taddAnnotation\n\t\t (getJClass_Operations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"simple\"\n\t\t });\n\t}", "private void createAnnotationTree() throws JDOMException, IOException, ParseException {\r\n\t\tif(currentResource!=null)\r\n\t\t\tcreateAnnotation();\r\n\r\n\t\tif(rootAnnotations!=null)\r\n\t\t\taddAnnotationReplies(rootAnnotations);\r\n\t\t\r\n\t\t// we add all remaining replies to the root level because we did not\r\n\t\t// find the annotation they reply to.\r\n\t\tfor(Long annotationId : allReplies.keySet()) {\r\n\t\t\tfor(Annotation reply : allReplies.get(annotationId)) {\r\n\t\t\t\trootAnnotations.add(reply);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected List<Das2FeatureI> convertAnnots(UcscType type, UcscSequence seq, ResultSet rs) throws SQLException {\n\t// to cut down on copy ops, starting with space for 10K annots\n\tList<Das2FeatureI> annots = new ArrayList<Das2FeatureI>(10000); \n\tTrackType track_type = type.getTrackType();\n\tString seqid = seq.getName();\n\n\tif (track_type == TrackType.BED3 || \n\t track_type == TrackType.BED4 || \n\t track_type == TrackType.BED5 || \n\t track_type == TrackType.BED6 || \n\t track_type == TrackType.BED8 || \n\t track_type == TrackType.BED9 || \n\t track_type == TrackType.BED12 || \n\t track_type == TrackType.BED15 ) {\n\t while (rs.next()) {\n\t\tint min = rs.getInt(type.start_col);\n\t\tint max = rs.getInt(type.end_col);\n\t\tStrand strand = Strand.FORWARD; \n\t\tif (type.strand_col >= 0) {\n\t\t if (rs.getString(type.strand_col).equals(\"-\")) {\n\t\t\tstrand = Strand.REVERSE;\n\t\t }\n\t\t}\n\t\tString annotid;\n\t\tif (type.name_col >= 0) {\n\t\t annotid = rs.getString(type.name_col);\n\t\t}\n\t\telse {\n\t\t if (strand == Strand.REVERSE) {\n\t\t\tannotid = seqid + \"/\" + min + \"-\" + max + \"-\";\n\t\t } else {\n\t\t\tannotid = seqid + \"/\" + min + \"-\" + max;\n\t\t }\n\t\t}\n\t\tString title = annotid;\n\t\tif (type.hasOtherName()) { title = rs.getString(type.other_name_col); }\n\n\t\tDas2LocationI loc = new Das2Location(seq, min, max, strand);\n\t\tUcscCdsFeature annot = new UcscCdsFeature(response_base_uri,\n\t\t\t\t\t\t annotid, // local_uri_string for feature \n\t\t\t\t\t\t title, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t type, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null);\n\t\tannot.addLocation(loc);\n\t\tif (type.hasCDS()) {\n\t\t int cds_min = rs.getInt(type.cds_start_col);\n\t\t int cds_max = rs.getInt(type.cds_end_col);\n\t\t // check for no CDS: convention is if table has CDS column but no CDS, then cds_min == cds_max\n\t\t if (cds_min != cds_max) { \n\t\t\tDas2LocationI cds_loc = new Das2Location(seq, cds_min, cds_max, strand);\n\t\t\tannot.setCds(cds_loc);\n\t\t }\n\t\t}\n\t\tif (type.hasBlocks()) {\n\t\t int child_count = rs.getInt(type.block_count_col);\n\t\t // List child_list = new ArrayList(child_count);\n\t\t String startsblock = rs.getString(type.block_starts_col);\n\t\t String sizesblock = rs.getString(type.block_sizes_col);\n\t\t String[] cstarts = block_splitter.split(startsblock);\n\t\t String[] csizes = block_splitter.split(sizesblock); // BED uses blockSizes\n\n\t\t List<Das2LocationI> child_locs = new ArrayList();\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tint cmin = min + Integer.parseInt(cstarts[i]); // BED startBlocks relative to parent start\n\t\t\tint cmax = cmin + Integer.parseInt(csizes[i]);\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tchild_locs.add(child_loc);\n\t\t }\n\t\t handleChildren(annot, child_locs);\n\t\t \n\t\t /*\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tString child_annotid = annotid + \".\" + Integer.toString(i);\n\t\t\tint cmin = min + Integer.parseInt(cstarts[i]); // BED startBlocks relative to parent start\n\t\t\tint cmax = cmin + Integer.parseInt(csizes[i]);\n\t\t\t// strand of child is always same as strand of parent\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tDas2Feature child_annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t\t\t child_annotid, // local_uri_string for child\n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null);\n\t\t\tchild_annot.addLocation(child_loc);\n\t\t\t//\t\t\tchild_list.add(child_annot);\n\t\t\tannot.addPart(child_annot);\n\t\t\tchild_annot.addParent(annot);\n\t\t }\n\t\t */\n\t\t}\n\t\tannots.add(annot);\n\t }\n\t} // end BED branch\n\n\telse if (track_type == TrackType.GENEPRED) {\n\t while (rs.next()) {\n\t\tString annotid = rs.getString(type.name_col);\n\t\tString title = annotid;\n\t\tif (type.hasOtherName()) { title = rs.getString(type.other_name_col); }\n\t\tint min = rs.getInt(type.start_col);\n\t\tint max = rs.getInt(type.end_col);\n\t\tStrand strand = Strand.FORWARD;\n\t\tif (type.strand_col >= 0) {\n\t\t if (rs.getString(type.strand_col).equals(\"-\")) {\n\t\t\tstrand = Strand.REVERSE;\n\t\t }\n\t\t}\n\t\tDas2LocationI loc = new Das2Location(seq, min, max, strand);\n\t\tUcscCdsFeature annot = new UcscCdsFeature(response_base_uri, \n\t\t\t\t\t\t\t annotid, // local_uri_string for feature \n\t\t\t\t\t\t\t title, \n\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t null);\n\t\tannot.addLocation(loc);\n\t\tif (type.hasCDS()) {\n\t\t int cds_min = rs.getInt(type.cds_start_col);\n\t\t int cds_max = rs.getInt(type.cds_end_col);\n\t\t // check for no CDS: convention is if table has CDS column but no CDS, then cds_min == cds_max\n\t\t if (cds_min != cds_max) { \n\t\t\tDas2LocationI cds_loc = new Das2Location(seq, cds_min, cds_max, strand);\n\t\t\tannot.setCds(cds_loc);\n\t\t }\n\t\t}\n\t\tif (type.hasBlocks()) {\n\t\t int child_count = rs.getInt(type.block_count_col);\n\t\t String startsblock = rs.getString(type.block_starts_col);\n\t\t String endsblock = rs.getString(type.block_ends_col); // GENEPRED uses exonEnds/blockEnds\n\t\t String[] cstarts = block_splitter.split(startsblock);\n\t\t String[] cends = block_splitter.split(endsblock);\n\t\t List<Das2LocationI> child_locs = new ArrayList();\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tint cmin = Integer.parseInt(cstarts[i]); // GENEPRED blockStarts coords are absolute\n\t\t\tint cmax = Integer.parseInt(cends[i]); // GENEPRED blockEnds coords are absolute\n\t\t\t// strand of child is always same as strand of parent\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tchild_locs.add(child_loc);\n\t\t }\n\t\t handleChildren(annot, child_locs);\n\t\t /*\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\tString child_annotid = annotid + \".\" + Integer.toString(i);\n\t\t\tint cmin = Integer.parseInt(cstarts[i]); // GENEPRED blockStarts coords are absolute\n\t\t\tint cmax = Integer.parseInt(cends[i]); // GENEPRED blockEnds coords are absolute\n\t\t\t// strand of child is always same as strand of parent\n\t\t\tDas2LocationI child_loc = new Das2Location(seq, cmin, cmax, strand);\n\t\t\tDas2Feature child_annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t\t\t child_annotid, // local_uri_string for child\n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null);\n\t\t\tchild_annot.addLocation(child_loc);\n\t\t\tannot.addPart(child_annot);\n\t\t\tchild_annot.addParent(annot);\n\t\t }\n\t\t */\n\t\t}\n\t\tannots.add(annot);\n\t }\n\t} // end GENEPRED branch\n\n\telse if (track_type == TrackType.PSL) {\n\t Map<String, Das2SegmentI> qseqs = new HashMap<String, Das2SegmentI>();\n\t while (rs.next()) {\n\t\tint qlength = rs.getInt(\"qSize\");\n\t\t// int tlength = rs.getInt(\"tSize\");\n\t\tint tlength = seq.getLength();\n\t\t\n\t\tString annotid = rs.getString(type.name_col);\n\t\tString title = annotid;\n\t\tif (type.hasOtherName()) { title = rs.getString(type.other_name_col); }\n\t\tint tmin = rs.getInt(type.start_col);\n\t\tint tmax = rs.getInt(type.end_col);\n\t\tint qmin = rs.getInt(\"qStart\");\n\t\tint qmax = rs.getInt(\"qEnd\");\n\t\tStrand tstrand = Strand.FORWARD;\n\t\tStrand qstrand = Strand.FORWARD;\n\t\tif (type.strand_col >= 0) {\n\t\t // current implentation assumes the only possibilities for strand are: \n\t\t // \"+\", \"-\", \"++\", \"--\", \"+-\", \"-+\"\n\t\t String strands = rs.getString(type.strand_col);\n\t\t if (strands.length() == 1) {\n\t\t\tqstrand = ((strands.charAt(0) == '-') ? Strand.REVERSE : Strand.FORWARD);\n\t\t\ttstrand = Strand.FORWARD;\n\t\t }\n\t\t else if (strands.length() >= 2) {\n\t\t\tqstrand = ((strands.charAt(0) == '-') ? Strand.REVERSE : Strand.FORWARD);\n\t\t\ttstrand = ((strands.charAt(1) == '-') ? Strand.REVERSE : Strand.FORWARD);\n\t\t }\n\n\t\t}\n\t\tboolean same_orientation = (qstrand == tstrand);\n\n\t\tDas2Feature annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t annotid, // local_uri_string for feature \n\t\t\t\t\t\t title, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t type, \n\t\t\t\t\t\t null, \n\t\t\t\t\t\t null);\n\t\t\n\t\tDas2SegmentI qseq = qseqs.get(annotid);\n\t\tif (qseq == null) { \n\t\t qseq = new Das2Segment(response_base_uri, annotid, null, null, qlength, null);\n\t\t qseqs.put(annotid, qseq);\n\t\t}\n\n\t\t// Das2LocationI tloc = new Das2Location(seq, tmin, tmax, tstrand);\n\t\t// Das2LocationI qloc = new Das2Location(qseq, qmin, qmax, qstrand);\n\t\tDas2LocationI tloc;\n\t\tif (same_orientation) {\n\t\t tloc = new Das2Location(seq, tmin, tmax, Strand.FORWARD);\n\t\t}\n\t\telse {\n\t\t tloc = new Das2Location(seq, tmin, tmax, Strand.REVERSE);\n\t\t}\n\t\tDas2LocationI qloc = new Das2Location(qseq, qmin, qmax, Strand.FORWARD);\n\t\tannot.addLocation(tloc);\n\t\tannot.addLocation(qloc);\n\n\t\tif (type.hasBlocks()) {\n\t\t int child_count = rs.getInt(type.block_count_col);\n\t\t String tstarts_block = rs.getString(type.block_starts_col);\n\t\t String qstarts_block = rs.getString(\"qStarts\");\n\t\t String sizes_block = rs.getString(type.block_sizes_col); // PSL uses blockSizes\n\t\t String[] tstarts = block_splitter.split(tstarts_block);\n\t\t String[] qstarts = block_splitter.split(qstarts_block);\n\t\t String[] sizes = block_splitter.split(sizes_block);\n\t\t for (int i=0; i<child_count; i++) {\n\t\t\t// query = forward, target = forward\n\t\t\tint block_index;\n\t\t\tif (qstrand == Strand.REVERSE) {\n\t\t\t block_index = child_count - i - 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t block_index = i;\n\t\t\t}\n\t\t\tint tstart = Integer.parseInt(tstarts[block_index]);\n\t\t\tint qstart = Integer.parseInt(qstarts[block_index]);\n\t\t\tint match_length = Integer.parseInt(sizes[block_index]);\n\t\t\tint child_qmin;\n\t\t\tint child_tmin;\n\t\t\tif (qstrand == Strand.FORWARD && tstrand == Strand.FORWARD) {\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[i]);\n\t\t\t child_qmin = qstart;\n\t\t\t child_tmin = tstart;\n\t\t\t}\n\t\t\t// query = reverse, target = forward\n\t\t\telse if (qstrand == Strand.REVERSE && tstrand == Strand.FORWARD) { \n\t\t\t //\t\t\t int block_index = child_count-i-1;\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[block_index]);\n\t\t\t child_qmin = qlength - qstart - match_length;\n\t\t\t child_tmin = tstart;\n\t\t\t}\n\t\t\t// query = forward, target = reverse\n\t\t\telse if (qstrand == Strand.FORWARD && tstrand == Strand.REVERSE) {\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[i]);\n\t\t\t child_qmin = qstart;\n\t\t\t child_tmin = tlength - tstart - match_length;\n\t\t\t}\n\t\t\telse { // query = reverse, target = reverse\n\t\t\t //\t\t\t int block_index = child_count-i-1;\n\t\t\t //\t\t\t match_length = Integer.parseInt(sizes[block_index]);\n\t\t\t child_qmin = qlength - qstart - match_length;\n\t\t\t child_tmin = tlength - tstart - match_length;\n\t\t\t}\n\t\t\t//\t\t\tfor (int i=0; i<child_count; i++) {\n\t\t\tString child_annotid = annotid + \".\" + Integer.toString(i);\n\n\t\t\tDas2Feature child_annot = new Das2Feature(response_base_uri, \n\t\t\t\t\t\t\t\t child_annotid, // local_uri_string for child\n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t type, \n\t\t\t\t\t\t\t\t null, \n\t\t\t\t\t\t\t\t null);\n\t\t\t\n\t\t\t// Das2LocationI child_tloc = \n\t\t\t// new Das2Location(seq, child_tmin, child_tmin + match_length, tstrand);\n\t\t\t// Das2LocationI child_qloc = \n\t\t\t// new Das2Location(qseq, child_qmin, child_qmin + match_length, qstrand);\n\n\t\t\tDas2LocationI child_tloc;\n\t\t\tif (same_orientation) {\n\t\t\t child_tloc = new Das2Location(seq, child_tmin, child_tmin + match_length, Strand.FORWARD);\n\t\t\t}\n\t\t\telse {\n\t\t\t child_tloc = new Das2Location(seq, child_tmin, child_tmin + match_length, Strand.REVERSE);\n\t\t\t}\n\t\t\tDas2LocationI child_qloc = \n\t\t\t new Das2Location(qseq, child_qmin, child_qmin + match_length, Strand.FORWARD);\n\t\t\tchild_annot.addLocation(child_tloc);\n\t\t\tchild_annot.addLocation(child_qloc);\n\t\t\tannot.addPart(child_annot);\n\t\t\tchild_annot.addParent(annot);\n\t\t\t//\t\t }\n\t\t }\n\t\t}\n\t\tannots.add(annot);\n\t }\n\t} // end PSL branch\n\n\treturn annots;\n }", "protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceMessage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoice_ReferenceNumber(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_InvoiceContentTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContentType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-precise\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"3\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_ParentInvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Amount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_Quantity(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_InvoiceItemAssocTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssocType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_InvoiceItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Percentage(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"fixed-point\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"6\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceTermId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermDays(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TermValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"currency-amount\",\n\t\t\t \"precision\", \"18\",\n\t\t\t \"scale\", \"2\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_TextValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTerm_UomId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrDescription(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrValue(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_InvoiceTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}", "int getAnnotationCount();", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "protected void addAnnotationForConfig(\r\n\t\t\tList<AnnotationExpr> argAnnotationList,\r\n\t\t\tICodeGenConfig argConfigObject) {\r\n\t\tif (argAnnotationList != null) {\r\n\t\t\tfor (AnnotationExpr annotation : argAnnotationList) {\r\n\t\t\t\tAnnotationConfig annotationConfig = new AnnotationConfig();\r\n\t\t\t\tannotationConfig.setName(annotation.getName().getName());\r\n\t\t\t\tif (annotation instanceof NormalAnnotationExpr) {\r\n\t\t\t\t\tList<MemberValuePair> keyValues = ((NormalAnnotationExpr) annotation)\r\n\t\t\t\t\t\t\t.getPairs();\r\n\t\t\t\t\tif (keyValues != null) {\r\n\t\t\t\t\t\tfor (MemberValuePair valuePair : keyValues) {\r\n\t\t\t\t\t\t\tannotationConfig.addKey(valuePair.getName());\r\n\t\t\t\t\t\t\tannotationConfig.addValue(CodeGenUtils\r\n\t\t\t\t\t\t\t\t\t.clearDoubleQuotation(valuePair.getValue()\r\n\t\t\t\t\t\t\t\t\t\t\t.toString()));\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\targConfigObject.setConfigObject(AnnotationConfig.MAIN_TAG,\r\n\t\t\t\t\t\tannotationConfig);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "public static void main(String[] args) {\n\t\tString list = Annotation.annotateList(1, 16);\n\t\tSystem.out.println(list);\n\t\t\n\t}", "public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }", "public abstract ArrayList<CustomPath> getAnnotationPathList();", "static private void addRelations( final JCas jCas,\n final FhirPractitioner practitioner,\n final FhirNoteSpecs noteSpecs,\n final FhirResourceCreator<Annotation, Basic> aCreator,\n final Map<IdentifiedAnnotation, Basic> annotationBasics,\n final Map<Annotation, Basic> simpleBasics ) {\n final Collection<BinaryTextRelation> relations = JCasUtil.select( jCas, BinaryTextRelation.class );\n for ( BinaryTextRelation relation : relations ) {\n final RelationArgument arg1 = relation.getArg1();\n final Annotation source = arg1.getArgument();\n Basic basicSource;\n if ( source instanceof IdentifiedAnnotation ) {\n basicSource = annotationBasics.get( (IdentifiedAnnotation)source );\n } else {\n basicSource = getSimpleBasic( jCas, source, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final RelationArgument arg2 = relation.getArg2();\n final Annotation target = arg2.getArgument();\n Basic basicTarget;\n if ( target instanceof IdentifiedAnnotation ) {\n basicTarget = annotationBasics.get( (IdentifiedAnnotation)target );\n } else {\n basicTarget = getSimpleBasic( jCas, target, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final String type = relation.getCategory();\n basicSource.addExtension( FhirElementFactory.createRelation( type, basicTarget ) );\n }\n }", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public void addHeaderRelationshipsStars(boolean include_types) { \n Bundles bs = getRTParent().getRootBundles();\n Iterator<Tablet> it_tab = bs.tabletIterator();\n while (it_tab.hasNext()) {\n Tablet tablet = it_tab.next();\n int fields[] = tablet.getFields();\n\n // Add the tablet node\n String tablet_str = (new KeyMaker(tablet, KeyMaker.TABLET_SEP_STR).stringKeys(tablet.bundleIterator().next()))[0];\n if (entity_to_shape.containsKey(tablet_str) == false) entity_to_shape.put(tablet_str, Utils.Symbol.SQUARE); \n if (entity_to_wxy.containsKey(tablet_str) == false) { entity_to_wxy.put(tablet_str, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1)); transform(tablet_str); }\n graph.addNode(tablet_str); digraph.addNode(tablet_str);\n\n // Only keep the non-null fields\n List<Integer> al = new ArrayList<Integer>(); for (int i=0;i<fields.length;i++) if (fields[i] != -1) al.add(i);\n fields = new int[al.size()]; for (int i=0;i<fields.length;i++) fields[i] = al.get(i);\n\n // Go through the valid fields now\n for (int i=0;i<fields.length;i++) {\n int hdr_i = fields[i]; String hdr_i_str = bs.getGlobals().fieldHeader(hdr_i);\n\n // Put the symbol\n if (entity_to_shape.containsKey(hdr_i_str) == false) entity_to_shape.put(hdr_i_str, Utils.Symbol.CIRCLE); \n\n\t// Make the world location\n\tif (entity_to_wxy.containsKey(hdr_i_str) == false) { entity_to_wxy.put(hdr_i_str, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1)); transform(hdr_i_str); }\n\n\t// Figure out the weights\n\tgraph.addNode(hdr_i_str); digraph.addNode(hdr_i_str);\n\tdouble g_w = graph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(tablet_str)),\n\t dg_w = digraph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(tablet_str));\n if (Double.isInfinite(g_w)) g_w = 0.0; if (Double.isInfinite(dg_w)) dg_w = 0.0;\n // Add the edges\n\t graph.addNeighbor(hdr_i_str, tablet_str, g_w + tablet.size());\n\t graph.addNeighbor(tablet_str, hdr_i_str, g_w + tablet.size());\n\tdigraph.addNeighbor(hdr_i_str, tablet_str, dg_w + tablet.size());\n\t// Associate the bundles with the edge\n\tIterator<Bundle> it_bun = tablet.bundleIterator();\n\twhile (it_bun.hasNext()) {\n\t Bundle bundle = it_bun.next();\n\t graph.addLinkReference( graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(tablet_str), bundle);\n\t graph.addLinkReference( graph.getEntityIndex(tablet_str), graph.getEntityIndex(hdr_i_str), bundle);\n\t digraph.addLinkReference(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(tablet_str), bundle);\n // Include the data types if specified\n\t if (include_types) {\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(bundle.toString(hdr_i));\n // System.err.println(\"Including Type For \\\"\" + bundle.toString(hdr_i) + \"\\\" ==> \" + datatype);\n\t if (datatype != null) {\n graph.addNode(\"\" + datatype); entity_to_shape.put(\"\" + datatype, Utils.Symbol.TRIANGLE);\n\t digraph.addNode(\"\" + datatype); \n\t if (entity_to_wxy.containsKey(\"\" + datatype) == false) {\n\t entity_to_wxy.put(\"\" + datatype, new Point2D.Double(Math.random()*2 - 1, Math.random()*2 - 1)); \n\t\ttransform(\"\" + datatype);\n\t }\n\t g_w = graph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(\"\" + datatype));\n\t dg_w = graph.getConnectionWeight(graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(\"\" + datatype));\n if (Double.isInfinite(g_w)) g_w = 0.0; if (Double.isInfinite(dg_w)) dg_w = 0.0;\n\t graph.addNeighbor(\"\" + datatype, hdr_i_str, g_w + 1);\n\t graph.addNeighbor(hdr_i_str, \"\" + datatype, g_w + 1);\n\t digraph.addNeighbor(hdr_i_str, \"\" + datatype, dg_w + 1);\n\t graph.addLinkReference( graph.getEntityIndex(hdr_i_str), graph.getEntityIndex(\"\" + datatype), bundle);\n\t graph.addLinkReference( graph.getEntityIndex(\"\" + datatype), graph.getEntityIndex(hdr_i_str), bundle);\n\t digraph.addLinkReference(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(\"\" + datatype), bundle);\n digraph.addLinkStyle(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(\"\" + datatype), STYLE_DOTTED_STR);\n\t }\n\t }\n\t}\n\t// Add the style\n digraph.addLinkStyle(digraph.getEntityIndex(hdr_i_str), digraph.getEntityIndex(tablet_str), STYLE_SOLID_STR);\n }\n }\n getRTComponent().render();\n }", "@MyFirstAnnotation(name = \"Tom\")\n public void someMethod() {\n\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16511_failAssert32_literalMutation18178_cf19554_failAssert7() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.langx.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.util.List<com.squareup.javapoet.AnnotationSpec> vc_7188 = (java.util.List)null;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_8534 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_8532 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_8532, vc_8534);\n // MethodAssertGenerator build local variable\n Object o_22_0 = vc_7188;\n // StatementAdderMethod cloned existing statement\n type.concatAnnotations(vc_7188);\n org.junit.Assert.fail(\"annotatedTwice_cf16511 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedTwice_cf16511_failAssert32_literalMutation18178_cf19554 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}" ]
[ "0.63557184", "0.63013375", "0.62916934", "0.6163265", "0.6114139", "0.60566694", "0.60419637", "0.60419637", "0.6004397", "0.6000686", "0.59836257", "0.5944438", "0.5902949", "0.5887273", "0.5803817", "0.57703024", "0.5762956", "0.5761239", "0.56757003", "0.5667842", "0.56634223", "0.5659239", "0.565744", "0.56437093", "0.5639987", "0.5628754", "0.55548143", "0.55271405", "0.5525166", "0.5515082", "0.5504567", "0.5500273", "0.54917526", "0.54682773", "0.5467503", "0.5459592", "0.54471606", "0.54219186", "0.5418817", "0.5417315", "0.54161763", "0.5413444", "0.5409727", "0.5386787", "0.53711754", "0.53644764", "0.53638005", "0.535224", "0.53507495", "0.53390163", "0.53314275", "0.53282297", "0.5325596", "0.5322616", "0.53145564", "0.530281", "0.5301561", "0.529194", "0.52909017", "0.5283369", "0.5282434", "0.5278826", "0.5276664", "0.5276529", "0.5265776", "0.52651376", "0.5264377", "0.5263329", "0.5262999", "0.52620184", "0.5253055", "0.5242591", "0.52364576", "0.5228146", "0.52162606", "0.52117836", "0.5208103", "0.52061194", "0.51846737", "0.51631033", "0.5158605", "0.5157306", "0.5123561", "0.51166934", "0.50931096", "0.5092829", "0.5091232", "0.5088296", "0.50833625", "0.5082308", "0.5078897", "0.507775", "0.5076965", "0.50726455", "0.50693625", "0.5067428", "0.5067404", "0.50657094", "0.5053988", "0.50460154" ]
0.5729459
18
This method is invoked for creating annotations defined by Tribal Education Network Ontology, and those common for learning objects as well as other elearning objects like courses, pages etc. It creates an arraylist containing triples for annotations common to all the objects in ten, to be inserted in triple store
public ArrayList<Triple> createTenCommonAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){ String LOG_METHOD_NAME = "ArrayList createTenCommonAnnotationTriples(Node, TenLearningObjectAnnotationsBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //modified if(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getModified())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED); predicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getModified()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //rightsHolder if(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getRightsHolder())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER); predicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getRightsHolder()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //isPartOf if(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getIsPartOf())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_ISPARTOF); predicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getIsPartOf()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //hasPart if(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getHasPart())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART); predicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getHasPart()); tripleList.add(new Triple(subject, predicate, predicate_value)); } }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Triple> createTenLearningObjectAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenLearningObjectAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//annotator name\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getAnnotator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_ANNOTATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getAnnotator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addDescriptiveAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addStructuralAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void buildTFIDFAnnotations() throws IOException {\n\t\tTFIDFTrendExtractor trendExtractor = new TFIDFTrendExtractor(false, trainingInstances);\n\t\tTFIDFInvestigationMethodExtractor invMExtractor = new TFIDFInvestigationMethodExtractor(false,\n\t\t\t\ttrainingInstances);\n\n\t\tnew File(\"data/annotations/invMTFIDF/\").mkdirs();\n\t\tnew File(\"data/annotations/trendTFIDF/\").mkdirs();\n\n\t\tfor (Instance instance : testInstances) {\n//\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\tSet<DocumentLinkedAnnotation> invAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\tinvAnns.addAll(invMExtractor.getInvestigationMethodForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(invAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/invMTFIDF/\" + instance.getName()), invAnns);\n\t\t\tSet<DocumentLinkedAnnotation> trendAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\ttrendAnns.addAll(trendExtractor.getTrendsForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(trendAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/trendTFIDF/\" + instance.getName()), trendAnns);\n//\t\t\tSystem.out.println(\"SIZE = \" + annotations.get(instance).size());\n\t\t}\n\n//\t\treturn annotations;\n\n\t}", "public ArrayList<Triple> addStructuralAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> addStructuralAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//STRUCTURAL\t\r\n\t\t\t//date of annotation\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getDate())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_ANNOTATION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getDate());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//format\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getFormat())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_FORMAT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getFormat());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void createAnnotationTree() throws JDOMException, IOException, ParseException {\r\n\t\tif(currentResource!=null)\r\n\t\t\tcreateAnnotation();\r\n\r\n\t\tif(rootAnnotations!=null)\r\n\t\t\taddAnnotationReplies(rootAnnotations);\r\n\t\t\r\n\t\t// we add all remaining replies to the root level because we did not\r\n\t\t// find the annotation they reply to.\r\n\t\tfor(Long annotationId : allReplies.keySet()) {\r\n\t\t\tfor(Annotation reply : allReplies.get(annotationId)) {\r\n\t\t\t\trootAnnotations.add(reply);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public void addInstances (InstanceList training)\n\t{\n\t\tSystem.out.println(\"LabeledLDA Model : Adding training instances ..%\");\n\t\t//Data Alphabet\n\t\talphabet = training.getDataAlphabet();\n\t\tnumTypes = alphabet.size();\n\t\tbetaSum = beta * numTypes;\n\t\t\n\t\t// We have one topic for every possible label.\n\t\tlabelAlphabet = training.getTargetAlphabet();\n\t\tnumTopics = labelAlphabet.size();\n\t\toneDocTopicCounts = new int[numTopics];\n\t\ttokensPerTopic = new int[numTopics];\n\t\ttypeTopicCounts = new int[numTypes][numTopics];\n\n\t\t//topicAlphabet = AlphabetFactory.labelAlphabetOfSize(numTopics); //generate d0,d1 [3shan target string w hwa 3wzo label]\n topicAlphabet = new LabelAlphabet();\n\t\tfor (int i = 0; i < numTopics; i++) {\n\t\t\tString target = labelAlphabet.lookupObject(i).toString();\n topicAlphabet.lookupLabel(target);\n\t\t}\n //System.out.println(topicAlphabet);\n\n for (Instance instance : training)\n\t\t{\n\t\t\tFeatureSequence tokens = (FeatureSequence) instance.getData(); //read data featureSequence\n\t\t\tLabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n FeatureVector labels = (FeatureVector) instance.getTarget(); //read target featurevector\n\n\t\t\tint[] topics = topicSequence.getFeatures();\n\t\t\tfor (int position = 0; position < tokens.size(); position++)\n\t\t\t{\n\t\t\t\tint topic = labels.indexAtLocation(random.nextInt(labels.numLocations()));\n\t\t\t\ttopics[position] = topic;\n\t\t\t\ttokensPerTopic[topic]++;\n\t\t\t\tint type = tokens.getIndexAtPosition(position);\n\t\t\t\ttypeTopicCounts[type][topic]++;\n\t\t\t}\n\t\t\tTopicAssignment t = new TopicAssignment(instance, topicSequence);\n\t\t\tdata.add(t);\n\t\t}\n\t\t/*\n for (Instance instance : training)\n {\n FeatureSequence tokens = (FeatureSequence) instance.getData();\n LabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n\n int[] topics = topicSequence.getFeatures();\n for (int position = 0; position < topics.length; position++) {\n int topic = random.nextInt(numTopics);\n topics[position] = topic;\n }\n TopicAssignment t = new TopicAssignment(instance, topicSequence);\n data.add(t);\n }\n\n buildInitialTypeTopicCounts();\n initializeHistograms();\n\t\t */\n\t\tSystem.out.println(\"Data loaded.\");\n\t}", "public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "public void createMarkers() throws CoreException {\r\n if (resource != null && document != null) {\r\n for (LPEXTask tTask : parseDocument()) {\r\n Map<String, Object> tAttrs = new HashMap<String, Object>();\r\n tAttrs.put(\"userEditable\", false);\r\n tAttrs.put(\"priority\", new Integer(tTask.getPriority()));\r\n MarkerUtilities.setLineNumber(tAttrs, tTask.getLine());\r\n MarkerUtilities.setMessage(tAttrs, tTask.getMessage());\r\n MarkerUtilities.setCharStart(tAttrs, tTask.getCharStart());\r\n MarkerUtilities.setCharEnd(tAttrs, tTask.getCharEnd());\r\n MarkerUtilities.createMarker(resource, tAttrs, LPEXTask.ID);\r\n }\r\n }\r\n }", "public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public void addText(IText text) {\n var name = \"Text\"; // TODO should texts have a name? E.g. the filename etc.?\n var textIndividual = ontologyConnector.addIndividualToClass(name, textClass);\n var uuid = ontologyConnector.getLocalName(textIndividual);\n ontologyConnector.addPropertyToIndividual(textIndividual, uuidProperty, uuid);\n\n ImmutableList<IWord> words = text.getWords();\n\n // first add all word individuals\n var wordIndividuals = new ArrayList<Individual>();\n var wordsToIndividuals = new HashMap<IWord, Individual>();\n for (var word : words) {\n var wordIndividual = addWord(word);\n wordIndividuals.add(wordIndividual);\n wordsToIndividuals.put(word, wordIndividual);\n }\n\n // add dependencies to words.\n // We only add outgoing dependencies as ingoing are the same (but viewed from another perspective)\n for (var word : words) {\n var wordIndividual = wordsToIndividuals.get(word);\n for (var dependencyType : DependencyTag.values()) {\n var outDependencies = word.getWordsThatAreDependencyOfThis(dependencyType);\n for (var outDep : outDependencies) {\n var outWordIndividual = wordsToIndividuals.get(outDep);\n addDependencyBetweenWords(wordIndividual, dependencyType, outWordIndividual);\n }\n }\n }\n\n // create the list that is used for the words property\n var olo = ontologyConnector.addList(\"WordsOf\" + name, wordIndividuals);\n var listIndividual = olo.getListIndividual();\n ontologyConnector.addPropertyToIndividual(textIndividual, wordsProperty, listIndividual);\n\n // add coref stuff\n var corefClusters = text.getCorefClusters();\n for (var corefCluster : corefClusters) {\n var representativeMention = corefCluster.getRepresentativeMention();\n var corefClusterIndividual = ontologyConnector.addIndividualToClass(representativeMention, corefClusterClass);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, uuidProperty, \"\" + corefCluster.getId());\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, representativeMentionProperty, representativeMention);\n ontologyConnector.addPropertyToIndividual(textIndividual, hasCorefClusterProperty, corefClusterIndividual);\n\n var counter = 0;\n for (var mention : corefCluster.getMentions()) {\n var id = corefCluster.getId() + \"_\" + counter;\n counter += 1;\n var label = ICorefCluster.getTextForMention(mention);\n\n var mentionIndividual = ontologyConnector.addIndividualToClass(label, corefMentionClass);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, uuidProperty, id);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, mentionProperty, mentionIndividual);\n\n var mentionWordsIndividuals = getMentionWordIndividuals(mention, wordsToIndividuals);\n var mentionOlo = ontologyConnector.addList(\"WordsOf Mention \" + id, mentionWordsIndividuals);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, wordsProperty, mentionOlo.getListIndividual());\n }\n }\n\n }", "protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public List<E> createAll(AnnotatedElement element) {\n List<E> result = new ArrayList<>();\n for (Annotation annotation : element.getAnnotations()) {\n create(annotation).ifPresent(result::add);\n }\n return result;\n }", "public ArrayList<Trial> createTrials(){\n Profile profile1 = new Profile(\"id1\");\n Profile profile2 = new Profile(\"id2\");\n Profile profile3 = new Profile(\"id3\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=0; i<15; i++){\n if (i<4){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile1));\n } else if (i<10){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile2));\n } else {\n trials.add(new TrialCount(\"\"+i, uni_loc, profile3));\n }\n }\n\n return trials;\n }", "private void applyMetadataTemplateProjectES_BU_TF() {\n\t\tArrayList<ArtifactType> artifactTypes = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> dependencyTypes = new ArrayList<DependencyType>();\n\t\tArrayList<TaskType> taskTypes = new ArrayList<TaskType>();\n\t\tArrayList<RuleType> ruleTypes = new ArrayList<RuleType>();\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArtifactType> u = new ArrayList<ArtifactType>();\n\t\tArrayList<ArtifactType> p = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> d = new ArrayList<DependencyType>();\n\t\tString description = \"\";\n\t\t\n\t\tArtifactType ATstart = new ArtifactType(\"Start\",\".start\");\n\t\tArtifactType ATstory = new ArtifactType(\"Story\",\".txt\");\n\t\tArtifactType ATstoryTest = new ArtifactType(\"StoryTest\",\".java\");\n\t\tArtifactType ATinterface = new ArtifactType(\"Interface\",\".java\");\n\t\tArtifactType ATdomainClass = new ArtifactType(\"DomainClass\",\".java\");\n\t\tArtifactType ATdomainTest = new ArtifactType(\"DomainTest\",\".java\");\n\t\tartifactTypes.add(ATstart);\n\t\tartifactTypes.add(ATstory);\n\t\tartifactTypes.add(ATstoryTest);\n\t\tartifactTypes.add(ATinterface);\t\t\n\t\tartifactTypes.add(ATdomainClass);\n\t\tartifactTypes.add(ATdomainTest);\n\n\t\tu.add(ATstart);\n\t\tp.add(ATstory);\n\t\tDependencyType DTstory = new DependencyType(ATstart,ATstory,\"DTstory\");\n\t\td.add(DTstory);\n\t\tdependencyTypes.add(DTstory);\n\t\tdescription = \"Create a story for the project\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATstory);\n\t\tp.add(ATdomainTest);\n\t\tDependencyType DTdomainTest = new DependencyType(ATstory,ATdomainTest,\"DTdomainTest\");\n\t\td.add(DTdomainTest);\n\t\tDTdomainTest.setMultiplicity(0);\n\t\tdependencyTypes.add(DTdomainTest);\n\t\tdescription = \"Create a domain test for the story\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATdomainClass);\n\t\tDependencyType DTdomainClass = new DependencyType(ATdomainTest,ATdomainClass,\"DTdomainClass\");\n\t\td.add(DTdomainClass);\n\t\tdependencyTypes.add(DTdomainClass);\n\t\tdescription = \"Create a domain class for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATinterface);\n\t \tDependencyType DTinterface = new DependencyType(ATdomainTest,ATinterface,\"DTinterface\");\n\t\td.add(DTinterface);\n\t\tdependencyTypes.add(DTinterface);\n\t\tdescription = \"Create a interface for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATinterface);\n\t p.add(ATstoryTest);\n\t\tDependencyType DTstoryTest = new DependencyType(ATinterface,ATstoryTest,\"DTstoryTest\");\n\t\td.add(DTstoryTest);\n\t\tdependencyTypes.add(DTstoryTest);\n\t\tdescription = \"Create a story test for the interface\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tstatus.setArtifactTypes(artifactTypes);\n\t\tstatus.setDependencyTypes(dependencyTypes);\n\t\tstatus.setTaskTypes(taskTypes);\t\n\t\tstatus.setRuleTypes(ruleTypes);\n\t\tstatus.setRules(rules);\n\t}", "protected void createInputAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/input\";\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getPrint_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t}", "public static void main(String[] args) throws Exception {\n\t\t\n\n BufferedReader reader = new BufferedReader(new FileReader(\"src/main/resources/example/ontologytemp.owl\"));\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"src/main/resources/example/test.owl\"));\n\t\t\n\t\t\n\t\t/*File owl = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology5.owl\");\n File obda = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology-conf.obda\");\n\t\tString baseUri = \"http://www.semanticweb.org/user/ontologies/\";\n\t\tString jdbcUrl = \"jdbc:mysql://localhost/conference10\";\n\t\tString jdbcUserName = \"root\";\n\t\tString jdbcPassword = \"root\";\n\t\tString jdbcDriverClass = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\tDirectMappingBootstrapper dm = new DirectMappingBootstrapper(baseUri, jdbcUrl, jdbcUserName, jdbcPassword, jdbcDriverClass);\n\t\tOBDAModel model = dm.getModel();\n\t\tOWLOntology onto = dm.getOntology();\n\t\tModelIOManager mng = new ModelIOManager(model);\n\t\tmng.save(obda);\n onto.getOWLOntologyManager().saveOntology(onto,\n new FileDocumentTarget(owl));*/\n\t\t\n\t\t\n\t\t/*\n\t\tXFactoryBufferedImpl factory = new XFactoryBufferedImpl();\t\n\t\t\n\t\tXAttribute attr = factory.createAttributeLiteral(\"concept:name\", \"tracevalue\", null); // create attribute for trace\n\t\tXAttributeMap attrMapTrace = new XAttributeMapImpl(); // create a new map attribute\n\t\tattrMapTrace.put(\"concept:name\", attr);\t// put attribute to the map attribute\n\t\tXTrace xtrace = factory.createTrace(attrMapTrace); // create xtrace\n\t\t\n\t\tXAttributeMap attrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent = factory.createEvent(attrMap); // create xevent\n\t\txtrace.insertOrdered(xevent); // insert event in correct order in a trace\n\t\t\n\t\tattrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent2 = factory.createEvent(attrMap); // create xevent\n\t\t\n\t\tSystem.out.println(xtrace.contains(xevent2));\n\t\t*/\n\t}", "public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void initOntology() {\n\n\tontology = ModelFactory.createDefaultModel();\n\t\t\t\n\ttry \n\t{\n\t\t//ontology.read(new FileInputStream(\"ontology.ttl\"),null,\"TTL\");\n\t\tontology.read(new FileInputStream(\"Aminer-data.ttl\"),null,\"TTL\");\n\t\t//ontology.read(new FileInputStream(\"SO data.ttl\"),null,\"TTL\");\n\t} \n\tcatch (FileNotFoundException e) \n\t{\n\t\tSystem.out.println(\"Error creating ontology model\" +e.getMessage());\n\t\te.printStackTrace();\n\t}\n\t\t\t\n\t\t\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void ProcessTriples(Model model, String graphName){\n for (final StmtIterator stmts = model.listStatements(); stmts.hasNext(); ) {\n Statement stmt = stmts.next();\n\n ObjectNode json_triple = mapper.createObjectNode();\n json_triple.set(ArangoAttributes.SUBJECT, ProcessResource(stmt.getSubject()));\n json_triple.set(ArangoAttributes.PREDICATE, ProcessUri(stmt.getPredicate()));\n json_triple.set(ArangoAttributes.OBJECT, ProcessObject(stmt.getObject()));\n\n if(!StringUtils.isBlank(graphName))\n json_triple.set(ArangoAttributes.GRAPH_NAME, ProcessUri(graphName));\n\n jsonObjects.add(json_triple);\n }\n }", "private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification insertNewClassification(int i);", "private Collection<ConceptLabel> createConceptLabels(Concept concept, int offset) {\n\t\t//int offset = concept.getOffset();\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\t\t// add annotation the new way\n\t\tfor(Annotation a: concept.getAnnotations()){\n\t\t\tConceptLabel lbl = new ConceptLabel(a.getText(), offset + a.getOffset());\n\t\t\tlbl.setConcept(concept);\n\t\t\tlbl.setReportPanel(reportInterface);\n\t\t\tlbl.setColor(Color.black);\n\t\t\tlabels.add(lbl);\n\t\t}\n\t\t\n\t\t\n\t\treturn labels;\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public List<HashMap<Integer,AttributeInfo>> generateTrainingSetDataseAttributes(Dataset dataset, Properties properties) throws Exception {\n List<HashMap<Integer,AttributeInfo>> candidateAttributesList = new ArrayList<>();\n String[] classifiers = properties.getProperty(\"classifiersForMLAttributesGeneration\").split(\",\");\n\n //obtaining the attributes for the dataset itself is straightforward\n DatasetBasedAttributes dba = new DatasetBasedAttributes();\n for (String classifier : classifiers) {\n\n //For each dataset and classifier combination, we need to get the results on the \"original\" dataset so we can later compare\n Evaluation evaluationResults = runClassifier(classifier, dataset.generateSet(true), dataset.generateSet(false), properties);\n double originalAuc = CalculateAUC(evaluationResults, dataset);\n\n //Generate the dataset attributes\n HashMap<Integer, AttributeInfo> datasetAttributes = dba.getDatasetBasedFeatures(dataset, classifier, properties);\n\n //Add the identifier of the classifier that was used\n\n AttributeInfo classifierAttribute = new AttributeInfo(\"Classifier\", Column.columnType.Discrete, getClassifierIndex(classifier), 3);\n datasetAttributes.put(datasetAttributes.size(), classifierAttribute);\n\n\n //now we need to generate the candidate attributes and evaluate them. This requires a few preliminary steps:\n // 1) Replicate the dataset and create the discretized features and add them to the dataset\n OperatorsAssignmentsManager oam = new OperatorsAssignmentsManager(properties);\n List<Operator> unaryOperators = oam.getUnaryOperatorsList();\n //The unary operators need to be evaluated like all other operator assignments (i.e. attribtues generation)\n List<OperatorAssignment> unaryOperatorAssignments = oam.getOperatorAssignments(dataset, null, unaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n Dataset replicatedDataset = generateDatasetReplicaWithDiscretizedAttributes(dataset, unaryOperatorAssignments, oam);\n\n // 2) Obtain all other operator assignments (non-unary). IMPORTANT: this is applied on the REPLICATED dataset so we can take advantage of the discretized features\n List<Operator> nonUnaryOperators = oam.getNonUnaryOperatorsList();\n List<OperatorAssignment> nonUnaryOperatorAssignments = oam.getOperatorAssignments(replicatedDataset, null, nonUnaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n\n // 3) Generate the candidate attribute and generate its attributes\n nonUnaryOperatorAssignments.addAll(unaryOperatorAssignments);\n\n //oaList.parallelStream().forEach(oa -> {\n int counter = 0;\n //for (OperatorAssignment oa : nonUnaryOperatorAssignments) {\n ReentrantLock wrapperResultsLock = new ReentrantLock();\n nonUnaryOperatorAssignments.parallelStream().forEach(oa -> {\n try {\n OperatorsAssignmentsManager oam1 = new OperatorsAssignmentsManager(properties);\n Dataset datasetReplica = dataset.replicateDataset();\n ColumnInfo candidateAttribute = null;\n try {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n catch (Exception ex) {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n\n\n OperatorAssignmentBasedAttributes oaba = new OperatorAssignmentBasedAttributes();\n HashMap<Integer, AttributeInfo> candidateAttributes = oaba.getOperatorAssignmentBasedAttributes(dataset, oa, candidateAttribute, properties);\n\n datasetReplica.addColumn(candidateAttribute);\n Evaluation evaluationResults1 = runClassifier(classifier, datasetReplica.generateSet(true), datasetReplica.generateSet(false), properties);\n\n double auc = CalculateAUC(evaluationResults1, datasetReplica);\n double deltaAuc = auc - originalAuc;\n AttributeInfo classAttrubute;\n if (deltaAuc > 0.01) {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 1,2);\n System.out.println(\"found positive match\");\n } else {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 0,2);\n }\n\n //finally, we need to add the dataset attribtues and the class attribute\n for (AttributeInfo datasetAttInfo : datasetAttributes.values()) {\n candidateAttributes.put(candidateAttributes.size(), datasetAttInfo);\n }\n\n candidateAttributes.put(candidateAttributes.size(), classAttrubute);\n wrapperResultsLock.lock();\n candidateAttributesList.add(candidateAttributes);\n wrapperResultsLock.unlock();\n }\n catch (Exception ex) {\n System.out.println(\"Error in ML features generation : \" + oa.getName() + \" : \" + ex.getMessage());\n }\n });\n }\n\n return candidateAttributesList;\n }", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "public abstract Annotations getClassAnnotations();", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "public static void main(String abc[]) throws Exception{\n\tScanner scan=new Scanner(System.in); //for taking the input from user\n\t//Asking the user for the description\n\tSystem.out.println(\"Please mention the description of the ontology\");\n\tString s1_des;\n\ts1_des=scan.nextLine();\n\t//Asking the user for the competency questions\n\tSystem.out.println(\"Please mention the Competency Questions related to the Ontology\");\n\tString s2_cq;\n\ts2_cq=scan.nextLine();\t\n\t//This java file has code for OWL file and classifying different properties\n\tOwl_Lexical owl_ontology=new Owl_Lexical();\n\towl_ontology.owlOntology();\n\t//Saving the description of the ontology in a file\n\tBufferedWriter writer_des=new BufferedWriter(new FileWriter(\"ontology_description\"));\n\twriter_des.write(s1_des);\n\twriter_des.close();\n\t//Saving the competency questions of the ontology in a file\n\tBufferedWriter writer_cq=new BufferedWriter(new FileWriter(\"ontology_cq\"));\n\twriter_cq.write(s2_cq);\n\twriter_cq.close();\n\t//Stop words from competency questions are removed\n\tStopWords_CqOntology stop_cq=new StopWords_CqOntology();\n\tstop_cq.stopWordsCQOntology();\n\t//Stop Words from the description are removed\n\tStopWords_Ontology stop_des=new StopWords_Ontology();\n\tstop_des.stopWordsDesOntology();\t\n\t\n/*--------------------------------EXECUTION PART------------------------------------------------\n <-------------------------------STRUCTURAL ANALYSIS---------------------------------------------->\t\n Properties obtained from the OWL file are analysed. Doc2Vec is used and cosine similarity \n gives the numeric score of the ontology against each ODP.The below functions call the respective\n class that holds the code for each Structural Property that we have taken under consideration \n for the analysis. */\n\t// 1. CHAIN OF PROPERTY\n\tParagraphVectorsChainOfProperty cp=new ParagraphVectorsChainOfProperty();\n\tcp.chainOf();\n\t// 2. DATA DOMAIN Property\n\tParagraphVectorsDataPropertyDomain pd=new ParagraphVectorsDataPropertyDomain();\n\tpd.dataPropertyDomain();\n\t// 3. DATA RANGE PROPERTY\n\tParagraphVectorsDataPropertyRange pr=new ParagraphVectorsDataPropertyRange();\n\tpr.dataPropertyRange();\n\t// 4. DISJOINT CLASSES\n\tParagraphVectorsDisjointClasses dc=new ParagraphVectorsDisjointClasses();\n\tdc.disjointClasses();\n\t// 5. OBJECT DOMAIN PROPERTY\n\tParagraphVectorsObjectDomainProperty od=new ParagraphVectorsObjectDomainProperty();\n\tod.objectDomainProperty();\n\t// 6. OBJECT RANGE PROPERTY\n\tParagraphVectorsObjectPropertyRange op=new ParagraphVectorsObjectPropertyRange();\n\top.objectRangeProperty();\n\t// 7. SUB-CLASS PROPERTY\n\tParagraphVectorsSubClassProperty sc=new ParagraphVectorsSubClassProperty();\n\tsc.subClassProperty();\n\t// 8. SUB-DATA PROPERTY\n\tParagraphVectorsSubDataProperty sd=new ParagraphVectorsSubDataProperty();\n\tsd.subDataProperty();\n\t// 9. SUB-OBJECT PROPERTY\n\tParagraphVectorsSubObjectProperty so=new ParagraphVectorsSubObjectProperty();\n\tso.subObjectProperty();\n\t\n/*<-----------------------------------BEHAVIOURAL ANALYSIS-------------------------------------------->\n The Competency Question of the ontology are saved and mappped with the competency questions \n of the ODPs in the list. The ODPs obtained manchester site do not have competency questions, but \n the rest all ontologies have.So, approximately 15 among the 73 ODPs present are without CQs\t\n\t*/\n\tParagraphVectors_CQ cq=new ParagraphVectors_CQ();\n\tcq.cqMapping();\n/*<------------------------------------LEXICAL ANALYSIS------------------------------------------------>\n Lexical Analysis involves the analysis by use of the description and by the names of classes\n properties present in the OWL file. The description along with the description(classes and properties) \n of the OWL file of the ontology are compared against the ODPs. All the ODPs present have description\n *along with the classes and properties.\n */\n // 1. DESCRIPTION\n\tParagraphVectorsTextExample te=new ParagraphVectorsTextExample();\n\tte.description();\n\t// 2. SIGNATURE\n\tParagraphVectors_Signature vs=new ParagraphVectors_Signature();\n\tvs.signature();\n/*<--------------------------------------INTEGRATION OF SCORES----------------------------------------->\n * After obtaning the numeric values of lexical, structural and behavioural parts, the cosine \n * similarity scores are combined together of the ontology and the ODPs and placed in a single\n * file.\n */\n\tIntegration_Of_Scores os=new Integration_Of_Scores();\n\tos.integratingScores();\n/*<----------------------------------------NORMALISING SCORES------------------------------------------->\n * After all the scores of an ODP (against the given ontology) are added up, the scores are normalised\n * so that these range between 0 to 1 and we can set a particular threshold for the ODP recommendations\n */\n\tNormalising_Scores ns=new Normalising_Scores();\n\tns.normalisingScores();\n/*<------------------------------------------ODP RECOMMENDER-------------------------------------------->\n * \tAfter we have normalised the scores against the ODPs, we run the this java program from where the\n * recommendations can be suggested. \n */\n ODPRecommender reco=new ODPRecommender();\n reco.odpRecommender();\n\t\n}", "private void addEntityViews(TextAnnotation ta, ACEDocumentAnnotation docAnnotation, File file) {\n SpanLabelView entityView =\n new SpanLabelView(ViewNames.MENTION_ACE,\n ACEReader.class.getCanonicalName(), ta, 1.0f, true);\n CoreferenceView corefHeadView =\n new CoreferenceView(ViewNames.COREF_HEAD, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n CoreferenceView corefExtentView =\n new CoreferenceView(ViewNames.COREF_EXTENT, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n\n for (ACEEntity entity : docAnnotation.entityList) {\n List<Constituent> corefMentions = new ArrayList<>(docAnnotation.entityList.size());\n List<Constituent> corefMentionHeads = new ArrayList<>(docAnnotation.entityList.size());\n\n for (ACEEntityMention entityMention : entity.entityMentionList) {\n int extentStartTokenId =\n ta.getTokenIdFromCharacterOffset(entityMention.extentStart);\n int extentEndTokenId = ta.getTokenIdFromCharacterOffset(entityMention.extentEnd);\n\n if (extentStartTokenId < 0 || extentEndTokenId < 0\n || extentStartTokenId > extentEndTokenId + 1) {\n logger.error(\"Incorrect Extent Token Span for mention - \" + entity.id + \" \"\n + entityMention.id);\n continue;\n }\n\n Constituent extentConstituent =\n new Constituent(entity.type, ViewNames.MENTION_ACE, ta, extentStartTokenId, extentEndTokenId + 1);\n extentConstituent.addAttribute(EntityTypeAttribute, entity.type);\n extentConstituent.addAttribute(EntityIDAttribute, entity.id);\n extentConstituent.addAttribute(EntityMentionIDAttribute, entityMention.id);\n extentConstituent.addAttribute(EntityMentionTypeAttribute, entityMention.type);\n extentConstituent.addAttribute(EntityClassAttribute, entity.classEntity);\n\n String entitySubType = (entity.subtype != null) ? entity.subtype : entity.type;\n extentConstituent.addAttribute(EntitySubtypeAttribute, entitySubType);\n\n if (entityMention.ldcType != null) {\n extentConstituent.addAttribute(EntityMentionLDCTypeAttribute, entityMention.ldcType);\n }\n\n // ACE Annotation have character offsets inclusive of start/end.\n // Converting them to a one-after-then-end.\n extentConstituent.addAttribute(EntityHeadStartCharOffset, entityMention.headStart + \"\");\n extentConstituent.addAttribute(EntityHeadEndCharOffset, entityMention.headEnd + 1 + \"\");\n\n entityView.addConstituent(extentConstituent);\n\n Constituent corefExtentConstituent =\n extentConstituent.cloneForNewViewWithDestinationLabel(\n ViewNames.COREF_EXTENT, entity.id);\n corefMentions.add(corefExtentConstituent);\n\n Constituent corefHeadConstituent =\n getEntityHeadForConstituent(corefExtentConstituent, ta,\n ViewNames.COREF_HEAD);\n if (corefHeadConstituent != null) {\n corefMentionHeads.add(corefHeadConstituent);\n }\n }\n\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n Constituent canonicalMention = null;\n double[] scores = new double[corefMentions.size()];\n for (int i = 0; i < corefMentions.size(); i++) {\n Constituent cons = corefMentions.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentions.size() > 0) {\n corefExtentView.addCorefEdges(canonicalMention, corefMentions, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n\n // Processing Coref Head Constituents\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n canonicalMention = null;\n scores = new double[corefMentionHeads.size()];\n for (int i = 0; i < corefMentionHeads.size(); i++) {\n Constituent cons = corefMentionHeads.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentionHeads.size() > 0) {\n corefHeadView.addCorefEdges(canonicalMention, corefMentionHeads, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n }\n\n ta.addView(ViewNames.MENTION_ACE, entityView);\n ta.addView(ViewNames.COREF_HEAD, corefHeadView);\n ta.addView(ViewNames.COREF_EXTENT, corefExtentView);\n }", "public static Model Analize(ArrayList<String> arraylist) throws IOException\n\t{\n\t\tModel model = ModelFactory.createOntologyModel();\n\t\tmodel.read(\"C:\\\\Users\\\\Hamza\\\\workspace\\\\Crime\\\\crime.owl\");\n\t\tResource predicate;\n\t\tProperty pred = null;\n\t\tint flag=0;\n\t\t\tword=(String) arraylist.get(1);\n\t\t\tpredicate=model.getResource(defaultNameSpace+word);\n\t\t\t\n\t\t\tif(model.contains(predicate, RDF.type,OWL.ObjectProperty))\n\t\t\t{\n\t\t\t pred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse if(model.contains(predicate, RDF.type,OWL.DatatypeProperty))\n\t\t\t{\n\t\t\t\tpred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\tif(flag==1)\n\t\t\t{\n\t\t\t\tword=(String) arraylist.get(0);\n\t\t\t\tResource subject = model.createResource(defaultNameSpace+word);\n\t\t\t\tword=(String) arraylist.get(2);\n\t\t\t\tResource object = model.createResource(defaultNameSpace+word);\n\t\t\t\tResource class1=model.getResource(defaultNameSpace+\"Match\");\n\t\t\t\tmodel.add(subject,RDF.type,class1);\n\t\t\t\tmodel.add(object,RDF.type,class1);\n\t\t\t\tmodel.add(subject,pred,object);\n\t\t\t\t\n\t\t\t}\n\t\t\treturn model;\n\t\t}", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "private void _generateRaTa() {\n\t if(instances_[CS_C_TA].total == 0) return;\n ArrayList list, courseList;\n TaInfo ta;\n RaInfo ra;\n ArrayList tas, ras;\n int i;\n\n tas = new ArrayList();\n ras = new ArrayList();\n list = _getRandomList(instances_[CS_C_TA].total + instances_[CS_C_RA].total,\n 0, instances_[CS_C_GRADSTUD].total - 1);\n System.out.println(\"underCourses \" + (underCourses_.size() - 1));\n System.out.println(\"instances ta \" + instances_[CS_C_TA].total);\n courseList = _getRandomList(instances_[CS_C_TA].total, 0,\n underCourses_.size() - 1);\n\n for (i = 0; i < courseList.size(); i++) {\n ta = new TaInfo();\n ta.indexInGradStud = ( (Integer) list.get(i)).intValue();\n ta.indexInCourse = ( (CourseInfo) underCourses_.get( ( (Integer)\n courseList.get(i)).intValue())).globalIndex;\n _generateATa(ta);\n }\n while (i < list.size()) {\n ra = new RaInfo();\n ra.indexInGradStud = ( (Integer) list.get(i)).intValue();\n _generateAnRa(ra);\n i++;\n }\n }", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "@Test\n public void testGenerateWikiAnnotations() throws Exception {\n final Node n = new Node();\n n.setId(\"u9dc7\");\n\n final User u = new User();\n u.setId(\"9m8ky\");\n u.setFamily_name(\"Metsger\");\n u.setGiven_name(\"Elliot\");\n u.setFull_name(\"Elliot Metsger\");\n\n final Wiki w = new Wiki();\n w.setId(\"hgkfe\");\n w.setUser(u);\n w.setDate_modified(\"2016-09-15T14:19:14.417000\");\n w.setContent_type(\"text/markdown\");\n w.setNode(n.getId());\n w.setKind(\"file\");\n w.setPath(\"/hgkfe\");\n w.setMaterialized_path(\"/hgkfe\");\n w.setSize(224);\n w.setName(\"home\");\n final HashMap<String, String> links = new HashMap<>();\n links.put(\"download\", \"https://test-api.osf.io/v2/wikis/hgkfe/content/\");\n links.put(\"info\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n links.put(\"self\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n w.setLinks(links);\n final HashMap<String, String> extra = new HashMap<>();\n extra.put(\"version\", \"3\");\n w.setExtra(extra);\n\n final Registration r = new Registration();\n r.setId(\"registration\");\n r.setWikis(Collections.singletonList(w));\n\n final ManagedGraph managedGraph = new ManagedGraph(ontologyManager);\n final AnnotationsProcessor ap = new AnnotationsProcessor(managedGraph);\n\n // Process the OWL annotations on the Registration, its super classes, and its fields\n final Map<String, Individual> createdIndividuals = ap.process(r);\n\n // Write the individuals to stderr for debugging\n// writeModel(onlyIndividuals(ontologyManager.getOntModel()));\n }", "public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "DataMap getCustomAnnotations();", "protected void createHeadingsAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed/headings\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Elements\", \"\",\n\t\t\t \"Literals\", \"\",\n\t\t\t \"Vocabularies\", \"\",\n\t\t\t \"Types\", \"\",\n\t\t\t \"Properties\", \"\",\n\t\t\t \"Relations\", \"\",\n\t\t\t \"Predicates\", \"\",\n\t\t\t \"Axioms\", \"\",\n\t\t\t \"Descriptions\", \"\",\n\t\t\t \"Instances\", \"\",\n\t\t\t \"Assertions\", \"\",\n\t\t\t \"Enumerations\", \"\"\n\t\t });\n\t}", "public ArrayList<Triple> createDigitalRightsAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createDigitalRightsAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\r\n\t\ttry{\t\t\t\t\t\r\n\t\t\ttripleList.addAll(addAdministrativeAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addCopyRightHolderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addPublisherAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addContributorAnnotationTriples(subject, digitalRightsManagementBean));\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "protected void createBikeshedAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Abstract-Syntax\"\n\t\t });\n\t\taddAnnotation\n\t\t (elementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (identifiedElementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (importEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (axiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (assertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (predicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (argumentEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (ontologyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (memberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (statementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (termEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (ruleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializableTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationBaseEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializablePropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (entityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (aspectEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (semanticPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (structuredPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (forwardRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (reverseRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (unreifiedRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (namedInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (keyAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRangeRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyCardinalityRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertySelfRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (unaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (binaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (typePredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (sameAsPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (differentFromPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (quotedLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (integerLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (doubleLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (booleanLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (separatorKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (rangeRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (cardinalityRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (importKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t}", "public ArrayList getClassList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n String adj = \"\";\n String storingClass = \"\";\n HashSet classWithAttr = new HashSet();\n storingClassWithAttr = new HashMap<String, HashSet>();\n\n List<Tree> leaves;\n String phraseNotation = \"(NP([<NNS|NN|NNP]$VP))\";//@\" + phrase + \"! << @\" + phrase;\n\n /*For the single Tree */\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n String tempClass = \"\";\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n adjectiveExist = 0;\n adjectiveNoun = 0;\n int separator = 0;\n\n if (innerChild.length > 1) {\n int count = 1;\n int loopCount = 1;\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).yieldWords().get(0).word();\n if (dictionaryForClassList.contains(adj)) {\n adj = \"\";\n }\n }\n //if adjective exist store the classes and attributes separately\n if (adjectiveExist == 1) {\n storeClassesAndAttributesWhenAdjectiveExistToIdentifyClasses(inChild, adjectiveNoun, adj);\n } else {\n //storeClassesAndAttributesWhenAdjectiveNotExistToIdentifyClasses(inChild, loopCount, innerChild, separator, tempClass, count);\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\") || (inChild.value().equals(\"NNP\")))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (separator == 0) {\n if (loopCount == innerChild.length) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n String word = \"\";\n word = stemmingForAWord(identifiedWord);\n if (!dictionaryForClassList.contains(word)) {\n nounList.remove(tempClass);\n nounList.add(word);\n attributeLists.add(tempClass);\n \n }\n\n } else if (count == 1) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n\n } else {\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n if (tempClass.contains(\"_\")) {\n nounList.remove(tempClass);\n } else {\n nounList.remove(morphology.stem(tempClass));\n nounList.remove(tempClass);\n }\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n\n tempClass += \" \" + identifiedWord;\n nounList.add(tempClass);\n storingClass = tempClass;\n }\n\n count++;\n } else {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n }\n }\n\n }\n loopCount++;\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n nounList.add(morphology.stem(identifiedWord));\n } else {\n nounList.add(identifiedWord);\n }\n }\n if (inChild.value().equals(\"JJ\")) {\n //leaves correspond to the tokens\n leaves = inChild.getLeaves();\n nounList.add(((leaves.get(0).yieldWords()).get(0).word()));\n }\n }\n }\n }\n System.out.println(\"NOUN LIST :\" + nounList);\n return nounList;\n }", "static private void addRelations( final JCas jCas,\n final FhirPractitioner practitioner,\n final FhirNoteSpecs noteSpecs,\n final FhirResourceCreator<Annotation, Basic> aCreator,\n final Map<IdentifiedAnnotation, Basic> annotationBasics,\n final Map<Annotation, Basic> simpleBasics ) {\n final Collection<BinaryTextRelation> relations = JCasUtil.select( jCas, BinaryTextRelation.class );\n for ( BinaryTextRelation relation : relations ) {\n final RelationArgument arg1 = relation.getArg1();\n final Annotation source = arg1.getArgument();\n Basic basicSource;\n if ( source instanceof IdentifiedAnnotation ) {\n basicSource = annotationBasics.get( (IdentifiedAnnotation)source );\n } else {\n basicSource = getSimpleBasic( jCas, source, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final RelationArgument arg2 = relation.getArg2();\n final Annotation target = arg2.getArgument();\n Basic basicTarget;\n if ( target instanceof IdentifiedAnnotation ) {\n basicTarget = annotationBasics.get( (IdentifiedAnnotation)target );\n } else {\n basicTarget = getSimpleBasic( jCas, target, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final String type = relation.getCategory();\n basicSource.addExtension( FhirElementFactory.createRelation( type, basicTarget ) );\n }\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void createClusters() {\n\t\t/*\n\t\t * double simAvg = documentDao.getSimilarity(avg); double simMax =\n\t\t * documentDao.getSimilarity(max); double simMin =\n\t\t * documentDao.getSimilarity(min);\n\t\t */\n\n\t\t// initClusters();\n\n\t\tList<Document> docList = documentDao.getDocumentListOrderBySimilarity();\n\t\tList<Cluster> clusterList = clusterDao.getClusterList();\n\n\t\tint i = 0;\n\t\tCluster cluster = clusterList.get(i);\n\t\tfor (Document document : docList) {\n\t\t\twhile (document.getSimilarity() < cluster.getLow()) {\n\t\t\t\tcluster = clusterList.get(++i);\n\t\t\t}\n\t\t\tif (document.getSimilarity() < cluster.getHigh() && document.getSimilarity() >= cluster.getLow()) {\n\t\t\t\tdocument.setClusterId(cluster.getId());\n\t\t\t\tdocumentDao.insertDocument(document);\n\t\t\t}\n\t\t}\n\n\t}", "private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annotation completed ....\");\n MyWriter.write(corpus, outCorpusFile);\n Out.prln(\"*** ENTITY ANNOTATION COMPLETED *** \");\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "void addTestTermsAndCourses() {\n // Creates Terms\n addTerm(\"Term 1\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 2\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 3\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 4\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 5\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 6\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 7\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 8\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 9\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 10\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 11\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 12\", \"5/19/2019\", \"6/23/2019\");\n int term1Id = getTermIdFromIndex(0);\n int term2Id = getTermIdFromIndex(1);\n// int term3Id = getTermIdFromIndex(2);\n\n // Creates Courses\n addCourse(\"course 1\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 2\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 3\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n addCourse(\"course 4\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 5\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 6\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n int course1Id = getCourseIdFromIndex(0);\n int course2Id = getCourseIdFromIndex(1);\n\n // Creates Assignments\n addAssignment(\"Assignment 1\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 2\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 3\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 4\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 5\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 6\", \"this shit is whack\", \"5/29/2019\", null);\n addAssignment(\"Assignment 7\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 8\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 9\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 10\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 11\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 12\", \"this shit is whack\", \"5/29/2019\", null);\n }", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "private static void initObjectProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n objectProperties.addAll(ontologie.listObjectProperties().toList());\n }", "protected void createGenModel_1Annotations() {\n\t\tString source = \"http://www.eclipse.org/uml2/1.1.0/GenModel\";\n\t\taddAnnotation\n\t\t (internalFailureOccurrenceDescriptionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.softwareInducedFailureType__InternalFailureOccurrenceDescription.oclIsTypeOf(ResourceTimeoutFailureType)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"self.primaryBehaviour__RecoveryAction <> null\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.recoveryAction__RecoveryActionBehaviour.recoveryActionBehaviours__RecoveryAction->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y\\r\\n\\t\\tand x.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\\r\\n\\t\\tand y.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self))\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(1),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(2),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y and\\r\\n\\tx.failureTypes_FailureHandlingEntity->\\r\\n\\t\\texists(f:mpcm::reliability::FailureType |\\r\\n\\t\\ty.failureTypes_FailureHandlingEntity->includes(f)))\"\n\t\t });\n\t}", "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "private void GeneratePutativeOntology(String sOntologyName,\n\t\t\tString sOutputFile, RDB2OntMatcher mat) {\n\t\t\t\n\t\tString basePrefix = baseUri + sOntologyName + \".owl#\";\t\n \t\n\t\tSystem.out.println(\"1: Creating putative ontology: \"+basePrefix);\n\n\t\tontPutative = new OntologyTools();\n\t\tontPutative.createOntology(basePrefix, basePrefix);\n\n\t\tDatabaseStructure db = mat.getDatabaseStructure();\n\t\t\n\t\tfor(TableStructure table : db.getTables())\n\t\t{\n\t\t\tClassMatch match = new ClassMatch(table.getNormalizedName(), table.name, table.getOnePrimaryKey());\n\t\t\t\t\t\n\t\t\tontPutative.addClass(table.getNormalizedName(), table.name);\n\n\t\t\tfor(ColumnStructure column : table.getColumns())\n\t\t\t{\n\t\t\t\t// Each column is a datatype\n\t\t\t\tontPutative.addDatatype(\t\n\t\t\t\t\t\t\t\ttable.getNormalizedName(), \n\t\t\t\t\t\t\t\tcolumn.getNormalizedName(), \n\t\t\t\t\t\t\t\tcolumn.type);\n\t\t\t\t\n\t\t\t\tmatch.addDataPropertyMatch(new DataPropertyMatch(column.getNormalizedName(), table.name, column.name, column.type));\n\n\t\t\t\t// Each foreign key is an object property\n\t\t\t\tif(column.isForeignkey) {\n\t\t\t\t\tontPutative.addObjectproperty(\t\n\t\t\t\t\t\t\t\t\"has\"+column.getNormalizedName(), \n\t\t\t\t\t\t\t\ttable.getNormalizedName(),\n\t\t\t\t\t\t\t\tcolumn.getNormalizedForeigntable());\n\t\t\t\t\t\n\t\t\t\t\t// Checking if the columns of the foreign table are a subset of the columns of the table\n\t\t\t\t\tif(db.CheckAttributeSubset(table.name, column.foreigntable)) {\n\t\t\t\t\t\tontPutative.addClass(\n\t\t\t\t\t\t\t\ttable.getNormalizedName(), \n\t\t\t\t\t\t\t\tcolumn.getNormalizedForeigntable(), \n\t\t\t\t\t\t\t\ttable.name);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//If attributes as classes is enabled, each column is a class\n\t\t\t\tif(mbAttributesAsClasses){\n\t\t\t\t\tontPutative.addClass(\n\t\t\t\t\t\t\t column.getNormalizedName(), \n\t\t\t\t\t\t\t \"From_\"+table.name+\"-\"+column.getNormalizedName());\n\t\t\t\t\tontPutative.addObjectproperty(\n\t\t\t\t\t\t\t \"has\"+column.getNormalizedName(), \n\t\t\t\t\t\t\t table.getNormalizedName(), \n\t\t\t\t\t\t\t column.getNormalizedName());\n\t\t\t\t\tontPutative.addDatatype(\n\t\t\t\t\t\t\t column.getNormalizedName(), \n\t\t\t\t\t\t\t column.getNormalizedName(), \n\t\t\t\t\t\t\t column.type);\n\t\t\t\t\t\n\t\t\t\t\tClassMatch matchAttr = new ClassMatch(column.getNormalizedName(), table.name, column.name);\n\n\t\t\t\t\tmatchAttr.isAttributesAsClasses = true;\n\t\t\t\t\t\n\t\t\t\t\tmatchAttr.addDataPropertyMatch(new DataPropertyMatch(column.getNormalizedName(), table.name, column.name, column.type));\n\t\t\t\t\t// We add the match to the matcher's lists\n\t\t\t\t\tmat.addMatch(matchAttr);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// We add the match to the matcher's lists\n\t\t\tmat.addMatch(match);\n\t\t}\n\t\t\n\t\tontPutative.saveOntology(sOutputFile + \"_automap4obda.owl\");\n\t\t\n\t\tSystem.out.println(\" # class: \"+ontPutative.getClasses().size());\n\t\tSystem.out.println(\"\");\n\t}", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "private List<EntityAnnotation> sciGraphAnnotate(String text) throws AnnotationException\n {\n List<EntityAnnotation> entities;\n try {\n StringReader reader = new StringReader(text);\n EntityFormatConfiguration.Builder builder = new EntityFormatConfiguration.Builder(reader);\n builder.includeCategories(CATEGORIES);\n builder.longestOnly(false);\n builder.includeAbbreviations(false);\n builder.includeAncronyms(false);\n builder.includeNumbers(false);\n entities = wrapper.annotate(builder.get());\n } catch (IOException e) {\n throw new AnnotationException(e.getMessage());\n }\n return entities;\n }", "public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//PUBLISHER information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER);\r\n\t\t\tStringBuffer publisherAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisher());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherEmail());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//approved\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false;\r\n\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\tpublisherAttributes.append(approved);\r\n\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherFax());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCity());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherState());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(publisherAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public static List<Annotation> getDifferentiatingAnnotations(\r\n\t\t\tTaxon baseTaxon, List<Taxon> annotatedTaxa) {\r\n\r\n\t\tHashSet<Annotation> differentiatingAnnotationsSet = new HashSet<Annotation>();\r\n\t\tdifferentiatingAnnotationsSet.addAll(baseTaxon\r\n\t\t\t\t.getPhenotypeAnnotations());\r\n\r\n\t\tfor (Taxon taxon : annotatedTaxa) {\r\n\t\t\tHashSet<Annotation> annotationSet = new HashSet<Annotation>();\r\n\t\t\tannotationSet.addAll(taxon.getPhenotypeAnnotations());\r\n\r\n\t\t\tif (!taxon.equals(baseTaxon)) {\r\n\t\t\t\tdifferentiatingAnnotationsSet = setDifference(\r\n\t\t\t\t\t\tdifferentiatingAnnotationsSet, annotationSet);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new ArrayList<Annotation>(differentiatingAnnotationsSet);\r\n\t}", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createGmf_1Annotations() {\n\t\tString source = \"gmf.node\";\t\n\t\taddAnnotation\n\t\t (nodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxLabel\", \"name\",\n\t\t\t \"mxFill\", \"1\",\n\t\t\t \"mxHtml\", \"1\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxChildLayout\", \"stackLayout\",\n\t\t\t \"mxCollapsible\", \"1\",\n\t\t\t \"mxHorizontalStack\", \"0\",\n\t\t\t \"mxResizeParent\", \"0\",\n\t\t\t \"mxResizeLast\", \"1\",\n\t\t\t \"mxRounded\", \"1\",\n\t\t\t \"mxMarginBottom\", \"0\",\n\t\t\t \"mxMarginLeft\", \"0\",\n\t\t\t \"mxMarginRight\", \"0\",\n\t\t\t \"mxMarginTop\", \"0\",\n\t\t\t \"mxWhiteSpace\", \"wrap\",\n\t\t\t \"mxWidth\", \"200\",\n\t\t\t \"mxHeight\", \"120\"\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "public void test_sf_940570() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM_RDFS_INF );\n OntClass C = m.createClass( NS + \"C\" );\n Resource a = m.createResource( NS + \"a\", C );\n \n TestUtil.assertIteratorValues( this, m.listIndividuals(), new Object[] {a} );\n \n OntModel dm = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM_RULE_INF );\n OntClass D = dm.createClass( NS + \"D\" );\n Resource b = dm.createResource( NS + \"b\", D );\n \n TestUtil.assertIteratorValues( this, dm.listIndividuals(), new Object[] {b} );\n }", "List<Training> obtainAllTrainings();", "@Override\n\tpublic void visit(OWLObjectPropertyAssertionAxiom axiom) {\n\n\t\taddFact(RewritingVocabulary.TRIPLE, //\n\t\t\t\taxiom.getSubject().asOWLNamedIndividual().getIRI(), //\n\t\t\t\taxiom.getProperty().asOWLObjectProperty().getIRI(), //\n\t\t\t\taxiom.getObject().asOWLNamedIndividual().getIRI() //\n\t\t);\n\t}", "private List<AnnotationNode> getAllAnnotations(List<AnnotationNode>... annotationLists) {\n List<AnnotationNode> resultList = null;\n for (List<AnnotationNode> annotationList : annotationLists) {\n if (annotationList!=null && annotationList.size()>0) {\n if (resultList==null) {\n resultList = new ArrayList<AnnotationNode>();\n }\n resultList.addAll(annotationList);\n }\n }\n return resultList;\n }", "private List<String> generateAnnotationList(List<Annotation> queryAnnotations) {\n\n List<String> annotationList = new ArrayList<>();\n AnnotationConfigGenerator annotationConfigGenerator = new AnnotationConfigGenerator();\n for (Annotation queryAnnotation : queryAnnotations) {\n if (!queryAnnotation.getName().equalsIgnoreCase(\"info\")) {\n annotationList.add(annotationConfigGenerator.generateAnnotationConfig(queryAnnotation));\n }\n }\n preserveCodeSegmentsOf(annotationConfigGenerator);\n return annotationList;\n }", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void fillTypedBOW(Set<TypedBOW> typedBOW, EntityTemplate annotation) {\n\n\t\tAbstractAnnotation rootAnnotation = annotation.getRootAnnotation();\n\n\t\tfinal Set<String> bow = extractEntityTypeBOW(rootAnnotation.getEntityType());\n\n\t\tif (rootAnnotation.isInstanceOfDocumentLinkedAnnotation()) {\n\t\t\tbow.addAll(extractDocLinkedBOW(rootAnnotation.asInstanceOfDocumentLinkedAnnotation()));\n\t\t}\n\t\ttypedBOW.add(new TypedBOW(bow, null));\n\n\t\tfinal Map<SlotType, Set<AbstractAnnotation>> propertyAnnotations = annotation.filter().docLinkedAnnoation()\n\t\t\t\t.multiSlots().singleSlots().merge().nonEmpty().build().getMergedAnnotations();\n\n\t\tfor (Entry<SlotType, Set<AbstractAnnotation>> prop : propertyAnnotations.entrySet()) {\n\n//\t\t\tif (!(prop.getKey() == SlotType.get(\"hasDeliveryMethod\") || prop.getKey() == SCIOSlotTypes.hasCompound\n//\t\t\t\t\t|| prop.getKey() == SlotType.get(\"hasDosage\")))\n//\t\t\t\tcontinue;\n\n\t\t\tSet<String> tmp = extractEntityTypeBOW(rootAnnotation.getEntityType());\n\n\t\t\tfor (AbstractAnnotation val : prop.getValue()) {\n//\t\t\t\ttmp.addAll(extractEntityTypeBOW(val.getEntityType()));\n\t\t\t\ttmp.addAll(extractDocLinkedBOW(val.asInstanceOfDocumentLinkedAnnotation()));\n\t\t\t}\n\n\t\t\ttypedBOW.add(new TypedBOW(tmp, prop.getKey()));\n\n\t\t}\n\n\t\t/*\n\t\t * Recursive search for terms.\n\t\t */\n\t\tfor (Set<AbstractAnnotation> props : annotation.filter().entityTemplateAnnoation().multiSlots().singleSlots()\n\t\t\t\t.merge().nonEmpty().build().getMergedAnnotations().values()) {\n\t\t\tfor (AbstractAnnotation prop : props) {\n\t\t\t\tfillTypedBOW(typedBOW, prop.asInstanceOfEntityTemplate());\n\t\t\t}\n\t\t}\n\n\t}", "public void setGroundInstancesAsAxioms(Explainer explainer, Vector concepts)\n {\n if (!use_ground_instances)\n return;\n explainer.use_ground_instances = true;\n explainer.ground_instances_as_axioms = \"\";\n for (int i=0; i<concepts.size(); i++)\n {\n Concept concept = (Concept)concepts.elementAt(i);\n if (concept.is_user_given)\n {\n for (int j=0; j<concept.datatable.size(); j++)\n {\n Row row = (Row)concept.datatable.elementAt(j);\n for (int k=0; k<row.tuples.size(); k++)\n {\n Vector tuple = (Vector)row.tuples.elementAt(k);\n Vector ground_letters = (Vector)tuple.clone();\n ground_letters.insertElementAt(row.entity, 0);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + add_to.trim() + \".\\n\";\n }\n if (concept.arity==1 && row.tuples.size()==0)\n {\n Vector ground_letters = new Vector();\n ground_letters.addElement(row.entity);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + \"~(\" + add_to.trim() + \").\\n\";\n }\n }\n }\n }\n }", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }", "int getObjectAnnotationsCount();" ]
[ "0.7103991", "0.6456442", "0.62245786", "0.61531603", "0.5909345", "0.56791943", "0.5605434", "0.5554968", "0.5550962", "0.55228454", "0.55137837", "0.5466728", "0.54651046", "0.53460443", "0.5340159", "0.5297515", "0.52698606", "0.5255348", "0.52156657", "0.5193896", "0.51400286", "0.5134507", "0.51342076", "0.5129622", "0.5117463", "0.5117334", "0.51018476", "0.50944126", "0.50922203", "0.5091381", "0.50904506", "0.5075825", "0.5062725", "0.5060912", "0.5058634", "0.50559634", "0.5052367", "0.50352544", "0.5030996", "0.5003323", "0.499878", "0.49978098", "0.499739", "0.4994464", "0.49755996", "0.49691734", "0.4958443", "0.49581674", "0.4937614", "0.49209404", "0.4917032", "0.49149972", "0.49136347", "0.4902085", "0.48977", "0.48968348", "0.4885881", "0.4882371", "0.4881005", "0.48636878", "0.48616475", "0.48572525", "0.4854847", "0.4854367", "0.48472628", "0.48385546", "0.48361197", "0.4830342", "0.4825379", "0.48152152", "0.48123577", "0.4811412", "0.4810337", "0.48070967", "0.47828445", "0.4781841", "0.4771799", "0.4766364", "0.47631294", "0.47505316", "0.4737401", "0.47370473", "0.47352037", "0.47343642", "0.47299662", "0.47196504", "0.4719448", "0.4718225", "0.47070926", "0.4704711", "0.47028586", "0.47023684", "0.46988863", "0.46929234", "0.46909976", "0.46890825", "0.46794122", "0.46746734", "0.4664968", "0.46627143" ]
0.73936635
0
Add administrative annotation triples
public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){ String LOG_METHOD_NAME = " ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //physicalDescription if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION); predicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //loan period if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD); predicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //identifier if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER); predicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //identifier description if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION); predicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //handling instructions if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS); predicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //rights if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS); predicate_value = Node.createLiteral(digitalRightsManagementBean.getRights()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //intaker if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER); predicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //date of learning object creation if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD); predicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //Story provided boolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) && "true".equals(digitalRightsManagementBean.getStoryProvided()))?true:false; predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED); predicate_value = Node.createLiteral(String.valueOf(storyProvided)); tripleList.add(new Triple(subject, predicate, predicate_value)); //story if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY); predicate_value = Node.createLiteral(digitalRightsManagementBean.getStory()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //story context if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT); predicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext()); tripleList.add(new Triple(subject, predicate, predicate_value)); } if(storyProvided){ tripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean)); } }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createUML2MappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/UML2Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"interfaceRealization\",\n\t\t\t \"featureOwner\", \"BehavioredClassifier\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Property\",\n\t\t\t \"stereotype\", \"eng.PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\",\n\t\t\t \"stereotype\", \"eng.InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Interface\",\n\t\t\t \"stereotype\", \"eng.Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"mechanism\",\n\t\t\t \"featureOwner\", \"eng.Interface\",\n\t\t\t \"fromStereotype\", \"true\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"contract\",\n\t\t\t \"umlOppositeReferenceOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"implementingClassifier\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Namespace\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"role\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"partWithPort\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\n\t}", "DataMap getCustomAnnotations();", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }", "private void addRouteMArkers()\n {\n //routeMarker.add(new MarkerOptions().position(new LatLng(geo1Dub,geo2Dub)));\n\n }", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}", "protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}", "Annotation createAnnotation();", "Annotation createAnnotation();", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createInternalAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/internal\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "protected void createOCLAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore/OCL\";\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"authenticationKeyFromUserModel\", \"not userModel.oclIsUndefined() and not authenticationKey.oclIsUndefined() implies\\n\\tuserModel.features->includes(authenticationKey)\",\n\t\t\t \"authenticationKeyRequiredAttribute\", \"not authenticationKey.oclIsUndefined() implies\\n\\tauthenticationKey.cardinality = persistence::Cardinality::Required\",\n\t\t\t \"userKeyFromAuthhenticationModel\", \"not authenticationModel.oclIsUndefined() and not userKey.oclIsUndefined() implies\\n\\tauthenticationModel.features->includes(userKey)\",\n\t\t\t \"userKeyRequiredAttribute\", \"not userKey.oclIsUndefined() implies\\n\\tuserKey.cardinality = persistence::Cardinality::Required\"\n\t\t });\n\t}", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "public void addAnnotation(String a) {\n applicationIdentifiers.add(a);\n }", "private void createAnnotationTree() throws JDOMException, IOException, ParseException {\r\n\t\tif(currentResource!=null)\r\n\t\t\tcreateAnnotation();\r\n\r\n\t\tif(rootAnnotations!=null)\r\n\t\t\taddAnnotationReplies(rootAnnotations);\r\n\t\t\r\n\t\t// we add all remaining replies to the root level because we did not\r\n\t\t// find the annotation they reply to.\r\n\t\tfor(Long annotationId : allReplies.keySet()) {\r\n\t\t\tfor(Annotation reply : allReplies.get(annotationId)) {\r\n\t\t\t\trootAnnotations.add(reply);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setGroundInstancesAsAxioms(Explainer explainer, Vector concepts)\n {\n if (!use_ground_instances)\n return;\n explainer.use_ground_instances = true;\n explainer.ground_instances_as_axioms = \"\";\n for (int i=0; i<concepts.size(); i++)\n {\n Concept concept = (Concept)concepts.elementAt(i);\n if (concept.is_user_given)\n {\n for (int j=0; j<concept.datatable.size(); j++)\n {\n Row row = (Row)concept.datatable.elementAt(j);\n for (int k=0; k<row.tuples.size(); k++)\n {\n Vector tuple = (Vector)row.tuples.elementAt(k);\n Vector ground_letters = (Vector)tuple.clone();\n ground_letters.insertElementAt(row.entity, 0);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + add_to.trim() + \".\\n\";\n }\n if (concept.arity==1 && row.tuples.size()==0)\n {\n Vector ground_letters = new Vector();\n ground_letters.addElement(row.entity);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + \"~(\" + add_to.trim() + \").\\n\";\n }\n }\n }\n }\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void setAnnotations(String Annotations) {\n this.Annotations.add(Annotations);\n }", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "public abstract AnnotationMap mo30683d();", "public void addAnnotation(AnnotationEntry ann) {\n if (entries == null)\n entries = new AnnotationEntry[4];\n else if (entries.length <= numEntries) {\n AnnotationEntry[] tmp = new AnnotationEntry[2 * entries.length];\n System.arraycopy(entries, 0, tmp, 0, numEntries);\n entries = tmp;\n }\n entries[numEntries++] = ann;\n }", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "public void onAnnotationsAdded(Map<Annot, Integer> annots) {\n/* 266 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 273 */ JSONObject obj = prepareAnnotSnapshot(annots, AnnotAction.ADD);\n/* 274 */ takeAnnotSnapshot(obj);\n/* */ \n/* 276 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 277 */ this.mToolManager.getAnnotManager().onLocalChange(\"add\");\n/* */ }\n/* 279 */ } catch (Exception e) {\n/* 280 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }", "private static void addMapping(TaskDetail... details) {\n for (TaskDetail detail : details) {\n detail.add();\n }\n }", "void addAntecedents(LayerType... types) {\n this.antecedents.addAll(Arrays.asList(types));\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"org.abchip.mimo.core.base.invocation\",\n\t\t\t \"settingDelegates\", \"org.abchip.mimo.core.base.setting\"\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "public abstract ArrayList<CustomPath> getAnnotationPathList();", "Set<String> annotations();", "protected void addAnnotationForConfig(\r\n\t\t\tList<AnnotationExpr> argAnnotationList,\r\n\t\t\tICodeGenConfig argConfigObject) {\r\n\t\tif (argAnnotationList != null) {\r\n\t\t\tfor (AnnotationExpr annotation : argAnnotationList) {\r\n\t\t\t\tAnnotationConfig annotationConfig = new AnnotationConfig();\r\n\t\t\t\tannotationConfig.setName(annotation.getName().getName());\r\n\t\t\t\tif (annotation instanceof NormalAnnotationExpr) {\r\n\t\t\t\t\tList<MemberValuePair> keyValues = ((NormalAnnotationExpr) annotation)\r\n\t\t\t\t\t\t\t.getPairs();\r\n\t\t\t\t\tif (keyValues != null) {\r\n\t\t\t\t\t\tfor (MemberValuePair valuePair : keyValues) {\r\n\t\t\t\t\t\t\tannotationConfig.addKey(valuePair.getName());\r\n\t\t\t\t\t\t\tannotationConfig.addValue(CodeGenUtils\r\n\t\t\t\t\t\t\t\t\t.clearDoubleQuotation(valuePair.getValue()\r\n\t\t\t\t\t\t\t\t\t\t\t.toString()));\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\targConfigObject.setConfigObject(AnnotationConfig.MAIN_TAG,\r\n\t\t\t\t\t\tannotationConfig);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public abstract Annotations mo30682c();", "private void addEntityViews(TextAnnotation ta, ACEDocumentAnnotation docAnnotation, File file) {\n SpanLabelView entityView =\n new SpanLabelView(ViewNames.MENTION_ACE,\n ACEReader.class.getCanonicalName(), ta, 1.0f, true);\n CoreferenceView corefHeadView =\n new CoreferenceView(ViewNames.COREF_HEAD, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n CoreferenceView corefExtentView =\n new CoreferenceView(ViewNames.COREF_EXTENT, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n\n for (ACEEntity entity : docAnnotation.entityList) {\n List<Constituent> corefMentions = new ArrayList<>(docAnnotation.entityList.size());\n List<Constituent> corefMentionHeads = new ArrayList<>(docAnnotation.entityList.size());\n\n for (ACEEntityMention entityMention : entity.entityMentionList) {\n int extentStartTokenId =\n ta.getTokenIdFromCharacterOffset(entityMention.extentStart);\n int extentEndTokenId = ta.getTokenIdFromCharacterOffset(entityMention.extentEnd);\n\n if (extentStartTokenId < 0 || extentEndTokenId < 0\n || extentStartTokenId > extentEndTokenId + 1) {\n logger.error(\"Incorrect Extent Token Span for mention - \" + entity.id + \" \"\n + entityMention.id);\n continue;\n }\n\n Constituent extentConstituent =\n new Constituent(entity.type, ViewNames.MENTION_ACE, ta, extentStartTokenId, extentEndTokenId + 1);\n extentConstituent.addAttribute(EntityTypeAttribute, entity.type);\n extentConstituent.addAttribute(EntityIDAttribute, entity.id);\n extentConstituent.addAttribute(EntityMentionIDAttribute, entityMention.id);\n extentConstituent.addAttribute(EntityMentionTypeAttribute, entityMention.type);\n extentConstituent.addAttribute(EntityClassAttribute, entity.classEntity);\n\n String entitySubType = (entity.subtype != null) ? entity.subtype : entity.type;\n extentConstituent.addAttribute(EntitySubtypeAttribute, entitySubType);\n\n if (entityMention.ldcType != null) {\n extentConstituent.addAttribute(EntityMentionLDCTypeAttribute, entityMention.ldcType);\n }\n\n // ACE Annotation have character offsets inclusive of start/end.\n // Converting them to a one-after-then-end.\n extentConstituent.addAttribute(EntityHeadStartCharOffset, entityMention.headStart + \"\");\n extentConstituent.addAttribute(EntityHeadEndCharOffset, entityMention.headEnd + 1 + \"\");\n\n entityView.addConstituent(extentConstituent);\n\n Constituent corefExtentConstituent =\n extentConstituent.cloneForNewViewWithDestinationLabel(\n ViewNames.COREF_EXTENT, entity.id);\n corefMentions.add(corefExtentConstituent);\n\n Constituent corefHeadConstituent =\n getEntityHeadForConstituent(corefExtentConstituent, ta,\n ViewNames.COREF_HEAD);\n if (corefHeadConstituent != null) {\n corefMentionHeads.add(corefHeadConstituent);\n }\n }\n\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n Constituent canonicalMention = null;\n double[] scores = new double[corefMentions.size()];\n for (int i = 0; i < corefMentions.size(); i++) {\n Constituent cons = corefMentions.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentions.size() > 0) {\n corefExtentView.addCorefEdges(canonicalMention, corefMentions, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n\n // Processing Coref Head Constituents\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n canonicalMention = null;\n scores = new double[corefMentionHeads.size()];\n for (int i = 0; i < corefMentionHeads.size(); i++) {\n Constituent cons = corefMentionHeads.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentionHeads.size() > 0) {\n corefHeadView.addCorefEdges(canonicalMention, corefMentionHeads, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n }\n\n ta.addView(ViewNames.MENTION_ACE, entityView);\n ta.addView(ViewNames.COREF_HEAD, corefHeadView);\n ta.addView(ViewNames.COREF_EXTENT, corefExtentView);\n }", "public AreaInfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "private void mapAreaOne()\n\n {\n\n Area area = areaIDMap.get(Constants.FIRST_AREA_ID);\n\n area.areaMap.put(Constants.North, areaIDMap.get(Constants.SECOND_AREA_ID));\n\n area.areaMap.put(Constants.South, areaIDMap.get(Constants.FIFTH_AREA_ID));\n\n area.areaMap.put(Constants.East, areaIDMap.get(Constants.FOURTH_AREA_ID));\n\n area.areaMap.put(Constants.West, areaIDMap.get(Constants.SIXTH_AREA_ID));\n\n area.paths = Constants.NorthSouthEastAndWest;\n\n }", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "protected void createGmf_1Annotations() {\n\t\tString source = \"gmf.node\";\t\n\t\taddAnnotation\n\t\t (nodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxLabel\", \"name\",\n\t\t\t \"mxFill\", \"1\",\n\t\t\t \"mxHtml\", \"1\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxChildLayout\", \"stackLayout\",\n\t\t\t \"mxCollapsible\", \"1\",\n\t\t\t \"mxHorizontalStack\", \"0\",\n\t\t\t \"mxResizeParent\", \"0\",\n\t\t\t \"mxResizeLast\", \"1\",\n\t\t\t \"mxRounded\", \"1\",\n\t\t\t \"mxMarginBottom\", \"0\",\n\t\t\t \"mxMarginLeft\", \"0\",\n\t\t\t \"mxMarginRight\", \"0\",\n\t\t\t \"mxMarginTop\", \"0\",\n\t\t\t \"mxWhiteSpace\", \"wrap\",\n\t\t\t \"mxWidth\", \"200\",\n\t\t\t \"mxHeight\", \"120\"\n\t\t });\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n startTextField = new javax.swing.JTextField();\n stopTextField = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n nameTextField = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n textPane = new javax.swing.JTextPane();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n nameTextField1 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Custom Annotation\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));\n\n jLabel1.setText(\"Start\");\n\n jLabel2.setText(\"Stop\");\n\n startTextField.setEditable(false);\n\n stopTextField.setEditable(false);\n\n jLabel3.setText(\"Name\");\n\n jLabel4.setText(\"Notes\");\n\n textPane.setEditable(false);\n jScrollPane1.setViewportView(textPane);\n\n jButton1.setText(\"Add\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jLabel2)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(stopTextField))\n .add(jPanel1Layout.createSequentialGroup()\n .add(jLabel1)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(startTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 60, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(47, 47, 47)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jLabel3)\n .add(jLabel4))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(nameTextField1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE)\n .add(nameTextField))\n .addContainerGap())\n .add(jScrollPane1)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()\n .add(0, 0, Short.MAX_VALUE)\n .add(jButton2)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jButton1))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1Layout.createSequentialGroup()\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jLabel1)\n .add(startTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel3)\n .add(nameTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(stopTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jLabel2)\n .add(jLabel4)\n .add(nameTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(12, 12, 12)\n .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 129, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 7, Short.MAX_VALUE)\n .add(jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\n .add(jButton1)\n .add(jButton2)))\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "public static void main(String[] args) {\n\t\tHashtable<String, String> map = new Hashtable<String, String>();\n\t\tmap.put(\"edu.mayo.bmi.uima.common.type.DocumentID\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.DocumentIDAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textspan.LookupWindowAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.lookup.types.LookupWindowAnnotation\");\n//\t\tSpecify your mappings here\n/*\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.MCAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.TCAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.WHPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.OBJAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.PSUBAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.SUBAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.AdjAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.CNPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.NPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.NPListAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.NPPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.PPAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.PVGAnnotation\");\n\t\tmap.put(\"\",\n\t\t\t\t\"uima.tt.VGAnnotation\");\n*/\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.RomanNumeralAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.RomanNumeralAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.FractionAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.FractionAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.DateAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.DateAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.ProblemListAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.ProblemListAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.MeasurementAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.MeasurementAnnotation\");\n\t\tmap.put(\"edu.mayo.bmi.uima.cdt.type.PersonTitleAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.cdt.types.PersonTitleAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textspan.Segment\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.SegmentAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textspan.Sentence\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.SentenceAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.syntax.WordToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.WordTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.NumToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.NumTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.PunctuationToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.PunctTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.SymbolToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.SymbolTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.NewlineToken\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.NewlineTokenAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.NamedEntityAnnotation\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.UmlsConcept\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.UmlsConcept\");\n\t\tmap.put(\"org.apache.ctakes.typesystem.type.OntologyConcept\",\n\t\t\t\t\"edu.mayo.bmi.uima.common.types.OntologyConcept\");\n\n//\t\tPrepare the list of attributes to ignore when comparing elements\n\t\tConst.init();\n//\t\tInitialize a processor\n\t\tXcasProcessor p = new XcasProcessor();\n//\t\tProcess/parse the two files specified in args[0] and args[1]\n\t\tFile f1 = new File(args[0]);\n\t\tif (!f1.exists()) { System.err.println(args[0]+\" not exist!\"); System.exit(1); }\n\t\tFile f2 = new File(args[1]);\n\t\tif (!f2.exists()) { System.err.println(args[1]+\" not exist!\"); System.exit(1); }\n\t\tXcasFile xf1 = p.process(f1);\n\t\tXcasFile xf2 = p.process(f2);\n//\t\tChange xf1 to xf2 if the second command line argument is the open source output\n\t\tfor (XcasAnnotation a : xf1.getAllAnnotations())\n\t\t\tif (map.containsKey(a.getType()))\n\t\t\t\t\ta.setType(map.get(a.getType()));\n//\t\tConstruct an XcasDiff object from the two XcasFiles\n\t\tXcasDiff d = new XcasDiff(xf1, xf2);\n//\t\tPrint differences to stdout\n\t\td.printDiff();\n//\t\tPrint an HTML summary to file specified in args[2]\n\t\ttry {\n\t\t\td.printHTML(new FileWriter(args[2]));\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"HTML summary written to \"+args[2]);\n\t\t} catch (IOException e) { e.printStackTrace(); }\n\t}", "public static void addAllPossesives(AnnotationSet nps, Document doc, Map<Annotation, ArrayList<Annotation>> posessives)\r\n{\r\n for (Annotation np : nps) {\r\n addPossesives(np, doc, posessives);\r\n }\r\n}", "public void addAgent(String layer, Agent a)\n/* 170: */ {\n/* 171:240 */ this.mapPanel.addAgent(layer, a);\n/* 172: */ }", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//PUBLISHER information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER);\r\n\t\t\tStringBuffer publisherAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisher());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherEmail());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//approved\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false;\r\n\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\tpublisherAttributes.append(approved);\r\n\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherFax());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCity());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherState());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(publisherAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "protected void createInputAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/input\";\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getPrint_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t}", "private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }", "@Override\n\t\tpublic void annotate(JCas arg0) throws AnalysisEngineProcessException {\n\t\t\t\n\t\t}", "public AzioneProgrammata(ArrayList<Attuatore> attuatori, String azione) {\n this.attuatori = attuatori;\n this.azione = azione;\n }", "public void registerAdministrative(String[] fields) throws BadEntryException{\n int id = Integer.parseInt(fields[1]);\n if(_persons.get(id) != null){\n throw new BadEntryException(fields[0]);\n }\n Administrative _administrative = new Administrative(id, fields[2], fields[3]);\n _administratives.put(id, _administrative);\n _persons.put(id, (Person) _administrative);\n }", "Builder addAccessibilityFeature(Text value);", "private void setupMarkers() {\n \t\tGPSFilterPolygon polygon = this.area.getPolygon();\n \n \t\tif ( polygon != null ) {\n \t\t\tfinal LatLngBounds.Builder builder = LatLngBounds.builder();\n \n \t\t\t// Put markers for each edge.\n \t\t\tfor ( GPSLatLng pos : polygon.getPoints() ) {\n \t\t\t\tLatLng point = this.convertLatLng( pos );\n \n \t\t\t\tbuilder.include( point );\n \n \t\t\t\tthis.addMarker( point );\n \t\t\t}\n \n \t\t\t// Add listener that moves camera so that all markers are in users view.\n \t\t\tthis.googleMap.setOnCameraChangeListener( new OnCameraChangeListener() {\n \t\t\t\t@Override\n \t\t\t\tpublic void onCameraChange( CameraPosition arg0 ) {\n \t\t\t\t\t// Move camera.\n \t\t\t\t\tmoveCameraToPolygon( builder, false );\n \n \t\t\t\t\t// Remove listener to prevent position reset on camera move.\n \t\t\t\t\tgoogleMap.setOnCameraChangeListener( null );\n \t\t\t\t}\n \t\t\t} );\n \n \t\t\tthis.updateGuiPolygon();\n \t\t}\n \t}", "public void addAnnotation(Annotation annotation) {\r\n\t\tannotations.add(annotation);\r\n\t}", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "static private void addRelations( final JCas jCas,\n final FhirPractitioner practitioner,\n final FhirNoteSpecs noteSpecs,\n final FhirResourceCreator<Annotation, Basic> aCreator,\n final Map<IdentifiedAnnotation, Basic> annotationBasics,\n final Map<Annotation, Basic> simpleBasics ) {\n final Collection<BinaryTextRelation> relations = JCasUtil.select( jCas, BinaryTextRelation.class );\n for ( BinaryTextRelation relation : relations ) {\n final RelationArgument arg1 = relation.getArg1();\n final Annotation source = arg1.getArgument();\n Basic basicSource;\n if ( source instanceof IdentifiedAnnotation ) {\n basicSource = annotationBasics.get( (IdentifiedAnnotation)source );\n } else {\n basicSource = getSimpleBasic( jCas, source, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final RelationArgument arg2 = relation.getArg2();\n final Annotation target = arg2.getArgument();\n Basic basicTarget;\n if ( target instanceof IdentifiedAnnotation ) {\n basicTarget = annotationBasics.get( (IdentifiedAnnotation)target );\n } else {\n basicTarget = getSimpleBasic( jCas, target, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final String type = relation.getCategory();\n basicSource.addExtension( FhirElementFactory.createRelation( type, basicTarget ) );\n }\n }", "public ArrayList<Triple> addStructuralAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> addStructuralAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//STRUCTURAL\t\r\n\t\t\t//date of annotation\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getDate())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_ANNOTATION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getDate());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//format\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getFormat())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_FORMAT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getFormat());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Test\n public void InternalNLP_annotate_doesAnnotate() {\n ExtractedText extractedText = null;\n\n String fileUri = \"dummyUri\";\n String fileRef = \"src/test/res/Pasta.txt\";\n File file = new File(fileRef);\n try {\n InputStream inputStream = new FileInputStream(file);\n extractedText = mInternalTextProcessor.processFile(inputStream, fileUri, fileRef\n , \"txt\", false);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (FileTypeNotSupportedException e) {\n e.printStackTrace();\n } catch (DocumentNotSupportedException e) {\n e.printStackTrace();\n }\n\n // Annotate\n mInternalNLP.annotate(extractedText);\n\n if(!extractedText.getTitle().isEmpty()) {\n Assert.assertNotNull(extractedText.getTitleAnnotation());\n }\n\n for (Section section: extractedText.getSections()) {\n if(!section.getBody().isEmpty()) {\n Assert.assertNotNull(section.getBodyAnnotation());\n }\n if(!section.getTitle().isEmpty()) {\n Assert.assertNotNull(section.getTitleAnnotation());\n }\n }\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\n\t\taddAnnotation\n\t\t (controlEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"control\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Midi(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"midi\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Background(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"background\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Centered(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"centered\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Color(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"color\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_H(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"h\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Inverted(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_LocalOff(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"local_off\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Number(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_OscCs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"osc_cs\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Outline(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"outline\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Response(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"response\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalet(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalet\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Seconds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"seconds\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Size(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"size\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Text(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"text\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_W(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"w\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_X(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Y(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (layoutEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"layout\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Tabpage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"tabpage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Mode(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"mode\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Orientation(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"orientation\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Version(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"version\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (midiEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"midi\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Channel(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"channel\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data1(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data1\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2f(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2f\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2t(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2t\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Var(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"var\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (tabpageEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"tabpage\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Control(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"control\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (topEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"TOP\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTOP_Layout(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"layout\"\n\t\t });\n\t}", "public static void addAtts(Collection<String> arr){\n\t\tarr.forEach(it -> selectedAtts.put(it,true));\n\t}", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "AdministrativeControl administrativeControl();", "AdministrativeControl administrativeControl();", "public void addAddress(String Address, Coord coord);", "private void checkTextAnnotation(MGraph g, UriRef textAnnotation, String content) {\n Iterator<Triple> selectedTextIterator = g.filter(textAnnotation,\n Properties.ENHANCER_SELECTED_TEXT, null);\n // check if the selected text is added\n assertTrue(selectedTextIterator.hasNext());\n // test if the selected text is part of the TEXT_TO_TEST\n Resource object = selectedTextIterator.next().getObject();\n assertTrue(object instanceof Literal);\n Literal selectedText = (Literal)object;\n object = null;\n assertTrue(content.indexOf(selectedText.getLexicalForm()) >= 0);\n // test if context is added\n //context not present for Zemanta\n// Iterator<Triple> selectionContextIterator = g.filter(textAnnotation,\n// Properties.ENHANCER_SELECTION_CONTEXT, null);\n// assertTrue(selectionContextIterator.hasNext());\n// // test if the selected text is part of the TEXT_TO_TEST\n// object = selectionContextIterator.next().getObject();\n// assertTrue(object instanceof Literal);\n// assertTrue(content.indexOf(((Literal)object).getLexicalForm()) >= 0);\n// object = null;\n //test start/end if present\n Iterator<Triple> startPosIterator = g.filter(textAnnotation,\n ENHANCER_START, null);\n Iterator<Triple> endPosIterator = g.filter(textAnnotation,\n ENHANCER_END, null);\n //start end is optional, but if start is present, that also end needs to be set\n if(startPosIterator.hasNext()){\n Resource resource = startPosIterator.next().getObject();\n //only a single start position is supported\n assertTrue(!startPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral startPosLiteral = (TypedLiteral) resource;\n resource = null;\n int start = LiteralFactory.getInstance().createObject(Integer.class, startPosLiteral);\n startPosLiteral = null;\n //now get the end\n //end must be defined if start is present\n assertTrue(endPosIterator.hasNext());\n resource = endPosIterator.next().getObject();\n //only a single end position is supported\n assertTrue(!endPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral endPosLiteral = (TypedLiteral) resource;\n resource = null;\n int end = LiteralFactory.getInstance().createObject(Integer.class, endPosLiteral);\n endPosLiteral = null;\n //check for equality of the selected text and the text on the selected position in the content\n //System.out.println(\"TA [\"+start+\"|\"+end+\"]\"+selectedText.getLexicalForm()+\"<->\"+content.substring(start,end));\n assertTrue(content.substring(start, end).equals(selectedText.getLexicalForm()));\n } else {\n //if no start position is present, there must also be no end position defined\n assertTrue(!endPosIterator.hasNext());\n }\n }", "public void addToPainter(OSMNode node) {\r\n\t\tGeoPosition geoP = new GeoPosition(Double.parseDouble(node.getLat()), Double.parseDouble((node.getLon())));\r\n\t\tgeopoints.add(geoP);\r\n\t\t \r\n\t\t//waypoints.add(new DefaultWaypoint(geoP));\r\n\t}", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "public static void main(String[] args) {\n\t\tString list = Annotation.annotateList(1, 16);\n\t\tSystem.out.println(list);\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\r\npublic static void ruleResolvePronouns(AnnotationSet basenp, Document doc)\r\n{\n Annotation[] basenpArray = basenp.toArray();\r\n\r\n // Initialize coreference clusters\r\n int maxID = basenpArray.length;\r\n\r\n // Create an array of pointers\r\n // clust = new UnionFind(maxID);\r\n fvm = new RuleResolvers.FeatureVectorMap();\r\n ptrs = new int[maxID];\r\n clusters = new HashSet[maxID];\r\n for (int i = 0; i < clusters.length; i++) {\r\n ptrs[i] = i;\r\n HashSet<Annotation> cluster = new HashSet<Annotation>();\r\n cluster.add(basenpArray[i]);\r\n clusters[i] = cluster;\r\n }\r\n Annotation zero = new Annotation(-1, -1, -1, \"zero\");\r\n\r\n for (int i = 1; i < basenpArray.length; i++) {\r\n Annotation np2 = basenpArray[i];\r\n if (FeatureUtils.isPronoun(np2, doc)) {\r\n Annotation ant = ruleResolvePronoun(basenpArray, i, doc);\r\n if (ant != null) {\r\n np2.setProperty(Property.PRO_ANTES, ant);\r\n }\r\n else {\r\n np2.setProperty(Property.PRO_ANTES, zero);\r\n }\r\n }\r\n }\r\n}", "public void addRelationship(String primaryNickName, String primaryAttribute, String secondaryNickName, String secondaryAttribute, String direction,int pixels)\n {\n AttributeType att1;\n AttributeType att2;\n\n if (primaryAttribute.equals(\"top\"))\n {\n att1=AttributeType.TOP;\n }\n else if (primaryAttribute.equals(\"bottom\"))\n {\n att1=AttributeType.BOTTOM;\n }\n else if (primaryAttribute.equals(\"left\"))\n {\n att1=AttributeType.LEFT;\n }\n else if (primaryAttribute.equals(\"right\"))\n {\n att1=AttributeType.RIGHT;\n }\n else\n {\n att1=AttributeType.TOP;\n }\n\n if (secondaryAttribute.equals(\"top\"))\n {\n att2=AttributeType.TOP;\n }\n else if (secondaryAttribute.equals(\"bottom\"))\n {\n att2=AttributeType.BOTTOM;\n }\n else if (secondaryAttribute.equals(\"left\"))\n {\n att2=AttributeType.LEFT;\n }\n else if (secondaryAttribute.equals(\"right\"))\n {\n att2=AttributeType.RIGHT;\n }\n else\n {\n att2=AttributeType.TOP;\n }\n\n if (secondaryNickName.equals(\"container\"))\n {\n secondaryNickName=DependencyManager.ROOT_NAME;\n }\n\n if (direction.equals(\"up\"))\n {\n pixels=-1*pixels;\n }\n else if (direction.equals(\"left\"))\n {\n pixels=-1*pixels;\n }\n\n addConstraint(primaryNickName, att1, new AttributeConstraint(secondaryNickName, att2, pixels));\n }", "private static void addAnnotationsImpl(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n Set<AnnotatedTypeMirror> visited,\n ArrayList<AnnotatedTypeMirror> types) {\n\n final AnnotatedTypeMirror origalub = alub;\n boolean shouldAnnoOrig = false;\n Set<AnnotationMirror> putOnOrig = AnnotationUtils.createAnnotationSet();\n\n // get rid of wildcards and type variables\n if (alub.getKind() == TypeKind.WILDCARD) {\n final QualifierHierarchy qualifierHierarchy = atypeFactory.getQualifierHierarchy();\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> lowerBounds = new HashSet<>(qualifierHierarchy.getTopAnnotations().size());\n for (AnnotatedTypeMirror type : types) {\n\n final Set<? extends AnnotationMirror> annos = findEffectiveLowerBoundAnnotations(qualifierHierarchy, type);\n if (lowerBounds.isEmpty()) {\n lowerBounds = annos;\n } else if (!annos.isEmpty()) { //for some reason this algorithm some times adds the lub itself\n //into the list of type which may lead to an empty annos set\n lowerBounds = qualifierHierarchy.greatestLowerBounds(lowerBounds, annos);\n }\n }\n\n ((AnnotatedWildcardType)alub).getSuperBound().replaceAnnotations(lowerBounds);\n\n\n //TODO: AGAIN, ALL LUB CODE SHOULD BE EXTRACTED OUT TO IT'S OWN CLASS OR THE TYPE HIERARCHY\n //TODO: AND REWRITTEN\n boolean allWildcards = true;\n for (int i = 0; i < types.size() && allWildcards; i++) {\n if (types.get(i).getKind() != TypeKind.WILDCARD) {\n allWildcards = false;\n }\n }\n\n if (allWildcards) {\n if (wildcards.contains(alub.getUnderlyingType())) {\n return;\n }\n wildcards.add(alub.getUnderlyingType());\n final List<AnnotatedTypeMirror> upperBounds = new ArrayList<>(types.size());\n for (final AnnotatedTypeMirror type : types) {\n upperBounds.add(((AnnotatedWildcardType)type).getExtendsBound());\n }\n\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n\n annotateAsLub(atypeFactory.getProcessingEnv(), atypeFactory, alub, upperBounds);\n return;\n\n } else {\n //old behavior\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n }\n\n\n // TODO using the getEffective versions copies objects, losing side-effects.\n }\n while (alub.getKind() == TypeKind.TYPEVAR) {\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> glb = glbAll(atypeFactory.getQualifierHierarchy(), types);\n ((AnnotatedTypeVariable)alub).getLowerBound().replaceAnnotations(glb);\n alub = ((AnnotatedTypeVariable)alub).getUpperBound();\n }\n\n if (visited.contains(alub)) {\n return;\n }\n visited.add(alub);\n\n for (int i = 0; i < types.size(); ++i) {\n final AnnotatedTypeMirror typei = types.get(i);\n\n if (!(typei.getAnnotations().isEmpty() ||\n bottomsOnly(elements, atypeFactory, typei.getAnnotations()))) {\n shouldAnnoOrig = true;\n }\n\n if (typei.getKind() == TypeKind.WILDCARD) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedWildcardType wildcard = (AnnotatedWildcardType) typei;\n if (wildcard.getExtendsBound() != null) {\n types.set(i, wildcard.getExtendsBound().deepCopy());\n } else if (wildcard.getSuperBound() != null) {\n types.set(i, wildcard.getSuperBound().deepCopy());\n }\n }\n if (typei.getKind() == TypeKind.TYPEVAR) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedTypeVariable typevar = (AnnotatedTypeVariable) types.get(i);\n if (typevar.getUpperBound() != null) {\n types.set(i, typevar.getUpperBound());\n } else if (typevar.getLowerBound() != null) {\n types.set(i, typevar.getLowerBound());\n }\n }\n }\n\n Collection<? extends AnnotationMirror> unification = Collections.emptySet();\n\n boolean isFirst = true;\n for (AnnotatedTypeMirror type : types) {\n if (type.getAnnotations().isEmpty()) {\n continue;\n }\n // TODO: unification fails with an empty set of annotations.\n // Why are they sometimes empty, e.g. in the FlowNegation test case.\n\n if (isFirst) {\n unification = type.getAnnotations();\n } else {\n unification = atypeFactory.getQualifierHierarchy().leastUpperBounds(unification, type.getAnnotations());\n }\n isFirst = false;\n }\n\n // Remove a previously existing unqualified annotation on the type.\n alub.replaceAnnotations(unification);\n\n if (alub.getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adt = (AnnotatedDeclaredType) alub;\n\n for (int i = 0; i < adt.getTypeArguments().size(); ++i) {\n AnnotatedTypeMirror adtArg = adt.getTypeArguments().get(i);\n ArrayList<AnnotatedTypeMirror> dTypesArg = new ArrayList<>();\n for (int j = 0; j < types.size(); ++j) {\n if (types.get(j).getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adtypej = (AnnotatedDeclaredType) types.get(j);\n if (adtypej.getTypeArguments().size() == adt.getTypeArguments().size()) {\n dTypesArg.add(adtypej.getTypeArguments().get(i));\n } else {\n // TODO: actually not just the number of type arguments should match, but\n // the base types should be equal. See test case framework/GenericTest1\n // for when this test fails.\n }\n }\n }\n\n //TODO: If we have a list of raw types, or null/raw types this code can create an empty set of\n //TODO: type arguments (dTypesArg) below. This will then cause an exception.\n //TODO: To test this: make the conditional always true and run the nullness checker on\n //TODO: jdk/nullness/src/java/lang/ref/ReferenceQueue.java\n //TODO: I think this will only happen when we \"fix-up\" the lub type with a wildcard\n //TODO: in which case, the type annotator will add the annotation from the bound of\n //TODO: the type parameter for which the wildcard is an argument and we will NOT have an\n //TODO: unannotated type. That said, we might want to just call that here to ensure\n //TODO: that when this is called in places that are not followed by annotate implicit\n //TODO: the type is fully annotated\n if (!dTypesArg.isEmpty()) {\n addAnnotationsImpl(elements, atypeFactory, adtArg, visited, dTypesArg);\n }\n }\n } else if (alub.getKind() == TypeKind.ARRAY) {\n AnnotatedArrayType aat = (AnnotatedArrayType) alub;\n\n ArrayList<AnnotatedTypeMirror> compTypes = new ArrayList<>();\n for (AnnotatedTypeMirror atype : types) {\n if (atype.getKind() == TypeKind.ARRAY) {\n compTypes.add(((AnnotatedArrayType)atype).getComponentType());\n }\n }\n\n if (aat.getComponentType().getKind() == TypeKind.TYPEVAR) {\n //TODO: TERRIBLE HACK UNTIL WE FIX LUB\n final AnnotatedTypeVariable lubAtv = (AnnotatedTypeVariable) aat.getComponentType();\n final List<AnnotatedTypeVariable> subtypesAsTvs =\n LubTypeVariableAnnotator.getSubtypesAsTypevars(lubAtv, compTypes);\n\n if (subtypesAsTvs != null) {\n LubTypeVariableAnnotator.annotateTypeVarAsLub(lubAtv, subtypesAsTvs, atypeFactory);\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n }\n if (alub != origalub && shouldAnnoOrig) {\n // These two are not the same if origalub is a wildcard or type variable.\n // In that case, add the found annotations to the type variable also.\n // Do not put the annotations inferred for the declared type\n // on a type variable/wildcard.\n // origalub.replaceAnnotations(alub.getAnnotations());\n // Instead, keep track of the annotations that originally\n // existed on the type variable, stored in putOnOrig, and\n // put them back on now.\n origalub.replaceAnnotations(putOnOrig);\n }\n }", "IbeisAnnotation addAnnotation(IbeisImage image, BoundingBox boundingBox) throws IOException, MalformedHttpRequestException, UnsuccessfulHttpRequestException, IndividualNameAlreadyExistsException;", "private void _generateAProf_a(int type, int index, String id) {\n _generateAFaculty_a(type, index, id);\n String ri = _getRelativeName(CS_C_RESEARCH,\n random_.nextInt(RESEARCH_NUM));\n writer_.addProperty(CS_P_RESEARCHINTEREST,\n ri , false);\n if(globalVersionTrigger){\n \twriter_log.addPropertyInstance(id, ontology+\"#researchInterest\", ri, false ); \t\n }\n }", "public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }", "public static JSONArray add_Annotations (String sessionID, String pathOrUid, String classification,\n\t\t\tint layerID, String notes, String geometry, String color) throws Exception {\n\t\tJSONObject data = new JSONObject();\n\t\tString urlS;\n\t\tsessionID = sessionId(sessionID);\n\t\tif (sessionID == pmaCoreLiteSessionID) {\n\t\t\tif (isLite()) {\n\t\t\t\tthrow new Exception(\"PMA.core.lite found running, but doesn't support adding annotations.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"PMA.core.lite not found, and besides; it doesn't support adding annotations.\");\n\t\t\t}\n\t\t}\n\t\turlS = pmaUrl(sessionID) + \"api/json/AddAnnotation\";\n\t\tURL url = new URL(urlS);\n\t\tdata.put(\"sessionID\", sessionID);\n\t\tdata.put(\"pathOrUid\", pathOrUid);\n\t\tdata.put(\"classification\", classification);\n\t\tdata.put(\"layerID\", layerID);\n\t\tdata.put(\"notes\", notes);\n\t\tdata.put(\"geometry\", geometry);\n\t\tdata.put(\"color\", color);\n\n\t\tURLConnection con = url.openConnection();\n\t\tHttpURLConnection http = (HttpURLConnection) con;\n\t\thttp.setRequestMethod(\"POST\"); // PUT is another valid option\n\t\thttp.setDoOutput(true);\n\t\tout.println(con);\n\t\tout.println(http);\n\n\t\tbyte[] out = data.toString().getBytes(StandardCharsets.UTF_8);\n\t\tint length = out.length;\n\t\tSystem.out.println(length);\n\n\t\thttp.setFixedLengthStreamingMode(length);\n\t\thttp.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n\t\thttp.connect();\n\t\ttry (OutputStream os = http.getOutputStream()) {\n\t\t\tos.write(out);\n\t\t\tSystem.out.println(os);\n\t\t}\n\t\treturn null;\n\t}", "public void addAnnotationType(Object annotationType) {\n \t\taddAnnotationType(annotationType, SQUIGGLES);\n \t}", "public void create(Alien a1) {\n\t\t\r\n\t\taliens.add(a1);\r\n\t}" ]
[ "0.59607685", "0.59152013", "0.5639401", "0.5584066", "0.54046214", "0.53921014", "0.53906626", "0.53796905", "0.5335573", "0.5322282", "0.5285849", "0.52733433", "0.52471423", "0.52463436", "0.52425927", "0.52023965", "0.5172924", "0.51601076", "0.51569295", "0.51568663", "0.51351523", "0.5128341", "0.5128341", "0.5122041", "0.51195276", "0.51109767", "0.5093533", "0.50889045", "0.5047394", "0.50449115", "0.50417894", "0.5038291", "0.5034075", "0.5033011", "0.50262994", "0.50135094", "0.4986862", "0.49637085", "0.49628645", "0.49625674", "0.49471983", "0.4945685", "0.494232", "0.49285114", "0.4925573", "0.49121362", "0.49026674", "0.48908547", "0.48813543", "0.48763978", "0.48750803", "0.48725623", "0.48632193", "0.4859011", "0.4843179", "0.48424587", "0.48399422", "0.48395577", "0.4833177", "0.48303995", "0.48250732", "0.48213187", "0.48194057", "0.48128945", "0.48121682", "0.48114443", "0.48006907", "0.47769624", "0.47756281", "0.47753936", "0.4764387", "0.4758451", "0.47552598", "0.4753418", "0.47524023", "0.47488213", "0.4743549", "0.47424632", "0.47416174", "0.46954978", "0.46939582", "0.4685273", "0.46843755", "0.46839818", "0.46804157", "0.46804157", "0.46686316", "0.46537313", "0.46511894", "0.46476072", "0.4626599", "0.46106753", "0.4609524", "0.46049866", "0.46031114", "0.46012074", "0.45992523", "0.45957977", "0.45931834", "0.45879385" ]
0.62628806
0
Add copy right holder annotation triples
public ArrayList<Triple> addCopyRightHolderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){ String LOG_METHOD_NAME = " ArrayList<Triple> addCopyRightHolderTriples(Node, DigitalRightsManagementBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //copy right holder if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderNotAvailable()) && ("true".equals(digitalRightsManagementBean.getCopyRightHolderNotAvailable()))){ //copy right holder not available predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_NOT_AVAILABLE); predicate_value = Node.createLiteral(digitalRightsManagementBean.getCopyRightHolderNotAvailable()); tripleList.add(new Triple(subject, predicate, predicate_value)); //copy right holder finder info if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderFinderInfo())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_FINDER_INFO); predicate_value = Node.createLiteral(digitalRightsManagementBean.getCopyRightHolderFinderInfo()); tripleList.add(new Triple(subject, predicate, predicate_value)); } }else{ //copy right holder not available predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER_NOT_AVAILABLE); predicate_value = Node.createLiteral("false"); tripleList.add(new Triple(subject, predicate, predicate_value)); //copy right holder information predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COPY_RIGHT_HOLDER); StringBuffer copyRightHolderAttributes = new StringBuffer(); //id if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderId())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderId()); copyRightHolderAttributes.append(";"); } //email if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderEmail())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderEmail()); copyRightHolderAttributes.append(";"); } //copy right holder approved boolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderApproved()) && "true".equals(digitalRightsManagementBean.getCopyRightHolderApproved()))?true:false; copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(approved); copyRightHolderAttributes.append(";"); //cell phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderCellPhone())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderCellPhone()); copyRightHolderAttributes.append(";"); } //office phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderOfficePhone())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderOfficePhone()); copyRightHolderAttributes.append(";"); } //FAX if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderFax())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderFax()); copyRightHolderAttributes.append(";"); } //street address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderStreetAddress())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderStreetAddress()); copyRightHolderAttributes.append(";"); } //other address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderOtherAddress())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderOtherAddress()); copyRightHolderAttributes.append(";"); } //city if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderCity())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderCity()); copyRightHolderAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderState())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderState()); copyRightHolderAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getCopyRightHolderZipCode())){ copyRightHolderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE); copyRightHolderAttributes.append("="); copyRightHolderAttributes.append(digitalRightsManagementBean.getCopyRightHolderZipCode()); copyRightHolderAttributes.append(";"); } predicate_value = Node.createLiteral(copyRightHolderAttributes.toString()); tripleList.add(new Triple(subject, predicate, predicate_value)); } }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DSGeneMarker deepCopy();", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "void copyPropertiesToMetas( Object sourceAndTarget, String... blackList );", "private static void addShapeless()\n {}", "public abstract Annotations mo30682c();", "public abstract AnnotationMap mo30683d();", "DataMap getCustomAnnotations();", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "Annotation createAnnotation();", "Annotation createAnnotation();", "void copyMetasToProperties( Object source, Object target, String... blackList );", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "void copyPropertiesToMetas( Object source, Object target, String... blackList );", "public void addCopyElts(Bars bar){\r\n Bars tempBar = new Bars();\r\n for(Iterator<Meters> i = bar.MetersList.iterator(); i.hasNext();){\r\n tempBar.addCopyElts(i.next());\r\n }\r\n addElts(tempBar);\r\n }", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public abstract AnnotationCollector mo30681b(Annotation annotation);", "private static void addAnnotationsImpl(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n Set<AnnotatedTypeMirror> visited,\n ArrayList<AnnotatedTypeMirror> types) {\n\n final AnnotatedTypeMirror origalub = alub;\n boolean shouldAnnoOrig = false;\n Set<AnnotationMirror> putOnOrig = AnnotationUtils.createAnnotationSet();\n\n // get rid of wildcards and type variables\n if (alub.getKind() == TypeKind.WILDCARD) {\n final QualifierHierarchy qualifierHierarchy = atypeFactory.getQualifierHierarchy();\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> lowerBounds = new HashSet<>(qualifierHierarchy.getTopAnnotations().size());\n for (AnnotatedTypeMirror type : types) {\n\n final Set<? extends AnnotationMirror> annos = findEffectiveLowerBoundAnnotations(qualifierHierarchy, type);\n if (lowerBounds.isEmpty()) {\n lowerBounds = annos;\n } else if (!annos.isEmpty()) { //for some reason this algorithm some times adds the lub itself\n //into the list of type which may lead to an empty annos set\n lowerBounds = qualifierHierarchy.greatestLowerBounds(lowerBounds, annos);\n }\n }\n\n ((AnnotatedWildcardType)alub).getSuperBound().replaceAnnotations(lowerBounds);\n\n\n //TODO: AGAIN, ALL LUB CODE SHOULD BE EXTRACTED OUT TO IT'S OWN CLASS OR THE TYPE HIERARCHY\n //TODO: AND REWRITTEN\n boolean allWildcards = true;\n for (int i = 0; i < types.size() && allWildcards; i++) {\n if (types.get(i).getKind() != TypeKind.WILDCARD) {\n allWildcards = false;\n }\n }\n\n if (allWildcards) {\n if (wildcards.contains(alub.getUnderlyingType())) {\n return;\n }\n wildcards.add(alub.getUnderlyingType());\n final List<AnnotatedTypeMirror> upperBounds = new ArrayList<>(types.size());\n for (final AnnotatedTypeMirror type : types) {\n upperBounds.add(((AnnotatedWildcardType)type).getExtendsBound());\n }\n\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n\n annotateAsLub(atypeFactory.getProcessingEnv(), atypeFactory, alub, upperBounds);\n return;\n\n } else {\n //old behavior\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n }\n\n\n // TODO using the getEffective versions copies objects, losing side-effects.\n }\n while (alub.getKind() == TypeKind.TYPEVAR) {\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> glb = glbAll(atypeFactory.getQualifierHierarchy(), types);\n ((AnnotatedTypeVariable)alub).getLowerBound().replaceAnnotations(glb);\n alub = ((AnnotatedTypeVariable)alub).getUpperBound();\n }\n\n if (visited.contains(alub)) {\n return;\n }\n visited.add(alub);\n\n for (int i = 0; i < types.size(); ++i) {\n final AnnotatedTypeMirror typei = types.get(i);\n\n if (!(typei.getAnnotations().isEmpty() ||\n bottomsOnly(elements, atypeFactory, typei.getAnnotations()))) {\n shouldAnnoOrig = true;\n }\n\n if (typei.getKind() == TypeKind.WILDCARD) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedWildcardType wildcard = (AnnotatedWildcardType) typei;\n if (wildcard.getExtendsBound() != null) {\n types.set(i, wildcard.getExtendsBound().deepCopy());\n } else if (wildcard.getSuperBound() != null) {\n types.set(i, wildcard.getSuperBound().deepCopy());\n }\n }\n if (typei.getKind() == TypeKind.TYPEVAR) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedTypeVariable typevar = (AnnotatedTypeVariable) types.get(i);\n if (typevar.getUpperBound() != null) {\n types.set(i, typevar.getUpperBound());\n } else if (typevar.getLowerBound() != null) {\n types.set(i, typevar.getLowerBound());\n }\n }\n }\n\n Collection<? extends AnnotationMirror> unification = Collections.emptySet();\n\n boolean isFirst = true;\n for (AnnotatedTypeMirror type : types) {\n if (type.getAnnotations().isEmpty()) {\n continue;\n }\n // TODO: unification fails with an empty set of annotations.\n // Why are they sometimes empty, e.g. in the FlowNegation test case.\n\n if (isFirst) {\n unification = type.getAnnotations();\n } else {\n unification = atypeFactory.getQualifierHierarchy().leastUpperBounds(unification, type.getAnnotations());\n }\n isFirst = false;\n }\n\n // Remove a previously existing unqualified annotation on the type.\n alub.replaceAnnotations(unification);\n\n if (alub.getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adt = (AnnotatedDeclaredType) alub;\n\n for (int i = 0; i < adt.getTypeArguments().size(); ++i) {\n AnnotatedTypeMirror adtArg = adt.getTypeArguments().get(i);\n ArrayList<AnnotatedTypeMirror> dTypesArg = new ArrayList<>();\n for (int j = 0; j < types.size(); ++j) {\n if (types.get(j).getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adtypej = (AnnotatedDeclaredType) types.get(j);\n if (adtypej.getTypeArguments().size() == adt.getTypeArguments().size()) {\n dTypesArg.add(adtypej.getTypeArguments().get(i));\n } else {\n // TODO: actually not just the number of type arguments should match, but\n // the base types should be equal. See test case framework/GenericTest1\n // for when this test fails.\n }\n }\n }\n\n //TODO: If we have a list of raw types, or null/raw types this code can create an empty set of\n //TODO: type arguments (dTypesArg) below. This will then cause an exception.\n //TODO: To test this: make the conditional always true and run the nullness checker on\n //TODO: jdk/nullness/src/java/lang/ref/ReferenceQueue.java\n //TODO: I think this will only happen when we \"fix-up\" the lub type with a wildcard\n //TODO: in which case, the type annotator will add the annotation from the bound of\n //TODO: the type parameter for which the wildcard is an argument and we will NOT have an\n //TODO: unannotated type. That said, we might want to just call that here to ensure\n //TODO: that when this is called in places that are not followed by annotate implicit\n //TODO: the type is fully annotated\n if (!dTypesArg.isEmpty()) {\n addAnnotationsImpl(elements, atypeFactory, adtArg, visited, dTypesArg);\n }\n }\n } else if (alub.getKind() == TypeKind.ARRAY) {\n AnnotatedArrayType aat = (AnnotatedArrayType) alub;\n\n ArrayList<AnnotatedTypeMirror> compTypes = new ArrayList<>();\n for (AnnotatedTypeMirror atype : types) {\n if (atype.getKind() == TypeKind.ARRAY) {\n compTypes.add(((AnnotatedArrayType)atype).getComponentType());\n }\n }\n\n if (aat.getComponentType().getKind() == TypeKind.TYPEVAR) {\n //TODO: TERRIBLE HACK UNTIL WE FIX LUB\n final AnnotatedTypeVariable lubAtv = (AnnotatedTypeVariable) aat.getComponentType();\n final List<AnnotatedTypeVariable> subtypesAsTvs =\n LubTypeVariableAnnotator.getSubtypesAsTypevars(lubAtv, compTypes);\n\n if (subtypesAsTvs != null) {\n LubTypeVariableAnnotator.annotateTypeVarAsLub(lubAtv, subtypesAsTvs, atypeFactory);\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n }\n if (alub != origalub && shouldAnnoOrig) {\n // These two are not the same if origalub is a wildcard or type variable.\n // In that case, add the found annotations to the type variable also.\n // Do not put the annotations inferred for the declared type\n // on a type variable/wildcard.\n // origalub.replaceAnnotations(alub.getAnnotations());\n // Instead, keep track of the annotations that originally\n // existed on the type variable, stored in putOnOrig, and\n // put them back on now.\n origalub.replaceAnnotations(putOnOrig);\n }\n }", "public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }", "private static void addNextNullnessAnnotation(final Set<NullnessAnnotation> result,\n DetailAST ast) {\n final DetailAST identifier = ast.findFirstToken(TokenTypes.IDENT);\n if (identifier != null) {\n final String annotationName = identifier.getText();\n final NullnessAnnotation annotation = STRING2ANNOTATION.get(annotationName);\n if (annotation != null) {\n result.add(annotation);\n }\n }\n }", "void copyMetasToProperties( Object sourceAndTarget );", "Builder addCopyrightHolder(Person value);", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "public void Duplicate()\n {\n\n tacc2 = tacc.clone();\n px2 = px.clone();\n py2 = py.clone();\n pz2 = pz.clone();\n\n tgyro2 = tgyro.clone();\n\n accx2 = accx.clone();\n accy2 = accy.clone();\n accz2 = accz.clone();\n\n lng2 = lng.clone();\n lat2 = lat.clone();\n }", "public void registerAsOfAttributesAndOperations(AsOfEqualityChecker checker)\r\n {\n for (int i = 0; i < operations.length; i++)\r\n {\r\n checker.pushMapperContainer(new DummyContainer(i));\r\n Operation op = operations[i];\r\n op.registerAsOfAttributesAndOperations(checker);\r\n checker.popMapperContainer();\r\n }\r\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}", "private AnnotationTarget() {\n void var2_-1;\n void var1_-1;\n }", "public void annotationBoundary(AnnotationBoundaryMap arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void annotationBoundary(AnnotationBoundaryMap arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "void copy(ImageMetadata toCopy);", "protected void createUML2MappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/UML2Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"interfaceRealization\",\n\t\t\t \"featureOwner\", \"BehavioredClassifier\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Property\",\n\t\t\t \"stereotype\", \"eng.PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\",\n\t\t\t \"stereotype\", \"eng.InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Interface\",\n\t\t\t \"stereotype\", \"eng.Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"mechanism\",\n\t\t\t \"featureOwner\", \"eng.Interface\",\n\t\t\t \"fromStereotype\", \"true\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"contract\",\n\t\t\t \"umlOppositeReferenceOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"implementingClassifier\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Namespace\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"role\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"partWithPort\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16418() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.lang.Object vc_7130 = (java.lang.Object)null;\n // AssertGenerator add assertion\n org.junit.Assert.assertNull(vc_7130);\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16418__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7130);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16418__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "private void mergeAnnotations(JsonObject targetNode, JsonObject sourceNode, JsonObject tree) {\n JsonArray annotationAttachments = sourceNode.has(\"annotationAttachments\")\n ? sourceNode.getAsJsonArray(\"annotationAttachments\")\n : sourceNode.getAsJsonArray(\"annAttachments\");\n for (JsonElement item : annotationAttachments) {\n JsonObject sourceNodeAttachment = item.getAsJsonObject();\n\n JsonObject matchedTargetNode = findAttachmentNode(targetNode, sourceNodeAttachment);\n\n if (matchedTargetNode != null) {\n if (sourceNodeAttachment.getAsJsonObject(\"expression\").get(\"kind\").getAsString()\n .equals(\"RecordLiteralExpr\") && matchedTargetNode.getAsJsonObject(\"expression\").get(\"kind\")\n .getAsString().equals(\"RecordLiteralExpr\")) {\n\n JsonObject sourceRecord = sourceNodeAttachment.getAsJsonObject(\"expression\");\n JsonObject matchedTargetRecord = matchedTargetNode.getAsJsonObject(\"expression\");\n\n if (sourceNodeAttachment.getAsJsonObject(\"annotationName\").get(\"value\").getAsString()\n .equals(\"MultiResourceInfo\")) {\n JsonArray sourceResourceInformations = sourceRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInformations = matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .get(0).getAsJsonObject().getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n // Get map values of the resourceInformation map in MultiResourceInfo annotation.\n for (JsonElement sourceResourceInfoItem : sourceResourceInformations) {\n JsonObject sourceResourceInfo = sourceResourceInfoItem.getAsJsonObject();\n JsonObject matchedTargetResourceInfo = null;\n for (JsonElement targetResourceInfoItem : targetResourceInformations) {\n JsonObject targetResourceInfo = targetResourceInfoItem.getAsJsonObject();\n if (targetResourceInfo.has(\"key\")\n && targetResourceInfo.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"Literal\")) {\n JsonObject targetResourceInfoKey = targetResourceInfo.getAsJsonObject(\"key\");\n JsonObject sourceResourceInfoKey = sourceResourceInfo.getAsJsonObject(\"key\");\n\n if (sourceResourceInfoKey.get(\"value\").getAsString()\n .equals(targetResourceInfoKey.get(\"value\").getAsString())) {\n matchedTargetResourceInfo = targetResourceInfo;\n }\n }\n }\n\n if (matchedTargetResourceInfo != null) {\n JsonArray sourceResourceInfoOperation = sourceResourceInfo.getAsJsonObject(\"value\")\n .getAsJsonArray(\"keyValuePairs\");\n JsonArray targetResourceInfoOperation = matchedTargetResourceInfo\n .getAsJsonObject(\"value\").getAsJsonArray(\"keyValuePairs\");\n\n for (JsonElement keyValueItem : sourceResourceInfoOperation) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n for (JsonElement matchedKeyValueItem : targetResourceInfoOperation) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n targetResourceInfoOperation\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, firstTokenIndex);\n targetResourceInfoOperation.add(sourceKeyValue);\n } else {\n // Add new key value pair to the annotation record.\n FormattingSourceGen.reconcileWS(sourceKeyValue, targetResourceInfoOperation,\n tree, -1);\n targetResourceInfoOperation.add(sourceKeyValue);\n\n if (targetResourceInfoOperation.size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetResourceInfo\n .getAsJsonObject(\"value\"), tree, \"\", \",\", true, startIndex);\n }\n }\n }\n\n } else {\n FormattingSourceGen.reconcileWS(sourceResourceInfo, targetResourceInformations,\n tree, -1);\n targetResourceInformations.add(sourceResourceInfo);\n }\n }\n\n } else {\n for (JsonElement keyValueItem : sourceRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject sourceKeyValue = keyValueItem.getAsJsonObject();\n int matchedKeyValuePairIndex = 0;\n JsonObject matchedObj = null;\n\n for (JsonElement matchedKeyValueItem :\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")) {\n JsonObject matchedKeyValue = matchedKeyValueItem.getAsJsonObject();\n if ((matchedKeyValue.has(\"key\") &&\n matchedKeyValue.getAsJsonObject(\"key\").get(\"kind\").getAsString()\n .equals(\"SimpleVariableRef\"))) {\n JsonObject matchedKey = matchedKeyValue.getAsJsonObject(\"key\");\n JsonObject sourceKey = sourceKeyValue.getAsJsonObject(\"key\");\n if (matchedKey.getAsJsonObject(\"variableName\").get(\"value\").getAsString()\n .equals(sourceKey.getAsJsonObject(\"variableName\").get(\"value\")\n .getAsString())) {\n matchedObj = matchedKeyValue;\n break;\n }\n }\n matchedKeyValuePairIndex++;\n }\n\n if (matchedObj != null) {\n List<JsonObject> matchedObjWS = FormattingSourceGen.extractWS(matchedObj);\n int firstTokenIndex = matchedObjWS.get(0).get(\"i\").getAsInt();\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\")\n .remove(matchedKeyValuePairIndex);\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, firstTokenIndex);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n } else {\n // Add the new record key value pair.\n FormattingSourceGen.reconcileWS(sourceKeyValue, matchedTargetRecord\n .getAsJsonArray(\"keyValuePairs\"), tree, -1);\n matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").add(sourceKeyValue);\n\n if (matchedTargetRecord.getAsJsonArray(\"keyValuePairs\").size() > 1) {\n // Add a new comma to separate the new key value pair.\n int startIndex = FormattingSourceGen.extractWS(sourceKeyValue).get(0)\n .getAsJsonObject().get(\"i\").getAsInt();\n FormattingSourceGen.addNewWS(matchedTargetRecord, tree, \"\", \",\", true, startIndex);\n }\n }\n }\n }\n }\n } else {\n int startIndex = FormattingSourceGen.getStartPosition(targetNode, \"annAttachments\", -1);\n JsonArray targetAnnAttachments = targetNode.has(\"annotationAttachments\")\n ? targetNode.getAsJsonArray(\"annotationAttachments\")\n : targetNode.getAsJsonArray(\"annAttachments\");\n FormattingSourceGen.reconcileWS(sourceNodeAttachment, targetAnnAttachments, tree, startIndex);\n targetAnnAttachments.add(sourceNodeAttachment);\n }\n\n }\n }", "@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}", "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "public void incompletetestSetEAnnotationsDetails() {\r\n\t\t// any model element should do\r\n\t\tEModelElement modelElement = new Emf().getEcorePackage();\r\n\t\tEAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, \"http://rcpviewer.berlios.de/test/source\");\r\n\t\tMap<String,String> details = new HashMap<String,String>();\r\n\t\tdetails.put(\"foo\", \"bar\");\r\n\t\tdetails.put(\"baz\", \"boz\");\r\n\t\tassertEquals(0, eAnnotation.getDetails().size());\r\n\t\t_emfAnnotations.putAnnotationDetails(eAnnotation, details);\r\n\t\tassertEquals(2, eAnnotation.getDetails().size());\r\n\t}", "void copyPropertiesToMetas( Object sourceAndTarget );", "Set<String> annotations();", "static void setCopying(){isCopying=true;}", "ImmutableList<MappingAssertion> addDistinct(ImmutableList<MappingAssertion> mapping);", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16419() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create random local variable\n java.lang.Object vc_7131 = new java.lang.Object();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16419__12 = // StatementAdderMethod cloned existing statement\n type.equals(vc_7131);\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16419__12);\n org.junit.Assert.assertEquals(expected, actual);\n }", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public interface RawAnnotationSet<V> extends ReadableAnnotationSet<V> {\n\n /**\n * @see NindoCursor#begin()\n */\n void begin();\n\n /**\n * @see NindoCursor#finish()\n */\n void finish();\n\n /**\n * Content has been inserted into the document being annotated\n *\n * @param insertSize\n */\n void insert(int insertSize);\n\n String getInherited(String key);\n\n /**\n * Content has been removed from the document being annotated\n *\n * @param deleteSize\n */\n void delete(int deleteSize);\n\n /**\n */\n void skip(int skipSize);\n\n /**\n * @see ModifiableDocument#startAnnotation(String, String)\n */\n void startAnnotation(String key, V value);\n\n /**\n * @see ModifiableDocument#endAnnotation(String)\n */\n void endAnnotation(String key);\n\n /**\n * @return a live updated set of the known keys\n */\n ReadableStringSet knownKeysLive();\n\n public abstract class AnnotationEvent {\n final int index;\n final String key;\n\n private AnnotationEvent(int index, String key) {\n this.index = index;\n this.key = key;\n }\n\n abstract String getChangeKey();\n abstract String getChangeOldValue();\n abstract String getEndKey();\n }\n\n public final class AnnotationStartEvent extends AnnotationEvent {\n final String value;\n AnnotationStartEvent(int index, String key, String value) {\n super(index, key);\n// assert !Annotations.isLocal(key);\n this.value = value;\n }\n\n @Override\n String getChangeKey() {\n return key;\n }\n\n @Override\n String getChangeOldValue() {\n return value;\n }\n\n @Override\n String getEndKey() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"AnnotationStart \" + key + \"=\" + value + \" @\" + index;\n }\n }\n\n public final class AnnotationEndEvent extends AnnotationEvent {\n AnnotationEndEvent(int index, String key) {\n super(index, key);\n }\n\n\n @Override\n String getChangeKey() {\n return null;\n }\n\n @Override\n String getChangeOldValue() {\n return null;\n }\n\n @Override\n String getEndKey() {\n return key;\n }\n\n @Override\n public String toString() {\n return \"AnnotationEndEvent \" + key + \" @\" + index;\n }\n }\n\n}", "Builder addCopyrightHolder(Person.Builder value);", "private void copyMappings(Pair<Attribute[], Attribute[]> keyAttributes, boolean left) {\n\t\tAttribute[] copyAttributes = left ? keyAttributes.getFirst() : keyAttributes.getSecond();\n\t\tfor (Attribute attribute : copyAttributes) {\n\t\t\tif (attribute.isNominal()) {\n\t\t\t\tNominalMapping newMapping = (NominalMapping) attribute.getMapping().clone();\n\t\t\t\tattribute.setMapping(newMapping);\n\t\t\t}\n\t\t}\n\n\t}", "public void onAnnotationsAdded(Map<Annot, Integer> annots) {\n/* 266 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 273 */ JSONObject obj = prepareAnnotSnapshot(annots, AnnotAction.ADD);\n/* 274 */ takeAnnotSnapshot(obj);\n/* */ \n/* 276 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 277 */ this.mToolManager.getAnnotManager().onLocalChange(\"add\");\n/* */ }\n/* 279 */ } catch (Exception e) {\n/* 280 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }", "Builder copyValues(PropertyBox source);", "Set<? extends Class<? extends Annotation>> annotations();", "@Override\n\tpublic void visit(OWLObjectPropertyAssertionAxiom axiom) {\n\n\t\taddFact(RewritingVocabulary.TRIPLE, //\n\t\t\t\taxiom.getSubject().asOWLNamedIndividual().getIRI(), //\n\t\t\t\taxiom.getProperty().asOWLObjectProperty().getIRI(), //\n\t\t\t\taxiom.getObject().asOWLNamedIndividual().getIRI() //\n\t\t);\n\t}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "public void copyFinals(Automata aut) {\n\t\tthis._acept.addAll(aut._acept);\n\t}", "@Override\n public final void makeAddPrepareForCopy(final Map<String, Object> pAddParam,\n final GoodsLoss pEntity) throws Exception {\n //nothing\n }", "public DirectiveCacheIfc createCopy ();", "void copyValues(AgileItem agileItem);", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16511_failAssert32_literalMutation18178_cf19554_failAssert7() {\n // AssertGenerator generate try/catch block with fail statement\n try {\n // AssertGenerator generate try/catch block with fail statement\n try {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.langx.String\";\n // MethodAssertGenerator build local variable\n Object o_4_0 = expected;\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // StatementAdderOnAssert create null value\n java.util.List<com.squareup.javapoet.AnnotationSpec> vc_7188 = (java.util.List)null;\n // StatementAdderOnAssert create null value\n java.util.Map<java.lang.reflect.Type, com.squareup.javapoet.TypeVariableName> vc_8534 = (java.util.Map)null;\n // StatementAdderOnAssert create null value\n java.lang.reflect.Type vc_8532 = (java.lang.reflect.Type)null;\n // StatementAdderMethod cloned existing statement\n type.get(vc_8532, vc_8534);\n // MethodAssertGenerator build local variable\n Object o_22_0 = vc_7188;\n // StatementAdderMethod cloned existing statement\n type.concatAnnotations(vc_7188);\n org.junit.Assert.fail(\"annotatedTwice_cf16511 should have thrown NullPointerException\");\n } catch (java.lang.NullPointerException eee) {\n }\n org.junit.Assert.fail(\"annotatedTwice_cf16511_failAssert32_literalMutation18178_cf19554 should have thrown IllegalArgumentException\");\n } catch (java.lang.IllegalArgumentException eee) {\n }\n }", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "public static void addPermitedType(GvgInfoAnnotation gvgAnnotation){\r\n\t\tif(GvgUtils.permitedClass == null)\r\n\t\t\tGvgUtils.permitedClass = new ArrayList<String>(); \r\n\t\tfor(Class<?> c : gvgAnnotation.value()){\r\n\t\t\tGvgUtils.permitedClass.add(c.getName());\r\n\t\t\tGvgUtils.permitedClass.add(c.getSimpleName());\r\n\t\t}\r\n\t}", "private static void addShaped()\n {}", "@Override\n void duplicateAttributes(NodeComponent originalNodeComponent,\n\t\t\t boolean forceDuplicate) {\n super.duplicateAttributes(originalNodeComponent, forceDuplicate);\n // TODO : Handle NioImageBuffer if its supported.\n RenderedImage imgs[] = ((ImageComponent3DRetained)\n\t\t\t originalNodeComponent.retained).getImage();\n\n if (imgs != null) {\n\t ImageComponent3DRetained rt = (ImageComponent3DRetained) retained;\n\n\t for (int i=rt.depth-1; i>=0; i--) {\n\t if (imgs[i] != null) {\n\t\t rt.set(i, imgs[i]);\n\t }\n\t }\n }\n }", "private void addAttrAnnotation(List<Iattribute> attributes, String packageName, String className) {\n\n FileSavedAnnotAttr annotAttr;\n\n for (Iattribute itemAttr: attributes) {\n\n for (Iannotation itemAnnot: itemAttr.getAttrAnnotations()) {\n\n if (itemAnnot.isChangen()) {\n\n if (itemAnnot.isParam()) {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), itemAnnot.getValue(), itemAttr.getName(), itemAttr.getType());\n }else {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), null, itemAttr.getName(), itemAttr.getType());\n }\n\n saveAnnotaion.add(annotAttr);\n }\n }\n }\n }", "public void toCommentAnnotation() {\n if (ir != null) { // can't process if attahced ir is missing.\n List<Annotation> notes = this.ir.getAnnotations();\n int index = notes.indexOf(this);\n if (index >= 0) {\n CommentAnnotation comment =\n new CommentAnnotation(this.toString());\n notes.remove(this);\n comment.ir = ir;\n comment.setOneLiner(true);\n notes.add(index, comment);\n }\n }\n }", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public Annotation(String className) {\n\t//\tthis.id = newId();\n\t\tthis.annotatonClassName = className;\n\t\tattributes = new HashSetValuedHashMap<String, String>();\n\t}", "@Override\n public Hints clone() {\n return (Hints) super.clone();\n }", "private NodeTypeHolder(Attributes a)\r\n\t{\r\n\t this.attributes = a;\r\n\t}", "public void pasteData(PrimitiveDeepCopy pasteBuffer) {\n List<PrimitiveData> bufferCopy = new ArrayList<PrimitiveData>();\n Map<Long, Long> newNodeIds = new HashMap<Long, Long>();\n Map<Long, Long> newWayIds = new HashMap<Long, Long>();\n Map<Long, Long> newRelationIds = new HashMap<Long, Long>();\n for (PrimitiveData data: pasteBuffer.getAll()) {\n if (data.isIncomplete()) {\n continue;\n }\n PrimitiveData copy = data.makeCopy();\n copy.clearOsmMetadata();\n if (data instanceof NodeData) {\n newNodeIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof WayData) {\n newWayIds.put(data.getUniqueId(), copy.getUniqueId());\n } else if (data instanceof RelationData) {\n newRelationIds.put(data.getUniqueId(), copy.getUniqueId());\n }\n bufferCopy.add(copy);\n }\n\n // Update references in copied buffer\n for (PrimitiveData data:bufferCopy) {\n if (data instanceof NodeData) {\n NodeData nodeData = (NodeData)data;\n\t\t\t\tnodeData.setEastNorth(nodeData.getEastNorth());\n } else if (data instanceof WayData) {\n List<Long> newNodes = new ArrayList<Long>();\n for (Long oldNodeId: ((WayData)data).getNodes()) {\n Long newNodeId = newNodeIds.get(oldNodeId);\n if (newNodeId != null) {\n newNodes.add(newNodeId);\n }\n }\n ((WayData)data).setNodes(newNodes);\n } else if (data instanceof RelationData) {\n List<RelationMemberData> newMembers = new ArrayList<RelationMemberData>();\n for (RelationMemberData member: ((RelationData)data).getMembers()) {\n OsmPrimitiveType memberType = member.getMemberType();\n Long newId = null;\n switch (memberType) {\n case NODE:\n newId = newNodeIds.get(member.getMemberId());\n break;\n case WAY:\n newId = newWayIds.get(member.getMemberId());\n break;\n case RELATION:\n newId = newRelationIds.get(member.getMemberId());\n break;\n }\n if (newId != null) {\n newMembers.add(new RelationMemberData(member.getRole(), memberType, newId));\n }\n }\n ((RelationData)data).setMembers(newMembers);\n }\n }\n\n /* Now execute the commands to add the duplicated contents of the paste buffer to the map */\n\n Main.main.undoRedo.add(new AddPrimitivesCommand(bufferCopy));\n Main.map.mapView.repaint();\n }", "public void onAnnotationsModified(Map<Annot, Integer> annots, Bundle extra) {\n/* 348 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 354 */ JSONObject result = prepareAnnotSnapshot(annots, AnnotAction.MODIFY, this.mPreModifyAnnotRect, this.mPreModifyPageNum);\n/* 355 */ this.mPreModifyAnnotRect = null;\n/* 356 */ takeAnnotSnapshot(result);\n/* 357 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 358 */ this.mToolManager.getAnnotManager().onLocalChange(\"modify\");\n/* */ }\n/* */ }", "IbeisAnnotation addAnnotation(IbeisImage image, BoundingBox boundingBox) throws IOException, MalformedHttpRequestException, UnsuccessfulHttpRequestException, IndividualNameAlreadyExistsException;", "static void TinkersEdits()\n\t{\n\t\tGameRegistry.addShapelessRecipe(new ItemStack(14276/*Seared Brick Ingot*/,3,2), new ItemStack(1474/*Seared Brick Block*/,1,2));\n\t}", "void copyMetasToProperties( Object source, Object target );", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "@org.junit.Test(timeout = 10000)\n public void annotatedTwice_cf16426() {\n java.lang.String expected = (\"@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" @java.lang.Override java.lang.String\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class);\n java.lang.String actual = type.annotated(NEVER_NULL).annotated(com.squareup.javapoet.AnnotationSpec.builder(java.lang.Override.class).build()).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedTwice_cf16426__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedTwice_cf16426__10);\n org.junit.Assert.assertEquals(expected, actual);\n }", "public void onAnnotationsPreRemove(Map<Annot, Integer> annots) {\n/* 370 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ }", "public void copyData(TrianaType source) { // not needed\n }", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void removeDuplicateAnnotations(List<AnnotationMapperReference> annotationMapperReferences,\n List<Annotation> mapperReferenceAnnotations) {\n ListIterator<AnnotationMapperReference> mapperReferenceIterator = annotationMapperReferences.listIterator();\n\n Set<Type> mapperReferenceAnnotationsTypes = new HashSet<>();\n for ( Annotation annotation : mapperReferenceAnnotations ) {\n mapperReferenceAnnotationsTypes.add( annotation.getType() );\n }\n\n while ( mapperReferenceIterator.hasNext() ) {\n AnnotationMapperReference annotationMapperReference = mapperReferenceIterator.next();\n mapperReferenceIterator.remove();\n\n List<Annotation> qualifiers = extractMissingAnnotations(\n annotationMapperReference.getAnnotations(),\n mapperReferenceAnnotationsTypes\n );\n\n mapperReferenceIterator.add( annotationMapperReference.withNewAnnotations( qualifiers ) );\n }\n }", "public void copy() {\n\n\t}", "private void processAdditionalAnnotation(AnnotationMirror annotation) {\n\t\tstack.push(elementUtils.getElementValuesWithDefaults(annotation));\n\t\tElement element = annotation.getAnnotationType().asElement();\n\t\tprocessElement(element);\n\t\tstack.pop();\n\t}", "@Override\n public void copyProperties(Object dest, Object orig)\n throws IllegalAccessException, InvocationTargetException {\n try {\n // if we have an object in our list, that means we hit some sort of recursion, stop\n // here.\n if (lookingAt.stream().anyMatch(o -> o == dest)) {\n return; // recursion detected\n }\n lookingAt.add(dest);\n super.copyProperties(dest, orig);\n } finally {\n lookingAt.remove(dest);\n }\n }", "public Framework_annotation<T> build_annotation();", "public void addCopyElts(Meters meter){\r\n Meters tempMeter = new Meters();\r\n for(Iterator<NoteToken> i = meter.getElts().iterator(); i.hasNext();){\r\n tempMeter.addElts(i.next());\r\n }\r\n addElts(tempMeter);\r\n }", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "private static void addMapping(TaskDetail... details) {\n for (TaskDetail detail : details) {\n detail.add();\n }\n }", "protected void createCbgeneralcontrolAnnotations() {\n\t\tString source = \"cbgeneralcontrol\";\t\n\t\taddAnnotation\n\t\t (getClarityAbstractObject_ClarityConnection(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"label\", \"Clarity Connection:\",\n\t\t\t \"type\", \"Text\"\n\t\t });\n\t}", "public void addMember(Annotation member);", "@Override\n\tpublic IBitmapTextureAtlasSource deepCopy();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }" ]
[ "0.55577606", "0.5531718", "0.5332012", "0.5302284", "0.52976", "0.52961063", "0.5219405", "0.5215046", "0.5199514", "0.51946557", "0.51890785", "0.51890785", "0.5186944", "0.51432663", "0.51267326", "0.5102184", "0.5093331", "0.509294", "0.50893354", "0.5087385", "0.5074017", "0.50718236", "0.50593513", "0.5054891", "0.50344926", "0.50336945", "0.50022733", "0.5000338", "0.4999405", "0.49894473", "0.49836627", "0.49724463", "0.49724463", "0.49719763", "0.49717984", "0.4935787", "0.49202505", "0.49182048", "0.49152344", "0.4910213", "0.4909664", "0.48769462", "0.48755607", "0.48731396", "0.4871883", "0.48583648", "0.4844532", "0.48335445", "0.48333427", "0.48115003", "0.4809664", "0.48013988", "0.4769483", "0.4764954", "0.47547", "0.4752847", "0.47493866", "0.4744352", "0.4743392", "0.4740942", "0.4732853", "0.47300172", "0.47224104", "0.47183475", "0.47167596", "0.4707519", "0.47067845", "0.47034347", "0.47009405", "0.46838894", "0.46805835", "0.46779373", "0.46707487", "0.4668133", "0.466325", "0.4661833", "0.4658098", "0.46569687", "0.46551144", "0.46520472", "0.4651903", "0.46493426", "0.4648697", "0.46420482", "0.46418536", "0.46398482", "0.4612701", "0.46042234", "0.4603112", "0.46030906", "0.46022493", "0.4597015", "0.4593899", "0.45902413", "0.45878667", "0.4583684", "0.45822668", "0.4578305", "0.45745045", "0.45708013" ]
0.62190616
0
Add publisher annotation triples
public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){ String LOG_METHOD_NAME = " ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //PUBLISHER information predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER); StringBuffer publisherAttributes = new StringBuffer(); //id if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisher()); publisherAttributes.append(";"); } //email if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherEmail()); publisherAttributes.append(";"); } //approved boolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) && "true".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false; publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED); publisherAttributes.append("="); publisherAttributes.append(approved); publisherAttributes.append(";"); //cell phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone()); publisherAttributes.append(";"); } //office phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone()); publisherAttributes.append(";"); } //FAX if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherFax()); publisherAttributes.append(";"); } //street address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress()); publisherAttributes.append(";"); } //other address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress()); publisherAttributes.append(";"); } //city if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherCity()); publisherAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherState()); publisherAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){ publisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE); publisherAttributes.append("="); publisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode()); publisherAttributes.append(";"); } predicate_value = Node.createLiteral(publisherAttributes.toString()); tripleList.add(new Triple(subject, predicate, predicate_value)); }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addPublisher(Person value);", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "public void addPublisher(String value) {\n/* 246 */ addStringToBag(\"publisher\", value);\n/* */ }", "public void setAnnotations(String Annotations) {\n this.Annotations.add(Annotations);\n }", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "Builder addPublisher(String value);", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public static void addAllPossesives(AnnotationSet nps, Document doc, Map<Annotation, ArrayList<Annotation>> posessives)\r\n{\r\n for (Annotation np : nps) {\r\n addPossesives(np, doc, posessives);\r\n }\r\n}", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "public void onAnnotationsAdded(Map<Annot, Integer> annots) {\n/* 266 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 273 */ JSONObject obj = prepareAnnotSnapshot(annots, AnnotAction.ADD);\n/* 274 */ takeAnnotSnapshot(obj);\n/* */ \n/* 276 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 277 */ this.mToolManager.getAnnotManager().onLocalChange(\"add\");\n/* */ }\n/* 279 */ } catch (Exception e) {\n/* 280 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }", "InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);", "Set<String> annotations();", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "public void topicsAdvertisedByPub() {\r\n int index = 1;\r\n System.out.println(\"Topics advertised by this publisher: \");\r\n for(Topic topic: pubTopics){\r\n System.out.println(index + \"->\" + topic + \"\\n\");\r\n index++;\r\n }\r\n }", "Builder addPublishingPrinciples(String value);", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "public CustomAnnotationParanamer() {\n super(new AdaptiveParanamer());\n }", "DataMap getCustomAnnotations();", "public void addAnnotation(Annotation annotation) {\r\n\t\tannotations.add(annotation);\r\n\t}", "public void addOntologies20070510nid3Publisher( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ONTOLOGIES20070510NID3PUBLISHER, value);\r\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "@Override\n public void author(SinkEventAttributes attributes)\n {\n }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "Annotation createAnnotation();", "Annotation createAnnotation();", "void addAnnouncedServers(ArrayList<ServerAddress> servers);", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "public void addAnnotation(String a) {\n applicationIdentifiers.add(a);\n }", "public void addMember(Annotation member);", "protected void addPublisherPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_ProceedingsType_publisher_feature\"),\n getString(\"_UI_PropertyDescriptor_description\", \"_UI_ProceedingsType_publisher_feature\", \"_UI_ProceedingsType_type\"),\n BibtexmlPackage.Literals.PROCEEDINGS_TYPE__PUBLISHER,\n true,\n false,\n false,\n ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n null,\n null));\n }", "private void _generatePublications() {\n for (int i = 0; i < publications_.size(); i++) {\n _generateAPublication( (PublicationInfo) publications_.get(i));\n if(globalVersionTrigger){\n \t PublicationInfo pub = (PublicationInfo) publications_.get(i);\n \t writer_log.addPropertyInstance(pub.id, RDF.type.getURI(), ontology+\"#Publication\", true);\n \t writer_log.addPropertyInstance(pub.id, ontology+\"#name\", pub.name, false);\n \t for(String author : (ArrayList<String>) pub.authors){\n \t\t writer_log.addPropertyInstance(pub.id, ontology+\"#author\", author, true); \n \t }\n }\n }\n }", "@Override\r\n public void publishStart(Publisher publisher) {\n }", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "private void createAnnotationTree() throws JDOMException, IOException, ParseException {\r\n\t\tif(currentResource!=null)\r\n\t\t\tcreateAnnotation();\r\n\r\n\t\tif(rootAnnotations!=null)\r\n\t\t\taddAnnotationReplies(rootAnnotations);\r\n\t\t\r\n\t\t// we add all remaining replies to the root level because we did not\r\n\t\t// find the annotation they reply to.\r\n\t\tfor(Long annotationId : allReplies.keySet()) {\r\n\t\t\tfor(Annotation reply : allReplies.get(annotationId)) {\r\n\t\t\t\trootAnnotations.add(reply);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void addListeners(){\n Conservable[] listenerFromProductTypeRelation = this.productRelation.getListener();\n this.listener[0] = listenerFromProductTypeRelation[0];\n this.listener[1] = listenerFromProductTypeRelation[1];\n this.listener[2] = this.post;\n this.listener[3] = this.productRelation;\n this.listener[4] = this;\n }", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public interface RawAnnotationSet<V> extends ReadableAnnotationSet<V> {\n\n /**\n * @see NindoCursor#begin()\n */\n void begin();\n\n /**\n * @see NindoCursor#finish()\n */\n void finish();\n\n /**\n * Content has been inserted into the document being annotated\n *\n * @param insertSize\n */\n void insert(int insertSize);\n\n String getInherited(String key);\n\n /**\n * Content has been removed from the document being annotated\n *\n * @param deleteSize\n */\n void delete(int deleteSize);\n\n /**\n */\n void skip(int skipSize);\n\n /**\n * @see ModifiableDocument#startAnnotation(String, String)\n */\n void startAnnotation(String key, V value);\n\n /**\n * @see ModifiableDocument#endAnnotation(String)\n */\n void endAnnotation(String key);\n\n /**\n * @return a live updated set of the known keys\n */\n ReadableStringSet knownKeysLive();\n\n public abstract class AnnotationEvent {\n final int index;\n final String key;\n\n private AnnotationEvent(int index, String key) {\n this.index = index;\n this.key = key;\n }\n\n abstract String getChangeKey();\n abstract String getChangeOldValue();\n abstract String getEndKey();\n }\n\n public final class AnnotationStartEvent extends AnnotationEvent {\n final String value;\n AnnotationStartEvent(int index, String key, String value) {\n super(index, key);\n// assert !Annotations.isLocal(key);\n this.value = value;\n }\n\n @Override\n String getChangeKey() {\n return key;\n }\n\n @Override\n String getChangeOldValue() {\n return value;\n }\n\n @Override\n String getEndKey() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"AnnotationStart \" + key + \"=\" + value + \" @\" + index;\n }\n }\n\n public final class AnnotationEndEvent extends AnnotationEvent {\n AnnotationEndEvent(int index, String key) {\n super(index, key);\n }\n\n\n @Override\n String getChangeKey() {\n return null;\n }\n\n @Override\n String getChangeOldValue() {\n return null;\n }\n\n @Override\n String getEndKey() {\n return key;\n }\n\n @Override\n public String toString() {\n return \"AnnotationEndEvent \" + key + \" @\" + index;\n }\n }\n\n}", "interface SegmentedPublisher<Type> extends Publisher<Type> {\n /**\n * Returns the segment for all keys in the publisher.\n * @return segment the data the publisher provides maps to.\n */\n int getSegment();\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"org.abchip.mimo.core.base.invocation\",\n\t\t\t \"settingDelegates\", \"org.abchip.mimo.core.base.setting\"\n\t\t });\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "@Override\n\t\tpublic void annotate(JCas arg0) throws AnalysisEngineProcessException {\n\t\t\t\n\t\t}", "Builder addPublisher(Person.Builder value);", "private void registerTopicPublisherInAutodiscovery(final LLZPublisher publisher, final LLZTopicPublisher topicPublisher) throws LLZException\n {\n // Get the ID of the application\n final long appId = this.instanceContext.getInstanceUniqueId();\n\n // Create the object to store in the auto-discovery\n final LLZAutoDiscTopicEndPoint endPointInfo = new LLZAutoDiscTopicEndPoint(\n LLZAutodiscEndPointType.PUBLISHER,\n topicPublisher.getTopicName(),\n publisher.getPublisherUniqueId(),\n topicPublisher.getTopicUniqueId(),\n appId,\n publisher.getPublisherFullAddress());\n\n this.instanceContext.getAutodiscovery().registerTopicEndPoint(endPointInfo.getType(), endPointInfo);\n\n \n LOGGER.trace(\"Topic publisher register for auto-discovery [{}]\", endPointInfo);\n }", "private void addTopic(TopicMapIF tm, TMObjectMatcherIF matcher,\n Collection topics) {\n if (matcher instanceof TypeSpecification) {\n TypeSpecification m = (TypeSpecification) matcher;\n TopicIF type = getTopic(tm, m.getClassMatcher());\n if (type != null) {\n ClassInstanceIndexIF typeIndex = (ClassInstanceIndexIF)\n tm.getIndex(\"net.ontopia.topicmaps.core.index.ClassInstanceIndexIF\");\n topics.addAll(typeIndex.getTopics(type));\n }\n \n } else {\n TopicIF topic = getTopic(tm, matcher);\n if (topic != null)\n topics.add(topic);\n }\n }", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "protected void createInternalAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/internal\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "private static void addToPublisherTable(String publisher, String bookTitle) {\n\t\tif(ALL_PUBLISHERS.containsKey(publisher))\n\t\t\tALL_PUBLISHERS.get(publisher).add(bookTitle);\n\t\t/*put publisher as a new key in ALL_AUTHORS*/\n\t\telse{\n\t\t\tHashSet<String> bookTitles_list = new HashSet<String>();\n\t\t\tbookTitles_list.add(bookTitle);\n\t\t\tALL_PUBLISHERS.put(publisher, bookTitles_list);\n\t\t}\n\t\t\n\t}", "public void setPublisher(String publisher) {\n\tthis.publisher = publisher;\n}", "protected void addAnnotationForConfig(\r\n\t\t\tList<AnnotationExpr> argAnnotationList,\r\n\t\t\tICodeGenConfig argConfigObject) {\r\n\t\tif (argAnnotationList != null) {\r\n\t\t\tfor (AnnotationExpr annotation : argAnnotationList) {\r\n\t\t\t\tAnnotationConfig annotationConfig = new AnnotationConfig();\r\n\t\t\t\tannotationConfig.setName(annotation.getName().getName());\r\n\t\t\t\tif (annotation instanceof NormalAnnotationExpr) {\r\n\t\t\t\t\tList<MemberValuePair> keyValues = ((NormalAnnotationExpr) annotation)\r\n\t\t\t\t\t\t\t.getPairs();\r\n\t\t\t\t\tif (keyValues != null) {\r\n\t\t\t\t\t\tfor (MemberValuePair valuePair : keyValues) {\r\n\t\t\t\t\t\t\tannotationConfig.addKey(valuePair.getName());\r\n\t\t\t\t\t\t\tannotationConfig.addValue(CodeGenUtils\r\n\t\t\t\t\t\t\t\t\t.clearDoubleQuotation(valuePair.getValue()\r\n\t\t\t\t\t\t\t\t\t\t\t.toString()));\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\targConfigObject.setConfigObject(AnnotationConfig.MAIN_TAG,\r\n\t\t\t\t\t\tannotationConfig);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setAnnotations(Annotations annotations) {\n\t\tthis.annotations = annotations;\n\t}", "public ArrayList<Triple> createDigitalRightsAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createDigitalRightsAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\r\n\t\ttry{\t\t\t\t\t\r\n\t\t\ttripleList.addAll(addAdministrativeAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addCopyRightHolderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addPublisherAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addContributorAnnotationTriples(subject, digitalRightsManagementBean));\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "Builder addPublisher(Organization value);", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@Override\r\n public void insertTripleDistributedBySubject(Triple triple) {\n\r\n }", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "public void addNPTListener(NPTListener l){}", "Builder addPublishingPrinciples(URL value);", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "Set<? extends Class<? extends Annotation>> annotations();", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "public static void main(String[] args) {\n\t\tString list = Annotation.annotateList(1, 16);\n\t\tSystem.out.println(list);\n\t\t\n\t}", "private static void addAnnotationsForNode(SNode node,\n SDocumentGraph graph,\n long startTokenIndex, long endTokenIndex,\n PDFController pdfController, PDFPageHelper pageNumberHelper,\n AtomicInteger eventCounter,\n LinkedHashMap<String, ArrayList<Row>> rowsByAnnotation)\n {\n RelannisNodeFeature feat = (RelannisNodeFeature) node.\n getSFeature(ANNIS_NS, FEAT_RELANNIS_NODE).getValue();\n\n long leftLong = feat.getLeftToken();\n long rightLong = feat.getRightToken();\n\n leftLong = clip(leftLong, startTokenIndex, endTokenIndex);\n rightLong = clip(rightLong, startTokenIndex, endTokenIndex);\n\n int left = (int) (leftLong - startTokenIndex);\n int right = (int) (rightLong - startTokenIndex);\n\n for (SAnnotation anno : node.getSAnnotations())\n {\n ArrayList<Row> rows = rowsByAnnotation.get(anno.getQName());\n if (rows == null)\n {\n // try again with only the name\n rows = rowsByAnnotation.get(anno.getSName());\n }\n if (rows != null)\n {\n // only do something if the annotation was defined before\n\n // 1. give each annotation of each span an own row\n Row r = new Row();\n\n String id = \"event_\" + eventCounter.incrementAndGet();\n GridEvent event = new GridEvent(id, left, right,\n anno.getSValueSTEXT());\n\n // check if the span is a matched node\n SFeature featMatched = node.getSFeature(ANNIS_NS, FEAT_MATCHEDNODE);\n Long match = featMatched == null ? null : featMatched.\n getSValueSNUMERIC();\n event.setMatch(match);\n\n if(node instanceof SSpan)\n {\n // calculate overlapped SToken\n EList<Edge> outEdges = graph.getOutEdges(node.getSId());\n if (outEdges != null)\n {\n for (Edge e : outEdges)\n {\n if (e instanceof SSpanningRelation)\n {\n SSpanningRelation spanRel = (SSpanningRelation) e;\n\n SToken tok = spanRel.getSToken();\n event.getCoveredIDs().add(tok.getSId());\n\n // get the STextualDS of this token and add it to the event\n String textID = getTextID(tok, graph);\n if(textID != null)\n {\n event.setTextID(textID);\n }\n }\n }\n } // end if span has out edges\n }\n else if(node instanceof SToken)\n {\n event.getCoveredIDs().add(node.getSId());\n // get the STextualDS of this token and add it to the event\n String textID = getTextID((SToken) node, graph);\n if(textID != null)\n {\n event.setTextID(textID);\n }\n }\n\n\n // try to get time annotations\n double[] startEndTime = TimeHelper.getOverlappedTime(node);\n if (startEndTime.length == 1)\n {\n event.setStartTime(startEndTime[0]);\n }\n else if (startEndTime.length == 2)\n {\n event.setStartTime(startEndTime[0]);\n event.setEndTime(startEndTime[1]);\n }\n\n r.addEvent(event);\n rows.add(r);\n\n if (pdfController != null && \n pdfController.sizeOfRegisterdPDFViewer() > 0)\n {\n String page = pageNumberHelper.getPageFromAnnotation(node);\n if (page != null)\n {\n event.setPage(page);\n }\n }\n }\n } // end for each annotation of span\n }", "void addPhotos(Subscriber<BaseBean> subscriber, String... photos);", "Builder addPublication(PublicationEvent.Builder value);", "public void add(PhotonDoc doc);", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private NotificationPublisher() {\n subscribers = new ArrayList<>();\n }", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "@Test\n public void publicationAnnotationsShouldNotRepeatWhenValuePresentInMainLabels() throws Exception {\n Interaction interaction = getMockBuilder().createInteractionRandomBinary();\n\n Experiment experiment = interaction.getExperiments().iterator().next();\n Publication publication = experiment.getPublication();\n\n addAnnotation(experiment, publication, \"Proteomics\", createTopic(CvTopic.JOURNAL_MI_REF, CvTopic.JOURNAL));\n addAnnotation(experiment, publication, \"2020\", createTopic(CvTopic.PUBLICATION_YEAR_MI_REF, CvTopic.PUBLICATION_YEAR));\n addAnnotation(experiment, publication, \"Peter, Kath\", createTopic(CvTopic.AUTHOR_LIST_MI_REF, CvTopic.AUTHOR_LIST));\n addAnnotation(experiment, publication, \"Apoptosis dataset\", createTopic(CvTopic.DATASET_MI_REF, CvTopic.DATASET));\n\n getCorePersister().saveOrUpdate(interaction);\n\n // When: I go to the interaction details page\n goToInteractionDetailsPage(interaction.getAc());\n\n // Then: we expect only one row to be shown in the publication annotations - \"journal\", \"author-list\" and \"publication year\" should not be shown as they have their own labels\n assertThat(rowCountForDataTableWithId(\"mainPanels:j_id_18r:publicationAnnotTable:publicationAnnotTable\"), is(equalTo(1)));\n }", "private void addToKmapAndPredMetadata(Collection<Node> nodes) {\n\t\tCollection<Edge> edges = Util.flatmap(Node::getEdges, nodes);\n\t\tUtil.map( translator::edgeToStatement, edges );\n\t}", "public Framework_annotation<T> build_annotation();", "Builder addPublication(PublicationEvent value);", "public static void addOntologies20070510nid3Publisher( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ONTOLOGIES20070510NID3PUBLISHER, value);\r\n\t}", "protected void createUML2MappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/UML2Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"interfaceRealization\",\n\t\t\t \"featureOwner\", \"BehavioredClassifier\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Property\",\n\t\t\t \"stereotype\", \"eng.PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\",\n\t\t\t \"stereotype\", \"eng.InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Interface\",\n\t\t\t \"stereotype\", \"eng.Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"mechanism\",\n\t\t\t \"featureOwner\", \"eng.Interface\",\n\t\t\t \"fromStereotype\", \"true\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"contract\",\n\t\t\t \"umlOppositeReferenceOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"implementingClassifier\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Namespace\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"role\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"partWithPort\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\n\t}", "IPolicySubscriber withSubscriber();", "protected void createMimoentslotconstraintsAnnotations() {\n\t\tString source = \"mimo-ent-slot-constraints\";\n\t\taddAnnotation\n\t\t (getInvoice_InvoiceStatuses(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"statusDate\", \"*NOW\"\n\t\t });\n\t}", "private static void addAnnotationsImpl(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n Set<AnnotatedTypeMirror> visited,\n ArrayList<AnnotatedTypeMirror> types) {\n\n final AnnotatedTypeMirror origalub = alub;\n boolean shouldAnnoOrig = false;\n Set<AnnotationMirror> putOnOrig = AnnotationUtils.createAnnotationSet();\n\n // get rid of wildcards and type variables\n if (alub.getKind() == TypeKind.WILDCARD) {\n final QualifierHierarchy qualifierHierarchy = atypeFactory.getQualifierHierarchy();\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> lowerBounds = new HashSet<>(qualifierHierarchy.getTopAnnotations().size());\n for (AnnotatedTypeMirror type : types) {\n\n final Set<? extends AnnotationMirror> annos = findEffectiveLowerBoundAnnotations(qualifierHierarchy, type);\n if (lowerBounds.isEmpty()) {\n lowerBounds = annos;\n } else if (!annos.isEmpty()) { //for some reason this algorithm some times adds the lub itself\n //into the list of type which may lead to an empty annos set\n lowerBounds = qualifierHierarchy.greatestLowerBounds(lowerBounds, annos);\n }\n }\n\n ((AnnotatedWildcardType)alub).getSuperBound().replaceAnnotations(lowerBounds);\n\n\n //TODO: AGAIN, ALL LUB CODE SHOULD BE EXTRACTED OUT TO IT'S OWN CLASS OR THE TYPE HIERARCHY\n //TODO: AND REWRITTEN\n boolean allWildcards = true;\n for (int i = 0; i < types.size() && allWildcards; i++) {\n if (types.get(i).getKind() != TypeKind.WILDCARD) {\n allWildcards = false;\n }\n }\n\n if (allWildcards) {\n if (wildcards.contains(alub.getUnderlyingType())) {\n return;\n }\n wildcards.add(alub.getUnderlyingType());\n final List<AnnotatedTypeMirror> upperBounds = new ArrayList<>(types.size());\n for (final AnnotatedTypeMirror type : types) {\n upperBounds.add(((AnnotatedWildcardType)type).getExtendsBound());\n }\n\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n\n annotateAsLub(atypeFactory.getProcessingEnv(), atypeFactory, alub, upperBounds);\n return;\n\n } else {\n //old behavior\n alub = ((AnnotatedWildcardType) alub).getExtendsBound();\n }\n\n\n // TODO using the getEffective versions copies objects, losing side-effects.\n }\n while (alub.getKind() == TypeKind.TYPEVAR) {\n //TODO: TYPEVAR handling of LUB doesn't make much sense, as a stop gap for unannotated\n //TODO: LOWER/UPPER bounds we'll glb the annotations and add them to the lower bound\n //TODO: this will not handle component annotations if we have compound types as the\n //TODO: lower bound (which for type variables would only happen on a capture)\n Set<? extends AnnotationMirror> glb = glbAll(atypeFactory.getQualifierHierarchy(), types);\n ((AnnotatedTypeVariable)alub).getLowerBound().replaceAnnotations(glb);\n alub = ((AnnotatedTypeVariable)alub).getUpperBound();\n }\n\n if (visited.contains(alub)) {\n return;\n }\n visited.add(alub);\n\n for (int i = 0; i < types.size(); ++i) {\n final AnnotatedTypeMirror typei = types.get(i);\n\n if (!(typei.getAnnotations().isEmpty() ||\n bottomsOnly(elements, atypeFactory, typei.getAnnotations()))) {\n shouldAnnoOrig = true;\n }\n\n if (typei.getKind() == TypeKind.WILDCARD) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedWildcardType wildcard = (AnnotatedWildcardType) typei;\n if (wildcard.getExtendsBound() != null) {\n types.set(i, wildcard.getExtendsBound().deepCopy());\n } else if (wildcard.getSuperBound() != null) {\n types.set(i, wildcard.getSuperBound().deepCopy());\n }\n }\n if (typei.getKind() == TypeKind.TYPEVAR) {\n putOnOrig.addAll(typei.getAnnotations());\n AnnotatedTypeVariable typevar = (AnnotatedTypeVariable) types.get(i);\n if (typevar.getUpperBound() != null) {\n types.set(i, typevar.getUpperBound());\n } else if (typevar.getLowerBound() != null) {\n types.set(i, typevar.getLowerBound());\n }\n }\n }\n\n Collection<? extends AnnotationMirror> unification = Collections.emptySet();\n\n boolean isFirst = true;\n for (AnnotatedTypeMirror type : types) {\n if (type.getAnnotations().isEmpty()) {\n continue;\n }\n // TODO: unification fails with an empty set of annotations.\n // Why are they sometimes empty, e.g. in the FlowNegation test case.\n\n if (isFirst) {\n unification = type.getAnnotations();\n } else {\n unification = atypeFactory.getQualifierHierarchy().leastUpperBounds(unification, type.getAnnotations());\n }\n isFirst = false;\n }\n\n // Remove a previously existing unqualified annotation on the type.\n alub.replaceAnnotations(unification);\n\n if (alub.getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adt = (AnnotatedDeclaredType) alub;\n\n for (int i = 0; i < adt.getTypeArguments().size(); ++i) {\n AnnotatedTypeMirror adtArg = adt.getTypeArguments().get(i);\n ArrayList<AnnotatedTypeMirror> dTypesArg = new ArrayList<>();\n for (int j = 0; j < types.size(); ++j) {\n if (types.get(j).getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType adtypej = (AnnotatedDeclaredType) types.get(j);\n if (adtypej.getTypeArguments().size() == adt.getTypeArguments().size()) {\n dTypesArg.add(adtypej.getTypeArguments().get(i));\n } else {\n // TODO: actually not just the number of type arguments should match, but\n // the base types should be equal. See test case framework/GenericTest1\n // for when this test fails.\n }\n }\n }\n\n //TODO: If we have a list of raw types, or null/raw types this code can create an empty set of\n //TODO: type arguments (dTypesArg) below. This will then cause an exception.\n //TODO: To test this: make the conditional always true and run the nullness checker on\n //TODO: jdk/nullness/src/java/lang/ref/ReferenceQueue.java\n //TODO: I think this will only happen when we \"fix-up\" the lub type with a wildcard\n //TODO: in which case, the type annotator will add the annotation from the bound of\n //TODO: the type parameter for which the wildcard is an argument and we will NOT have an\n //TODO: unannotated type. That said, we might want to just call that here to ensure\n //TODO: that when this is called in places that are not followed by annotate implicit\n //TODO: the type is fully annotated\n if (!dTypesArg.isEmpty()) {\n addAnnotationsImpl(elements, atypeFactory, adtArg, visited, dTypesArg);\n }\n }\n } else if (alub.getKind() == TypeKind.ARRAY) {\n AnnotatedArrayType aat = (AnnotatedArrayType) alub;\n\n ArrayList<AnnotatedTypeMirror> compTypes = new ArrayList<>();\n for (AnnotatedTypeMirror atype : types) {\n if (atype.getKind() == TypeKind.ARRAY) {\n compTypes.add(((AnnotatedArrayType)atype).getComponentType());\n }\n }\n\n if (aat.getComponentType().getKind() == TypeKind.TYPEVAR) {\n //TODO: TERRIBLE HACK UNTIL WE FIX LUB\n final AnnotatedTypeVariable lubAtv = (AnnotatedTypeVariable) aat.getComponentType();\n final List<AnnotatedTypeVariable> subtypesAsTvs =\n LubTypeVariableAnnotator.getSubtypesAsTypevars(lubAtv, compTypes);\n\n if (subtypesAsTvs != null) {\n LubTypeVariableAnnotator.annotateTypeVarAsLub(lubAtv, subtypesAsTvs, atypeFactory);\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n } else {\n addAnnotationsImpl(elements, atypeFactory, aat.getComponentType(), visited, compTypes);\n }\n }\n if (alub != origalub && shouldAnnoOrig) {\n // These two are not the same if origalub is a wildcard or type variable.\n // In that case, add the found annotations to the type variable also.\n // Do not put the annotations inferred for the declared type\n // on a type variable/wildcard.\n // origalub.replaceAnnotations(alub.getAnnotations());\n // Instead, keep track of the annotations that originally\n // existed on the type variable, stored in putOnOrig, and\n // put them back on now.\n origalub.replaceAnnotations(putOnOrig);\n }\n }", "public static void addPossesives(Annotation np, Document doc, Map<Annotation, ArrayList<Annotation>> posessives)\r\n{\r\n int end = np.getEndOffset();\r\n // get all nps that start within 2 to 5 characters of the end of the np\r\n AnnotationSet nps = doc.getAnnotationSet(Constants.NP);\r\n AnnotationSet candidates = nps.getOverlapping(end + 2, end + 5);\r\n ArrayList<Annotation> coresp = posessives.get(np);\r\n if (coresp == null) {\r\n coresp = new ArrayList<Annotation>();\r\n }\r\n if (candidates == null) {\r\n posessives.put(np, coresp);\r\n return;\r\n }\r\n for (Annotation c : candidates) {\r\n if (c.getStartOffset() >= end + 2) {\r\n String[] wds = FeatureUtils.getWords(doc.getAnnotText(end, c.getStartOffset()));\r\n if (wds != null && wds.length == 1) {\r\n if (wds[0].equalsIgnoreCase(\"of\")) {\r\n // we have x of y -- x is the pos of y\r\n coresp.add(c);\r\n }\r\n if (wds[0].equalsIgnoreCase(\"'s\")) {\r\n // we have y's x -- x is the pos of y\r\n ArrayList<Annotation> coresp2 = posessives.get(c);\r\n if (coresp2 == null) {\r\n coresp2 = new ArrayList<Annotation>();\r\n posessives.put(c, coresp2);\r\n }\r\n coresp2.add(np);\r\n }\r\n }\r\n }\r\n }\r\n posessives.put(np, coresp);\r\n}", "@Pointcut(\"(@annotation(HasRole) || @within(HasRole))\")\n public void annotated() {\n }", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "public abstract AnnotationCollector mo30681b(Annotation annotation);", "protected void sequence_AnnotationElement(ISerializationContext context, AnnotationElement semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "protected void sequence_Annotation(ISerializationContext context, Annotation semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "protected void sequence_APP_AppAnnotation(ISerializationContext context, APP semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "protected void addTransformer(PropertyTransformer transformer)\n {\n transformers.add(transformer);\n }" ]
[ "0.5462578", "0.54573816", "0.5358177", "0.53453803", "0.5317877", "0.53008574", "0.52896214", "0.5252358", "0.5244102", "0.52087206", "0.51413286", "0.5137996", "0.5124588", "0.5123293", "0.51084787", "0.5107771", "0.5052418", "0.50498295", "0.5047276", "0.50451744", "0.50425625", "0.49937218", "0.49519667", "0.49439692", "0.4942871", "0.4925693", "0.4915389", "0.48790058", "0.48781487", "0.48738235", "0.48713326", "0.486521", "0.48618612", "0.48618612", "0.48602158", "0.48567006", "0.48447624", "0.48445255", "0.48439413", "0.48421067", "0.48235074", "0.48177734", "0.48014277", "0.47789678", "0.47789556", "0.4777779", "0.4746186", "0.4739562", "0.47380412", "0.47276425", "0.47266197", "0.4721831", "0.4720855", "0.47179955", "0.47080657", "0.47079515", "0.47055516", "0.47052026", "0.4694745", "0.46831393", "0.46797204", "0.46769738", "0.46753958", "0.46699548", "0.46666798", "0.4665724", "0.46643388", "0.46520215", "0.4647261", "0.4645543", "0.46421367", "0.46387687", "0.4638186", "0.46359783", "0.46355024", "0.46318892", "0.4630048", "0.4616704", "0.461332", "0.46085232", "0.46053258", "0.46045586", "0.45954236", "0.45862028", "0.4583937", "0.45583326", "0.45563394", "0.45537132", "0.4551235", "0.4545872", "0.45457548", "0.45382378", "0.4536425", "0.4535535", "0.45345038", "0.4527761", "0.45231152", "0.45150316", "0.45143557", "0.45058745" ]
0.62333673
0
Add story provider annotation triples
public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){ String LOG_METHOD_NAME = " ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //copy right holder information predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER); StringBuffer storyProviderAttributes = new StringBuffer(); //id if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProvider()); storyProviderAttributes.append(";"); } //email if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail()); storyProviderAttributes.append(";"); } //cell phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone()); storyProviderAttributes.append(";"); } //office phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone()); storyProviderAttributes.append(";"); } //FAX if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax()); storyProviderAttributes.append(";"); } //street address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress()); storyProviderAttributes.append(";"); } //other address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress()); storyProviderAttributes.append(";"); } //city if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity()); storyProviderAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState()); storyProviderAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){ storyProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE); storyProviderAttributes.append("="); storyProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode()); storyProviderAttributes.append(";"); } predicate_value = Node.createLiteral(storyProviderAttributes.toString()); tripleList.add(new Triple(subject, predicate, predicate_value)); }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "Annotation createAnnotation();", "Annotation createAnnotation();", "public void setStories(List<IStoryWriter> stories);", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "public Framework_annotation<T> build_annotation();", "void addFeature(Feature feature);", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "@Test\n public void InternalNLP_annotate_doesAnnotate() {\n ExtractedText extractedText = null;\n\n String fileUri = \"dummyUri\";\n String fileRef = \"src/test/res/Pasta.txt\";\n File file = new File(fileRef);\n try {\n InputStream inputStream = new FileInputStream(file);\n extractedText = mInternalTextProcessor.processFile(inputStream, fileUri, fileRef\n , \"txt\", false);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (FileTypeNotSupportedException e) {\n e.printStackTrace();\n } catch (DocumentNotSupportedException e) {\n e.printStackTrace();\n }\n\n // Annotate\n mInternalNLP.annotate(extractedText);\n\n if(!extractedText.getTitle().isEmpty()) {\n Assert.assertNotNull(extractedText.getTitleAnnotation());\n }\n\n for (Section section: extractedText.getSections()) {\n if(!section.getBody().isEmpty()) {\n Assert.assertNotNull(section.getBodyAnnotation());\n }\n if(!section.getTitle().isEmpty()) {\n Assert.assertNotNull(section.getTitleAnnotation());\n }\n }\n }", "public void onAnnotationsAdded(Map<Annot, Integer> annots) {\n/* 266 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 273 */ JSONObject obj = prepareAnnotSnapshot(annots, AnnotAction.ADD);\n/* 274 */ takeAnnotSnapshot(obj);\n/* */ \n/* 276 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 277 */ this.mToolManager.getAnnotManager().onLocalChange(\"add\");\n/* */ }\n/* 279 */ } catch (Exception e) {\n/* 280 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }", "private void addTopic(TopicMapIF tm, TMObjectMatcherIF matcher,\n Collection topics) {\n if (matcher instanceof TypeSpecification) {\n TypeSpecification m = (TypeSpecification) matcher;\n TopicIF type = getTopic(tm, m.getClassMatcher());\n if (type != null) {\n ClassInstanceIndexIF typeIndex = (ClassInstanceIndexIF)\n tm.getIndex(\"net.ontopia.topicmaps.core.index.ClassInstanceIndexIF\");\n topics.addAll(typeIndex.getTopics(type));\n }\n \n } else {\n TopicIF topic = getTopic(tm, matcher);\n if (topic != null)\n topics.add(topic);\n }\n }", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "Builder addLearningResourceType(Text value);", "private void addEntityViews(TextAnnotation ta, ACEDocumentAnnotation docAnnotation, File file) {\n SpanLabelView entityView =\n new SpanLabelView(ViewNames.MENTION_ACE,\n ACEReader.class.getCanonicalName(), ta, 1.0f, true);\n CoreferenceView corefHeadView =\n new CoreferenceView(ViewNames.COREF_HEAD, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n CoreferenceView corefExtentView =\n new CoreferenceView(ViewNames.COREF_EXTENT, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n\n for (ACEEntity entity : docAnnotation.entityList) {\n List<Constituent> corefMentions = new ArrayList<>(docAnnotation.entityList.size());\n List<Constituent> corefMentionHeads = new ArrayList<>(docAnnotation.entityList.size());\n\n for (ACEEntityMention entityMention : entity.entityMentionList) {\n int extentStartTokenId =\n ta.getTokenIdFromCharacterOffset(entityMention.extentStart);\n int extentEndTokenId = ta.getTokenIdFromCharacterOffset(entityMention.extentEnd);\n\n if (extentStartTokenId < 0 || extentEndTokenId < 0\n || extentStartTokenId > extentEndTokenId + 1) {\n logger.error(\"Incorrect Extent Token Span for mention - \" + entity.id + \" \"\n + entityMention.id);\n continue;\n }\n\n Constituent extentConstituent =\n new Constituent(entity.type, ViewNames.MENTION_ACE, ta, extentStartTokenId, extentEndTokenId + 1);\n extentConstituent.addAttribute(EntityTypeAttribute, entity.type);\n extentConstituent.addAttribute(EntityIDAttribute, entity.id);\n extentConstituent.addAttribute(EntityMentionIDAttribute, entityMention.id);\n extentConstituent.addAttribute(EntityMentionTypeAttribute, entityMention.type);\n extentConstituent.addAttribute(EntityClassAttribute, entity.classEntity);\n\n String entitySubType = (entity.subtype != null) ? entity.subtype : entity.type;\n extentConstituent.addAttribute(EntitySubtypeAttribute, entitySubType);\n\n if (entityMention.ldcType != null) {\n extentConstituent.addAttribute(EntityMentionLDCTypeAttribute, entityMention.ldcType);\n }\n\n // ACE Annotation have character offsets inclusive of start/end.\n // Converting them to a one-after-then-end.\n extentConstituent.addAttribute(EntityHeadStartCharOffset, entityMention.headStart + \"\");\n extentConstituent.addAttribute(EntityHeadEndCharOffset, entityMention.headEnd + 1 + \"\");\n\n entityView.addConstituent(extentConstituent);\n\n Constituent corefExtentConstituent =\n extentConstituent.cloneForNewViewWithDestinationLabel(\n ViewNames.COREF_EXTENT, entity.id);\n corefMentions.add(corefExtentConstituent);\n\n Constituent corefHeadConstituent =\n getEntityHeadForConstituent(corefExtentConstituent, ta,\n ViewNames.COREF_HEAD);\n if (corefHeadConstituent != null) {\n corefMentionHeads.add(corefHeadConstituent);\n }\n }\n\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n Constituent canonicalMention = null;\n double[] scores = new double[corefMentions.size()];\n for (int i = 0; i < corefMentions.size(); i++) {\n Constituent cons = corefMentions.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentions.size() > 0) {\n corefExtentView.addCorefEdges(canonicalMention, corefMentions, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n\n // Processing Coref Head Constituents\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n canonicalMention = null;\n scores = new double[corefMentionHeads.size()];\n for (int i = 0; i < corefMentionHeads.size(); i++) {\n Constituent cons = corefMentionHeads.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentionHeads.size() > 0) {\n corefHeadView.addCorefEdges(canonicalMention, corefMentionHeads, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n }\n\n ta.addView(ViewNames.MENTION_ACE, entityView);\n ta.addView(ViewNames.COREF_HEAD, corefHeadView);\n ta.addView(ViewNames.COREF_EXTENT, corefExtentView);\n }", "void addFeatures(Features features);", "protected void createHeadingsAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed/headings\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Elements\", \"\",\n\t\t\t \"Literals\", \"\",\n\t\t\t \"Vocabularies\", \"\",\n\t\t\t \"Types\", \"\",\n\t\t\t \"Properties\", \"\",\n\t\t\t \"Relations\", \"\",\n\t\t\t \"Predicates\", \"\",\n\t\t\t \"Axioms\", \"\",\n\t\t\t \"Descriptions\", \"\",\n\t\t\t \"Instances\", \"\",\n\t\t\t \"Assertions\", \"\",\n\t\t\t \"Enumerations\", \"\"\n\t\t });\n\t}", "public void addAnnotation(Annotation annotation) {\r\n\t\tannotations.add(annotation);\r\n\t}", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "private void addFeature()\r\n {\r\n MapGeometrySupport mgs = myCurrentGeometryHandler.getGeometry();\r\n MetaDataProvider mdp = myMetaDataHandler.getMetaDataProvider();\r\n TimeSpan span = buildTimeSpan(mdp);\r\n mgs.setTimeSpan(span);\r\n MapDataElement element = new DefaultMapDataElement(myFeatureId, span, myType, mdp, mgs);\r\n Color typeColor = myType.getBasicVisualizationInfo().getTypeColor().equals(DEFAULT_FEATURE_COLOR) ? myFeatureColor\r\n : myType.getBasicVisualizationInfo().getTypeColor();\r\n element.getVisualizationState().setColor(typeColor);\r\n myConsumer.addFeature(element);\r\n myFeatureCount++;\r\n }", "public abstract Annotations mo30682c();", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "protected void createBikeshedAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Abstract-Syntax\"\n\t\t });\n\t\taddAnnotation\n\t\t (elementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (identifiedElementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (importEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (axiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (assertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (predicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (argumentEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (ontologyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (memberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (statementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (termEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (ruleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializableTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationBaseEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializablePropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (entityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (aspectEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (semanticPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (structuredPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (forwardRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (reverseRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (unreifiedRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (namedInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (keyAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRangeRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyCardinalityRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertySelfRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (unaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (binaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (typePredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (sameAsPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (differentFromPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (quotedLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (integerLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (doubleLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (booleanLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (separatorKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (rangeRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (cardinalityRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (importKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t}", "private void checkTextAnnotation(MGraph g, UriRef textAnnotation, String content) {\n Iterator<Triple> selectedTextIterator = g.filter(textAnnotation,\n Properties.ENHANCER_SELECTED_TEXT, null);\n // check if the selected text is added\n assertTrue(selectedTextIterator.hasNext());\n // test if the selected text is part of the TEXT_TO_TEST\n Resource object = selectedTextIterator.next().getObject();\n assertTrue(object instanceof Literal);\n Literal selectedText = (Literal)object;\n object = null;\n assertTrue(content.indexOf(selectedText.getLexicalForm()) >= 0);\n // test if context is added\n //context not present for Zemanta\n// Iterator<Triple> selectionContextIterator = g.filter(textAnnotation,\n// Properties.ENHANCER_SELECTION_CONTEXT, null);\n// assertTrue(selectionContextIterator.hasNext());\n// // test if the selected text is part of the TEXT_TO_TEST\n// object = selectionContextIterator.next().getObject();\n// assertTrue(object instanceof Literal);\n// assertTrue(content.indexOf(((Literal)object).getLexicalForm()) >= 0);\n// object = null;\n //test start/end if present\n Iterator<Triple> startPosIterator = g.filter(textAnnotation,\n ENHANCER_START, null);\n Iterator<Triple> endPosIterator = g.filter(textAnnotation,\n ENHANCER_END, null);\n //start end is optional, but if start is present, that also end needs to be set\n if(startPosIterator.hasNext()){\n Resource resource = startPosIterator.next().getObject();\n //only a single start position is supported\n assertTrue(!startPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral startPosLiteral = (TypedLiteral) resource;\n resource = null;\n int start = LiteralFactory.getInstance().createObject(Integer.class, startPosLiteral);\n startPosLiteral = null;\n //now get the end\n //end must be defined if start is present\n assertTrue(endPosIterator.hasNext());\n resource = endPosIterator.next().getObject();\n //only a single end position is supported\n assertTrue(!endPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral endPosLiteral = (TypedLiteral) resource;\n resource = null;\n int end = LiteralFactory.getInstance().createObject(Integer.class, endPosLiteral);\n endPosLiteral = null;\n //check for equality of the selected text and the text on the selected position in the content\n //System.out.println(\"TA [\"+start+\"|\"+end+\"]\"+selectedText.getLexicalForm()+\"<->\"+content.substring(start,end));\n assertTrue(content.substring(start, end).equals(selectedText.getLexicalForm()));\n } else {\n //if no start position is present, there must also be no end position defined\n assertTrue(!endPosIterator.hasNext());\n }\n }", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "@Override\n\tprotected void addTags(HolderLookup.Provider provider) {\n\t\ttag(ConventionalBiomeTags.DESERT);\n\t\ttag(ConventionalBiomeTags.SAVANNA);\n\t\ttag(ConventionalBiomeTags.FOREST);\n\t\ttag(ConventionalBiomeTags.MUSHROOM);\n\t\ttag(ConventionalBiomeTags.UNDERGROUND);\n\t\ttag(ConventionalBiomeTags.MESA);\n\t\ttag(ConventionalBiomeTags.MOUNTAIN);\n\t\ttag(ConventionalBiomeTags.PLAINS);\n\t\ttag(ConventionalBiomeTags.BEACH);\n\t\ttag(ConventionalBiomeTags.SWAMP);\n\t\ttag(ConventionalBiomeTags.JUNGLE);\n\t\ttag(ConventionalBiomeTags.TREE_CONIFEROUS);\n\t\ttag(ConventionalBiomeTags.CLIMATE_COLD);\n\t\ttag(ConventionalBiomeTags.SNOWY);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_DESERT_BONUS).addTag(ConventionalBiomeTags.DESERT).addTag(ConventionalBiomeTags.SAVANNA);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_FOREST_BONUS).addTag(ConventionalBiomeTags.FOREST);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_FUNGAL_BONUS).addTag(ConventionalBiomeTags.MUSHROOM).addTag(ConventionalBiomeTags.UNDERGROUND);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_MESA_BONUS).addTag(ConventionalBiomeTags.MESA).addTag(ConventionalBiomeTags.SAVANNA);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_MOUNTAIN_BONUS).addTag(ConventionalBiomeTags.MOUNTAIN);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_PLAINS_BONUS).addTag(ConventionalBiomeTags.PLAINS).addTag(ConventionalBiomeTags.BEACH);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_SWAMP_BONUS).addTag(ConventionalBiomeTags.SWAMP).addTag(ConventionalBiomeTags.JUNGLE);\n\t\ttag(BotaniaTags.Biomes.MARIMORPHOSIS_TAIGA_BONUS).addTag(ConventionalBiomeTags.TREE_CONIFEROUS).addTag(ConventionalBiomeTags.CLIMATE_COLD).addTag(ConventionalBiomeTags.SNOWY);\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public static void enableAnnotations(final WebApplication application) {\n\t\tfinal Boolean enabled = application.getMetaData(ANNOTATIONS_ENABLED_KEY);\n\t\tif (!Boolean.TRUE.equals(enabled)) {\n\t\t\ttry {\n\t\t\t\tClass.forName(\"org.wicketstuff.config.MatchingResources\");\n\t\t\t\tClass.forName(\"org.springframework.core.io.support.PathMatchingResourcePatternResolver\");\n\t\t\t} catch (final ClassNotFoundException e) {\n\t\t\t\tthrow new WicketRuntimeException(\"in order to enable wicketstuff-merged-resources' annotation support, \"\n\t\t\t\t\t\t+ \"wicketstuff-annotations and spring-core must be on the path \"\n\t\t\t\t\t\t+ \"(see http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-annotation for details)\");\n\t\t\t}\n\t\t\tapplication.addComponentInstantiationListener(new ContributionInjector());\n\t\t\tapplication.setMetaData(ANNOTATIONS_ENABLED_KEY, Boolean.TRUE);\n\t\t}\n\t}", "DataMap getCustomAnnotations();", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void annotate(Annotation annotation) {\r\n// System.out.println(\"Tokens\");\r\n// for(CoreLabel token : annotation.get(CoreAnnotations.TokensAnnotation.class)){\r\n for(int i=0;i<annotation.get(CoreAnnotations.TokensAnnotation.class).size();i++){\r\n CoreLabel token = annotation.get(CoreAnnotations.TokensAnnotation.class).get(i);\r\n// System.out.println(token.word() +\", tokenIndex = \"+i);\r\n if(token.word().equals(sch)) {\r\n// positions.add(token.index());\r\n token.set(SearchAnnotation.class,i); //index of the token is saved\r\n\r\n }\r\n }\r\n }", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "void drawMyPoint(double x, double y, MapContent map, String nombre) { \n// SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n// builder.setName(\"MyFeatureType\");\n// builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs \n// builder.add(\"location\", Point.class); // add geometry\n//\n// // build the type\n// SimpleFeatureType TYPE = builder.buildFeatureType();\n//\n// // create features using the type defined\n// SimpleFeatureBuilder featureBuilder = new SimpleFeatureBuilder(TYPE);\n// org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory();\n// org.locationtech.jts.geom.Point point = geometryFactory.createPoint(new Coordinate(x, y));\n// //\n// \n// //\n// featureBuilder.add(point);\n// SimpleFeature feature = featureBuilder.buildFeature(\"FeaturePoint\");\n// DefaultFeatureCollection featureCollection = new DefaultFeatureCollection(\"internal\", TYPE);\n// featureCollection.add(feature); // Add feature 1, 2, 3, etc\n//\n// Style style = SLD.createPointStyle(\"Star\", Color.BLUE, Color.BLUE, 0.3f, 200);\n// Layer layer = new FeatureLayer(featureCollection, style);\n// layer.setTitle(\"NewPointLayer\");\n// map.addLayer(layer);\n// //mapFrame.getMapPane().repaint();// MapPane.repaint();\n//}\n\tSimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();\n builder.setName(\"MyFeatureType\"); // \n builder.setCRS( DefaultGeographicCRS.WGS84 ); // set crs // Definimos las caracteristicas de tipo del punto q vamos a crear\n builder.add(\"location\", Point.class); // add geometry //\n org.locationtech.jts.geom.GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(); //objeto q usaremos para crear el punto\n Coordinate coord = new Coordinate( x,y ); //creamos la coordenada con los puntos pasados como parametros\n org.locationtech.jts.geom.Point point = geometryFactory.createPoint(coord); // Creamos el punto geometrico\n\nSimpleFeatureType pointtype = null; //definimos el typo de punto que necesitamos apra agregarlo a la capa del mapa\n try {\n pointtype = DataUtilities.createType(\"POINT\", \"geom:Point,name:String\");\n } catch (SchemaException ex) {\n Logger.getLogger(SelectionLab.class.getName()).log(Level.SEVERE, null, ex);\n }\nSimpleFeatureBuilder featureBuilderPoints = new SimpleFeatureBuilder(pointtype); //creamos el constructor de lo que agregaremos\nDefaultFeatureCollection collectionPoints = new DefaultFeatureCollection(\"internal\", pointtype); //creamos el contenedor donde pondremos lo que agregaremos\n//PointString Point=builder.createPointString(Point);\n//LineString Point = builder.createLineString(Point);\nfeatureBuilderPoints.add(point); //agregamos el punto en el constructor\nSimpleFeature featureLine = featureBuilderPoints.buildFeature(null); \n((DefaultFeatureCollection)collectionPoints).add(featureLine); \nStyle PointStyle = SLD.createPointStyle(\"circle\", Color.RED, Color.RED,(float) 0.5,(float) 10); //definimos el estilo del punto (icono, color contorno, color, opacidad y tamaño)\n//Obserervacion: el dibujo del punto siempre se mantiene del mismo tamaño por mas que se use el zoom\nmap.addLayer(new FeatureLayer(collectionPoints, PointStyle)); //agregamos el punto a la capa\n\nguardarCoordenadas(nombre,x,y);\n}", "public void setAnnotations(String Annotations) {\n this.Annotations.add(Annotations);\n }", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "private static void addAnnotationsForNode(SNode node,\n SDocumentGraph graph,\n long startTokenIndex, long endTokenIndex,\n PDFController pdfController, PDFPageHelper pageNumberHelper,\n AtomicInteger eventCounter,\n LinkedHashMap<String, ArrayList<Row>> rowsByAnnotation)\n {\n RelannisNodeFeature feat = (RelannisNodeFeature) node.\n getSFeature(ANNIS_NS, FEAT_RELANNIS_NODE).getValue();\n\n long leftLong = feat.getLeftToken();\n long rightLong = feat.getRightToken();\n\n leftLong = clip(leftLong, startTokenIndex, endTokenIndex);\n rightLong = clip(rightLong, startTokenIndex, endTokenIndex);\n\n int left = (int) (leftLong - startTokenIndex);\n int right = (int) (rightLong - startTokenIndex);\n\n for (SAnnotation anno : node.getSAnnotations())\n {\n ArrayList<Row> rows = rowsByAnnotation.get(anno.getQName());\n if (rows == null)\n {\n // try again with only the name\n rows = rowsByAnnotation.get(anno.getSName());\n }\n if (rows != null)\n {\n // only do something if the annotation was defined before\n\n // 1. give each annotation of each span an own row\n Row r = new Row();\n\n String id = \"event_\" + eventCounter.incrementAndGet();\n GridEvent event = new GridEvent(id, left, right,\n anno.getSValueSTEXT());\n\n // check if the span is a matched node\n SFeature featMatched = node.getSFeature(ANNIS_NS, FEAT_MATCHEDNODE);\n Long match = featMatched == null ? null : featMatched.\n getSValueSNUMERIC();\n event.setMatch(match);\n\n if(node instanceof SSpan)\n {\n // calculate overlapped SToken\n EList<Edge> outEdges = graph.getOutEdges(node.getSId());\n if (outEdges != null)\n {\n for (Edge e : outEdges)\n {\n if (e instanceof SSpanningRelation)\n {\n SSpanningRelation spanRel = (SSpanningRelation) e;\n\n SToken tok = spanRel.getSToken();\n event.getCoveredIDs().add(tok.getSId());\n\n // get the STextualDS of this token and add it to the event\n String textID = getTextID(tok, graph);\n if(textID != null)\n {\n event.setTextID(textID);\n }\n }\n }\n } // end if span has out edges\n }\n else if(node instanceof SToken)\n {\n event.getCoveredIDs().add(node.getSId());\n // get the STextualDS of this token and add it to the event\n String textID = getTextID((SToken) node, graph);\n if(textID != null)\n {\n event.setTextID(textID);\n }\n }\n\n\n // try to get time annotations\n double[] startEndTime = TimeHelper.getOverlappedTime(node);\n if (startEndTime.length == 1)\n {\n event.setStartTime(startEndTime[0]);\n }\n else if (startEndTime.length == 2)\n {\n event.setStartTime(startEndTime[0]);\n event.setEndTime(startEndTime[1]);\n }\n\n r.addEvent(event);\n rows.add(r);\n\n if (pdfController != null && \n pdfController.sizeOfRegisterdPDFViewer() > 0)\n {\n String page = pageNumberHelper.getPageFromAnnotation(node);\n if (page != null)\n {\n event.setPage(page);\n }\n }\n }\n } // end for each annotation of span\n }", "private void applyMetadataTemplateProjectES_BU_TF() {\n\t\tArrayList<ArtifactType> artifactTypes = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> dependencyTypes = new ArrayList<DependencyType>();\n\t\tArrayList<TaskType> taskTypes = new ArrayList<TaskType>();\n\t\tArrayList<RuleType> ruleTypes = new ArrayList<RuleType>();\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArtifactType> u = new ArrayList<ArtifactType>();\n\t\tArrayList<ArtifactType> p = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> d = new ArrayList<DependencyType>();\n\t\tString description = \"\";\n\t\t\n\t\tArtifactType ATstart = new ArtifactType(\"Start\",\".start\");\n\t\tArtifactType ATstory = new ArtifactType(\"Story\",\".txt\");\n\t\tArtifactType ATstoryTest = new ArtifactType(\"StoryTest\",\".java\");\n\t\tArtifactType ATinterface = new ArtifactType(\"Interface\",\".java\");\n\t\tArtifactType ATdomainClass = new ArtifactType(\"DomainClass\",\".java\");\n\t\tArtifactType ATdomainTest = new ArtifactType(\"DomainTest\",\".java\");\n\t\tartifactTypes.add(ATstart);\n\t\tartifactTypes.add(ATstory);\n\t\tartifactTypes.add(ATstoryTest);\n\t\tartifactTypes.add(ATinterface);\t\t\n\t\tartifactTypes.add(ATdomainClass);\n\t\tartifactTypes.add(ATdomainTest);\n\n\t\tu.add(ATstart);\n\t\tp.add(ATstory);\n\t\tDependencyType DTstory = new DependencyType(ATstart,ATstory,\"DTstory\");\n\t\td.add(DTstory);\n\t\tdependencyTypes.add(DTstory);\n\t\tdescription = \"Create a story for the project\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATstory);\n\t\tp.add(ATdomainTest);\n\t\tDependencyType DTdomainTest = new DependencyType(ATstory,ATdomainTest,\"DTdomainTest\");\n\t\td.add(DTdomainTest);\n\t\tDTdomainTest.setMultiplicity(0);\n\t\tdependencyTypes.add(DTdomainTest);\n\t\tdescription = \"Create a domain test for the story\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATdomainClass);\n\t\tDependencyType DTdomainClass = new DependencyType(ATdomainTest,ATdomainClass,\"DTdomainClass\");\n\t\td.add(DTdomainClass);\n\t\tdependencyTypes.add(DTdomainClass);\n\t\tdescription = \"Create a domain class for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATinterface);\n\t \tDependencyType DTinterface = new DependencyType(ATdomainTest,ATinterface,\"DTinterface\");\n\t\td.add(DTinterface);\n\t\tdependencyTypes.add(DTinterface);\n\t\tdescription = \"Create a interface for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATinterface);\n\t p.add(ATstoryTest);\n\t\tDependencyType DTstoryTest = new DependencyType(ATinterface,ATstoryTest,\"DTstoryTest\");\n\t\td.add(DTstoryTest);\n\t\tdependencyTypes.add(DTstoryTest);\n\t\tdescription = \"Create a story test for the interface\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tstatus.setArtifactTypes(artifactTypes);\n\t\tstatus.setDependencyTypes(dependencyTypes);\n\t\tstatus.setTaskTypes(taskTypes);\t\n\t\tstatus.setRuleTypes(ruleTypes);\n\t\tstatus.setRules(rules);\n\t}", "public Framework_annotation<T> build_normal();", "public CustomAnnotationParanamer() {\n super(new AdaptiveParanamer());\n }", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"invocationDelegates\", \"org.abchip.mimo.core.base.invocation\",\n\t\t\t \"settingDelegates\", \"org.abchip.mimo.core.base.setting\"\n\t\t });\n\t}", "Set<String> annotations();", "protected void createMimoentformatAnnotations() {\n\t\tString source = \"mimo-ent-format\";\n\t\taddAnnotation\n\t\t (getPartyQual_QualificationDesc(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_PartyQualTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQualType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyResume_ResumeText(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"255\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Rating(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillLevel(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_YearsExperience(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"precision\", \"20\",\n\t\t\t \"scale\", \"0\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_PerfRatingTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfRatingType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_ManagerRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_PerfReviewItemTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItemType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Comments(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"comment\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_ApprovalStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"60\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Reason(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_ResponsibilityTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getResponsibilityType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_SkillTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getSkillType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_TrainingClassTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"length\", \"20\"\n\t\t });\n\t\taddAnnotation\n\t\t (getTrainingClassType_Description(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"type\", \"description\"\n\t\t });\n\t}", "public static void addAllPossesives(AnnotationSet nps, Document doc, Map<Annotation, ArrayList<Annotation>> posessives)\r\n{\r\n for (Annotation np : nps) {\r\n addPossesives(np, doc, posessives);\r\n }\r\n}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "public void saveFeatureMetadata();", "@Test\n public void testGenerateWikiAnnotations() throws Exception {\n final Node n = new Node();\n n.setId(\"u9dc7\");\n\n final User u = new User();\n u.setId(\"9m8ky\");\n u.setFamily_name(\"Metsger\");\n u.setGiven_name(\"Elliot\");\n u.setFull_name(\"Elliot Metsger\");\n\n final Wiki w = new Wiki();\n w.setId(\"hgkfe\");\n w.setUser(u);\n w.setDate_modified(\"2016-09-15T14:19:14.417000\");\n w.setContent_type(\"text/markdown\");\n w.setNode(n.getId());\n w.setKind(\"file\");\n w.setPath(\"/hgkfe\");\n w.setMaterialized_path(\"/hgkfe\");\n w.setSize(224);\n w.setName(\"home\");\n final HashMap<String, String> links = new HashMap<>();\n links.put(\"download\", \"https://test-api.osf.io/v2/wikis/hgkfe/content/\");\n links.put(\"info\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n links.put(\"self\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n w.setLinks(links);\n final HashMap<String, String> extra = new HashMap<>();\n extra.put(\"version\", \"3\");\n w.setExtra(extra);\n\n final Registration r = new Registration();\n r.setId(\"registration\");\n r.setWikis(Collections.singletonList(w));\n\n final ManagedGraph managedGraph = new ManagedGraph(ontologyManager);\n final AnnotationsProcessor ap = new AnnotationsProcessor(managedGraph);\n\n // Process the OWL annotations on the Registration, its super classes, and its fields\n final Map<String, Individual> createdIndividuals = ap.process(r);\n\n // Write the individuals to stderr for debugging\n// writeModel(onlyIndividuals(ontologyManager.getOntModel()));\n }", "FeatureConcept createFeatureConcept();", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "private Collection<ConceptLabel> createConceptLabels(Concept concept, int offset) {\n\t\t//int offset = concept.getOffset();\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\t\t// add annotation the new way\n\t\tfor(Annotation a: concept.getAnnotations()){\n\t\t\tConceptLabel lbl = new ConceptLabel(a.getText(), offset + a.getOffset());\n\t\t\tlbl.setConcept(concept);\n\t\t\tlbl.setReportPanel(reportInterface);\n\t\t\tlbl.setColor(Color.black);\n\t\t\tlabels.add(lbl);\n\t\t}\n\t\t\n\t\t\n\t\treturn labels;\n\t}", "public AnnotationPainter(ISourceViewer sourceViewer, IAnnotationAccess access) {\n \t\tfSourceViewer= sourceViewer;\n \t\tfAnnotationAccess= access;\n \t\tfTextWidget= sourceViewer.getTextWidget();\n \n \t\t// default drawing strategies: squiggles were the only decoration style before version 3.0\n \t\tfRegisteredDrawingStrategies.put(SQUIGGLES, fgSquigglyDrawer);\n \t}", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\n\t\taddAnnotation\n\t\t (getJClass_Operations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"simple\"\n\t\t });\n\t}", "Builder addLearningResourceType(String value);", "public void addMember(Annotation member);", "public void addFeatures(IFeature feature);", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "void addFeature(int index, Feature feature);", "Builder addAccessibilityFeature(Text value);", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "public abstract AnnotationMap mo30683d();", "@Override\n public boolean addAnnotations(final IEditorPart editorPart, final IStackFrame frame) {\n if (editorPart instanceof RobotFormEditor) {\n final RobotFormEditor editor = (RobotFormEditor) editorPart;\n editor.activateSourcePage();\n }\n return false; // no annotation added; eclipse will add standard\n }", "public AnnotateClueRunWithURLs() {\r\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "public interface IStoryboardWriter extends IStoryboard, IOpenScenarioElementWriter {\n\n // Setters for all attributes\n\n /**\n * From OpenSCENARIO class model specification: Initialization of the storyboard instance. Initial\n * conditions are set and initial actions are applied to entities.\n *\n * @param init value of model property init\n */\n public void setInit(IInitWriter init);\n /**\n * From OpenSCENARIO class model specification: List of stories defined in a story board.\n *\n * @param stories value of model property stories\n */\n public void setStories(List<IStoryWriter> stories);\n /**\n * From OpenSCENARIO class model specification: Trigger to stop the Storyboard instance.\n *\n * @param stopTrigger value of model property stopTrigger\n */\n public void setStopTrigger(ITriggerWriter stopTrigger);\n\n // children\n /**\n * From OpenSCENARIO class model specification: Initialization of the storyboard instance. Initial\n * conditions are set and initial actions are applied to entities.\n *\n * @return a writer for model property init\n */\n public IInitWriter getWriterInit();\n /**\n * From OpenSCENARIO class model specification: Trigger to stop the Storyboard instance.\n *\n * @return a writer for model property stopTrigger\n */\n public ITriggerWriter getWriterStopTrigger();\n\n /**\n * From OpenSCENARIO class model specification: List of stories defined in a story board.\n *\n * @return a list of writers for model property stories\n */\n public List<IStoryWriter> getWriterStories();\n}", "public abstract void addFeatures(Collection<Integer> indices,Predicate pred,Word arg,Integer offset,boolean allWords);", "protected void createUML2MappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/UML2Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"interfaceRealization\",\n\t\t\t \"featureOwner\", \"BehavioredClassifier\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Property\",\n\t\t\t \"stereotype\", \"eng.PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\",\n\t\t\t \"stereotype\", \"eng.InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Interface\",\n\t\t\t \"stereotype\", \"eng.Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"mechanism\",\n\t\t\t \"featureOwner\", \"eng.Interface\",\n\t\t\t \"fromStereotype\", \"true\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"contract\",\n\t\t\t \"umlOppositeReferenceOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"implementingClassifier\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Namespace\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"role\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"partWithPort\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\n\t}", "protected void addPoint( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n \t\tmergePoint( feature, 0 );\n \t}", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "protected void createInputAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/input\";\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getPrint_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t}", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\n\t\taddAnnotation\n\t\t (controlEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"control\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Midi(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"midi\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Background(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"background\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Centered(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"centered\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Color(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"color\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_H(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"h\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Inverted(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_InvertedY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"inverted_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_LocalOff(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"local_off\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Number(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberX(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_NumberY(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"number_y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_OscCs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"osc_cs\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Outline(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"outline\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Response(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"response\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Scalet(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"scalet\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Seconds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"seconds\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Size(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"size\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Text(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"text\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_W(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"w\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_X(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"x\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getControl_Y(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"y\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (layoutEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"layout\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Tabpage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"tabpage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Mode(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"mode\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Orientation(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"orientation\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getLayout_Version(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"version\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (midiEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"midi\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Channel(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"channel\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data1(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data1\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2f(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2f\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Data2t(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"data2t\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Type(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"type\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getMidi_Var(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"var\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (tabpageEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"tabpage\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Control(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"control\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTabpage_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (topEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"TOP\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getTOP_Layout(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"layout\"\n\t\t });\n\t}", "void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);", "public void addProvider(TimelineProviderPanel panel) {\n int providers = getProviderCount();\n providersPanel.setPreferredSize(new Dimension(\n providersPanel.getWidth(),\n (int) ((providers + 1) * panel.getPreferredSize().getHeight())));\n providersPanel.add(panel);\n providersPanel.validate();\n\n setPreferredSize(new Dimension(\n (int) (this.getPreferredSize().getWidth()),\n (int) (this.getPreferredSize().getHeight() + panel.getPreferredSize().getHeight())));\n validate();\n }", "void inject(TravelsProvider provider);", "protected void addFeature( SimpleFeature feature, PointMergeOperations mergeOps )\n \t{\n if( isPoint( feature ) )\n {\n \taddPoint( feature, mergeOps );\n }\n else if( isPolyline( feature ) )\n {\n \taddPolyline( feature, mergeOps );\n }\n else\n {\n \t// We do not handle polygons.\n \tSystem.err.printf( \"Unknown feature type (%s)%n\", feature.getType().getGeometryDescriptor().getType().getBinding() );\n }\n \t}", "@Test\n public void testAttribution() throws Exception {\n Document doc = getAsDOM(\"wms?service=WMS&request=getCapabilities&version=1.3.0\", true);\n assertXpathEvaluatesTo(\"0\", \"count(//wms:Attribution)\", doc);\n // Add attribution to one of the layers\n LayerInfo points = getCatalog().getLayerByName(POINTS.getLocalPart());\n AttributionInfo attr = points.getAttribution();\n attr.setTitle(\"Point Provider\");\n getCatalog().save(points);\n doc = getAsDOM(\"wms?service=WMS&request=getCapabilities&version=1.3.0\", true);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution)\", doc);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution/wms:Title)\", doc);\n // Add href to same layer\n attr = points.getAttribution();\n attr.setHref(\"http://example.com/points/provider\");\n getCatalog().save(points);\n doc = getAsDOM(\"wms?service=WMS&request=getCapabilities&version=1.3.0\", true);\n // print(doc);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution)\", doc);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution/wms:Title)\", doc);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution/wms:OnlineResource)\", doc);\n // Add logo to same layer\n attr = points.getAttribution();\n attr.setLogoURL(\"http://example.com/points/logo\");\n attr.setLogoType(\"image/logo\");\n attr.setLogoHeight(50);\n attr.setLogoWidth(50);\n getCatalog().save(points);\n doc = getAsDOM(\"wms?service=WMS&request=getCapabilities&version=1.3.0\", true);\n // print(doc);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution)\", doc);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution/wms:Title)\", doc);\n assertXpathEvaluatesTo(\"1\", \"count(//wms:Attribution/wms:LogoURL)\", doc);\n }", "public abstract AnnotationCollector mo30681b(Annotation annotation);", "public void register(IPartType partType, Collection<IAspect> aspects);", "public void addExample(String classKey, Roi roi, String type) ;", "@ParameterizedTest\n @ArgumentsSource(TestForestProvider.class)\n public void testMultipleAttributions(RandomCutForest forest) {\n int hardPass=0;\n int causal=0;\n double [] point ={6.0,0.0,0.0};\n DiVector result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.2);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.getHighLowSum(1) + result.getHighLowSum(2) < 1.0);\n assertTrue(result.high[0] > forest.getAnomalyScore(point)/3);\n if (result.high[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n // the last line states that first coordinate was high and was a majority contributor to the score\n // the previous test states that the contribution is twice the average of the 12 possible contributors.\n // these tests all subparts of the score at once\n\n point=new double [] {-6.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.getHighLowSum()>1.0);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] > forest.getAnomalyScore(point)/3);\n if (result.low[0] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > forest.getAnomalyScore(point)/3);\n if (result.high[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,-6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.low[1] > forest.getAnomalyScore(point)/3);\n if (result.low[1] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n point=new double [] {0.0,0.0,6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.low[2] < 0.5);\n assertTrue(result.high[2] > forest.getAnomalyScore(point)/3);\n if (result.high[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n point=new double [] {0.0,0.0,-6.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.getHighLowSum(0) < 0.5) ++hardPass;\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n assertTrue(result.high[2] < 0.5);\n assertTrue(result.low[2] > forest.getAnomalyScore(point)/3);\n if (result.low[2] > 0.5 * forest.getAnomalyScore(point)) ++causal;\n\n\n assertTrue(causal>=5); // maximum is 6; there can be skew in one direction\n\n point=new double [] {-3.0,0.0,0.0};\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0] < 0.5);\n if (result.getHighLowSum(1) < 0.5) ++hardPass;\n if (result.getHighLowSum(2) < 0.5) ++hardPass;\n assertTrue(result.low[0] >\n forest.getAnomalyScore(point)/3);\n\n /* For multiple causes, the relationship of scores only hold for larger\n * distances.\n */\n\n point=new double [] {-3.0,6.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n if (result.low[0] > 0.5) ++hardPass;\n assertTrue(result.high[0] < 0.5);\n assertTrue(result.low[1] < 0.5);\n assertTrue(result.high[1] > 0.5);\n if (result.high[1]>0.9) ++hardPass;\n assertTrue(result.getHighLowSum(2)< 0.5);\n assertTrue(result.high[1]+result.low[0]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {6.0,-3.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.low[0] < 0.5);\n assertTrue(result.high[0] > 0.5);\n if (result.high[0]>0.9) ++hardPass;\n if (result.low[1] > 0.5) ++hardPass;\n assertTrue(result.high[1] < 0.5);\n assertTrue(result.getHighLowSum(2) < 0.5);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n\n point=new double [] {20.0,-10.0,0.0};\n assertTrue(result.getHighLowSum()>1.0);\n result = forest.getAnomalyAttribution(point);\n assertTrue(result.high[0]+result.low[1]>\n 0.8*forest.getAnomalyScore(point));\n if (result.high[0]>1.8*result.low[1]) ++hardPass;\n if (result.low[1]>result.high[0]/2.2) ++hardPass;\n\n assertTrue(hardPass>=15); //maximum is 20\n }", "private void createAnnotationTree() throws JDOMException, IOException, ParseException {\r\n\t\tif(currentResource!=null)\r\n\t\t\tcreateAnnotation();\r\n\r\n\t\tif(rootAnnotations!=null)\r\n\t\t\taddAnnotationReplies(rootAnnotations);\r\n\t\t\r\n\t\t// we add all remaining replies to the root level because we did not\r\n\t\t// find the annotation they reply to.\r\n\t\tfor(Long annotationId : allReplies.keySet()) {\r\n\t\t\tfor(Annotation reply : allReplies.get(annotationId)) {\r\n\t\t\t\trootAnnotations.add(reply);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldReturnBeforeAndAfterStoryAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n boolean embeddedStory = false;\n when(steps1.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore2));\n when(steps1.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter1));\n when(steps2.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter2));\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> beforeSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.BEFORE,\n embeddedStory);\n List<Step> afterSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.AFTER,\n embeddedStory);\n\n // Then all before and after steps should be added\n ensureThat(beforeSteps, equalTo(asList(stepBefore1, stepBefore2)));\n ensureThat(afterSteps, equalTo(asList(stepAfter1, stepAfter2)));\n }" ]
[ "0.5333069", "0.5329594", "0.53247607", "0.52055013", "0.519442", "0.519442", "0.5179379", "0.513816", "0.51253545", "0.51008904", "0.5053742", "0.50413835", "0.5039161", "0.5035918", "0.5023811", "0.4987378", "0.49850968", "0.4970854", "0.49699342", "0.4955999", "0.4932295", "0.4906666", "0.49065632", "0.4901702", "0.49007994", "0.48841095", "0.4878912", "0.48704252", "0.48471376", "0.48469588", "0.48350352", "0.48317054", "0.48274273", "0.4795205", "0.4792159", "0.47920483", "0.47890338", "0.47732735", "0.4771587", "0.47714767", "0.4762594", "0.4759052", "0.4748533", "0.4748188", "0.47477412", "0.4745605", "0.4740004", "0.47332045", "0.47307813", "0.4709895", "0.47092593", "0.46986824", "0.4692255", "0.46854508", "0.46779743", "0.46771395", "0.46766806", "0.46705416", "0.46661967", "0.4665857", "0.46618387", "0.46593317", "0.46583712", "0.4650871", "0.46372607", "0.46293464", "0.4629096", "0.46288416", "0.46286947", "0.46200573", "0.46158186", "0.46115565", "0.4608235", "0.4600784", "0.4594715", "0.4590903", "0.45762762", "0.45748267", "0.45734078", "0.45734078", "0.4571028", "0.45706543", "0.45618898", "0.45579806", "0.45567405", "0.45549223", "0.45535496", "0.454108", "0.45403734", "0.4530322", "0.45207366", "0.4519036", "0.45148394", "0.45092687", "0.45042765", "0.4499648", "0.44945735", "0.44793496", "0.44675267", "0.445366" ]
0.59519136
0
Add contributor annotation triples
public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){ String LOG_METHOD_NAME = " ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //copy right holder information predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR); StringBuffer contributorAttributes = new StringBuffer(); //id if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributor()); contributorAttributes.append(";"); } //email if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorEmail()); contributorAttributes.append(";"); } //approved boolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) && "true".equals(digitalRightsManagementBean.getContributorApproved()))?true:false; contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED); contributorAttributes.append("="); contributorAttributes.append(approved); contributorAttributes.append(";"); //cell phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone()); contributorAttributes.append(";"); } //office phone if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone()); contributorAttributes.append(";"); } //FAX if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorFax()); contributorAttributes.append(";"); } //street address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress()); contributorAttributes.append(";"); } //other address if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress()); contributorAttributes.append(";"); } //city if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorCity()); contributorAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorState()); contributorAttributes.append(";"); } //state if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorZipCode()); contributorAttributes.append(";"); } //tribal affiliation if(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){ contributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION); contributorAttributes.append("="); contributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation()); contributorAttributes.append(";"); } predicate_value = Node.createLiteral(contributorAttributes.toString()); tripleList.add(new Triple(subject, predicate, predicate_value)); }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addContributor(Person value);", "public void addContributor(String value) {\n/* 65 */ addStringToBag(\"contributor\", value);\n/* */ }", "void addContributor(Long userId, Long contributorId);", "Builder addContributor(String value);", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "Builder addContributor(Organization value);", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "Builder addContributor(Organization.Builder value);", "protected void createUML2MappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/UML2Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"interfaceRealization\",\n\t\t\t \"featureOwner\", \"BehavioredClassifier\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Property\",\n\t\t\t \"stereotype\", \"eng.PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Package\",\n\t\t\t \"stereotype\", \"eng.InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"packagedElement\",\n\t\t\t \"featureOwner\", \"Package\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Interface\",\n\t\t\t \"stereotype\", \"eng.Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"mechanism\",\n\t\t\t \"featureOwner\", \"eng.Interface\",\n\t\t\t \"fromStereotype\", \"true\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"contract\",\n\t\t\t \"umlOppositeReferenceOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"implementingClassifier\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"InterfaceRealization\",\n\t\t\t \"stereotype\", \"eng.ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"contract\",\n\t\t\t \"featureOwner\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Usage\",\n\t\t\t \"stereotype\", \"eng.RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\",\n\t\t\t \"stereotype\", \"eng.SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"umlOppositeReference\", \"supplier\",\n\t\t\t \"umlOppositeReferenceOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Namespace\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"clientDependency\",\n\t\t\t \"featureOwner\", \"NamedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"metaclass\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"supplier\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"client\",\n\t\t\t \"featureOwner\", \"Dependency\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"role\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"featureName\", \"partWithPort\",\n\t\t\t \"featureOwner\", \"ConnectorEnd\"\n\t\t });\n\t}", "Builder addContributor(Person.Builder value);", "@Override\n public void visit(Tree.AnnotationList al) {\n }", "@Test\r\n\tpublic void testAddContributorTwice() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tassertTrue(cm.addContributor(\"Max\"));\r\n\t\tassertFalse(cm.addContributor(\"Max\"));\r\n\t}", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "@Override\n public void setContributorURI(String arg0)\n {\n \n }", "public void addMember(Annotation member);", "protected void createOrgAnnotations() {\n\t\tString source = \"org.abchip.mimo.core.base.invocation\";\n\t\taddAnnotation\n\t\t (invoiceEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "static private void addRelations( final JCas jCas,\n final FhirPractitioner practitioner,\n final FhirNoteSpecs noteSpecs,\n final FhirResourceCreator<Annotation, Basic> aCreator,\n final Map<IdentifiedAnnotation, Basic> annotationBasics,\n final Map<Annotation, Basic> simpleBasics ) {\n final Collection<BinaryTextRelation> relations = JCasUtil.select( jCas, BinaryTextRelation.class );\n for ( BinaryTextRelation relation : relations ) {\n final RelationArgument arg1 = relation.getArg1();\n final Annotation source = arg1.getArgument();\n Basic basicSource;\n if ( source instanceof IdentifiedAnnotation ) {\n basicSource = annotationBasics.get( (IdentifiedAnnotation)source );\n } else {\n basicSource = getSimpleBasic( jCas, source, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final RelationArgument arg2 = relation.getArg2();\n final Annotation target = arg2.getArgument();\n Basic basicTarget;\n if ( target instanceof IdentifiedAnnotation ) {\n basicTarget = annotationBasics.get( (IdentifiedAnnotation)target );\n } else {\n basicTarget = getSimpleBasic( jCas, target, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final String type = relation.getCategory();\n basicSource.addExtension( FhirElementFactory.createRelation( type, basicTarget ) );\n }\n }", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "Set<String> annotations();", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "@Test\r\n\tpublic void testAddContributor() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertFalse(cm.isEmpty());\r\n\t\tassertFalse(cm.addContributor(\"Chris\"));\r\n\t}", "public String[] getContributors() {\n/* 82 */ return getStringArray(\"contributor\");\n/* */ }", "public void onAnnotationsAdded(Map<Annot, Integer> annots) {\n/* 266 */ if (annots == null || annots.size() == 0 || !this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 273 */ JSONObject obj = prepareAnnotSnapshot(annots, AnnotAction.ADD);\n/* 274 */ takeAnnotSnapshot(obj);\n/* */ \n/* 276 */ if (this.mToolManager.getAnnotManager() != null) {\n/* 277 */ this.mToolManager.getAnnotManager().onLocalChange(\"add\");\n/* */ }\n/* 279 */ } catch (Exception e) {\n/* 280 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }", "public void addIndividualContributions(String projectName1, HashMap<Student, Integer> contributions1) {\n\t\t\n\t}", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "public abstract Annotations mo30682c();", "public void addAnnotation(Annotation annotation) {\r\n\t\tannotations.add(annotation);\r\n\t}", "Annotation createAnnotation();", "Annotation createAnnotation();", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E addAnnotation(CtAnnotation<? extends Annotation> annotation);", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "DataMap getCustomAnnotations();", "@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(updateReferencesAllMaps);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, updateReferencesAllMaps, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tupdateReferencesAllMaps.setEnabled();\n\t\t\t\t\tbutton.setEnabled(updateReferencesAllMaps.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}", "@Word(word = \"First\", value = 1) \n\t public static void newMethod(){ \n\t\t FullAnnotationProgram obj = new FullAnnotationProgram(); \n\n\t try{ \n\t Class<?> c = obj.getClass(); \n\n\t // Obtain the annotation for newMethod \n\t Method m = c.getMethod(\"newMethod\"); \n\t \n\t // Display the full annotation \n\t Annotation anno = m.getAnnotation(CustomRepeatAnnots.class); \n\t System.out.println(anno); \n\t }catch (NoSuchMethodException e){ \n\t System.out.println(e); \n\t } \n\t }", "public PDAnnotationAdditionalActions(COSDictionary a) {\n/* 49 */ this.actions = a;\n/* */ }", "public void process(MutableAnnotation data, Properties parameters) {\n\t\tOmniFatFunctions.applyAuthorNameRules(data, this.getDataSet(data, parameters));\n\t\t\n//\t\t//\tget positives\n//\t\tQueriableAnnotation[] taxonNames = data.getAnnotations(\"taxonName\");\n//\t\t\n//\t\t//\tcollect author names from positives\n//\t\tStringVector docAuthorNameParts = new StringVector();\n//\t\tStringVector docAuthorNames = new StringVector();\n//\t\tfor (int t = 0; t < taxonNames.length; t++) {\n//\t\t\tString source = ((String) taxonNames[t].getAttribute(\"source\", \"\"));\n//\t\t\tQueriableAnnotation[] epithets = taxonNames[t].getAnnotations(\"epithet\");\n//\t\t\tfor (int e = 0; e < epithets.length; e++)\n//\t\t\t\tif (source.indexOf(epithets[e].getAnnotationID()) != -1) {\n////\t\t\t\t\tString epithet = ((String) epithets[e].getAttribute(\"string\"));\n////\t\t\t\t\tAnnotation[] authorNames = epithets[e].getAnnotations(\"authorName\");\n////\t\t\t\t\tfor (int a = 0; a < authorNames.length; a++)\n////\t\t\t\t\t\tif (TokenSequenceUtils.indexOf(authorNames[a], epithet) == -1) {\n////\t\t\t\t\t\t\tdocAuthorNameParts.addContentIgnoreDuplicates(TokenSequenceUtils.getTextTokens(authorNames[a]));\n////\t\t\t\t\t\t\tdocAuthorNames.addElementIgnoreDuplicates(authorNames[a].getValue());\n////\t\t\t\t\t\t}\n//\t\t\t\t\tString epithetSource = ((String) epithets[e].getAttribute(\"source\", \"\"));\n//\t\t\t\t\tAnnotation[] epithetAuthorNames = epithets[e].getAnnotations(\"authorName\");\n//\t\t\t\t\tfor (int a = 0; a < epithetAuthorNames.length; a++)\n//\t\t\t\t\t\tif (epithetSource.indexOf(epithetAuthorNames[a].getAnnotationID()) != -1) {\n//\t\t\t\t\t\t\tdocAuthorNameParts.addContentIgnoreDuplicates(TokenSequenceUtils.getTextTokens(epithetAuthorNames[a]));\n//\t\t\t\t\t\t\tdocAuthorNames.addElementIgnoreDuplicates(epithetAuthorNames[a].getValue());\n//\t\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t}\n//\t\t\n//\t\t//\tclean author names (anything shorter than 3 letters is too dangerous)\n//\t\tfor (int a = 0; a < docAuthorNameParts.size(); a++)\n//\t\t\tif (docAuthorNameParts.get(a).length() < 3)\n//\t\t\t\tdocAuthorNameParts.remove(a--);\n//\t\tfor (int a = 0; a < docAuthorNames.size(); a++)\n//\t\t\tif (docAuthorNames.get(a).length() < 3)\n//\t\t\t\tdocAuthorNames.remove(a--);\n//\t\t\n////\t\tif (DEBUG) System.out.println(\"Author names:\\n - \" + docAuthorNames.concatStrings(\"\\n - \"));\n//\t\t\n//\t\t//\texpoit author names\n//\t\tQueriableAnnotation[] taxonNameCandidates;\n//\t\t\n//\t\t//\tremove candidates with sure positive author name in epithet position\n//\t\ttaxonNameCandidates = data.getAnnotations(\"taxonNameCandidate\");\n//\t\tfor (int c = 0; c < taxonNameCandidates.length; c++) {\n//\t\t\tif (taxonNameCandidates[c] == null)\n//\t\t\t\tcontinue;\n//\t\t\t\n//\t\t\tString source = ((String) taxonNameCandidates[c].getAttribute(\"source\", \"\"));\n//\t\t\tAnnotation[] epithets = ((QueriableAnnotation) taxonNameCandidates[c]).getAnnotations(\"epithet\");\n//\t\t\tAnnotation killEpithet = null;\n//\t\t\tfor (int e = 0; e < epithets.length; e++)\n//\t\t\t\tif ((source.indexOf(epithets[e].getAnnotationID()) != -1) && docAuthorNameParts.contains((String) epithets[e].getAttribute(\"string\"))) {\n//\t\t\t\t\tkillEpithet = epithets[e];\n//\t\t\t\t\te = epithets.length;\n//\t\t\t\t}\n//\t\t\t\n//\t\t\tif (killEpithet != null) {\n//\t\t\t\tif (DEBUG) System.out.println(\"Removing for author name epithet '\" + killEpithet.toXML() + \"':\\n \" + taxonNameCandidates[c].toXML());\n//\t\t\t\tdata.removeAnnotation(taxonNameCandidates[c]);\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\t//\tpromote epithets with known author names\n//\t\ttaxonNameCandidates = data.getAnnotations(\"taxonNameCandidate\");\n//\t\tfor (int c = 0; c < taxonNameCandidates.length; c++) {\n//\t\t\tString source = ((String) taxonNameCandidates[c].getAttribute(\"source\", \"\"));\n//\t\t\tQueriableAnnotation[] epithets = taxonNameCandidates[c].getAnnotations(\"epithet\");\n//\t\t\tfor (int e = 0; e < epithets.length; e++)\n//\t\t\t\tif (source.indexOf(epithets[e].getAnnotationID()) != -1) {\n//\t\t\t\t\tif (\"positive\".equals(epithets[e].getAttribute(\"state\")))\n//\t\t\t\t\t\tcontinue;\n//\t\t\t\t\t\n//\t\t\t\t\tString epithetSource = ((String) epithets[e].getAttribute(\"source\", \"\"));\n//\t\t\t\t\tAnnotation[] authorNames = epithets[e].getAnnotations(\"authorName\");\n//\t\t\t\t\tfor (int a = 0; a < authorNames.length; a++)\n//\t\t\t\t\t\tif ((epithetSource.indexOf(authorNames[a].getAnnotationID()) != -1) && docAuthorNames.contains(authorNames[a].getValue())) {\n//\t\t\t\t\t\t\tif (DEBUG) System.out.println(\"Promoting epithet for known author name '\" + authorNames[a].toXML() + \"':\\n \" + epithets[e].toXML());\n//\t\t\t\t\t\t\tepithets[e].setAttribute(\"state\", \"positive\");\n//\t\t\t\t\t\t\tepithets[e].setAttribute(\"evidence\", \"author\");\n//\t\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t}\n\t}", "private Collection<ConceptLabel> createConceptLabels(Concept concept, int offset) {\n\t\t//int offset = concept.getOffset();\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\t\t// add annotation the new way\n\t\tfor(Annotation a: concept.getAnnotations()){\n\t\t\tConceptLabel lbl = new ConceptLabel(a.getText(), offset + a.getOffset());\n\t\t\tlbl.setConcept(concept);\n\t\t\tlbl.setReportPanel(reportInterface);\n\t\t\tlbl.setColor(Color.black);\n\t\t\tlabels.add(lbl);\n\t\t}\n\t\t\n\t\t\n\t\treturn labels;\n\t}", "private void addAttrAnnotation(List<Iattribute> attributes, String packageName, String className) {\n\n FileSavedAnnotAttr annotAttr;\n\n for (Iattribute itemAttr: attributes) {\n\n for (Iannotation itemAnnot: itemAttr.getAttrAnnotations()) {\n\n if (itemAnnot.isChangen()) {\n\n if (itemAnnot.isParam()) {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), itemAnnot.getValue(), itemAttr.getName(), itemAttr.getType());\n }else {\n\n annotAttr = new FileSavedAnnotAttr(packageName, className, itemAnnot.getName(), null, itemAttr.getName(), itemAttr.getType());\n }\n\n saveAnnotaion.add(annotAttr);\n }\n }\n }\n }", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "protected void doAdditionalChecking(Contributor contr) {\n }", "public Framework_annotation<T> build_annotation();", "public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//PUBLISHER information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER);\r\n\t\t\tStringBuffer publisherAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisher());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherEmail());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//approved\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false;\r\n\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\tpublisherAttributes.append(approved);\r\n\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherFax());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCity());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherState());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(publisherAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}", "public void setContributors(List<Contributor> list) {\r\n this.contributors = list;\r\n }", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "@Test\r\n\tpublic void testGetContributors() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertTrue(cm.addContributor(\"Anna\"));\r\n\t\tObservableList<Contributor> con = cm.getContributors();\r\n\t\tfor(Contributor c:con) {\r\n\t\t\tassertTrue(cm.getContributors().contains(c));\r\n\t\t}\r\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "public static void addRealtor(String[] attribs) { \n double commission = Double.parseDouble(attribs[6]);\n Realtor realtor = new Realtor(attribs[2], attribs[3], attribs[4],\n attribs[5], commission); \n String added = realtorLogImpl.add(realtor) ? \"added\" : \"not added\";\n System.out.println(\"Realtor \" + added); \n }", "void setEditToolContributor(ITextEditContribution contributor);", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "public void setAnnotations(String Annotations) {\n this.Annotations.add(Annotations);\n }", "public void testAssignBlogContributors() {\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1\");\n assertEquals(\"user1\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1\", rootBlog.getBlogContributors());\n\n Collection users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(1, users.size());\n assertTrue(users.contains(\"user1\"));\n\n rootBlog.setProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY, \"user1,user2\");\n assertEquals(\"user1,user2\", rootBlog.getProperty(SimpleBlog.BLOG_CONTRIBUTORS_KEY));\n assertEquals(\"user1,user2\", rootBlog.getBlogContributors());\n\n users = rootBlog.getUsersInRole(Constants.BLOG_CONTRIBUTOR_ROLE);\n assertEquals(2, users.size());\n assertTrue(users.contains(\"user1\"));\n assertTrue(users.contains(\"user2\"));\n }", "private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }", "Set<? extends Class<? extends Annotation>> annotations();", "private static Contributor createContributor(\n Entry<MultiKeyFeature, Double> entry,\n ScoreAggregationRecordDetails scoreAggregationRecordDetails,\n ScoredDataReaderViewer scoredDataReaderViewer) {\n MultiKeyFeature tuple = entry.getKey();\n double contributionRatio = entry.getValue();\n // Get the first and the last underlying scored records with this tuple.\n TimeRange timeRange = scoreAggregationRecordDetails.getTimeRange();\n String scoredRecordAdeEventType = scoreAggregationRecordDetails.getScoredRecordAdeEventType();\n MultiKeyFeature context = scoreAggregationRecordDetails.getContextFieldNameToValueMap();\n AdeScoredRecord firstScoredRecord = scoredDataReaderViewer.getFirstScoredRecord(\n timeRange, scoredRecordAdeEventType, context, tuple);\n AdeScoredRecord lastScoredRecord = scoredDataReaderViewer.getLastScoredRecord(\n timeRange, scoredRecordAdeEventType, context, tuple);\n // Create a new Contributor instance.\n return new Contributor(tuple, contributionRatio, firstScoredRecord, lastScoredRecord);\n }", "public void addAnnotation(String a) {\n applicationIdentifiers.add(a);\n }", "public void addContribuinte (Contribuinte contribuinte){\n this.contribuintes.put(contribuinte.getNIF(),contribuinte);\n }", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "void annotate(final StylesheetModule module) {\n\n Document doc = module.getDocument(StylesheetModule.CORE);\n\n Visitor annotatorVisitor = new VisitorSupport() {\n @Override\n\tpublic void visit(Element element) {\n if (element.getNamespaceURI().equals(XSLConstants.NAMESPACE_URI)) {\n\n // Attribute at =\n // element.attribute(XMLConstants.ELEMENT_CORE_ID_QNAME);\n // if (at!=null)\n // throw new RuntimeException(\"Already had core id! \" +\n // element);\n\n if (element.getName().equals(XSLConstants.ELEM_TEMPLATE)\n || element.getName().equals(XSLConstants.ELEM_APPLY_TEMPLATES)) {\n String coreKey = element.attributeValue(XMLConstants.ELEMENT_CORE_ID_QNAME);\n if (coreKey == null) {\n coreKey = names.getFreshId(XMLConstants.CORE_ELEMENT_ENUMERATION_FORMAT);\n element.addAttribute(XMLConstants.ELEMENT_CORE_ID_QNAME, coreKey);\n }\n module.addElementById(coreKey, element, StylesheetModule.CORE);\n }\n }\n }\n };\n doc.accept(annotatorVisitor);\n }", "@Override\n\t\tpublic void annotate(JCas arg0) throws AnalysisEngineProcessException {\n\t\t\t\n\t\t}", "public ContributorTrackingSet(NavigatorContentService aContentService, Object[] elements) {\n for (int i = 0; i < elements.length; i++) super.add(elements[i]);\n contentService = aContentService;\n }", "@Override\n\t\tpublic ARibbonContributor getContributor(final Properties attributes) {\n\t\t\treturn new ARibbonContributor() {\n\t\t\t\tpublic String getKey() {\n\t\t\t\t\treturn attributes.getProperty(\"name\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void contribute(RibbonBuildContext context, ARibbonContributor parent) {\n\t\t\t\t\tbutton = RibbonActionContributorFactory.createCommandButton(changeBibtexDatabase);\n\t\t\t\t\tRibbonActionContributorFactory.updateRichTooltip(button, changeBibtexDatabase, context.getBuilder().getAcceleratorManager().getAccelerator(updateReferencesAllMaps.getKey()));\n\t\t\t\t\tchangeBibtexDatabase.setEnabled();\n\t\t\t\t\tbutton.setEnabled(changeBibtexDatabase.isEnabled());\n\t\t\t\t\tChildProperties childProps = new ChildProperties(parseOrderSettings(attributes.getProperty(\"orderPriority\", \"\")));\n\t\t\t\t\tchildProps.set(RibbonElementPriority.class, RibbonActionContributorFactory.getPriority(attributes.getProperty(\"priority\", \"\")));\n\t\t\t\t\tparent.addChild(button, childProps);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void addChild(Object child, ChildProperties properties) {\n\t\t\t\t}\n\t\t\t};\n\t\t}", "protected void createGmf_1Annotations() {\n\t\tString source = \"gmf.node\";\t\n\t\taddAnnotation\n\t\t (nodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxLabel\", \"name\",\n\t\t\t \"mxFill\", \"1\",\n\t\t\t \"mxHtml\", \"1\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxChildLayout\", \"stackLayout\",\n\t\t\t \"mxCollapsible\", \"1\",\n\t\t\t \"mxHorizontalStack\", \"0\",\n\t\t\t \"mxResizeParent\", \"0\",\n\t\t\t \"mxResizeLast\", \"1\",\n\t\t\t \"mxRounded\", \"1\",\n\t\t\t \"mxMarginBottom\", \"0\",\n\t\t\t \"mxMarginLeft\", \"0\",\n\t\t\t \"mxMarginRight\", \"0\",\n\t\t\t \"mxMarginTop\", \"0\",\n\t\t\t \"mxWhiteSpace\", \"wrap\",\n\t\t\t \"mxWidth\", \"200\",\n\t\t\t \"mxHeight\", \"120\"\n\t\t });\n\t}", "Builder addAuthor(Person value);", "public static void main(String[] args) {\n\t\tString list = Annotation.annotateList(1, 16);\n\t\tSystem.out.println(list);\n\t\t\n\t}", "@MyFirstAnnotation(name=\"tom\",description=\"write by tom\")\n\tpublic UsingMyFirstAnnotation(){\n\t\t\n\t}", "@Override\n public void setQualifiers(final Annotation[] annos) {\n }", "InstrumentedType withAnnotations(List<? extends AnnotationDescription> annotationDescriptions);", "public void addRelationship(String primaryNickName, String primaryAttribute, String secondaryNickName, String secondaryAttribute, String direction,int pixels)\n {\n AttributeType att1;\n AttributeType att2;\n\n if (primaryAttribute.equals(\"top\"))\n {\n att1=AttributeType.TOP;\n }\n else if (primaryAttribute.equals(\"bottom\"))\n {\n att1=AttributeType.BOTTOM;\n }\n else if (primaryAttribute.equals(\"left\"))\n {\n att1=AttributeType.LEFT;\n }\n else if (primaryAttribute.equals(\"right\"))\n {\n att1=AttributeType.RIGHT;\n }\n else\n {\n att1=AttributeType.TOP;\n }\n\n if (secondaryAttribute.equals(\"top\"))\n {\n att2=AttributeType.TOP;\n }\n else if (secondaryAttribute.equals(\"bottom\"))\n {\n att2=AttributeType.BOTTOM;\n }\n else if (secondaryAttribute.equals(\"left\"))\n {\n att2=AttributeType.LEFT;\n }\n else if (secondaryAttribute.equals(\"right\"))\n {\n att2=AttributeType.RIGHT;\n }\n else\n {\n att2=AttributeType.TOP;\n }\n\n if (secondaryNickName.equals(\"container\"))\n {\n secondaryNickName=DependencyManager.ROOT_NAME;\n }\n\n if (direction.equals(\"up\"))\n {\n pixels=-1*pixels;\n }\n else if (direction.equals(\"left\"))\n {\n pixels=-1*pixels;\n }\n\n addConstraint(primaryNickName, att1, new AttributeConstraint(secondaryNickName, att2, pixels));\n }", "public abstract ArrayList<CustomPath> getAnnotationPathList();", "private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }", "public static void addPermitedType(GvgInfoAnnotation gvgAnnotation){\r\n\t\tif(GvgUtils.permitedClass == null)\r\n\t\t\tGvgUtils.permitedClass = new ArrayList<String>(); \r\n\t\tfor(Class<?> c : gvgAnnotation.value()){\r\n\t\t\tGvgUtils.permitedClass.add(c.getName());\r\n\t\t\tGvgUtils.permitedClass.add(c.getSimpleName());\r\n\t\t}\r\n\t}", "private void CreatePIDelegationRules() throws isisicatclient.IcatException_Exception {\n Rule piAddExperimenters = new Rule();\r\n piAddExperimenters.crudFlags = \"C\";\r\n piAddExperimenters.what = \"InvestigationUser <-> Investigation <-> InvestigationUser [role = 'principal_experimenter'] <-> User [name = :user]\";\r\n port.create(sessionId, piAddExperimenters);\r\n }", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "@Test\n public void testGenerateWikiAnnotations() throws Exception {\n final Node n = new Node();\n n.setId(\"u9dc7\");\n\n final User u = new User();\n u.setId(\"9m8ky\");\n u.setFamily_name(\"Metsger\");\n u.setGiven_name(\"Elliot\");\n u.setFull_name(\"Elliot Metsger\");\n\n final Wiki w = new Wiki();\n w.setId(\"hgkfe\");\n w.setUser(u);\n w.setDate_modified(\"2016-09-15T14:19:14.417000\");\n w.setContent_type(\"text/markdown\");\n w.setNode(n.getId());\n w.setKind(\"file\");\n w.setPath(\"/hgkfe\");\n w.setMaterialized_path(\"/hgkfe\");\n w.setSize(224);\n w.setName(\"home\");\n final HashMap<String, String> links = new HashMap<>();\n links.put(\"download\", \"https://test-api.osf.io/v2/wikis/hgkfe/content/\");\n links.put(\"info\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n links.put(\"self\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n w.setLinks(links);\n final HashMap<String, String> extra = new HashMap<>();\n extra.put(\"version\", \"3\");\n w.setExtra(extra);\n\n final Registration r = new Registration();\n r.setId(\"registration\");\n r.setWikis(Collections.singletonList(w));\n\n final ManagedGraph managedGraph = new ManagedGraph(ontologyManager);\n final AnnotationsProcessor ap = new AnnotationsProcessor(managedGraph);\n\n // Process the OWL annotations on the Registration, its super classes, and its fields\n final Map<String, Individual> createdIndividuals = ap.process(r);\n\n // Write the individuals to stderr for debugging\n// writeModel(onlyIndividuals(ontologyManager.getOntModel()));\n }", "@Pointcut(\"(@annotation(HasRole) || @within(HasRole))\")\n public void annotated() {\n }", "public final void annotations() throws RecognitionException {\n int annotations_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"annotations\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(527, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 70) ) { return ; }\n // Java.g:528:5: ( ( annotation )+ )\n dbg.enterAlt(1);\n\n // Java.g:528:9: ( annotation )+\n {\n dbg.location(528,9);\n // Java.g:528:9: ( annotation )+\n int cnt88=0;\n try { dbg.enterSubRule(88);\n\n loop88:\n do {\n int alt88=2;\n try { dbg.enterDecision(88);\n\n int LA88_0 = input.LA(1);\n\n if ( (LA88_0==73) ) {\n int LA88_2 = input.LA(2);\n\n if ( (LA88_2==Identifier) ) {\n int LA88_3 = input.LA(3);\n\n if ( (synpred128_Java()) ) {\n alt88=1;\n }\n\n\n }\n\n\n }\n\n\n } finally {dbg.exitDecision(88);}\n\n switch (alt88) {\n \tcase 1 :\n \t dbg.enterAlt(1);\n\n \t // Java.g:0:0: annotation\n \t {\n \t dbg.location(528,9);\n \t pushFollow(FOLLOW_annotation_in_annotations2704);\n \t annotation();\n\n \t state._fsp--;\n \t if (state.failed) return ;\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt88 >= 1 ) break loop88;\n \t if (state.backtracking>0) {state.failed=true; return ;}\n EarlyExitException eee =\n new EarlyExitException(88, input);\n dbg.recognitionException(eee);\n\n throw eee;\n }\n cnt88++;\n } while (true);\n } finally {dbg.exitSubRule(88);}\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, 70, annotations_StartIndex); }\n }\n dbg.location(529, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"annotations\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "private void addClassAnnotation(List<Iannotation> annotations, String packageName, String className) {\n\n FileSavedAnnotClass annotClass;\n\n for (Iannotation item: annotations) {\n\n if (item.isChangen()) {\n\n if (item.isParam()) {\n\n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), item.getValue());\n } else {\n \n annotClass = new FileSavedAnnotClass(packageName, className, item.getName(), null);\n }\n\n saveAnnotaion.add(annotClass);\n }\n }\n }", "protected void addAnnotationForConfig(\r\n\t\t\tList<AnnotationExpr> argAnnotationList,\r\n\t\t\tICodeGenConfig argConfigObject) {\r\n\t\tif (argAnnotationList != null) {\r\n\t\t\tfor (AnnotationExpr annotation : argAnnotationList) {\r\n\t\t\t\tAnnotationConfig annotationConfig = new AnnotationConfig();\r\n\t\t\t\tannotationConfig.setName(annotation.getName().getName());\r\n\t\t\t\tif (annotation instanceof NormalAnnotationExpr) {\r\n\t\t\t\t\tList<MemberValuePair> keyValues = ((NormalAnnotationExpr) annotation)\r\n\t\t\t\t\t\t\t.getPairs();\r\n\t\t\t\t\tif (keyValues != null) {\r\n\t\t\t\t\t\tfor (MemberValuePair valuePair : keyValues) {\r\n\t\t\t\t\t\t\tannotationConfig.addKey(valuePair.getName());\r\n\t\t\t\t\t\t\tannotationConfig.addValue(CodeGenUtils\r\n\t\t\t\t\t\t\t\t\t.clearDoubleQuotation(valuePair.getValue()\r\n\t\t\t\t\t\t\t\t\t\t\t.toString()));\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\targConfigObject.setConfigObject(AnnotationConfig.MAIN_TAG,\r\n\t\t\t\t\t\tannotationConfig);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "ImmutableList<SchemaOrgType> getContributorList();", "public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);", "public void writeAddInfo(AnnotatedUtterance u) {\n\t\tif (optionsOutput != null) {\n\t\t\tif (optionsOutput.isDontDisplay(\"com\", 1))\n\t\t\t\treturn;\n\t\t\tif (!optionsOutput.isDoDisplay(\"com\", 1))\n\t\t\t\treturn;\n\t\t}\n\t\tif (optionsOutput.raw == true || optionsOutput.noHeader == true) return;\n\t\t// Ajout des informations additionnelles présents dans les fichiers txt\n\t\tfor (String s : u.coms) {\n\t\t\tString infoType = Utils.getInfoType(s);\n\t\t\tString infoContent = Utils.getInfo(s);\n\t\t\tout.println(\"\\t\\t\" + infoType + \"\\t\" + infoContent);\n\t\t}\n\t}", "public interface Contributor {\n\t\t/**\n\t\t * Gets the type attribute of the Contributor object\n\t\t *\n\t\t * @return The type value\n\t\t */\n\t\tpublic String getType();\n\t}", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}", "@Override\n public String getContributorURI()\n {\n return null;\n }" ]
[ "0.6178216", "0.6169042", "0.59858656", "0.5978156", "0.58629256", "0.57468766", "0.55841595", "0.55715674", "0.55424637", "0.5533307", "0.5521534", "0.55153596", "0.5498078", "0.53926754", "0.5384093", "0.5351547", "0.53316087", "0.5313047", "0.5311283", "0.53043973", "0.5262203", "0.5262052", "0.5253868", "0.5214888", "0.52042496", "0.5189901", "0.51736385", "0.5163474", "0.51443255", "0.51351446", "0.51351446", "0.5131894", "0.5128298", "0.5128004", "0.5120542", "0.51154286", "0.5115244", "0.5098908", "0.50944424", "0.50790936", "0.5073772", "0.50714993", "0.5065393", "0.5064356", "0.5060812", "0.5026809", "0.50110185", "0.50091505", "0.50041115", "0.49796996", "0.49760574", "0.4975514", "0.49703267", "0.49641225", "0.49619573", "0.49619406", "0.49613407", "0.49551293", "0.4952532", "0.49518892", "0.49402732", "0.49381873", "0.49379465", "0.493027", "0.49174383", "0.4907905", "0.48848817", "0.4879537", "0.48750383", "0.48587707", "0.4857737", "0.48576862", "0.48538688", "0.48490384", "0.48440045", "0.48299354", "0.48166898", "0.4816379", "0.48036656", "0.47950143", "0.47921556", "0.47869766", "0.47854108", "0.47846162", "0.47823784", "0.4774367", "0.47701374", "0.47589645", "0.47575736", "0.47445545", "0.47445184", "0.47417673", "0.4725378", "0.4717779", "0.47143614", "0.471396", "0.47063756", "0.4706346", "0.4705128", "0.4702627" ]
0.65365326
0
This method is invoked for creating annotations defined by Tribal Education Network Ontology, and those specific to learning objects. Creates an arraylist containing triples specific to ten learning objects, to be inserted in triple store
public ArrayList<Triple> createTenLearningObjectAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){ String LOG_METHOD_NAME = "ArrayList createTenLearningObjectAnnotationTriples(Node, TenLearningObjectAnnotationsBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //annotator name if(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getAnnotator())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_ANNOTATOR); predicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getAnnotator()); tripleList.add(new Triple(subject, predicate, predicate_value)); } tripleList.add(new Triple(subject, predicate, predicate_value)); tripleList.addAll(addDescriptiveAnnotationTriples(subject, tenLearningObjectAnnotationsBean)); tripleList.addAll(addStructuralAnnotationTriples(subject, tenLearningObjectAnnotationsBean)); }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Triple> createTenCommonAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenCommonAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//isPartOf\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getIsPartOf())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_ISPARTOF);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getIsPartOf());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//creator\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getCreator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//description \r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//keywords\r\n\t\t\tif(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(courseAnnotationBean.getKeywords());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> addStructuralAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> addStructuralAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//STRUCTURAL\t\r\n\t\t\t//date of annotation\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getDate())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_ANNOTATION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getDate());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//format\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getFormat())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_FORMAT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getFormat());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public void addInstances (InstanceList training)\n\t{\n\t\tSystem.out.println(\"LabeledLDA Model : Adding training instances ..%\");\n\t\t//Data Alphabet\n\t\talphabet = training.getDataAlphabet();\n\t\tnumTypes = alphabet.size();\n\t\tbetaSum = beta * numTypes;\n\t\t\n\t\t// We have one topic for every possible label.\n\t\tlabelAlphabet = training.getTargetAlphabet();\n\t\tnumTopics = labelAlphabet.size();\n\t\toneDocTopicCounts = new int[numTopics];\n\t\ttokensPerTopic = new int[numTopics];\n\t\ttypeTopicCounts = new int[numTypes][numTopics];\n\n\t\t//topicAlphabet = AlphabetFactory.labelAlphabetOfSize(numTopics); //generate d0,d1 [3shan target string w hwa 3wzo label]\n topicAlphabet = new LabelAlphabet();\n\t\tfor (int i = 0; i < numTopics; i++) {\n\t\t\tString target = labelAlphabet.lookupObject(i).toString();\n topicAlphabet.lookupLabel(target);\n\t\t}\n //System.out.println(topicAlphabet);\n\n for (Instance instance : training)\n\t\t{\n\t\t\tFeatureSequence tokens = (FeatureSequence) instance.getData(); //read data featureSequence\n\t\t\tLabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n FeatureVector labels = (FeatureVector) instance.getTarget(); //read target featurevector\n\n\t\t\tint[] topics = topicSequence.getFeatures();\n\t\t\tfor (int position = 0; position < tokens.size(); position++)\n\t\t\t{\n\t\t\t\tint topic = labels.indexAtLocation(random.nextInt(labels.numLocations()));\n\t\t\t\ttopics[position] = topic;\n\t\t\t\ttokensPerTopic[topic]++;\n\t\t\t\tint type = tokens.getIndexAtPosition(position);\n\t\t\t\ttypeTopicCounts[type][topic]++;\n\t\t\t}\n\t\t\tTopicAssignment t = new TopicAssignment(instance, topicSequence);\n\t\t\tdata.add(t);\n\t\t}\n\t\t/*\n for (Instance instance : training)\n {\n FeatureSequence tokens = (FeatureSequence) instance.getData();\n LabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n\n int[] topics = topicSequence.getFeatures();\n for (int position = 0; position < topics.length; position++) {\n int topic = random.nextInt(numTopics);\n topics[position] = topic;\n }\n TopicAssignment t = new TopicAssignment(instance, topicSequence);\n data.add(t);\n }\n\n buildInitialTypeTopicCounts();\n initializeHistograms();\n\t\t */\n\t\tSystem.out.println(\"Data loaded.\");\n\t}", "private void buildTFIDFAnnotations() throws IOException {\n\t\tTFIDFTrendExtractor trendExtractor = new TFIDFTrendExtractor(false, trainingInstances);\n\t\tTFIDFInvestigationMethodExtractor invMExtractor = new TFIDFInvestigationMethodExtractor(false,\n\t\t\t\ttrainingInstances);\n\n\t\tnew File(\"data/annotations/invMTFIDF/\").mkdirs();\n\t\tnew File(\"data/annotations/trendTFIDF/\").mkdirs();\n\n\t\tfor (Instance instance : testInstances) {\n//\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\tSet<DocumentLinkedAnnotation> invAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\tinvAnns.addAll(invMExtractor.getInvestigationMethodForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(invAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/invMTFIDF/\" + instance.getName()), invAnns);\n\t\t\tSet<DocumentLinkedAnnotation> trendAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\ttrendAnns.addAll(trendExtractor.getTrendsForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(trendAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/trendTFIDF/\" + instance.getName()), trendAnns);\n//\t\t\tSystem.out.println(\"SIZE = \" + annotations.get(instance).size());\n\t\t}\n\n//\t\treturn annotations;\n\n\t}", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "public ArrayList<Trial> createTrials(){\n Profile profile1 = new Profile(\"id1\");\n Profile profile2 = new Profile(\"id2\");\n Profile profile3 = new Profile(\"id3\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=0; i<15; i++){\n if (i<4){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile1));\n } else if (i<10){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile2));\n } else {\n trials.add(new TrialCount(\"\"+i, uni_loc, profile3));\n }\n }\n\n return trials;\n }", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void initOntology() {\n\n\tontology = ModelFactory.createDefaultModel();\n\t\t\t\n\ttry \n\t{\n\t\t//ontology.read(new FileInputStream(\"ontology.ttl\"),null,\"TTL\");\n\t\tontology.read(new FileInputStream(\"Aminer-data.ttl\"),null,\"TTL\");\n\t\t//ontology.read(new FileInputStream(\"SO data.ttl\"),null,\"TTL\");\n\t} \n\tcatch (FileNotFoundException e) \n\t{\n\t\tSystem.out.println(\"Error creating ontology model\" +e.getMessage());\n\t\te.printStackTrace();\n\t}\n\t\t\t\n\t\t\n\t}", "List<Training> obtainAllTrainings();", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }", "public static void main(String[] args) throws Exception {\n\t\t\n\n BufferedReader reader = new BufferedReader(new FileReader(\"src/main/resources/example/ontologytemp.owl\"));\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"src/main/resources/example/test.owl\"));\n\t\t\n\t\t\n\t\t/*File owl = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology5.owl\");\n File obda = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology-conf.obda\");\n\t\tString baseUri = \"http://www.semanticweb.org/user/ontologies/\";\n\t\tString jdbcUrl = \"jdbc:mysql://localhost/conference10\";\n\t\tString jdbcUserName = \"root\";\n\t\tString jdbcPassword = \"root\";\n\t\tString jdbcDriverClass = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\tDirectMappingBootstrapper dm = new DirectMappingBootstrapper(baseUri, jdbcUrl, jdbcUserName, jdbcPassword, jdbcDriverClass);\n\t\tOBDAModel model = dm.getModel();\n\t\tOWLOntology onto = dm.getOntology();\n\t\tModelIOManager mng = new ModelIOManager(model);\n\t\tmng.save(obda);\n onto.getOWLOntologyManager().saveOntology(onto,\n new FileDocumentTarget(owl));*/\n\t\t\n\t\t\n\t\t/*\n\t\tXFactoryBufferedImpl factory = new XFactoryBufferedImpl();\t\n\t\t\n\t\tXAttribute attr = factory.createAttributeLiteral(\"concept:name\", \"tracevalue\", null); // create attribute for trace\n\t\tXAttributeMap attrMapTrace = new XAttributeMapImpl(); // create a new map attribute\n\t\tattrMapTrace.put(\"concept:name\", attr);\t// put attribute to the map attribute\n\t\tXTrace xtrace = factory.createTrace(attrMapTrace); // create xtrace\n\t\t\n\t\tXAttributeMap attrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent = factory.createEvent(attrMap); // create xevent\n\t\txtrace.insertOrdered(xevent); // insert event in correct order in a trace\n\t\t\n\t\tattrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent2 = factory.createEvent(attrMap); // create xevent\n\t\t\n\t\tSystem.out.println(xtrace.contains(xevent2));\n\t\t*/\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification insertNewClassification(int i);", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "private void createAnnotationTree() throws JDOMException, IOException, ParseException {\r\n\t\tif(currentResource!=null)\r\n\t\t\tcreateAnnotation();\r\n\r\n\t\tif(rootAnnotations!=null)\r\n\t\t\taddAnnotationReplies(rootAnnotations);\r\n\t\t\r\n\t\t// we add all remaining replies to the root level because we did not\r\n\t\t// find the annotation they reply to.\r\n\t\tfor(Long annotationId : allReplies.keySet()) {\r\n\t\t\tfor(Annotation reply : allReplies.get(annotationId)) {\r\n\t\t\t\trootAnnotations.add(reply);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void addText(IText text) {\n var name = \"Text\"; // TODO should texts have a name? E.g. the filename etc.?\n var textIndividual = ontologyConnector.addIndividualToClass(name, textClass);\n var uuid = ontologyConnector.getLocalName(textIndividual);\n ontologyConnector.addPropertyToIndividual(textIndividual, uuidProperty, uuid);\n\n ImmutableList<IWord> words = text.getWords();\n\n // first add all word individuals\n var wordIndividuals = new ArrayList<Individual>();\n var wordsToIndividuals = new HashMap<IWord, Individual>();\n for (var word : words) {\n var wordIndividual = addWord(word);\n wordIndividuals.add(wordIndividual);\n wordsToIndividuals.put(word, wordIndividual);\n }\n\n // add dependencies to words.\n // We only add outgoing dependencies as ingoing are the same (but viewed from another perspective)\n for (var word : words) {\n var wordIndividual = wordsToIndividuals.get(word);\n for (var dependencyType : DependencyTag.values()) {\n var outDependencies = word.getWordsThatAreDependencyOfThis(dependencyType);\n for (var outDep : outDependencies) {\n var outWordIndividual = wordsToIndividuals.get(outDep);\n addDependencyBetweenWords(wordIndividual, dependencyType, outWordIndividual);\n }\n }\n }\n\n // create the list that is used for the words property\n var olo = ontologyConnector.addList(\"WordsOf\" + name, wordIndividuals);\n var listIndividual = olo.getListIndividual();\n ontologyConnector.addPropertyToIndividual(textIndividual, wordsProperty, listIndividual);\n\n // add coref stuff\n var corefClusters = text.getCorefClusters();\n for (var corefCluster : corefClusters) {\n var representativeMention = corefCluster.getRepresentativeMention();\n var corefClusterIndividual = ontologyConnector.addIndividualToClass(representativeMention, corefClusterClass);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, uuidProperty, \"\" + corefCluster.getId());\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, representativeMentionProperty, representativeMention);\n ontologyConnector.addPropertyToIndividual(textIndividual, hasCorefClusterProperty, corefClusterIndividual);\n\n var counter = 0;\n for (var mention : corefCluster.getMentions()) {\n var id = corefCluster.getId() + \"_\" + counter;\n counter += 1;\n var label = ICorefCluster.getTextForMention(mention);\n\n var mentionIndividual = ontologyConnector.addIndividualToClass(label, corefMentionClass);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, uuidProperty, id);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, mentionProperty, mentionIndividual);\n\n var mentionWordsIndividuals = getMentionWordIndividuals(mention, wordsToIndividuals);\n var mentionOlo = ontologyConnector.addList(\"WordsOf Mention \" + id, mentionWordsIndividuals);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, wordsProperty, mentionOlo.getListIndividual());\n }\n }\n\n }", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "public String trainmodelandclassify(Attribute at) throws Exception {\n\t\tif(at.getAge()>=15 && at.getAge()<=25)\n\t\t\tat.setAgegroup(\"15-25\");\n\t\tif(at.getAge()>=26 && at.getAge()<=45)\n\t\t\tat.setAgegroup(\"25-45\");\n\t\tif(at.getAge()>=46 && at.getAge()<=65)\n\t\t\tat.setAgegroup(\"45-65\");\n\t\t\n\t\t\n\t\t\n\t\t//loading the training dataset\n\t\n\tDataSource source=new DataSource(\"enter the location of your .arff file for training data\");\n\tSystem.out.println(source);\n\tInstances traindataset=source.getDataSet();\n\t//setting the class index (which would be one less than the number of attributes)\n\ttraindataset.setClassIndex(traindataset.numAttributes()-1);\n\tint numclasses=traindataset.numClasses();\n for (int i = 0; i < numclasses; i++) {\n \tString classvalue=traindataset.classAttribute().value(i);\n \tSystem.out.println(classvalue);\n\t\t\n\t}\n //building the classifier\n NaiveBayes nb= new NaiveBayes();\n nb.buildClassifier(traindataset);\n System.out.println(\"model trained successfully\");\n \n //test the model\n\tDataSource testsource=new DataSource(\"enter the location of your .arff file for test data\");\n\tInstances testdataset=testsource.getDataSet();\n\t\n\tFileWriter fwriter = new FileWriter(\"enter the location of your .arff file for test data\",true); //true will append the new instance\n\tfwriter.write(System.lineSeparator());\n\tfwriter.write(at.getAgegroup()+\",\"+at.getGender()+\",\"+at.getProfession()+\",\"+\"?\");//appends the string to the file\n\tfwriter.close();\n\ttestdataset.setClassIndex(testdataset.numAttributes()-1);\n\t//looping through the test dataset and making predictions\n\tfor (int i = 0; i < testdataset.numInstances(); i++) {\n\t\tdouble classvalue=testdataset.instance(i).classValue();\n\t\tString actualclass=testdataset.classAttribute().value((int)classvalue);\n\t\tInstance instance=testdataset.instance(i);\n\t\tdouble pclassvalue=nb.classifyInstance(instance);\n\t\tString pclass=testdataset.classAttribute().value((int)pclassvalue);\n\t\tSystem.out.println(actualclass+\" \"+ pclass);\n\t\n}\n\tdouble classval=testdataset.instance(testdataset.numInstances()-1).classValue();\n\tInstance ins=testdataset.lastInstance();\n\tdouble pclassval=nb.classifyInstance(ins);\n\tString pclass=testdataset.classAttribute().value((int)pclassval);\n\tSystem.out.println(pclass);\n\t\n\treturn pclass;\n}", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "public List<HashMap<Integer,AttributeInfo>> generateTrainingSetDataseAttributes(Dataset dataset, Properties properties) throws Exception {\n List<HashMap<Integer,AttributeInfo>> candidateAttributesList = new ArrayList<>();\n String[] classifiers = properties.getProperty(\"classifiersForMLAttributesGeneration\").split(\",\");\n\n //obtaining the attributes for the dataset itself is straightforward\n DatasetBasedAttributes dba = new DatasetBasedAttributes();\n for (String classifier : classifiers) {\n\n //For each dataset and classifier combination, we need to get the results on the \"original\" dataset so we can later compare\n Evaluation evaluationResults = runClassifier(classifier, dataset.generateSet(true), dataset.generateSet(false), properties);\n double originalAuc = CalculateAUC(evaluationResults, dataset);\n\n //Generate the dataset attributes\n HashMap<Integer, AttributeInfo> datasetAttributes = dba.getDatasetBasedFeatures(dataset, classifier, properties);\n\n //Add the identifier of the classifier that was used\n\n AttributeInfo classifierAttribute = new AttributeInfo(\"Classifier\", Column.columnType.Discrete, getClassifierIndex(classifier), 3);\n datasetAttributes.put(datasetAttributes.size(), classifierAttribute);\n\n\n //now we need to generate the candidate attributes and evaluate them. This requires a few preliminary steps:\n // 1) Replicate the dataset and create the discretized features and add them to the dataset\n OperatorsAssignmentsManager oam = new OperatorsAssignmentsManager(properties);\n List<Operator> unaryOperators = oam.getUnaryOperatorsList();\n //The unary operators need to be evaluated like all other operator assignments (i.e. attribtues generation)\n List<OperatorAssignment> unaryOperatorAssignments = oam.getOperatorAssignments(dataset, null, unaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n Dataset replicatedDataset = generateDatasetReplicaWithDiscretizedAttributes(dataset, unaryOperatorAssignments, oam);\n\n // 2) Obtain all other operator assignments (non-unary). IMPORTANT: this is applied on the REPLICATED dataset so we can take advantage of the discretized features\n List<Operator> nonUnaryOperators = oam.getNonUnaryOperatorsList();\n List<OperatorAssignment> nonUnaryOperatorAssignments = oam.getOperatorAssignments(replicatedDataset, null, nonUnaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n\n // 3) Generate the candidate attribute and generate its attributes\n nonUnaryOperatorAssignments.addAll(unaryOperatorAssignments);\n\n //oaList.parallelStream().forEach(oa -> {\n int counter = 0;\n //for (OperatorAssignment oa : nonUnaryOperatorAssignments) {\n ReentrantLock wrapperResultsLock = new ReentrantLock();\n nonUnaryOperatorAssignments.parallelStream().forEach(oa -> {\n try {\n OperatorsAssignmentsManager oam1 = new OperatorsAssignmentsManager(properties);\n Dataset datasetReplica = dataset.replicateDataset();\n ColumnInfo candidateAttribute = null;\n try {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n catch (Exception ex) {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n\n\n OperatorAssignmentBasedAttributes oaba = new OperatorAssignmentBasedAttributes();\n HashMap<Integer, AttributeInfo> candidateAttributes = oaba.getOperatorAssignmentBasedAttributes(dataset, oa, candidateAttribute, properties);\n\n datasetReplica.addColumn(candidateAttribute);\n Evaluation evaluationResults1 = runClassifier(classifier, datasetReplica.generateSet(true), datasetReplica.generateSet(false), properties);\n\n double auc = CalculateAUC(evaluationResults1, datasetReplica);\n double deltaAuc = auc - originalAuc;\n AttributeInfo classAttrubute;\n if (deltaAuc > 0.01) {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 1,2);\n System.out.println(\"found positive match\");\n } else {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 0,2);\n }\n\n //finally, we need to add the dataset attribtues and the class attribute\n for (AttributeInfo datasetAttInfo : datasetAttributes.values()) {\n candidateAttributes.put(candidateAttributes.size(), datasetAttInfo);\n }\n\n candidateAttributes.put(candidateAttributes.size(), classAttrubute);\n wrapperResultsLock.lock();\n candidateAttributesList.add(candidateAttributes);\n wrapperResultsLock.unlock();\n }\n catch (Exception ex) {\n System.out.println(\"Error in ML features generation : \" + oa.getName() + \" : \" + ex.getMessage());\n }\n });\n }\n\n return candidateAttributesList;\n }", "com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();", "public static void main(String abc[]) throws Exception{\n\tScanner scan=new Scanner(System.in); //for taking the input from user\n\t//Asking the user for the description\n\tSystem.out.println(\"Please mention the description of the ontology\");\n\tString s1_des;\n\ts1_des=scan.nextLine();\n\t//Asking the user for the competency questions\n\tSystem.out.println(\"Please mention the Competency Questions related to the Ontology\");\n\tString s2_cq;\n\ts2_cq=scan.nextLine();\t\n\t//This java file has code for OWL file and classifying different properties\n\tOwl_Lexical owl_ontology=new Owl_Lexical();\n\towl_ontology.owlOntology();\n\t//Saving the description of the ontology in a file\n\tBufferedWriter writer_des=new BufferedWriter(new FileWriter(\"ontology_description\"));\n\twriter_des.write(s1_des);\n\twriter_des.close();\n\t//Saving the competency questions of the ontology in a file\n\tBufferedWriter writer_cq=new BufferedWriter(new FileWriter(\"ontology_cq\"));\n\twriter_cq.write(s2_cq);\n\twriter_cq.close();\n\t//Stop words from competency questions are removed\n\tStopWords_CqOntology stop_cq=new StopWords_CqOntology();\n\tstop_cq.stopWordsCQOntology();\n\t//Stop Words from the description are removed\n\tStopWords_Ontology stop_des=new StopWords_Ontology();\n\tstop_des.stopWordsDesOntology();\t\n\t\n/*--------------------------------EXECUTION PART------------------------------------------------\n <-------------------------------STRUCTURAL ANALYSIS---------------------------------------------->\t\n Properties obtained from the OWL file are analysed. Doc2Vec is used and cosine similarity \n gives the numeric score of the ontology against each ODP.The below functions call the respective\n class that holds the code for each Structural Property that we have taken under consideration \n for the analysis. */\n\t// 1. CHAIN OF PROPERTY\n\tParagraphVectorsChainOfProperty cp=new ParagraphVectorsChainOfProperty();\n\tcp.chainOf();\n\t// 2. DATA DOMAIN Property\n\tParagraphVectorsDataPropertyDomain pd=new ParagraphVectorsDataPropertyDomain();\n\tpd.dataPropertyDomain();\n\t// 3. DATA RANGE PROPERTY\n\tParagraphVectorsDataPropertyRange pr=new ParagraphVectorsDataPropertyRange();\n\tpr.dataPropertyRange();\n\t// 4. DISJOINT CLASSES\n\tParagraphVectorsDisjointClasses dc=new ParagraphVectorsDisjointClasses();\n\tdc.disjointClasses();\n\t// 5. OBJECT DOMAIN PROPERTY\n\tParagraphVectorsObjectDomainProperty od=new ParagraphVectorsObjectDomainProperty();\n\tod.objectDomainProperty();\n\t// 6. OBJECT RANGE PROPERTY\n\tParagraphVectorsObjectPropertyRange op=new ParagraphVectorsObjectPropertyRange();\n\top.objectRangeProperty();\n\t// 7. SUB-CLASS PROPERTY\n\tParagraphVectorsSubClassProperty sc=new ParagraphVectorsSubClassProperty();\n\tsc.subClassProperty();\n\t// 8. SUB-DATA PROPERTY\n\tParagraphVectorsSubDataProperty sd=new ParagraphVectorsSubDataProperty();\n\tsd.subDataProperty();\n\t// 9. SUB-OBJECT PROPERTY\n\tParagraphVectorsSubObjectProperty so=new ParagraphVectorsSubObjectProperty();\n\tso.subObjectProperty();\n\t\n/*<-----------------------------------BEHAVIOURAL ANALYSIS-------------------------------------------->\n The Competency Question of the ontology are saved and mappped with the competency questions \n of the ODPs in the list. The ODPs obtained manchester site do not have competency questions, but \n the rest all ontologies have.So, approximately 15 among the 73 ODPs present are without CQs\t\n\t*/\n\tParagraphVectors_CQ cq=new ParagraphVectors_CQ();\n\tcq.cqMapping();\n/*<------------------------------------LEXICAL ANALYSIS------------------------------------------------>\n Lexical Analysis involves the analysis by use of the description and by the names of classes\n properties present in the OWL file. The description along with the description(classes and properties) \n of the OWL file of the ontology are compared against the ODPs. All the ODPs present have description\n *along with the classes and properties.\n */\n // 1. DESCRIPTION\n\tParagraphVectorsTextExample te=new ParagraphVectorsTextExample();\n\tte.description();\n\t// 2. SIGNATURE\n\tParagraphVectors_Signature vs=new ParagraphVectors_Signature();\n\tvs.signature();\n/*<--------------------------------------INTEGRATION OF SCORES----------------------------------------->\n * After obtaning the numeric values of lexical, structural and behavioural parts, the cosine \n * similarity scores are combined together of the ontology and the ODPs and placed in a single\n * file.\n */\n\tIntegration_Of_Scores os=new Integration_Of_Scores();\n\tos.integratingScores();\n/*<----------------------------------------NORMALISING SCORES------------------------------------------->\n * After all the scores of an ODP (against the given ontology) are added up, the scores are normalised\n * so that these range between 0 to 1 and we can set a particular threshold for the ODP recommendations\n */\n\tNormalising_Scores ns=new Normalising_Scores();\n\tns.normalisingScores();\n/*<------------------------------------------ODP RECOMMENDER-------------------------------------------->\n * \tAfter we have normalised the scores against the ODPs, we run the this java program from where the\n * recommendations can be suggested. \n */\n ODPRecommender reco=new ODPRecommender();\n reco.odpRecommender();\n\t\n}", "private Collection<ConceptLabel> createConceptLabels(Concept concept, int offset) {\n\t\t//int offset = concept.getOffset();\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\t\t// add annotation the new way\n\t\tfor(Annotation a: concept.getAnnotations()){\n\t\t\tConceptLabel lbl = new ConceptLabel(a.getText(), offset + a.getOffset());\n\t\t\tlbl.setConcept(concept);\n\t\t\tlbl.setReportPanel(reportInterface);\n\t\t\tlbl.setColor(Color.black);\n\t\t\tlabels.add(lbl);\n\t\t}\n\t\t\n\t\t\n\t\treturn labels;\n\t}", "public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "private void _generateRaTa() {\n\t if(instances_[CS_C_TA].total == 0) return;\n ArrayList list, courseList;\n TaInfo ta;\n RaInfo ra;\n ArrayList tas, ras;\n int i;\n\n tas = new ArrayList();\n ras = new ArrayList();\n list = _getRandomList(instances_[CS_C_TA].total + instances_[CS_C_RA].total,\n 0, instances_[CS_C_GRADSTUD].total - 1);\n System.out.println(\"underCourses \" + (underCourses_.size() - 1));\n System.out.println(\"instances ta \" + instances_[CS_C_TA].total);\n courseList = _getRandomList(instances_[CS_C_TA].total, 0,\n underCourses_.size() - 1);\n\n for (i = 0; i < courseList.size(); i++) {\n ta = new TaInfo();\n ta.indexInGradStud = ( (Integer) list.get(i)).intValue();\n ta.indexInCourse = ( (CourseInfo) underCourses_.get( ( (Integer)\n courseList.get(i)).intValue())).globalIndex;\n _generateATa(ta);\n }\n while (i < list.size()) {\n ra = new RaInfo();\n ra.indexInGradStud = ( (Integer) list.get(i)).intValue();\n _generateAnRa(ra);\n i++;\n }\n }", "public void onCreate() {\n\r\n\r\n \tRDFResource newResource = (RDFResource) ProtegeUI.getSelectionDialogFactory().selectClass(AssertedInstancesListOntoMorphPanel.this, owlModel, \"Select a named class to add\");\r\n \tif (newResource instanceof Cls)\r\n \t{\r\n\r\n \t\t/* How creation works:\r\n\t\t\t\t\t\t1. First, create a resource\r\n\t\t\t\t\t\t2. add resource to the 'classes' list\r\n\t\t\t\t\t\t3. refresh the display list based on the 'classes'\r\n\t\t\t\t\t\t4. create the instance in the owlModel\r\n\t\t\t\t\t\t5. set the selected on the display list value to match\r\n \t\t*/\r\n\r\n \t\tArrayList type = new ArrayList();\r\n \t\ttype.add(newResource);\r\n\r\n \t\t//** Not sure what this does, but deleteding it will criple the 'delete individual' button\r\n \t\tArrayList acsum = new ArrayList();\r\n \t\tacsum.addAll(classes);\r\n \t\tacsum.add(newResource);\r\n \t\tremoveClsListeners();\r\n \t\tclasses = acsum;\r\n \t\tlist.setClasses(acsum);\r\n \t\t//****\r\n \t\t\r\n\r\n \t\tInstance instance = owlModel.createInstance(null, type);\r\n \t\tif (instance instanceof Cls) {\r\n \t\t\tCls newCls = (Cls) instance;\r\n \t\t\t//if this is a top level class, make it at least be a subclass of owlThing\r\n \t\t\tif (newCls.getDirectSuperclassCount() == 0) {\r\n \t\t\t\tnewCls.addDirectSuperclass(owlModel.getOWLThingClass());\r\n \t\t\t}\r\n \t\t}\r\n\r\n \t\t//make it ready for markup\r\n \t\tnewResource = (RDFResource) instance;\r\n \t\t\r\n \t\t//To create an 'empty' instance as below\r\n \t\t//assignImgSelection(newResource, \"none\", 0, 0, 0);\r\n \t\t//***\r\n \t\tif (instance != null)\r\n \t\t{\r\n \t\t\tint[] plist = {0,0};\r\n \t\t\tint reqNodes = 3;\r\n \t\t\tplist=oTab.getSelectedNodes();\r\n\r\n \t\t\tif (plist == null)\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"*** Error creating instance: No points were selected, needed\" + reqNodes);\r\n \t\t\t\tassignImgSelection(newResource, \"none\", 0, 0, 0); //create an 'empty' instance\r\n \t\t\t}\r\n \t\t\telse if (plist.length == reqNodes)\r\n \t\t\t{\r\n \t\t\t\tassignImgSelection(newResource, oTab.neuronPanel.getURL(), plist[0], plist[1], plist[2]);\t//graphically display the class that was selected by calling this method on current image\r\n \t\tSystem.out.println(\"*** New OMT individual: \" + newResource.getName());\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"*** Error creating instance: Could not resolve selection list (Needed \" + reqNodes + \" have \" + plist.length);\r\n \t\t\t}\r\n \t\t}\r\n\r\n \t\t//Reload the list\r\n \t\treload();\r\n \t\tupdateButtons();\r\n \t\taddClsListeners();\r\n\r\n \t\tlist.setSelectedValue(instance, true);\r\n \t}\r\n }", "public void train(){\n recoApp.training(idsToTest);\n }", "public static Model Analize(ArrayList<String> arraylist) throws IOException\n\t{\n\t\tModel model = ModelFactory.createOntologyModel();\n\t\tmodel.read(\"C:\\\\Users\\\\Hamza\\\\workspace\\\\Crime\\\\crime.owl\");\n\t\tResource predicate;\n\t\tProperty pred = null;\n\t\tint flag=0;\n\t\t\tword=(String) arraylist.get(1);\n\t\t\tpredicate=model.getResource(defaultNameSpace+word);\n\t\t\t\n\t\t\tif(model.contains(predicate, RDF.type,OWL.ObjectProperty))\n\t\t\t{\n\t\t\t pred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse if(model.contains(predicate, RDF.type,OWL.DatatypeProperty))\n\t\t\t{\n\t\t\t\tpred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\tif(flag==1)\n\t\t\t{\n\t\t\t\tword=(String) arraylist.get(0);\n\t\t\t\tResource subject = model.createResource(defaultNameSpace+word);\n\t\t\t\tword=(String) arraylist.get(2);\n\t\t\t\tResource object = model.createResource(defaultNameSpace+word);\n\t\t\t\tResource class1=model.getResource(defaultNameSpace+\"Match\");\n\t\t\t\tmodel.add(subject,RDF.type,class1);\n\t\t\t\tmodel.add(object,RDF.type,class1);\n\t\t\t\tmodel.add(subject,pred,object);\n\t\t\t\t\n\t\t\t}\n\t\t\treturn model;\n\t\t}", "public void addOntology(String ontology)\n\t{\n\t\t// add current prefixes first\n\t\tString prefixes = \"\";\n\t\tfor(String prefixDeclaration:this.neededPrefixesForQueries)\n\t\t{\n\t\t\tprefixes = prefixes + \"@prefix \" + prefixDeclaration + \".\\n\";\n\t\t}\n\t\tprefixes += \"\\n\";\n\t\t\n\t\tontology = prefixes + ontology;\n\t\t\n\t\t// add new ontology to model\n\t\tthis.model.read(new ByteArrayInputStream(ontology.getBytes(StandardCharsets.UTF_8)), null, \"TTL\");\n\t\t\n\t\t// re-populate prefix mappings\n\t\tthis.populatePrefixMappings(model);\n\t}", "public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}", "public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }", "private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }", "private static void initObjectProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n objectProperties.addAll(ontologie.listObjectProperties().toList());\n }", "void addTestTermsAndCourses() {\n // Creates Terms\n addTerm(\"Term 1\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 2\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 3\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 4\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 5\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 6\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 7\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 8\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 9\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 10\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 11\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 12\", \"5/19/2019\", \"6/23/2019\");\n int term1Id = getTermIdFromIndex(0);\n int term2Id = getTermIdFromIndex(1);\n// int term3Id = getTermIdFromIndex(2);\n\n // Creates Courses\n addCourse(\"course 1\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 2\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 3\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n addCourse(\"course 4\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 5\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 6\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n int course1Id = getCourseIdFromIndex(0);\n int course2Id = getCourseIdFromIndex(1);\n\n // Creates Assignments\n addAssignment(\"Assignment 1\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 2\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 3\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 4\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 5\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 6\", \"this shit is whack\", \"5/29/2019\", null);\n addAssignment(\"Assignment 7\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 8\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 9\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 10\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 11\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 12\", \"this shit is whack\", \"5/29/2019\", null);\n }", "public void trainFromExamples(int noOfIteration, double eenta) throws FileNotFoundException {\n //Use the wordcount to calcualte the weight verctor repetetively\n for (int count = 0; count < noOfIteration; count++) \n {\n for (List<Integer> wordCount : wordCountSpamList) \n {\n //Compute the new weight vector\n calculateNewWeightVector(eenta, true, wordCount);\n \n }\n for (List<Integer> wordCount : wordCountHamList) \n {\n //Compute the new weight vector\n calculateNewWeightVector(eenta, false, wordCount);\n \n }\n }\n \n }", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public static void main(String []args){\n\t\tString format = \"TURTLE\";\n\t\tInputStream is = Thread.currentThread().getContextClassLoader().\n\t\t\t\tgetResourceAsStream(\"test_ontologies/cp-11.ttl\");\n\t\tOntDocumentManager dm = OntDocumentManager.getInstance();\n\t\tdm.setProcessImports(false);\n\t\tOntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_DL_MEM);\n\t\tspec.setDocumentManager(dm); \n\t\t//spec.setReasoner(reasoner);\n\t\tOntModel ontModel = ModelFactory.createOntologyModel( spec, null );\n\t\tontModel.read(is,\"\",format);\n\t\ttry {\n\t\t\tStmtIterator it = ontModel.listStatements();\n\t\t\tSystem.out.println(\"STATEMENTS\");\n\t\t\tStatement st;\n\t\t\twhile(it.hasNext()){\n\t\t\t\tst = it.next();\n\t\t\t\tif(st.getSubject().isAnon() || st.getObject().isAnon()){\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(it.next());\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"REIFIED STATEMENTS\");\n\t\t\tRSIterator it2 = ontModel.listReifiedStatements();\n\t\t\twhile(it2.hasNext()){\n\t\t\t\tSystem.out.println(it2.next());\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t}\n\n\t}", "private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}", "public void addExampleList(String classKey, List<Roi> roi, String type) ;", "public void train (String trainingCollection) throws IOException {\n\t\tDocumentCollection trainCol = new DocumentCollection(trainingCollection);\n\t\ttrainCol.open();\n\t\tfor (int i=0; i<trainCol.size(); i++) {\n\t\t\tExternalDocument doc = trainCol.get(i);\n\t\t\ttrain (doc);\n\t\t}\n\t}", "protected void createInputAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/input\";\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getPrint_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t}", "public static void main(String[] args) \n\t{\n\t\t// Konfiguration\n\t\tTraining training = new Training();\n\t\tint numberOfAttributes = 18;\n\t\tStatisticOutput statisticWriter = new StatisticOutput(\"data/statistics.txt\");\n\t\t\n\t\ttraining.printMessage(\"*** TCR-Predictor: Training ***\");\n\t\t\n\t\ttraining.printMessage(\"Datenbank von Aminosäure-Codierungen wird eingelesen\");\n\t\t// Lies die EncodingDB ein\n\t\tAAEncodingFileReader aa = new AAEncodingFileReader();\n\t\tAAEncodingDatabase db = aa.readAAEncodings(\"data/AAEncodings.txt\");\n\t\ttraining.printMessage(\"Es wurden \" + db.getEncodingDatabase().size() + \" Codierungen einglesen\");\n\t\t\n\t\ttraining.printMessage(\"Trainingsdatensatz wird eingelesen und prozessiert\");\n\t\t// Lies zunächst die gesamten Trainingsdaten ein\n\t\tExampleReader exampleReader = new ExampleReader();\n\t\t\n\t\t// Spalte das Datenset\n\t\tDataSplit dataSplit_positives = new DataSplit(exampleReader.getSequnces(\"data/positive.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_positiv = dataSplit_positives.getDataSet();\n\t\t\n\t\tDataSplit dataSplit_negatives = new DataSplit(exampleReader.getSequnces(\"data/negative.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_negativ = dataSplit_negatives.getDataSet();\n\t\t\n\t\t// Lege Listen für die besten Klassifizierer und deren Evaluation an\n\t\tModelCollection modelCollection = new ModelCollection();\n\t\t\n\t\t/*\n\t\t * \n\t\t * Beginne Feature Selection\n\t\t * \n\t\t */\n\t\tArrayList<String> positivesForFeatureSelection = training.concatenateLists(complete_list_positiv);\n\t\tArrayList<String> negativesForFeatureSelection = training.concatenateLists(complete_list_negativ);\n\t\t\n\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t// Convertiere Daten in Wekas File Format\n\t\tARFFFileGenerator arff = new ARFFFileGenerator();\n\t\tInstances dataSet = arff.createARFFFile(positivesForFeatureSelection, negativesForFeatureSelection, db.getEncodingDatabase());\n\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\n\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) aus\");\n\t\t// Beginne Feature Selection\n\t\tFeatureFilter featureFilter = new FeatureFilter();\n\t\tfeatureFilter.rankFeatures(dataSet, numberOfAttributes);\t\t\t\t\t// Wähle die x wichtigsten Features aus\n\t\tdataSet = featureFilter.getProcessedInstances();\n\t\ttraining.printMessage(\"Ausgewählte Features: \" + featureFilter.getTopResults());\n\n\t\t/*\n\t\t * Führe die äußere Evaluierung fünfmal durch und wähle das beste Modell\n\t\t */\n\t\tfor (int outer_run = 0; outer_run < 5; outer_run++)\n\t\t{\n\t\t\tstatisticWriter.writeString(\"===== Äußere Evaluation \" + (outer_run + 1) + \"/5 =====\\n\\n\");\n\t\t\t\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_positives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_positives.addAll(complete_list_positiv);\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_negatives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_negatives.addAll(complete_list_negativ);\n\t\t\t\n\t\t\t// Lege das erste Fragment beider Listen für nasted-Crossvalidation beiseite\n\t\t\tArrayList<String> outer_List_pos = new ArrayList<String>();\n\t\t\touter_List_pos.addAll(list_positives.get(outer_run));\n\t\t\tlist_positives.remove(outer_run);\n\t\t\t\n\t\t\tArrayList<String> outer_List_neg = new ArrayList<String>();\n\t\t\touter_List_neg.addAll(list_negatives.get(outer_run));\n\t\t\tlist_negatives.remove(outer_run);\n\t\t\t\n\t\t\t// Füge die verbleibende Liste zu einer Zusammen\n\t\t\tArrayList<String> inner_List_pos = training.concatenateLists(list_positives);\n\t\t\tArrayList<String> inner_List_neg = training.concatenateLists(list_negatives);\n\t\t\t\t\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * Ab hier nur noch Arbeiten mit innerer Liste, die Daten zum Evaluieren bekommt Weka vorerst \n\t\t\t * nicht zu sehen!\n\t\t\t * \n\t\t\t */\n\t\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t\t// Convertiere Daten in Wekas File Format\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(inner_List_pos, inner_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes); // Filtere das innere Datenset nach Vorgabe\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\ttraining.printMessage(\"Beginne Gridsearch\");\n\t\t\t// Gridsearch starten\n\t\n\t\t\t\n\t\t\t\n\t\t\tParameterOptimization optimizer = new ParameterOptimization();\n\t\t\tString logFileName = outer_run + \"_\" + numberOfAttributes;\n\t\t\tGridSearch gridSearch = optimizer.performGridSearch(dataSet, logFileName);\n\t\t\ttraining.printMessage(\"Gefundene Parameter [C, gamma]: \" + gridSearch.getValues()); // liefert unter diesen Settings 1.0 und 0.0\n\n\t\t\tSMO sMO = (SMO)gridSearch.getBestClassifier();\n\t\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t * Evaluationsbeginn \n\t\t\t *\n\t\t\t */\n\t\t\ttraining.printMessage(\"Evaluiere die Performance gegen das äußere Datenset\");\n\t\t\ttraining.printMessage(\"Transcodierung des Evaluationsdatensatzes\");\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(outer_List_pos, outer_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\t// Führe Feature-Filtering mit den Einstellungen der GridSearch aus\n\t\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) auf GridSearch-Basis aus\");\n\t\t\t// Beginne Feature Selection\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes);\t // Wähle die x wichtigsten Features aus\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttraining.printMessage(\"Ermittle Performance\");\n\t\t\tEvaluator eval = new Evaluator();\n\t\t\teval.classifyDataSet(sMO, dataSet);\n\t\t\ttraining.printMessage(eval.printRawData());\n\t\t\t\n\t\t\t/*\n\t\t\t * Füge das Modell und die externe Evaulation zur Sammlung hinzu\n\t\t\t */\t\t\t\n\t\t\tmodelCollection.bestClassifiers.add(sMO);\n\t\t\tmodelCollection.evalsOfBestClassifiers.add(eval);\n\t\t\tmodelCollection.listOfNumberOfAttributes.add(numberOfAttributes);\n\t\t\tmodelCollection.listOfFeatureFilters.add(featureFilter);\n\t\t\t\n\t\t\tstatisticWriter.writeString(\"Verwendete Attribute: \" + featureFilter.getTopResults());\n\t\t\tstatisticWriter.writeString(eval.printRawData());\n\t\t\t\n\t\t}\n\t\tstatisticWriter.close();\n\t\t\n\t\t// Wähle das beste aller Modelle aus\n\t\ttraining.printMessage(\"Ermittle die allgemein besten Einstellungen\");\n\t\tModelSelection modelSelection = new ModelSelection();\n\t\tmodelSelection.calculateBestModel(modelCollection);\n\t\t\n\t\ttraining.printMessage(\"Das beste Model: \");\n\t\ttraining.printMessage(modelSelection.getBestEvaluator().printRawData());\n\t\tSystem.out.println(\"------ SMO ------\");\n\t\tfor (int i = 0; i < modelSelection.getBestClassifier().getOptions().length; i++)\n\t\t{\n\t\t\tSystem.out.print(modelSelection.getBestClassifier().getOptions()[i] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n--- Features ---\");\n\t\tSystem.out.println(modelSelection.getBestListOfFeatures().getTopResults());\n\t\t\n\t\t// Schreibe das Modell in eine Datei\n\t\ttraining.printMessage(\"Das beste Modell wird auf Festplatte geschrieben\");\n\t\ttry\n\t\t{\n\t\t\tSerializationHelper.write(\"data/bestPredictor.model\", modelSelection.getBestClassifier());\n\t\t\tSerializationHelper.write(\"data/ranking.filter\", modelSelection.getBestListOfFeatures().getRanking());\n\t\t\tSerializationHelper.write(\"data/components.i\", (modelSelection.getBestListOfFeatures().getProcessedInstances().numAttributes()-1));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(\"Fehler beim Schreiben des Modells auf Festplatte: \" + ex);\n\t\t}\n\t}", "public TravelMap() {\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tadjacencyList.add(new ArrayList<>());\n\t\t}\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public OntologyMapper(Model model, int maxNumberOfTriples) {\n\tthis.model = model;\n\tMAX_NUMBER_OF_TRIPLES = maxNumberOfTriples;\n }", "List<TrainingsCategory> getAllTrainingstype() throws PersistenceException;", "private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annotation completed ....\");\n MyWriter.write(corpus, outCorpusFile);\n Out.prln(\"*** ENTITY ANNOTATION COMPLETED *** \");\n }", "protected void readOntology() {\r\n\t\ttry \r\n\t\t{\r\n\t\t\troot.removeAllChildren();\r\n\t\t\tIterator<String> rc = ob.listRootClasses();\r\n\t\t\twhile(rc.hasNext())\r\n\t\t\t{\r\n\t\t\t\tDefaultMutableTreeNode node = createNode(rc.next(), ob, 0);\r\n\t\t\t\troot.add(node);\r\n\t\t\t}\r\n\t\t\tontologyTree.setModel(new DefaultTreeModel(root));\r\n\t ontologyTree.expandRow(0);\r\n\t \r\n\t\t} catch (Exception e) {\r\n\t\t\torg.apache.commons.logging.LogFactory.getLog(this.getClass()).error(e);\r\n\t\t}\r\n\t}", "private List<LACRule> doExtractRules(List<Integer> featuresCombination)\n\t{\n\t\tList<LACRule> rules = new ArrayList<LACRule>();\n\n\t\tList<Integer> instancesWithFeatures = trainingSet.getInstancesWithFeatures(featuresCombination);\n\t\tint numClasses = trainingSet.getAllClasses().size();\n\t\tint[] count = new int[numClasses];\n\n\t\tint size = instancesWithFeatures.size();\n\n\t\tif (size > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < size; i++)\n\t\t\t{\n\t\t\t\tInteger instanceIndex = instancesWithFeatures.get(i);\n\t\t\t\tLACInstance instance = trainingSet.getInstance(instanceIndex);\n\t\t\t\tint predictedClass = instance.getIndexedClass();\n\t\t\t\tcount[predictedClass] = count[predictedClass] + 1;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < numClasses; i++)\n\t\t\t{\n\t\t\t\tint classCount = count[i];\n\t\t\t\tif (classCount > 0)\n\t\t\t\t{\n\t\t\t\t\tdouble support = (double) classCount / (double) trainingSet.length();\n\t\t\t\t\tdouble confidence = (double) classCount / (double) size;\n\n\t\t\t\t\tif(support > minSupport && confidence > minConfidence)\n\t\t\t\t\t{\n\t\t\t\t\t\tLACRule rule = new LACRule(support, confidence, i);\n\t\t\t\t\t\tif(debug)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trule.setPattern(trainingSet.indexesToLabels(featuresCombination));\n\t\t\t\t\t\t\trule.setClassLabel(trainingSet.getClassByIndex(i).getLabel());\n\t\t\t\t\t\t\tSystem.out.println(rule);\n\t\t\t\t\t\t}\n\t\t\t\t\t\trules.add(rule);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rules;\n\t}", "public ArrayList<Triple> createDigitalRightsAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createDigitalRightsAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\r\n\t\ttry{\t\t\t\t\t\r\n\t\t\ttripleList.addAll(addAdministrativeAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addCopyRightHolderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addPublisherAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addContributorAnnotationTriples(subject, digitalRightsManagementBean));\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public static void main(String[] args) throws Exception {\n\t\tint i;\r\n\t\tint [][]preci_recall = new int [5][6]; \r\n\r\n\t\tNGRAM ngram = new NGRAM();\r\n\t\t\r\n\t\tfor(i=0; i<5; i++) {\r\n\t\t\t\r\n\t\t\tSystem.out.println((i+1) + \" th FOLD IS A TEST SET\");\r\n\t\t\t\r\n\t\t\tdouble[][] test_ngram_features = ngram.feature(i,1);\r\n\t\t\tdouble[][] train_ngram_features = ngram.feature(i,0);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"NGRAM FEATURES...OK\");\r\n\t\r\n//\t\t\t\r\n//\t\t\tLIWC liwc = new LIWC();\r\n//\t\t\t\r\n//\t\t\tdouble[][] test_liwc_features = liwc.feature(i,1,test_ngram_features.length);\r\n//\t\t\tdouble[][] train_liwc_features = liwc.feature(i,0,train_ngram_features.length);\r\n//\r\n//\t\t\tSystem.out.println(\"LIWC FEATURES..OK\");\r\n//\t\t\t\r\n//\t\t\tCOMBINE combine = new COMBINE();\r\n//\t\t\tdouble[][] train_features = combine.sum(train_liwc_features,train_ngram_features);\r\n//\t\t\tdouble[][] test_features = combine.sum(test_liwc_features,test_ngram_features);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"COMBINE...OK\");\r\n\t\t\r\n\t\t\tSVMLIGHT svmlight = new SVMLIGHT();\r\n\t\t\tpreci_recall[i]=svmlight.calcc(train_ngram_features, test_ngram_features);\r\n\r\n\t\t}\r\n\t\t\r\n//\t 0 : truthful TP\r\n//\t 1 : truthful TP+FP\r\n//\t 2 : truthful TP+FN\r\n//\t 3 : deceptive TP\r\n//\t 4 : deceptive TP+FP\r\n//\t 5 : deceptive TP+FN\r\n\t\t\r\n\t\tint truthful_TP_sum=0,truthful_TPFP_sum=0,truthful_TPFN_sum=0;\r\n\t\tint deceptive_TP_sum=0,deceptive_TPFP_sum=0,deceptive_TPFN_sum=0;\r\n\t\t\r\n\t\tfor(i=0;i<5;i++) {\r\n\t\t\ttruthful_TP_sum+=preci_recall[i][0];\r\n\t\t\ttruthful_TPFP_sum+=preci_recall[i][1];\r\n\t\t\ttruthful_TPFN_sum+=preci_recall[i][2];\r\n\t\t\t\r\n\t\t\tdeceptive_TP_sum+=preci_recall[i][3];\r\n\t\t\tdeceptive_TPFP_sum+=preci_recall[i][4];\r\n\t\t\tdeceptive_TPFN_sum+=preci_recall[i][5];\r\n\t\t}\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\n\\nTRUTHFUL_TP_SUM : \" + truthful_TP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFP_SUM : \" + truthful_TPFP_sum);\r\n\t\tSystem.out.println(\"TRUTHFUL_TPFN_SUM : \" + truthful_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE_TP_SUM : \" + deceptive_TP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFP_SUM : \" + deceptive_TPFP_sum);\r\n\t\tSystem.out.println(\"DECEPTIVE_TPFN_SUM : \" + deceptive_TPFN_sum);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTRUTHFUL PRECISION : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFP_sum));\r\n\t\tSystem.out.println(\"TRUTHFUL RECALL : \" + (double)(truthful_TP_sum)/(double)(truthful_TPFN_sum));\r\n\t\t\r\n\t\tSystem.out.println(\"DECEPTIVE PRECISION : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFP_sum));\r\n\t\tSystem.out.println(\"DECEPTIVE RECALL : \" + (double)(deceptive_TP_sum)/(double)(deceptive_TPFN_sum));\r\n\t\t\r\n\r\n\t}", "private void ProcessTriples(Model model, String graphName){\n for (final StmtIterator stmts = model.listStatements(); stmts.hasNext(); ) {\n Statement stmt = stmts.next();\n\n ObjectNode json_triple = mapper.createObjectNode();\n json_triple.set(ArangoAttributes.SUBJECT, ProcessResource(stmt.getSubject()));\n json_triple.set(ArangoAttributes.PREDICATE, ProcessUri(stmt.getPredicate()));\n json_triple.set(ArangoAttributes.OBJECT, ProcessObject(stmt.getObject()));\n\n if(!StringUtils.isBlank(graphName))\n json_triple.set(ArangoAttributes.GRAPH_NAME, ProcessUri(graphName));\n\n jsonObjects.add(json_triple);\n }\n }", "public static List<StrategyAgent> createAgents() {\n\t\tdouble ratioAlt = parameters.getRatioAltruistic();\n\t\tint numberAlt = (int)Math.floor(parameters.getNAgents() * ratioAlt);\n\t\t\n\t\tList<StrategyAgent> agents = new ArrayList<StrategyAgent>();\n\t\tfor (int i = 0; i < numberAlt; i++) {\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.ALTRUISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tfor (int i = numberAlt; i < parameters.getNAgents(); i++){\n\t\t\tStrategyAgent agent = new StrategyAgent(lastID, 0, parameters.getEtaN(), parameters.getEtaS(),\n\t\t\t\t\tparameters.getFeatures(), parameters.getNNoLearning(), parameters.getAlphabetSize(),\n\t\t\t\t\tStrategyType.MUTUALISTIC, parameters.getMemorySize());\n\t\t\tagent.architecture.ontology = Utils.getSingletonOntology();\n\t\t\tagents.add(agent);\n\t\t\tlastID++;\n\t\t}\n\t\tCollections.shuffle(agents);\n\t\treturn agents;\n\t}", "public ArrayList getClassList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n String adj = \"\";\n String storingClass = \"\";\n HashSet classWithAttr = new HashSet();\n storingClassWithAttr = new HashMap<String, HashSet>();\n\n List<Tree> leaves;\n String phraseNotation = \"(NP([<NNS|NN|NNP]$VP))\";//@\" + phrase + \"! << @\" + phrase;\n\n /*For the single Tree */\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n String tempClass = \"\";\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n adjectiveExist = 0;\n adjectiveNoun = 0;\n int separator = 0;\n\n if (innerChild.length > 1) {\n int count = 1;\n int loopCount = 1;\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).yieldWords().get(0).word();\n if (dictionaryForClassList.contains(adj)) {\n adj = \"\";\n }\n }\n //if adjective exist store the classes and attributes separately\n if (adjectiveExist == 1) {\n storeClassesAndAttributesWhenAdjectiveExistToIdentifyClasses(inChild, adjectiveNoun, adj);\n } else {\n //storeClassesAndAttributesWhenAdjectiveNotExistToIdentifyClasses(inChild, loopCount, innerChild, separator, tempClass, count);\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\") || (inChild.value().equals(\"NNP\")))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (separator == 0) {\n if (loopCount == innerChild.length) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n String word = \"\";\n word = stemmingForAWord(identifiedWord);\n if (!dictionaryForClassList.contains(word)) {\n nounList.remove(tempClass);\n nounList.add(word);\n attributeLists.add(tempClass);\n \n }\n\n } else if (count == 1) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n\n } else {\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n if (tempClass.contains(\"_\")) {\n nounList.remove(tempClass);\n } else {\n nounList.remove(morphology.stem(tempClass));\n nounList.remove(tempClass);\n }\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n\n tempClass += \" \" + identifiedWord;\n nounList.add(tempClass);\n storingClass = tempClass;\n }\n\n count++;\n } else {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n }\n }\n\n }\n loopCount++;\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n nounList.add(morphology.stem(identifiedWord));\n } else {\n nounList.add(identifiedWord);\n }\n }\n if (inChild.value().equals(\"JJ\")) {\n //leaves correspond to the tokens\n leaves = inChild.getLeaves();\n nounList.add(((leaves.get(0).yieldWords()).get(0).word()));\n }\n }\n }\n }\n System.out.println(\"NOUN LIST :\" + nounList);\n return nounList;\n }", "public void createAttractors_step2() {\n\t\t// make a bunch of Attractors and sprinkle them around in the hypercube\n\t\tdouble count = Math.sqrt(observations.size());\n\t\tcount *= 2; \n\t\tint result = (int) count;\n\t\tif (result < 2) {\n\t\t\tresult = 2;\n\t\t}\n\t\tCaller.log(\"COUNT: \" + count);\n\t\tfor (int i = 0; i < result; i++) {\n\t\t\tdouble[] d = new double[shape];\n\t\t\tfor (int j = 0; j < shape; j++) {\n\t\t\t\td[j] = Math.random() * 4 - 2;\n\t\t\t}\n\t\t\tattractors.put(i, new _ReduxAttractor(i, d));\n\t\t}\n\t}", "private static final void addNewAttraction()\r\n { \r\n String attractionID;\r\n String description;\r\n double admissionFee;\r\n boolean duplicateID = false;\r\n \r\n System.out.println(\"Add New Attraction Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n System.out.print(\"Enter Attraction ID: \");\r\n attractionID = sc.nextLine();\r\n \r\n System.out.print(\"Enter Attraction Description: \");\r\n description = sc.nextLine();\r\n \r\n System.out.print(\"Enter Admission Fee: \");\r\n admissionFee = sc.nextDouble();\r\n sc.nextLine();\r\n System.out.println();\r\n \r\n // check attractionID with other ID's already in the system\r\n // if duplicate found print error, if no duplicate add object to array\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n \t if(attractionList[i].getAttractionID().equalsIgnoreCase(attractionID))\r\n \t {\r\n \t\t duplicateID = true;\r\n \t\t System.out.print(\"Error! Attraction / Tour with this ID already exists!\");\r\n \t\t System.out.println();\r\n \t }\r\n } \r\n\r\n if(duplicateID == false)\r\n {\r\n attractionList[attractionCount] = new Attraction(attractionID, description, admissionFee);\r\n attractionCount++;\r\n }\r\n }", "@Override\n\tpublic void visit(OWLObjectPropertyAssertionAxiom axiom) {\n\n\t\taddFact(RewritingVocabulary.TRIPLE, //\n\t\t\t\taxiom.getSubject().asOWLNamedIndividual().getIRI(), //\n\t\t\t\taxiom.getProperty().asOWLObjectProperty().getIRI(), //\n\t\t\t\taxiom.getObject().asOWLNamedIndividual().getIRI() //\n\t\t);\n\t}", "TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "public interface MyOntologyService {\n\n OWLOntology readMyOntology(OWLOntologyManager ontManager, String owlFilePath);\n\n OWLNamedIndividual applyClassAssertionFromObject(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n Object obj,\n String indName);\n\n void applyObjectPropertyAssertion(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_obj,\n String objectPropertyName,\n OWLNamedIndividual ind_field_obj);\n\n OWLObjectPropertyAssertionAxiom getObjectPropertyAssertionAxiom(\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n OWLNamedIndividual ind_object);\n\n void applyDataPropertyAssertion(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_obj,\n String dataPropertyName,\n Object data);\n\n OWLDataPropertyAssertionAxiom getDataPropertyAssertionAxiom(\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n Object data);\n\n OWLObjectProperty getObjectProperty(\n String propName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n OWLDataProperty getDataProperty(\n String propName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n OWLNamedIndividual getNamedIndividual(\n String indName,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm);\n\n boolean isObjectPropEntailed(\n PelletReasoner reasoner,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n OWLNamedIndividual ind_object);\n\n boolean isDataPropEntailed(\n PelletReasoner reasoner,\n OWLDataFactory dataFactory,\n PrefixOWLOntologyFormat pm,\n OWLNamedIndividual ind_subject,\n String propName,\n Object data);\n\n// void createRuleObjectForTest(\n// OWLOntologyManager ontManager,\n// OWLDataFactory factory,\n// OWLOntology myOntology,\n// PrefixOWLOntologyFormat pm\n// );\n\n // Dilara's method\n //This method is to use OWL API and create rule from our own Rule object.\n SWRLRule getOWLRepresentation(RuleForPrinego rule);\n\n RuleForPrinego SWRLtoRule(SWRLRule swl);\n\n List<SWRLRule> listRules(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm\n );\n\n boolean createRule(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n SWRLRule rule\n );\n\n boolean deleteRule(\n OWLOntologyManager ontManager,\n OWLDataFactory dataFactory,\n OWLOntology myOntology,\n PrefixOWLOntologyFormat pm,\n SWRLRule rule\n );\n\n}", "protected void createHeadingsAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed/headings\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Elements\", \"\",\n\t\t\t \"Literals\", \"\",\n\t\t\t \"Vocabularies\", \"\",\n\t\t\t \"Types\", \"\",\n\t\t\t \"Properties\", \"\",\n\t\t\t \"Relations\", \"\",\n\t\t\t \"Predicates\", \"\",\n\t\t\t \"Axioms\", \"\",\n\t\t\t \"Descriptions\", \"\",\n\t\t\t \"Instances\", \"\",\n\t\t\t \"Assertions\", \"\",\n\t\t\t \"Enumerations\", \"\"\n\t\t });\n\t}", "private void trainLexicon() throws Exception\n\t{\n\t\tSystem.out.println(\"Starting reading Lexicon Training set ..\");\n\t\tInstanceList lexicon_instance = dbiterator.getInstancesFromAlphabets(DBInstanceIterator.DBSource.LEXICON);\n\t\tSystem.out.println(\"Lexicon Training set : \" + lexicon_instance.size());\n\t\t/*svm_parameter param = new svm_parameter();\n\t\tparam.gamma = 0.0;\n\t\tparam.C = 100.0;*/\n\t\tSVMClassifierTrainer trainer = new SVMClassifierTrainer(new LinearKernel(), true);\n\t\tSystem.out.println(\"SVM Starts Training on lexicon training set ..\");\n\t\tSVMClassifier classifier = trainer.train(lexicon_instance);\n\t\tSystem.out.println(\"Saving SVM Classifier ..\");\n\t\tSystem.out.println(lexicon_instance.targetLabelDistribution());\n\t\tsaveModel(classifier, Lexicon_Train);\n\t\tSystem.out.println(\"Lexicon classifier saved to : \" + Lexicon_Train);\n\t}", "public void saveTrainingDataToFileHybridSampling1() throws Exception {\n NGramTokenizer tokenizer = new NGramTokenizer();\r\n tokenizer.setNGramMinSize(1);\r\n tokenizer.setNGramMaxSize(1);\r\n tokenizer.setDelimiters(\"\\\\W\");\r\n\r\n //set stemmer - set english stemmer\r\n SnowballStemmer stemmer = new SnowballStemmer();\r\n stemmer.setStemmer(\"english\");\r\n\r\n //set lemmatizer\r\n StanfordCoreNLPLemmatizer scnlpl = new StanfordCoreNLPLemmatizer();\r\n\r\n //create new filter for vector transformation\r\n StringToWordVector filter = new StringToWordVector();\r\n filter.setLowerCaseTokens(true);\r\n filter.setOutputWordCounts(true);\r\n filter.setTFTransform(true);\r\n filter.setIDFTransform(true);\r\n filter.setStopwords(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\StopWordsR2.txt\")); // stop word removal given in research paper\r\n filter.setTokenizer(tokenizer);\r\n filter.setStemmer(scnlpl);\r\n\r\n System.out.println(\"Stemmer Name- \" + filter.getStemmer());\r\n\r\n InstanceQuery query = new InstanceQuery();\r\n query.setUsername(\"root\");\r\n query.setPassword(\"\");\r\n\r\n int numberOfPapers = 5;\r\n Instances[] otherArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'other'\");\r\n otherArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='other'\");\r\n otherArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='other'\");\r\n otherArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'other'\");\r\n otherArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'other'\");\r\n otherArticles[4] = query.retrieveInstances();\r\n\r\n Instances[] crimeArticles = new Instances[numberOfPapers];\r\n query.setQuery(\"SELECT content, label FROM article_ceylon_today_2013 where `label` = 'crime'\");\r\n crimeArticles[0] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2012 where `label` ='crime'\");\r\n crimeArticles[1] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_daily_mirror_2013 where `label` ='crime'\");\r\n crimeArticles[2] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2012 where `label` = 'crime'\");\r\n crimeArticles[3] = query.retrieveInstances();\r\n\r\n query.setQuery(\"SELECT content, label FROM article_the_island_2013 where `label` = 'crime'\");\r\n crimeArticles[4] = query.retrieveInstances();\r\n\r\n FastVector attributeList = new FastVector(2);\r\n Attribute a1 = new Attribute(\"text\", (FastVector) null);\r\n FastVector classVal = new FastVector();\r\n classVal.addElement(\"crime\");\r\n classVal.addElement(\"other\");\r\n Attribute c = new Attribute(\"@@class@@\", classVal);\r\n //add class attribute and news text\r\n attributeList.addElement(a1);\r\n attributeList.addElement(c);\r\n Instances trainingData = new Instances(\"TrainingNews\", attributeList, 0);\r\n trainingData.setClassIndex(1);\r\n\r\n //up sampling using SMOTE\r\n int crimeArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < crimeArticles[i].numInstances(); j++) {\r\n\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, crimeArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, crimeArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n\r\n\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n crimeArticlesCount++;\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n// if (crimeArticlesCount == 50) {\r\n// break;\r\n// }\r\n }\r\n\r\n System.out.println(\"Total Number of Crime Instances: \" + crimeArticlesCount);\r\n\r\n //downsampling using ?? \r\n int otherArticlesCount = 0;\r\n for (int i = 0; i < numberOfPapers; i++) {\r\n for (int j = 0; j < otherArticles[i].numInstances(); j++) {\r\n Instance inst = new Instance(trainingData.numAttributes());\r\n inst.setValue(a1, otherArticles[i].instance(j).stringValue(0));\r\n inst.setValue(c, otherArticles[i].instance(j).stringValue(1));\r\n inst.setDataset(trainingData);\r\n System.out.println(inst);\r\n trainingData.add(inst);\r\n otherArticlesCount++;\r\n\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n if (otherArticlesCount == 4872) {\r\n break;\r\n }\r\n }\r\n System.out.println(\"Total Number of Other Instances: \" + otherArticlesCount);\r\n System.out.println(\"Total num of instances= \" + trainingData.numInstances());\r\n\r\n // apply the StringToWordVector filter\r\n filter.setInputFormat(trainingData);\r\n Instances dataFiltered = Filter.useFilter(trainingData, filter);\r\n System.out.println(\"Number of Attributes after stop words removal- \" + dataFiltered.numAttributes());\r\n System.out.println(\"\\n\\nFiltered data:\\n\\n\" + dataFiltered);\r\n\r\n /**\r\n * Resamples a dataset by applying the Synthetic Minority Oversampling\r\n * TEchnique (SMOTE)\r\n * http://www.cs.cmu.edu/afs/cs/project/jair/pub/volume16/chawla02a-html/node6.html\r\n * http://weka.sourceforge.net/doc.packages/SMOTE/weka/filters/supervised/instance/SMOTE.html \r\n *\r\n */\r\n SMOTE s = new SMOTE();\r\n s.setInputFormat(dataFiltered);\r\n // Specifies percentage of SMOTE instances to create.\r\n s.setPercentage(300.0);//464\r\n Instances dataBalanced = Filter.useFilter(dataFiltered, s);\r\n\r\n Random r = new Random();\r\n dataBalanced.randomize(r);\r\n\r\n ArffSaver saver = new ArffSaver();\r\n saver.setInstances(dataBalanced);\r\n saver.setFile(new File(\"C:\\\\Users\\\\hp\\\\Desktop\\\\SVM implementation\\\\arffData\\\\balancedTrainingDataHybridRandom.arff\"));\r\n saver.writeBatch();\r\n }", "public void test_dn_0() {\n OntModel schema = ModelFactory.createOntologyModel( OntModelSpec.OWL_LITE_MEM_RULES_INF, null );\n \n schema.read( \"file:doc/inference/data/owlDemoSchema.xml\", null );\n \n int count = 0;\n for (Iterator i = schema.listIndividuals(); i.hasNext(); ) {\n //Resource r = (Resource) i.next();\n i.next();\n count++;\n /* Debugging * /\n for (StmtIterator j = r.listProperties(RDF.type); j.hasNext(); ) {\n System.out.println( \"ind - \" + r + \" rdf:type = \" + j.nextStatement().getObject() );\n }\n System.out.println(\"----------\"); /**/\n }\n \n assertEquals( \"Expecting 6 individuals\", 6, count );\n }", "public void trainData() throws IOException {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttestingFold = i;\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Training Tree-Augmented Naive Bayes for writing Fold\");\n\t\t\t}\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Calculating Class Priors across Data set.\\n\");\n\t\t\t}\n\t\t\tbuildPriors();\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Priors built.\\n Discretizing data into Naive Bin Estimator...\\n\" +\n\t\t\t\t\t\t\"Generating Completed Graph...\\nWeighting Edges...\\n\");\n\t\t\t}\n\t\t\tdiscretizeData();\n\t\t\ttest();\n\t\t}\n\n\t}", "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "private void applyMetadataTemplateProjectES_BU_TF() {\n\t\tArrayList<ArtifactType> artifactTypes = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> dependencyTypes = new ArrayList<DependencyType>();\n\t\tArrayList<TaskType> taskTypes = new ArrayList<TaskType>();\n\t\tArrayList<RuleType> ruleTypes = new ArrayList<RuleType>();\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArtifactType> u = new ArrayList<ArtifactType>();\n\t\tArrayList<ArtifactType> p = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> d = new ArrayList<DependencyType>();\n\t\tString description = \"\";\n\t\t\n\t\tArtifactType ATstart = new ArtifactType(\"Start\",\".start\");\n\t\tArtifactType ATstory = new ArtifactType(\"Story\",\".txt\");\n\t\tArtifactType ATstoryTest = new ArtifactType(\"StoryTest\",\".java\");\n\t\tArtifactType ATinterface = new ArtifactType(\"Interface\",\".java\");\n\t\tArtifactType ATdomainClass = new ArtifactType(\"DomainClass\",\".java\");\n\t\tArtifactType ATdomainTest = new ArtifactType(\"DomainTest\",\".java\");\n\t\tartifactTypes.add(ATstart);\n\t\tartifactTypes.add(ATstory);\n\t\tartifactTypes.add(ATstoryTest);\n\t\tartifactTypes.add(ATinterface);\t\t\n\t\tartifactTypes.add(ATdomainClass);\n\t\tartifactTypes.add(ATdomainTest);\n\n\t\tu.add(ATstart);\n\t\tp.add(ATstory);\n\t\tDependencyType DTstory = new DependencyType(ATstart,ATstory,\"DTstory\");\n\t\td.add(DTstory);\n\t\tdependencyTypes.add(DTstory);\n\t\tdescription = \"Create a story for the project\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATstory);\n\t\tp.add(ATdomainTest);\n\t\tDependencyType DTdomainTest = new DependencyType(ATstory,ATdomainTest,\"DTdomainTest\");\n\t\td.add(DTdomainTest);\n\t\tDTdomainTest.setMultiplicity(0);\n\t\tdependencyTypes.add(DTdomainTest);\n\t\tdescription = \"Create a domain test for the story\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATdomainClass);\n\t\tDependencyType DTdomainClass = new DependencyType(ATdomainTest,ATdomainClass,\"DTdomainClass\");\n\t\td.add(DTdomainClass);\n\t\tdependencyTypes.add(DTdomainClass);\n\t\tdescription = \"Create a domain class for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATinterface);\n\t \tDependencyType DTinterface = new DependencyType(ATdomainTest,ATinterface,\"DTinterface\");\n\t\td.add(DTinterface);\n\t\tdependencyTypes.add(DTinterface);\n\t\tdescription = \"Create a interface for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATinterface);\n\t p.add(ATstoryTest);\n\t\tDependencyType DTstoryTest = new DependencyType(ATinterface,ATstoryTest,\"DTstoryTest\");\n\t\td.add(DTstoryTest);\n\t\tdependencyTypes.add(DTstoryTest);\n\t\tdescription = \"Create a story test for the interface\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tstatus.setArtifactTypes(artifactTypes);\n\t\tstatus.setDependencyTypes(dependencyTypes);\n\t\tstatus.setTaskTypes(taskTypes);\t\n\t\tstatus.setRuleTypes(ruleTypes);\n\t\tstatus.setRules(rules);\n\t}", "static private void addRelations( final JCas jCas,\n final FhirPractitioner practitioner,\n final FhirNoteSpecs noteSpecs,\n final FhirResourceCreator<Annotation, Basic> aCreator,\n final Map<IdentifiedAnnotation, Basic> annotationBasics,\n final Map<Annotation, Basic> simpleBasics ) {\n final Collection<BinaryTextRelation> relations = JCasUtil.select( jCas, BinaryTextRelation.class );\n for ( BinaryTextRelation relation : relations ) {\n final RelationArgument arg1 = relation.getArg1();\n final Annotation source = arg1.getArgument();\n Basic basicSource;\n if ( source instanceof IdentifiedAnnotation ) {\n basicSource = annotationBasics.get( (IdentifiedAnnotation)source );\n } else {\n basicSource = getSimpleBasic( jCas, source, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final RelationArgument arg2 = relation.getArg2();\n final Annotation target = arg2.getArgument();\n Basic basicTarget;\n if ( target instanceof IdentifiedAnnotation ) {\n basicTarget = annotationBasics.get( (IdentifiedAnnotation)target );\n } else {\n basicTarget = getSimpleBasic( jCas, target, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final String type = relation.getCategory();\n basicSource.addExtension( FhirElementFactory.createRelation( type, basicTarget ) );\n }\n }", "public void test_sf_940570() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM_RDFS_INF );\n OntClass C = m.createClass( NS + \"C\" );\n Resource a = m.createResource( NS + \"a\", C );\n \n TestUtil.assertIteratorValues( this, m.listIndividuals(), new Object[] {a} );\n \n OntModel dm = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM_RULE_INF );\n OntClass D = dm.createClass( NS + \"D\" );\n Resource b = dm.createResource( NS + \"b\", D );\n \n TestUtil.assertIteratorValues( this, dm.listIndividuals(), new Object[] {b} );\n }", "private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }", "public void createMarkers() throws CoreException {\r\n if (resource != null && document != null) {\r\n for (LPEXTask tTask : parseDocument()) {\r\n Map<String, Object> tAttrs = new HashMap<String, Object>();\r\n tAttrs.put(\"userEditable\", false);\r\n tAttrs.put(\"priority\", new Integer(tTask.getPriority()));\r\n MarkerUtilities.setLineNumber(tAttrs, tTask.getLine());\r\n MarkerUtilities.setMessage(tAttrs, tTask.getMessage());\r\n MarkerUtilities.setCharStart(tAttrs, tTask.getCharStart());\r\n MarkerUtilities.setCharEnd(tAttrs, tTask.getCharEnd());\r\n MarkerUtilities.createMarker(resource, tAttrs, LPEXTask.ID);\r\n }\r\n }\r\n }", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createGenModel_1Annotations() {\n\t\tString source = \"http://www.eclipse.org/uml2/1.1.0/GenModel\";\n\t\taddAnnotation\n\t\t (internalFailureOccurrenceDescriptionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.softwareInducedFailureType__InternalFailureOccurrenceDescription.oclIsTypeOf(ResourceTimeoutFailureType)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"self.primaryBehaviour__RecoveryAction <> null\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.recoveryAction__RecoveryActionBehaviour.recoveryActionBehaviours__RecoveryAction->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y\\r\\n\\t\\tand x.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\\r\\n\\t\\tand y.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self))\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(1),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(2),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y and\\r\\n\\tx.failureTypes_FailureHandlingEntity->\\r\\n\\t\\texists(f:mpcm::reliability::FailureType |\\r\\n\\t\\ty.failureTypes_FailureHandlingEntity->includes(f)))\"\n\t\t });\n\t}", "public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "org.hl7.fhir.CodeableConcept addNewInterpretation();", "public static void main(String[] args) throws SKOSCreationException {\n SKOSManager man = new SKOSManager();\n\n // a skos vocabulary is essentially an OWL ontology that can contain multiple concept schemes\n SKOSDataset vocab = man.createSKOSDataset(URI.create(baseURI));\n\n // a data factory is used to create types of SKOS Objects\n SKOSDataFactory factory = man.getSKOSDataFactory();\n\n SKOSConceptScheme scheme = factory.getSKOSConceptScheme(URI.create(baseURI + \"conceptSchemeA\"));\n\n // make a concept scheme assertion in a particular data set\n SKOSEntityAssertion schemaAss = factory.getSKOSEntityAssertion(scheme);\n\n SKOSConcept concept1 = factory.getSKOSConcept(URI.create(baseURI + \"concept1\"));\n SKOSConcept concept2 = factory.getSKOSConcept(URI.create(baseURI + \"concept2\"));\n\n // just add it with a Concept Assertion\n SKOSEntityAssertion conAss1 = factory.getSKOSEntityAssertion(concept1);\n SKOSEntityAssertion conAss2 = factory.getSKOSEntityAssertion(concept2);\n\n // make assertion on concepts in your SKOS vocabulary - you do it by making SKOS assertion objects\n SKOSObjectRelationAssertion inScheme = factory.getSKOSObjectRelationAssertion(concept1, factory.getSKOSInSchemeProperty(), scheme);\n SKOSObjectRelationAssertion inScheme1 = factory.getSKOSObjectRelationAssertion(concept2, factory.getSKOSInSchemeProperty(), scheme);\n\n SKOSObjectRelationAssertion topConcept = factory.getSKOSObjectRelationAssertion(scheme, factory.getSKOSHasTopConceptProperty(), concept1);\n\n // add object relation between individuals, this is with respect to a vocabulary\n\n SKOSObjectRelationAssertion assertion1 = factory.getSKOSObjectRelationAssertion(concept2, factory.getSKOSBroaderProperty(), concept1);\n\n // add data relation on individuals, this is with respect to a vocabulary\n\n SKOSAnnotation labelAnno = factory.getSKOSAnnotation(factory.getSKOSPrefLabelProperty().getURI(), \"Some Label\", \"en\");\n SKOSAnnotation altLabelAnno = factory.getSKOSAnnotation(factory.getSKOSAltLabelProperty().getURI(), \"Another Label\", \"en\");\n SKOSAnnotationAssertion assertion2 = factory.getSKOSAnnotationAssertion(concept2, labelAnno);\n SKOSAnnotationAssertion assertion3 = factory.getSKOSAnnotationAssertion(concept2, altLabelAnno);\n\n\n /* creating a sub property of altLabel */\n\n SKOSAnnotationProperty newAltLabel = factory.getSKOSAnnotationProperty(URI.create(\"http://myexample/altLable/newSubAltLabel\"));\n SKOSAltLabelProperty altLabel = factory.getSKOSAltLabelProperty();\n\n SKOStoOWLConverter converter = new SKOStoOWLConverter();\n\n OWLOntologyManager owlMan = man.getOWLManger();\n OWLDataFactory owlFact = owlMan.getOWLDataFactory();\n OWLSubAnnotationPropertyOfAxiom axiom = owlFact.getOWLSubAnnotationPropertyOfAxiom(converter.getAsOWLAnnotationProperty(newAltLabel), converter.getAsOWLAnnotationProperty(altLabel));\n try {\n owlMan.applyChange(new AddAxiom(converter.getAsOWLOntology(vocab), axiom));\n } catch (OWLOntologyChangeException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n /*\n * The full legal use of SKOS documantation propertiiies canno't be supported by this implmentation with the OWL API\n * The documantation properties can be used as either data or object properties, depending on how they are being used\n */\n\n // SKOS documentation properties as object properties\n\n // we might want to create some abritary resource, e.g. a web page that is used as a scope note\n SKOSResource someResource = factory.getSKOSResource(URI.create(\"http://www.wikipedia.org/someExample\"));\n SKOSObjectRelationAssertion assertion4 = factory.getSKOSObjectRelationAssertion(concept2, factory.getSKOSScopeNoteObjectProperty(), someResource);\n\n // we might want to use the documentation properties with a filler that is a literal\n SKOSDataRelationAssertion assertion5 = factory.getSKOSDataRelationAssertion(concept2, factory.getSKOSScopeNoteDataProperty(), \"A scope note for the concept\", \"en\");\n\n\n /* Annotations - you can assign any kind of annotation (e.g. dublic core) to your entities\n * here is an example adding a dc:creator and a rdfs:comment\n */\n\n SKOSAnnotation anno1 = factory.getSKOSAnnotation(DublinCoreVocabulary.DATE.getURI(), \"12-07-2008\");\n SKOSAnnotation anno2 = factory.getSKOSAnnotation(DublinCoreVocabulary.CREATOR.getURI(), \"Simon Jupp\", \"en\");\n SKOSAnnotation anno3 = factory.getSKOSAnnotation(URI.create(\"http://my-custom-annotation.com/example\"), someResource);\n SKOSAnnotation anno4 = factory.getSKOSAnnotation(DublinCoreVocabulary.CREATOR.getURI(), factory.getSKOSUntypedConstant(\"Simon Jupp\", \"en\"));\n // todo need to work on typed on objects\n //factory.getSKOSAnnotationsByURI(DublinCoreVocabulary.CREATOR.getURI(), factory.getSKOSTypedConstant(\"String\", \"Simon Jupp\"));\n\n \n SKOSAnnotationAssertion assertion6 = factory.getSKOSAnnotationAssertion(concept2, anno1);\n SKOSAnnotationAssertion assertion7 = factory.getSKOSAnnotationAssertion(concept2, anno2);\n SKOSAnnotationAssertion assertion8 = factory.getSKOSAnnotationAssertion(concept2, anno3);\n SKOSAnnotationAssertion assertion9 = factory.getSKOSAnnotationAssertion(concept2, anno4);\n\n /* Add some utility stuff fomr creating single or multiple inScheme objects,\n * these are afetr all just ObjectPropertyAssertions */\n // or add it to concept shceme in a paryicular vocab\n // SKOSInSchemeAssertion insSchemeAss = factory.getSKOSInSchemeAssertion(vocab, concept1, scheme);\n // this can also takes sets\n // SKOSInSchemeAssertion insSchemeAss = factory.getSKOSInsCHEMEAssertion(vocab, Set <SKOSConcept> concept1, scheme);\n\n List<SKOSChange> addList = new ArrayList<SKOSChange>();\n addList.add(new AddAssertion(vocab, schemaAss));\n addList.add(new AddAssertion(vocab, inScheme));\n addList.add(new AddAssertion(vocab, inScheme1));\n addList.add(new AddAssertion(vocab, conAss1));\n addList.add(new AddAssertion(vocab, conAss2));\n addList.add(new AddAssertion(vocab, topConcept));\n addList.add(new AddAssertion(vocab, assertion1));\n addList.add(new AddAssertion(vocab, assertion2));\n addList.add(new AddAssertion(vocab, assertion3));\n addList.add(new AddAssertion(vocab, assertion4));\n addList.add(new AddAssertion(vocab, assertion5));\n addList.add(new AddAssertion(vocab, assertion6));\n addList.add(new AddAssertion(vocab, assertion7));\n addList.add(new AddAssertion(vocab, assertion8));\n addList.add(new AddAssertion(vocab, assertion9));\n try {\n\n// man.applyChange(new AddAssertion(vocab, schemaAss));\n// man.applyChange(new AddAssertion(vocab, inScheme));\n// man.applyChange(new AddAssertion(vocab, inScheme1));\n// man.applyChange(new AddAssertion(vocab, conAss1));\n// man.applyChange(new AddAssertion(vocab, conAss2));\n// man.applyChange(new AddAssertion(vocab, topConcept));\n// man.applyChange(new AddAssertion(vocab, assertion1));\n// man.applyChange(new AddAssertion(vocab, assertion2));\n// man.applyChange(new AddAssertion(vocab, assertion3));\n\n man.applyChanges(addList);\n\n System.err.println(\"writing ontology\");\n man.save(vocab, SKOSFormatExt.RDFXML, URI.create(\"file:/Users/simon/testskos.rdf\"));\n\n } catch (SKOSChangeException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n } catch (SKOSStorageException e) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n\n\n\n\n//\n// // create a Label relation...\n// List<OWLConstant> labels = new ArrayList<OWLConstant>();\n// labels.add(factory.getOWLUntypedConstant(\"Some Label\"));\n// labels.add(factory.getOWLUntypedConstant(\"Another Label\"));\n//\n// SKOSLabelRelation labRel = factory.getSKOSLabelRelation(URI.create(baseURI + \"labelRel1\"), labels);\n// vocab.addSKOSLabelRelation(labRel);\n//\n// SKOSObjectRelationAssertion assertion4 = factory.getSKOSLabelRelationAssertion(concept2, labRel);\n//\n System.out.println(\"Read\");\n\n // get all the concept schemes\n for (SKOSConceptScheme sch : vocab.getSKOSConceptSchemes()) {\n\n System.err.println(\"Concept Scheme_______\");\n // get all the concepts in that scheme\n for (SKOSConcept co : vocab.getConceptsInScheme(sch)) {\n\n System.out.println(\"\\tConcept: \" + co.getURI());\n\n // get any pref labels\n for (SKOSAnnotation con : co.getSKOSAnnotationsByURI(vocab, factory.getSKOSPrefLabelProperty().getURI())) {\n if (con.getAnnotationValueAsConstant() instanceof SKOSUntypedLiteral) {\n SKOSUntypedLiteral unCon = con.getAnnotationValueAsConstant().getAsSKOSUntypedLiteral();\n System.out.println(\"\\t\\tPrefLabel: \" + unCon.getLiteral() + \" lang: \" + unCon.getLang());\n }\n else if (con.getAnnotationValueAsConstant() instanceof SKOSTypedLiteral) {\n SKOSTypedLiteral unCon = con.getAnnotationValueAsConstant().getAsSKOSTypedLiteral();\n System.out.println(\"\\t\\tPrefLabel: \" + unCon.getLiteral());\n }\n }\n\n // get definitions\n for (SKOSObject object : co.getSKOSRelatedEntitiesByProperty(vocab, factory.getSKOSDefinitionObjectProperty())) {\n\n if (object instanceof SKOSLiteral) {\n \n }\n else if (object instanceof SKOSEntity) {\n\n }\n\n\n }\n\n // get broader concepts from all schemes\n for (SKOSEntity c : co.getSKOSRelatedEntitiesByProperty(vocab, factory.getSKOSBroaderProperty())) {\n System.out.println(\"\\t\\thasBroader: \" + c.getURI());\n }\n\n // get label relations\n// for (SKOSLabelRelation rel : co.getSKOSLabelRelations(vocab)) {\n//\n// Iterator it = rel.getLabels().iterator();\n// while (it.hasNext()) {\n// OWLConstant con = (OWLConstant) it.next();\n// System.out.println(\"Releated Labels: \" + con.getLiteral() );\n// }\n// }\n\n\n }\n\n }\n//\n// // do a simple lookup\n// SKOSEntity entity = vocab.getSKOSEntity(\"Another Label\");\n// System.out.println(\"Entity lookup : \" + entity.asSKOSConcept().getAsOWLIndividual().getURI());\n//\n//\n//\n// } catch (OWLOntologyChangeException e) {\n// e.printStackTrace();\n// } catch (OWLOntologyStorageException e) {\n// e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n// }\n\n }", "private static void initDatatypeProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n ontologie.add(ontologie);\n datatypeProperties.addAll(ontologie.listDatatypeProperties().toList());\n }", "public void createFeatures(List<String> features, String[] tokens, int index, String[] previousOutcomes) {\n if (currentSentence != tokens) {\n currentSentence = tokens;\n if (isBilou) {\n currentEntities = dictionary.getBilouDictionaryMatch(tokens);\n } else {\n currentEntities = dictionary.getBioDictionaryMatch(tokens);\n }\n }\n \n String currentEntity = currentEntities.get(index);\n \n features.add(attributes.get(\"dict\") + \"=\" + currentEntity);\n features.add(attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n features.add(attributes.get(\"dict\") + \",w=dict\");\n if (Flags.DEBUG) {\n System.err.println(\"-> \" + tokens[index] + \": \" + attributes.get(\"dict\") + \",\" + \"w=\" + currentEntity + \",\" + tokens[index]);\n }\n }", "public static void main(String[] args) {\n RatingRegister ratings = new RatingRegister();\n\n Film goneWithTheWind = new Film(\"Gone with the Wind\");\n Film theBridgesOfMadisonCounty = new Film(\"The Bridges of Madison County\");\n Film eraserhead = new Film(\"Eraserhead\");\n// Film saksiKasi = new Film(\"saksiKasi\");\n// Film haifisch = new Film(\"haifisch\");\n\n Person matti = new Person(\"Matti\");\n Person pekka = new Person(\"Pekka\");\n Person mikke = new Person(\"Mikke\");\n \n// Person jukka = new Person(\"Jukka\");\n\n ratings.addRating(matti, goneWithTheWind, Rating.BAD);\n ratings.addRating(matti, theBridgesOfMadisonCounty, Rating.GOOD);\n ratings.addRating(matti, eraserhead, Rating.FINE);\n\n ratings.addRating(pekka, goneWithTheWind, Rating.FINE);\n ratings.addRating(pekka, theBridgesOfMadisonCounty, Rating.BAD);\n ratings.addRating(pekka, eraserhead, Rating.MEDIOCRE);\n\n// ratings.addRating(pekka, eraserhead, Rating.FINE);\n// ratings.addRating(pekka, saksiKasi, Rating.FINE);\n// ratings.addRating(saksiKasi, Rating.FINE);\n// ratings.addRating(saksiKasi, Rating.GOOD);\n// ratings.addRating(haifisch, Rating.BAD);\n// ratings.addRating(haifisch, Rating.BAD);\n\n Reference ref = new Reference(ratings);\n \n Film recommended = ref.recommendFilm(mikke);\n System.out.println(\"The film recommended to Michael is: \" + recommended);\n//*/\n }", "public void buildAllPossibleTrain() {\n while (depotOnThisLine.checkOnPossibilityCreatingTrain()) {\n try {\n trains.add(Factory.buildNewTrain(depotOnThisLine));\n } catch (DepotNotExistException e) {\n e.printStackTrace();\n }\n }\n }", "public void testAddTrials() {\n exp = new Experiment(\"10\");\n TrialCount trial1 = new TrialCount(\"109\", new GeoLocation(0.0, 0.0), new Profile());\n TrialCount trial2 = new TrialCount(\"110\", new GeoLocation(1.0, 1.0), new Profile());\n ArrayList<Trial> trials = new ArrayList<>();\n trials.add(trial1);\n trials.add(trial2);\n exp.addTrials(trials);\n\n assertEquals(\"addTrials does not work\", \"109\", exp.getTrial(\"109\").getId());\n assertEquals(\"AddTrials does not work\", \"110\", exp.getTrial(\"110\").getId());\n }", "public static LearningTable createLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(createAttributes());\n\t\ttable.getExamples().addAll(createExamples(table.getAttributes()));\n\t\t\n\t\treturn table;\n\t}", "public void test_lt_01() {\n OntModel m = ModelFactory.createOntologyModel();\n \n DatatypeProperty p = m.createDatatypeProperty(NS + \"p\");\n OntClass c = m.createClass(NS + \"A\");\n \n Individual i = m.createIndividual(NS + \"i\", c);\n i.addProperty(p, \"testData\");\n \n int count = 0;\n \n for (Iterator j = i.listPropertyValues(p); j.hasNext();) {\n //System.err.println(\"Individual i has p value: \" + j.next());\n j.next();\n count++;\n }\n \n assertEquals(\"i should have one property\", 1, count);\n }", "public void setGroundInstancesAsAxioms(Explainer explainer, Vector concepts)\n {\n if (!use_ground_instances)\n return;\n explainer.use_ground_instances = true;\n explainer.ground_instances_as_axioms = \"\";\n for (int i=0; i<concepts.size(); i++)\n {\n Concept concept = (Concept)concepts.elementAt(i);\n if (concept.is_user_given)\n {\n for (int j=0; j<concept.datatable.size(); j++)\n {\n Row row = (Row)concept.datatable.elementAt(j);\n for (int k=0; k<row.tuples.size(); k++)\n {\n Vector tuple = (Vector)row.tuples.elementAt(k);\n Vector ground_letters = (Vector)tuple.clone();\n ground_letters.insertElementAt(row.entity, 0);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + add_to.trim() + \".\\n\";\n }\n if (concept.arity==1 && row.tuples.size()==0)\n {\n Vector ground_letters = new Vector();\n ground_letters.addElement(row.entity);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + \"~(\" + add_to.trim() + \").\\n\";\n }\n }\n }\n }\n }" ]
[ "0.6731442", "0.61023265", "0.6081256", "0.58191717", "0.56960016", "0.5602133", "0.54895675", "0.5462654", "0.534254", "0.5283294", "0.527711", "0.5273258", "0.5254744", "0.52513206", "0.5230216", "0.5194543", "0.51920027", "0.51899606", "0.5166098", "0.5165937", "0.51308644", "0.5097971", "0.5080454", "0.5073246", "0.5052584", "0.5048023", "0.50292915", "0.5028404", "0.50102764", "0.5007254", "0.49920556", "0.49880582", "0.49772605", "0.49377635", "0.49366635", "0.4913938", "0.49087167", "0.48979664", "0.48951995", "0.48906022", "0.48837677", "0.48717317", "0.48647994", "0.4857007", "0.4856941", "0.48499647", "0.4847278", "0.4839993", "0.48383987", "0.4825546", "0.4823369", "0.48149008", "0.48141322", "0.47947267", "0.47857985", "0.4784244", "0.47802368", "0.47801703", "0.4779066", "0.47754475", "0.47739404", "0.477219", "0.4768497", "0.47602692", "0.4754096", "0.47537622", "0.47455066", "0.4744101", "0.47252446", "0.47225708", "0.47165233", "0.47145516", "0.4712783", "0.4700617", "0.4699425", "0.4697102", "0.4689745", "0.46894532", "0.46889532", "0.46884903", "0.46870977", "0.46820486", "0.46801418", "0.46796328", "0.46773267", "0.46668363", "0.46640038", "0.46631622", "0.465631", "0.46512198", "0.46494955", "0.4643831", "0.46404102", "0.46320778", "0.46320236", "0.4631202", "0.4628643", "0.46283227", "0.4628136", "0.46244627" ]
0.7123393
0
This method is invoked for creating annotations defined by Tribal Education Network Ontology, and those common for learning objects as well as other elearning objects like courses, pages etc. It creates an arraylist containing triples for annotations common to all the objects in ten, to be inserted in triple store
public ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean){ String LOG_METHOD_NAME = "ArrayList<Triple> createCourseAnnotationTriples(Node subject ,CourseAnnotationsBean courseAnnotationBean)"; log.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME); ArrayList<Triple> tripleList = new ArrayList<>(); Node predicate = null, predicate_value=null; try{ //modified if(!Utils.isEmptyOrNull(courseAnnotationBean.getModified())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED); predicate_value = Node.createLiteral(courseAnnotationBean.getModified()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //rightsHolder if(!Utils.isEmptyOrNull(courseAnnotationBean.getRightsHolder())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER); predicate_value = Node.createLiteral(courseAnnotationBean.getRightsHolder()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //hasPart if(!Utils.isEmptyOrNull(courseAnnotationBean.getHasPart())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART); predicate_value = Node.createLiteral(courseAnnotationBean.getHasPart()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //creator if(!Utils.isEmptyOrNull(courseAnnotationBean.getCreator())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_CREATOR); predicate_value = Node.createLiteral(courseAnnotationBean.getCreator()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //description if(!Utils.isEmptyOrNull(courseAnnotationBean.getDescription())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_DESCRIPTION); predicate_value = Node.createLiteral(courseAnnotationBean.getDescription()); tripleList.add(new Triple(subject, predicate, predicate_value)); } //keywords if(!Utils.isEmptyOrNull(courseAnnotationBean.getKeywords())){ predicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_KEYWORDS); predicate_value = Node.createLiteral(courseAnnotationBean.getKeywords()); tripleList.add(new Triple(subject, predicate, predicate_value)); } }catch(Exception ex) { log.error(ex); throw ex; }finally{ log.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME); } return tripleList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Triple> createTenCommonAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenCommonAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\t\r\n\t\ttry{\r\n\t\t\t//modified\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getModified())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_MODIFIED);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getModified());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rightsHolder\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getRightsHolder())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_RIGHTS_HOLDER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getRightsHolder());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//isPartOf\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getIsPartOf())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_ISPARTOF);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getIsPartOf());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//hasPart\t\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getHasPart())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_COMMON_HASPART);\r\n\t\t\t\tpredicate_value = Node.createURI(tenLearningObjectAnnotationsBean.getHasPart());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public ArrayList<Triple> createTenLearningObjectAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createTenLearningObjectAnnotationTriples(Node, TenLearningObjectAnnotationsBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//annotator name\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getAnnotator())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_ANNOTATOR);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getAnnotator());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addDescriptiveAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addStructuralAnnotationTriples(subject, tenLearningObjectAnnotationsBean));\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void buildTFIDFAnnotations() throws IOException {\n\t\tTFIDFTrendExtractor trendExtractor = new TFIDFTrendExtractor(false, trainingInstances);\n\t\tTFIDFInvestigationMethodExtractor invMExtractor = new TFIDFInvestigationMethodExtractor(false,\n\t\t\t\ttrainingInstances);\n\n\t\tnew File(\"data/annotations/invMTFIDF/\").mkdirs();\n\t\tnew File(\"data/annotations/trendTFIDF/\").mkdirs();\n\n\t\tfor (Instance instance : testInstances) {\n//\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\tSet<DocumentLinkedAnnotation> invAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\tinvAnns.addAll(invMExtractor.getInvestigationMethodForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(invAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/invMTFIDF/\" + instance.getName()), invAnns);\n\t\t\tSet<DocumentLinkedAnnotation> trendAnns = new HashSet<>();\n\t\t\tfor (List<DocumentToken> sentence : instance.getDocument().getSentences()) {\n\t\t\t\ttrendAnns.addAll(trendExtractor.getTrendsForSentence(instance.getDocument(), sentence));\n\t\t\t}\n//\t\t\tannotations.get(instance).addAll(trendAnns);\n\t\t\tnew JsonNerlaIO(true).writeNerlas(new File(\"data/annotations/trendTFIDF/\" + instance.getName()), trendAnns);\n//\t\t\tSystem.out.println(\"SIZE = \" + annotations.get(instance).size());\n\t\t}\n\n//\t\treturn annotations;\n\n\t}", "public ArrayList<Triple> addStructuralAnnotationTriples(Node subject ,TenLearningObjectAnnotationsBean tenLearningObjectAnnotationsBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList<Triple> addStructuralAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\r\n\t\t\t//STRUCTURAL\t\r\n\t\t\t//date of annotation\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getDate())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_ANNOTATION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getDate());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//format\r\n\t\t\tif(!Utils.isEmptyOrNull(tenLearningObjectAnnotationsBean.getFormat())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_FORMAT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(tenLearningObjectAnnotationsBean.getFormat());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createDerivedAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/derived\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void shouldCreateAndReadAnnotations() throws Exception {\n OWLOntologyManager man = OWLManager.createOWLOntologyManager();\n // Load the Koala ontology\n OWLOntology ont = load(man);\n\n df = man.getOWLDataFactory();\n // We want to add a comment to the Quokka class. First, we need to\n // obtain\n // a reference to the class\n System.out.println(\"\\n\\n--->\"+ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\");\n OWLClass quokka = df.getOWLClass(IRI.create(ont.getOntologyID().getOntologyIRI().get() + \"#Quokka\"));\n // Now we create the content of our comment. In this case we simply want\n // a plain string literal. We'll attach a language to the comment to\n // specify that our comment is written in English (en).\n OWLAnnotation commentAnno = df.getOWLAnnotation(df.getRDFSComment(), df.getOWLLiteral(\n \"A class which represents quokkas\", \"en\"));\n // Specify that the class has an annotation - to do this we attach\n // an entity annotation using an entity annotation axiom (remember,\n // classes are entities)\n OWLAxiom ax = df.getOWLAnnotationAssertionAxiom(quokka.getIRI(), commentAnno);\n // Add the axiom to the ontology\n man.applyChange(new AddAxiom(ont, ax));\n // Now lets add a version info annotation to the ontology. There is no\n // 'standard' OWL annotation object for this, like there is for\n // comments and labels, so the creation of the annotation is a bit more\n // involved. First we'll create a constant for the annotation value.\n // Version info should probably contain a version number for the\n // ontology, but in this case, we'll add some text to describe why the\n // version has been updated\n OWLLiteral lit = df.getOWLLiteral(\"Added a comment to the quokka class\");\n // The above constant is just a plain literal containing the version\n // info text/comment we need to create an annotation, which pairs a IRI\n // with the constant\n OWLAnnotation anno = df.getOWLAnnotation(df.getOWLVersionInfo(), lit);\n // Now we can add this as an ontology annotation Apply the change in the\n // usual way\n System.out.println(\"Change applied: \"+man.applyChange(new AddOntologyAnnotation(ont, anno)));\n\n // It is worth noting that literals\n // can be typed or untyped. If literals are untyped then they can have\n // language tags, which are optional - typed literals cannot have\n // language tags. For each class in the ontology, we retrieve its\n // annotations and sift through them. If the annotation annotates the\n // class with a constant which is untyped then we check the language tag\n // to see if it is English. Firstly, get the annotation property for\n // rdfs:label\n OWLAnnotationProperty label = df.getOWLAnnotationProperty(OWLRDFVocabulary.RDFS_LABEL.getIRI());\n\n System.out.println(\"Label: \"+label.toString());\n\n\n\n\n\n\n for (OWLClass cls : ont.getClassesInSignature()) {\n // Get the annotations on the class that use the label property\n\n //System.out.println(\"-------------------------------->classes: \"+cls.toString());\n\n for (OWLOntology o : ont.getImportsClosure()) {\n\n //System.out.println(\"AnnotationAssetationAxioms: \"+o.getAnnotationAssertionAxioms(cls.getIRI()));\n\n //annotationObjects(o.getAnnotationAssertionAxioms(cls.getIRI()),label)\n\n for (OWLAnnotationAssertionAxiom annotationAssertionAxiom : o.getAnnotationAssertionAxioms(cls.getIRI())) {\n //System.out.println(\"Entrou no if do assetation\");\n\n System.out.println(\"AnnotationAssertationAxiom: \"+annotationAssertionAxiom);\n System.out.println(\"Property: \"+annotationAssertionAxiom.getProperty());\n\n\n if (annotationAssertionAxiom.getValue() instanceof OWLLiteral) {\n //System.out.println(\"Entrou no if do annotation get value\");\n OWLLiteral val = (OWLLiteral) annotationAssertionAxiom.getValue();\n //if (val.hasLang(\"en\")) {\n System.out.println(\"Value: \" +\n val.getLiteral());\n //}\n }\n }\n }\n }\n }", "public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "private void addDictionaryBasedAnnotations(Map<Instance, Set<DocumentLinkedAnnotation>> annotations) {\n\t\tMap<EntityType, Set<String>> trainDictionary = DictionaryFromInstanceHelper.toDictionary(trainingInstances);\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tAutomatedSectionifcation sectionification = AutomatedSectionifcation.getInstance(instance);\n\n\t\t\t/**\n\t\t\t * Apply dictionary to document\n\t\t\t */\n\t\t\tfor (AbstractAnnotation nerla : DictionaryFromInstanceHelper.getAnnotationsForInstance(instance,\n\t\t\t\t\ttrainDictionary)) {\n\n\t\t\t\tDocumentLinkedAnnotation annotation = null;\n\n\t\t\t\tif (nerla.isInstanceOfDocumentLinkedAnnotation())\n\t\t\t\t\tannotation = nerla.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (nerla.isInstanceOfEntityTemplate())\n\t\t\t\t\tannotation = nerla.asInstanceOfEntityTemplate().getRootAnnotation()\n\t\t\t\t\t\t\t.asInstanceOfDocumentLinkedAnnotation();\n\n\t\t\t\tif (annotation == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (sectionification.getSection(annotation.asInstanceOfDocumentLinkedAnnotation()) != ESection.RESULTS)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tannotations.putIfAbsent(instance, new HashSet<>());\n\t\t\t\tannotations.get(instance).add(annotation.asInstanceOfDocumentLinkedAnnotation());\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<Triple> addAdministrativeAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addAdministrativeAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//physicalDescription\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPhysicalDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PHYSICAL_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getPhysicalDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//loan period\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getLoanPeriod())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_LOAN_PERIOD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getLoanPeriod());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifier())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifier());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//identifier description\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIdentifierDescription())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_SOURCE_IDENTIFIER_DESCRIPTION);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIdentifierDescription());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//handling instructions\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getHandlingInstructions())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_HANDLING_INSTRUCTIONS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getHandlingInstructions());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//rights\t\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getRights())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_DC_RIGHTS);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getRights());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//intaker\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getIntaker())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_INTAKER);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getIntaker());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//date of learning object creation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getDateOfUpload())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_DATE_UPLOAD);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getDateOfUpload());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\t//Story provided\r\n\t\t\tboolean storyProvided = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvided()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getStoryProvided()))?true:false;\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDED);\r\n\t\t\tpredicate_value = Node.createLiteral(String.valueOf(storyProvided));\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t\r\n\t\t\t//story\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStory())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStory());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//story context\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryContext())){\r\n\t\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_CONTEXT);\r\n\t\t\t\tpredicate_value = Node.createLiteral(digitalRightsManagementBean.getStoryContext());\r\n\t\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(storyProvided){\r\n\t\t\t\ttripleList.addAll(addStoryProviderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t}\r\n\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void createAnnotationTree() throws JDOMException, IOException, ParseException {\r\n\t\tif(currentResource!=null)\r\n\t\t\tcreateAnnotation();\r\n\r\n\t\tif(rootAnnotations!=null)\r\n\t\t\taddAnnotationReplies(rootAnnotations);\r\n\t\t\r\n\t\t// we add all remaining replies to the root level because we did not\r\n\t\t// find the annotation they reply to.\r\n\t\tfor(Long annotationId : allReplies.keySet()) {\r\n\t\t\tfor(Annotation reply : allReplies.get(annotationId)) {\r\n\t\t\t\trootAnnotations.add(reply);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void createOCCIE2EcoreAnnotations() {\n\t\tString source = \"OCCIE2Ecore\";\t\n\t\taddAnnotation\n\t\t (ldprojectEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDProject\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Publish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Unpublish(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject__Update(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Lifecycle(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdproject_Robustness(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (lddatabaselinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDDatabaseLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Database(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLddatabaselink_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldprojectlinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (ldnodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"title\", \"LDNode\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MongoHosts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_MainProject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\t\n\t\taddAnnotation\n\t\t (getLdnode_AnalyticsReadPreference(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", null\n\t\t });\n\t}", "protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getPartyQual_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_PartyQualType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Status e.g. completed, part-time etc.\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_Title(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Title of degree or job\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartyQual_VerifStatus(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Verification done for this entry if any\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPartySkill_SkillType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReview_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_EmployeeRoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerfReviewItem_PerfReviewItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPerformanceNote_RoleTypeId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_TrainingClassType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getPersonTraining_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public void addInstances (InstanceList training)\n\t{\n\t\tSystem.out.println(\"LabeledLDA Model : Adding training instances ..%\");\n\t\t//Data Alphabet\n\t\talphabet = training.getDataAlphabet();\n\t\tnumTypes = alphabet.size();\n\t\tbetaSum = beta * numTypes;\n\t\t\n\t\t// We have one topic for every possible label.\n\t\tlabelAlphabet = training.getTargetAlphabet();\n\t\tnumTopics = labelAlphabet.size();\n\t\toneDocTopicCounts = new int[numTopics];\n\t\ttokensPerTopic = new int[numTopics];\n\t\ttypeTopicCounts = new int[numTypes][numTopics];\n\n\t\t//topicAlphabet = AlphabetFactory.labelAlphabetOfSize(numTopics); //generate d0,d1 [3shan target string w hwa 3wzo label]\n topicAlphabet = new LabelAlphabet();\n\t\tfor (int i = 0; i < numTopics; i++) {\n\t\t\tString target = labelAlphabet.lookupObject(i).toString();\n topicAlphabet.lookupLabel(target);\n\t\t}\n //System.out.println(topicAlphabet);\n\n for (Instance instance : training)\n\t\t{\n\t\t\tFeatureSequence tokens = (FeatureSequence) instance.getData(); //read data featureSequence\n\t\t\tLabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n FeatureVector labels = (FeatureVector) instance.getTarget(); //read target featurevector\n\n\t\t\tint[] topics = topicSequence.getFeatures();\n\t\t\tfor (int position = 0; position < tokens.size(); position++)\n\t\t\t{\n\t\t\t\tint topic = labels.indexAtLocation(random.nextInt(labels.numLocations()));\n\t\t\t\ttopics[position] = topic;\n\t\t\t\ttokensPerTopic[topic]++;\n\t\t\t\tint type = tokens.getIndexAtPosition(position);\n\t\t\t\ttypeTopicCounts[type][topic]++;\n\t\t\t}\n\t\t\tTopicAssignment t = new TopicAssignment(instance, topicSequence);\n\t\t\tdata.add(t);\n\t\t}\n\t\t/*\n for (Instance instance : training)\n {\n FeatureSequence tokens = (FeatureSequence) instance.getData();\n LabelSequence topicSequence = new LabelSequence(topicAlphabet, new int[ tokens.size() ]);\n\n int[] topics = topicSequence.getFeatures();\n for (int position = 0; position < topics.length; position++) {\n int topic = random.nextInt(numTopics);\n topics[position] = topic;\n }\n TopicAssignment t = new TopicAssignment(instance, topicSequence);\n data.add(t);\n }\n\n buildInitialTypeTopicCounts();\n initializeHistograms();\n\t\t */\n\t\tSystem.out.println(\"Data loaded.\");\n\t}", "public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "public void constructOntologyVocabulary() {\n ontologyOwlClassVocabulary = new HashMap<>();\n ontologyOWLDataPropertyVocabulary = new HashMap<>();\n ontologyOWLNamedIndividualVocabulary = new HashMap<>();\n ontologyOWLObjectPropertylVocabulary = new HashMap<>();\n\n Set<OWLClass> classes = domainOntology.getClassesInSignature();\n Set<OWLNamedIndividual> individualPropertyAtom = domainOntology.getIndividualsInSignature();\n Set<OWLDataProperty> dataProperty = domainOntology.getDataPropertiesInSignature();\n Set<OWLObjectProperty> OWLObjectPropertyAtom = domainOntology.getObjectPropertiesInSignature();\n String tempName = null;\n\n for (OWLClass c : classes) {\n tempName = c.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOwlClassVocabulary.put(tempName, c);\n }\n for (OWLDataProperty d : dataProperty) {\n tempName = d.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLDataPropertyVocabulary.put(tempName, d);\n }\n for (OWLNamedIndividual i : individualPropertyAtom) {\n tempName = i.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLNamedIndividualVocabulary.put(tempName, i);\n }\n for (OWLObjectProperty o : OWLObjectPropertyAtom) {\n tempName = o.toString();\n tempName = tempName.substring(tempName.lastIndexOf(\"/\") + 1);\n tempName = TextUtil.formatName(tempName);\n ontologyOWLObjectPropertylVocabulary.put(tempName, o);\n }\n }", "protected void createSemanticAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/semantic\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"feature\", \"ownedFeatures\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedAbstractType(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_Categories(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkCategoryEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkCategory_Links(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"excludefrom\", \"xmlpivot\"\n\t\t });\n\t}", "public void createMarkers() throws CoreException {\r\n if (resource != null && document != null) {\r\n for (LPEXTask tTask : parseDocument()) {\r\n Map<String, Object> tAttrs = new HashMap<String, Object>();\r\n tAttrs.put(\"userEditable\", false);\r\n tAttrs.put(\"priority\", new Integer(tTask.getPriority()));\r\n MarkerUtilities.setLineNumber(tAttrs, tTask.getLine());\r\n MarkerUtilities.setMessage(tAttrs, tTask.getMessage());\r\n MarkerUtilities.setCharStart(tAttrs, tTask.getCharStart());\r\n MarkerUtilities.setCharEnd(tAttrs, tTask.getCharEnd());\r\n MarkerUtilities.createMarker(resource, tAttrs, LPEXTask.ID);\r\n }\r\n }\r\n }", "public static void Pubmed() throws IOException \n\t{\n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\TempDB\\\\PMCxxxx\\\\articals.txt\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL()); \n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\ttrainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\tif (trainset == null )\n\t\t{\n\t\t\ttrainset = new HashMap<String, Map<String,List<String>>>();\n\t\t}\n\t\t\n\t\t\n\t\t/************************************************************************************************/\n\t\t//Map<String, Integer> bagofwords = semantic.getbagofwords(titles) ; \n\t\t//trainxmllabeling(trainset,bagofwords); \n\t\t/************************************************************************************************/\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tModel Sentgraph = sentInfo.graph;\n\t\t\tif (trainset.containsKey(title))\n\t\t\t\tcontinue ; \n\t\t\t//8538\n\t\t\tcount++ ; \n\n\t\t\tMap<String, List<String>> triples = null ;\n\t\t\t// get the goldstandard concepts for current title \n\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\n\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\n\t\t\t// get the concepts \n\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\n\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,FILE_NAME_Patterns) ;\n\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t{\n\t\t\t\tcount1++ ;\n\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\n\t\t\t\tif (count1 == 30)\n\t\t\t\t{\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\Relationdisc1\") ;\n\t\t\t\t\tcount1 = 0 ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\t\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}", "public ArrayList<Triple> addStoryProviderAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addStoryProviderAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_STORY_PROVIDER);\r\n\t\t\tStringBuffer storyProviderAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProvider())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProvider());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderEmail())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderEmail());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCellPhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCellPhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOfficePhone())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOfficePhone());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderFax())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderFax());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderStreetAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderStreetAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderOtherAddress())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderOtherAddress());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderCity())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderCity());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderState())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderState());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getStoryProviderZipCode())){\r\n\t\t\t\tstoryProviderAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tstoryProviderAttributes.append(\"=\");\r\n\t\t\t\tstoryProviderAttributes.append(digitalRightsManagementBean.getStoryProviderZipCode());\r\n\t\t\t\tstoryProviderAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(storyProviderAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public void addText(IText text) {\n var name = \"Text\"; // TODO should texts have a name? E.g. the filename etc.?\n var textIndividual = ontologyConnector.addIndividualToClass(name, textClass);\n var uuid = ontologyConnector.getLocalName(textIndividual);\n ontologyConnector.addPropertyToIndividual(textIndividual, uuidProperty, uuid);\n\n ImmutableList<IWord> words = text.getWords();\n\n // first add all word individuals\n var wordIndividuals = new ArrayList<Individual>();\n var wordsToIndividuals = new HashMap<IWord, Individual>();\n for (var word : words) {\n var wordIndividual = addWord(word);\n wordIndividuals.add(wordIndividual);\n wordsToIndividuals.put(word, wordIndividual);\n }\n\n // add dependencies to words.\n // We only add outgoing dependencies as ingoing are the same (but viewed from another perspective)\n for (var word : words) {\n var wordIndividual = wordsToIndividuals.get(word);\n for (var dependencyType : DependencyTag.values()) {\n var outDependencies = word.getWordsThatAreDependencyOfThis(dependencyType);\n for (var outDep : outDependencies) {\n var outWordIndividual = wordsToIndividuals.get(outDep);\n addDependencyBetweenWords(wordIndividual, dependencyType, outWordIndividual);\n }\n }\n }\n\n // create the list that is used for the words property\n var olo = ontologyConnector.addList(\"WordsOf\" + name, wordIndividuals);\n var listIndividual = olo.getListIndividual();\n ontologyConnector.addPropertyToIndividual(textIndividual, wordsProperty, listIndividual);\n\n // add coref stuff\n var corefClusters = text.getCorefClusters();\n for (var corefCluster : corefClusters) {\n var representativeMention = corefCluster.getRepresentativeMention();\n var corefClusterIndividual = ontologyConnector.addIndividualToClass(representativeMention, corefClusterClass);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, uuidProperty, \"\" + corefCluster.getId());\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, representativeMentionProperty, representativeMention);\n ontologyConnector.addPropertyToIndividual(textIndividual, hasCorefClusterProperty, corefClusterIndividual);\n\n var counter = 0;\n for (var mention : corefCluster.getMentions()) {\n var id = corefCluster.getId() + \"_\" + counter;\n counter += 1;\n var label = ICorefCluster.getTextForMention(mention);\n\n var mentionIndividual = ontologyConnector.addIndividualToClass(label, corefMentionClass);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, uuidProperty, id);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, mentionProperty, mentionIndividual);\n\n var mentionWordsIndividuals = getMentionWordIndividuals(mention, wordsToIndividuals);\n var mentionOlo = ontologyConnector.addList(\"WordsOf Mention \" + id, mentionWordsIndividuals);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, wordsProperty, mentionOlo.getListIndividual());\n }\n }\n\n }", "protected void createBusinessInformationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/BusinessInformation\";\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"BlockArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedRequirementPkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedAspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Block\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"aspectPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedDataPkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentArchitecture\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Component\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterfaceLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractActor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalPart\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"providedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"requiredInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ArchitectureAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ComponentAllocation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponent\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"participationsInCapabilityRealizations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfacePkg\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ownedInterfaces\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"subInterfacePkgs\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"implementorComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"userComponents\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceImplementations\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUses\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceImplementation\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"Interface Implementor\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"realizedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceUse\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interfaceUser\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"usedInterface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ProvidedInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"RequiredInterfaceLink\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"interface\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"InterfaceRealization\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"ActorCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"SystemComponentCapabilityRealizationInvolvement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeployableElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployingLinks\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"DeploymentTarget\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployments\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"AbstractDeployement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"deployedElement\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"location\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"PhysicalLinkEnd\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"port\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"Label\", \"part\"\n\t\t });\n\t}", "protected void createAspectAnnotations() {\n\t\tString source = \"aspect\";\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(0), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(1), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(2), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass.getEOperations().get(3), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MaxValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_MinValue(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_CurrentMass(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public ArrayList<Trial> createTrials(){\n Profile profile1 = new Profile(\"id1\");\n Profile profile2 = new Profile(\"id2\");\n Profile profile3 = new Profile(\"id3\");\n GeoLocation uni_loc = new GeoLocation(0.0, 0.0);\n ArrayList<Trial> trials = new ArrayList<>();\n\n for (int i=0; i<15; i++){\n if (i<4){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile1));\n } else if (i<10){\n trials.add(new TrialCount(\"\"+i, uni_loc, profile2));\n } else {\n trials.add(new TrialCount(\"\"+i, uni_loc, profile3));\n }\n }\n\n return trials;\n }", "public List<E> createAll(AnnotatedElement element) {\n List<E> result = new ArrayList<>();\n for (Annotation annotation : element.getAnnotations()) {\n create(annotation).ifPresent(result::add);\n }\n return result;\n }", "private void applyMetadataTemplateProjectES_BU_TF() {\n\t\tArrayList<ArtifactType> artifactTypes = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> dependencyTypes = new ArrayList<DependencyType>();\n\t\tArrayList<TaskType> taskTypes = new ArrayList<TaskType>();\n\t\tArrayList<RuleType> ruleTypes = new ArrayList<RuleType>();\n\t\tArrayList<Rule> rules = new ArrayList<Rule>();\n\t\t\n\t\tArrayList<ArtifactType> u = new ArrayList<ArtifactType>();\n\t\tArrayList<ArtifactType> p = new ArrayList<ArtifactType>();\n\t\tArrayList<DependencyType> d = new ArrayList<DependencyType>();\n\t\tString description = \"\";\n\t\t\n\t\tArtifactType ATstart = new ArtifactType(\"Start\",\".start\");\n\t\tArtifactType ATstory = new ArtifactType(\"Story\",\".txt\");\n\t\tArtifactType ATstoryTest = new ArtifactType(\"StoryTest\",\".java\");\n\t\tArtifactType ATinterface = new ArtifactType(\"Interface\",\".java\");\n\t\tArtifactType ATdomainClass = new ArtifactType(\"DomainClass\",\".java\");\n\t\tArtifactType ATdomainTest = new ArtifactType(\"DomainTest\",\".java\");\n\t\tartifactTypes.add(ATstart);\n\t\tartifactTypes.add(ATstory);\n\t\tartifactTypes.add(ATstoryTest);\n\t\tartifactTypes.add(ATinterface);\t\t\n\t\tartifactTypes.add(ATdomainClass);\n\t\tartifactTypes.add(ATdomainTest);\n\n\t\tu.add(ATstart);\n\t\tp.add(ATstory);\n\t\tDependencyType DTstory = new DependencyType(ATstart,ATstory,\"DTstory\");\n\t\td.add(DTstory);\n\t\tdependencyTypes.add(DTstory);\n\t\tdescription = \"Create a story for the project\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATstory);\n\t\tp.add(ATdomainTest);\n\t\tDependencyType DTdomainTest = new DependencyType(ATstory,ATdomainTest,\"DTdomainTest\");\n\t\td.add(DTdomainTest);\n\t\tDTdomainTest.setMultiplicity(0);\n\t\tdependencyTypes.add(DTdomainTest);\n\t\tdescription = \"Create a domain test for the story\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATdomainClass);\n\t\tDependencyType DTdomainClass = new DependencyType(ATdomainTest,ATdomainClass,\"DTdomainClass\");\n\t\td.add(DTdomainClass);\n\t\tdependencyTypes.add(DTdomainClass);\n\t\tdescription = \"Create a domain class for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATdomainTest);\n\t\tp.add(ATinterface);\n\t \tDependencyType DTinterface = new DependencyType(ATdomainTest,ATinterface,\"DTinterface\");\n\t\td.add(DTinterface);\n\t\tdependencyTypes.add(DTinterface);\n\t\tdescription = \"Create a interface for the domain test\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tu.add(ATinterface);\n\t p.add(ATstoryTest);\n\t\tDependencyType DTstoryTest = new DependencyType(ATinterface,ATstoryTest,\"DTstoryTest\");\n\t\td.add(DTstoryTest);\n\t\tdependencyTypes.add(DTstoryTest);\n\t\tdescription = \"Create a story test for the interface\";\n\t\ttaskTypes.add(new TaskType(new ArrayList<ArtifactType>(u),new ArrayList<ArtifactType>(p),new ArrayList<DependencyType>(d),description));\n\t\tu.clear(); p.clear(); d.clear();\n\t\t\n\t\tstatus.setArtifactTypes(artifactTypes);\n\t\tstatus.setDependencyTypes(dependencyTypes);\n\t\tstatus.setTaskTypes(taskTypes);\t\n\t\tstatus.setRuleTypes(ruleTypes);\n\t\tstatus.setRules(rules);\n\t}", "protected void createInputAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/input\";\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getPrint_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\t\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\t\t\n\t}", "public ArrayList<Integer> createList(){\r\n \tArrayList<Integer> test = new ArrayList<>();\r\n \tstarLabels = new ArrayList<>();\r\n \tconstLabels = new ArrayList<>();\r\n \tplanetLabels = new ArrayList<>();\r\n \tmesrLabels = new ArrayList<>();\r\n \tmoonLabel = new ArrayList<>();\r\n \t\r\n \tint a = 0;\r\n \tint b = 1;\r\n \tint c = 2;\r\n \tint d = 3;\r\n \t\r\n \tint size;\r\n \t\r\n \t//Go through the spaceobjectlist\r\n \tfor(int i = 0; i < AlexxWork2.spaceObjList.size(); i++) {\r\n \t\t\r\n \t\t//If object is visible and object has positive altitude continue\r\n \t\tif(AlexxWork2.spaceObjList.get(i).getMagnitude() != null \r\n \t\t\t\t&& (Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) \r\n \t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 0.5) {\r\n\t \t\t\r\n \t\t\t\r\n \t\t\t//Calculate X and Y\r\n \t\t\tint x = getX(2250, 2250, 1000, \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n \t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n \t\t\t\r\n\t\t\t\tint y = getY(2250, 2250, 1000, \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAzimuth(), \r\n\t\t\t\t\t\t(int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\r\n\t\t\t\t//Load stars\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"STAR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\") {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(AlexxWork2.starNamesCB \r\n\t\t\t\t\t\t\t&& Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()) <= 6.0) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t//Filter out number only star names\r\n\t\t\t\t\t\t\tint testInt = Integer.parseInt(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t} catch (NumberFormatException | NullPointerException nfe) {\r\n\t\t\t\t\t\t\t\tstarLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(x));\r\n\t\t\t\t\t\t\t\tstarLabels.add(String.valueOf(y));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Load constellation data\r\n\t\t\t\t\tif(herculesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadHerculesLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMinorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ursaMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadUrsaMajorLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(libraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tString name = AlexxWork2.spaceObjList.get(i).getProperName();\r\n\t\t\t\t\t\tloadLibraLocation(name, x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(andromedaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAndromedaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aquilaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAquilaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(ariesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAriesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(aurigaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadAurigaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(bootesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadBootesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cancerNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCancerLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMajorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMajorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(canisMinorNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCanisMinorLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(capricornusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCapricornusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cassiopeiaNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCassiopeiaLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(centaurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCentaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cepheusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCepheusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cruxNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCruxLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(cygnusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadCygnusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(dracoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadDracoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(geminiNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadGeminiLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hydraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadHydraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(leoNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLeoLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(lyraNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadLyraLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(orionNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadOrionLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(pegasusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPegasusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(perseusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPerseusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(piscesNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadPiscesLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(sagittariusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadSagittariusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(scorpioNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadScorpioLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(taurusNames.contains(AlexxWork2.spaceObjList.get(i).getProperName())) {\r\n\t\t\t\t\t\tloadTaurusLocation(AlexxWork2.spaceObjList.get(i).getProperName(), x, y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Add coordinates to list\r\n\t \t\ttest.add(a, x);\r\n\t \t\ttest.add(b, y);\r\n\t \t\t\r\n\t \t\t//Add moon information if visible\r\n\t \t\tif(AlexxWork2.spaceObjList.get(i).getProperName() == \"MOON\") {\r\n size = 22;\r\n String moonName = AlexxWork2.spaceObjList.get(i).getProperName() + \": \" + AlexxWork2.spaceObjList.get(i).getType();\r\n moonLabel.add(0, moonName);\r\n moonLabel.add(1, String.valueOf(x));\r\n moonLabel.add(2, String.valueOf(y));\r\n }\r\n\t \t\t\r\n\t \t\t//If object is planet, set the size\r\n\t \t\telse if(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\"){\r\n\t \t\t\tsize = 16;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else set size based on mag\r\n\t \t\telse{\r\n\t \t\t\tsize = getSize(Double.valueOf(AlexxWork2.spaceObjList.get(i).getMagnitude()));\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Add size to list\r\n\t \t\ttest.add(c, size);\r\n\t \t\ttest.add(d, size);\r\n\t \t\ta = d + 1;\r\n\t \t\tb = a + 1;\r\n\t \t\tc = b + 1;\r\n\t \t\td = c + 1;\r\n \t\t}\r\n \t\t\r\n \t\t//Load constellation labels\r\n \t\tif(AlexxWork2.constellationsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"CONST\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getConstName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tconstLabels.add(AlexxWork2.spaceObjList.get(i).getConstName());\r\n\t\t\t\t\tconstLabels.add(String.valueOf(x));\r\n\t\t\t\t\tconstLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load planet labels\r\n \t\tif(AlexxWork2.planetsCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"PLAN\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tplanetLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(x));\r\n\t\t\t\t\tplanetLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\t\r\n \t\t//Load messier labels\r\n \t\tif(AlexxWork2.messierCB) {\r\n\t\t\t\tif(AlexxWork2.spaceObjList.get(i).getType() == \"MESR\" \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != null \r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getProperName() != \"\"\r\n\t\t\t\t\t\t&& AlexxWork2.spaceObjList.get(i).getAltitude() > 1) {\r\n\t\t\t\t\tint x = getX(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\tint y = getY(2250, 2250, 1000, (int)AlexxWork2.spaceObjList.get(i).getAzimuth(), (int)AlexxWork2.spaceObjList.get(i).getAltitude());\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tmesrLabels.add(AlexxWork2.spaceObjList.get(i).getProperName());\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(x));\r\n\t\t\t\t\tmesrLabels.add(String.valueOf(y));\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t//Return list \r\n \treturn test;\r\n }", "public static void main(String[] args) throws Exception {\n\t\t\n\n BufferedReader reader = new BufferedReader(new FileReader(\"src/main/resources/example/ontologytemp.owl\"));\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"src/main/resources/example/test.owl\"));\n\t\t\n\t\t\n\t\t/*File owl = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology5.owl\");\n File obda = new File(\"/Users/user/Dropbox/Thesis/OntopCLIfiles/ontology-conf.obda\");\n\t\tString baseUri = \"http://www.semanticweb.org/user/ontologies/\";\n\t\tString jdbcUrl = \"jdbc:mysql://localhost/conference10\";\n\t\tString jdbcUserName = \"root\";\n\t\tString jdbcPassword = \"root\";\n\t\tString jdbcDriverClass = \"com.mysql.jdbc.Driver\";\n\t\t\n\t\tDirectMappingBootstrapper dm = new DirectMappingBootstrapper(baseUri, jdbcUrl, jdbcUserName, jdbcPassword, jdbcDriverClass);\n\t\tOBDAModel model = dm.getModel();\n\t\tOWLOntology onto = dm.getOntology();\n\t\tModelIOManager mng = new ModelIOManager(model);\n\t\tmng.save(obda);\n onto.getOWLOntologyManager().saveOntology(onto,\n new FileDocumentTarget(owl));*/\n\t\t\n\t\t\n\t\t/*\n\t\tXFactoryBufferedImpl factory = new XFactoryBufferedImpl();\t\n\t\t\n\t\tXAttribute attr = factory.createAttributeLiteral(\"concept:name\", \"tracevalue\", null); // create attribute for trace\n\t\tXAttributeMap attrMapTrace = new XAttributeMapImpl(); // create a new map attribute\n\t\tattrMapTrace.put(\"concept:name\", attr);\t// put attribute to the map attribute\n\t\tXTrace xtrace = factory.createTrace(attrMapTrace); // create xtrace\n\t\t\n\t\tXAttributeMap attrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent = factory.createEvent(attrMap); // create xevent\n\t\txtrace.insertOrdered(xevent); // insert event in correct order in a trace\n\t\t\n\t\tattrMap = new XAttributeMapImpl(); // create a new map attribute\n\t\tattr = factory.createAttributeLiteral(\"key1\", \"value\", null); // create attribute\t\t\n\t\t//attr = factory.createAttributeLiteral(\"key2\", \"value\", null); // create attribute\n\t\tattrMap.put(\"key1\", attr); // put attribute to the map attribute\n\t\t//attrMap.put(\"key2\", attr);\n\t\tXEvent xevent2 = factory.createEvent(attrMap); // create xevent\n\t\t\n\t\tSystem.out.println(xtrace.contains(xevent2));\n\t\t*/\n\t}", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }", "protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}", "protected void createSegmentAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Segment\";\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void initOntology() {\n\n\tontology = ModelFactory.createDefaultModel();\n\t\t\t\n\ttry \n\t{\n\t\t//ontology.read(new FileInputStream(\"ontology.ttl\"),null,\"TTL\");\n\t\tontology.read(new FileInputStream(\"Aminer-data.ttl\"),null,\"TTL\");\n\t\t//ontology.read(new FileInputStream(\"SO data.ttl\"),null,\"TTL\");\n\t} \n\tcatch (FileNotFoundException e) \n\t{\n\t\tSystem.out.println(\"Error creating ontology model\" +e.getMessage());\n\t\te.printStackTrace();\n\t}\n\t\t\t\n\t\t\n\t}", "private void prepareAnnotations() {\n\n // get the annotation object\n SKAnnotation annotation1 = new SKAnnotation();\n // set unique id used for rendering the annotation\n annotation1.setUniqueID(10);\n // set annotation location\n annotation1.setLocation(new SKCoordinate(-122.4200, 37.7765));\n // set minimum zoom level at which the annotation should be visible\n annotation1.setMininumZoomLevel(5);\n // set the annotation's type\n annotation1.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_RED);\n // render annotation on map\n mapView.addAnnotation(annotation1);\n\n SKAnnotation annotation2 = new SKAnnotation();\n annotation2.setUniqueID(11);\n annotation2.setLocation(new SKCoordinate(-122.410338, 37.769193));\n annotation2.setMininumZoomLevel(5);\n annotation2.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_GREEN);\n mapView.addAnnotation(annotation2);\n\n SKAnnotation annotation3 = new SKAnnotation();\n annotation3.setUniqueID(12);\n annotation3.setLocation(new SKCoordinate(-122.430337, 37.779776));\n annotation3.setMininumZoomLevel(5);\n annotation3.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_BLUE);\n mapView.addAnnotation(annotation3);\n\n selectedAnnotation = annotation1;\n // set map zoom level\n mapView.setZoom(14);\n // center map on a position\n mapView.centerMapOnPosition(new SKCoordinate(-122.4200, 37.7765));\n updatePopupPosition();\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\t\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\\nhttp://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "private static void GenerateBaseline(String path, ArrayList<String> aNgramChar, Hashtable<String, TruthInfo> oTruth, String outputFile, String classValues) {\n FileWriter fw = null;\n int nTerms = 1000;\n \n try {\n fw = new FileWriter(outputFile);\n fw.write(Weka.HeaderToWeka(aNgramChar, nTerms, classValues));\n fw.flush();\n\n ArrayList<File> files = getFilesFromSubfolders(path, new ArrayList<File>());\n\n assert files != null;\n int countFiles = 0;\n for (File file : files)\n {\n System.out.println(\"--> Generating \" + (++countFiles) + \"/\" + files.size());\n try {\n Hashtable<String, Integer> oDocBOW = new Hashtable<>();\n Hashtable<String, Integer> oDocNgrams = new Hashtable<>();\n\n String sFileName = file.getName();\n\n //File fJsonFile = new File(path + \"/\" + sFileName);\n //Get name without extension\n String sAuthor = sFileName.substring(0, sFileName.lastIndexOf('.'));\n\n Scanner scn = new Scanner(file, \"UTF-8\");\n String sAuthorContent = \"\";\n //Reading and Parsing Strings to Json\n while(scn.hasNext()){\n JSONObject tweet= (JSONObject) new JSONParser().parse(scn.nextLine());\n\n String textTweet = (String) tweet.get(\"text\");\n\n sAuthorContent += textTweet + \" \" ;\n\n StringReader reader = new StringReader(textTweet);\n\n NGramTokenizer gramTokenizer = new NGramTokenizer(reader, MINSIZENGRAM, MAXSIZENGRAM);\n CharTermAttribute charTermAttribute = gramTokenizer.addAttribute(CharTermAttribute.class);\n gramTokenizer.reset();\n\n gramTokenizer.reset();\n\n while (gramTokenizer.incrementToken()) {\n String sTerm = charTermAttribute.toString();\n int iFreq = 0;\n if (oDocBOW.containsKey(sTerm)) {\n iFreq = oDocBOW.get(sTerm);\n }\n oDocBOW.put(sTerm, ++iFreq);\n }\n\n gramTokenizer.end();\n gramTokenizer.close();\n }\n \n Features oFeatures = new Features();\n oFeatures.GetNumFeatures(sAuthorContent);\n\n if (oTruth.containsKey(sAuthor)) {\n TruthInfo truth = oTruth.get(sAuthor);\n String sGender = truth.gender.toUpperCase();\n //If gender is unknown, this author is not interesting\n if (sGender.equals(\"UNKNOWN\")) continue;\n String sCountry = truth.country.toUpperCase();\n\n if (classValues.contains(\"MALE\")) {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sGender));\n } else {\n fw.write(Weka.FeaturesToWeka(aNgramChar, oDocBOW, oDocNgrams, oFeatures, nTerms, sCountry));\n }\n fw.flush();\n }\n\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n }\n }\n } catch (Exception ex) {\n System.out.println(\"ERROR: \" + ex.toString());\n } finally {\n if (fw!=null) { try { fw.close(); } catch (Exception ignored) {} }\n }\n }", "protected void createXcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2011/Xcore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Bikeshed\", \"https://tabatkins.github.io/bikeshed\",\n\t\t\t \"BikeshedHeadings\", \"https://tabatkins.github.io/bikeshed/headings\"\n\t\t });\n\t}", "protected void createGmfAnnotations() {\n\t\tString source = \"gmf.diagram\";\t\n\t\taddAnnotation\n\t\t (treeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "private void ProcessTriples(Model model, String graphName){\n for (final StmtIterator stmts = model.listStatements(); stmts.hasNext(); ) {\n Statement stmt = stmts.next();\n\n ObjectNode json_triple = mapper.createObjectNode();\n json_triple.set(ArangoAttributes.SUBJECT, ProcessResource(stmt.getSubject()));\n json_triple.set(ArangoAttributes.PREDICATE, ProcessUri(stmt.getPredicate()));\n json_triple.set(ArangoAttributes.OBJECT, ProcessObject(stmt.getObject()));\n\n if(!StringUtils.isBlank(graphName))\n json_triple.set(ArangoAttributes.GRAPH_NAME, ProcessUri(graphName));\n\n jsonObjects.add(json_triple);\n }\n }", "private void createClinicList(){\n\n ArrayList<Clinic> clinics = LogIn.clinicDAO.getAllClinics();\n for(Clinic cn : clinics){\n double avgRating = LogIn.rateDAO.getAvgRating(cn.getClinicID());\n clinicList.add(new ClinicItem(cn.getClinicName(), drawable.clinic_logo, \"Singapore\", Double.toString(avgRating)));\n }\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification insertNewClassification(int i);", "private Collection<ConceptLabel> createConceptLabels(Concept concept, int offset) {\n\t\t//int offset = concept.getOffset();\n\t\tList<ConceptLabel> labels = new ArrayList<ConceptLabel>();\n\t\t// add annotation the new way\n\t\tfor(Annotation a: concept.getAnnotations()){\n\t\t\tConceptLabel lbl = new ConceptLabel(a.getText(), offset + a.getOffset());\n\t\t\tlbl.setConcept(concept);\n\t\t\tlbl.setReportPanel(reportInterface);\n\t\t\tlbl.setColor(Color.black);\n\t\t\tlabels.add(lbl);\n\t\t}\n\t\t\n\t\t\n\t\treturn labels;\n\t}", "protected void createMimoentslotAnnotations() {\n\t\tString source = \"mimo-ent-slot\";\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMech(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContactMech_ContactMechPurposeType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_Content(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_InvoiceContentType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceContent_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideGlAccount(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"used to specify the override or actual glAccountId used for the invoice, avoids problems if configuration changes after initial posting, etc\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItem_OverrideOrgParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"help\", \"Used to specify the organization override rather than using the payToPartyId\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemAssocType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_FromDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdFrom(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAssoc_InvoiceItemSeqIdTo(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemAttribute_InvoiceItemSeqId(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_InvoiceItemType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeGlAccount_OrganizationParty(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceItemTypeMap_InvoiceItemMapKey(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceNote_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_Party(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceRole_RoleType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Status(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_Invoice(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceStatus_StatusDate(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_InvoiceTerm(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTermAttribute_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_InvoiceType(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t\taddAnnotation\n\t\t (getInvoiceTypeAttr_AttrName(),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"key\", \"true\"\n\t\t });\n\t}", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public ArrayList<Triple> addContributorAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addContributorAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//copy right holder information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_CONTRIBUTOR);\r\n\t\t\tStringBuffer contributorAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributor())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributor());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorEmail())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorEmail());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t//approved\t\t\t\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getContributorApproved()))?true:false;\r\n\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\tcontributorAttributes.append(approved);\r\n\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCellPhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCellPhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOfficePhone())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOfficePhone());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorFax())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorFax());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorStreetAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorStreetAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorOtherAddress())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorOtherAddress());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorCity())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorCity());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorState())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorState());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorZipCode())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorZipCode());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//tribal affiliation\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getContributorTribalAffiliation())){\r\n\t\t\t\tcontributorAttributes.append(TripleStoreConstants.ATTRIBUTE_TRIBAL_AFFILIATION);\r\n\t\t\t\tcontributorAttributes.append(\"=\");\r\n\t\t\t\tcontributorAttributes.append(digitalRightsManagementBean.getContributorTribalAffiliation());\r\n\t\t\t\tcontributorAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(contributorAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "public List<HashMap<Integer,AttributeInfo>> generateTrainingSetDataseAttributes(Dataset dataset, Properties properties) throws Exception {\n List<HashMap<Integer,AttributeInfo>> candidateAttributesList = new ArrayList<>();\n String[] classifiers = properties.getProperty(\"classifiersForMLAttributesGeneration\").split(\",\");\n\n //obtaining the attributes for the dataset itself is straightforward\n DatasetBasedAttributes dba = new DatasetBasedAttributes();\n for (String classifier : classifiers) {\n\n //For each dataset and classifier combination, we need to get the results on the \"original\" dataset so we can later compare\n Evaluation evaluationResults = runClassifier(classifier, dataset.generateSet(true), dataset.generateSet(false), properties);\n double originalAuc = CalculateAUC(evaluationResults, dataset);\n\n //Generate the dataset attributes\n HashMap<Integer, AttributeInfo> datasetAttributes = dba.getDatasetBasedFeatures(dataset, classifier, properties);\n\n //Add the identifier of the classifier that was used\n\n AttributeInfo classifierAttribute = new AttributeInfo(\"Classifier\", Column.columnType.Discrete, getClassifierIndex(classifier), 3);\n datasetAttributes.put(datasetAttributes.size(), classifierAttribute);\n\n\n //now we need to generate the candidate attributes and evaluate them. This requires a few preliminary steps:\n // 1) Replicate the dataset and create the discretized features and add them to the dataset\n OperatorsAssignmentsManager oam = new OperatorsAssignmentsManager(properties);\n List<Operator> unaryOperators = oam.getUnaryOperatorsList();\n //The unary operators need to be evaluated like all other operator assignments (i.e. attribtues generation)\n List<OperatorAssignment> unaryOperatorAssignments = oam.getOperatorAssignments(dataset, null, unaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n Dataset replicatedDataset = generateDatasetReplicaWithDiscretizedAttributes(dataset, unaryOperatorAssignments, oam);\n\n // 2) Obtain all other operator assignments (non-unary). IMPORTANT: this is applied on the REPLICATED dataset so we can take advantage of the discretized features\n List<Operator> nonUnaryOperators = oam.getNonUnaryOperatorsList();\n List<OperatorAssignment> nonUnaryOperatorAssignments = oam.getOperatorAssignments(replicatedDataset, null, nonUnaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n\n // 3) Generate the candidate attribute and generate its attributes\n nonUnaryOperatorAssignments.addAll(unaryOperatorAssignments);\n\n //oaList.parallelStream().forEach(oa -> {\n int counter = 0;\n //for (OperatorAssignment oa : nonUnaryOperatorAssignments) {\n ReentrantLock wrapperResultsLock = new ReentrantLock();\n nonUnaryOperatorAssignments.parallelStream().forEach(oa -> {\n try {\n OperatorsAssignmentsManager oam1 = new OperatorsAssignmentsManager(properties);\n Dataset datasetReplica = dataset.replicateDataset();\n ColumnInfo candidateAttribute = null;\n try {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n catch (Exception ex) {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n\n\n OperatorAssignmentBasedAttributes oaba = new OperatorAssignmentBasedAttributes();\n HashMap<Integer, AttributeInfo> candidateAttributes = oaba.getOperatorAssignmentBasedAttributes(dataset, oa, candidateAttribute, properties);\n\n datasetReplica.addColumn(candidateAttribute);\n Evaluation evaluationResults1 = runClassifier(classifier, datasetReplica.generateSet(true), datasetReplica.generateSet(false), properties);\n\n double auc = CalculateAUC(evaluationResults1, datasetReplica);\n double deltaAuc = auc - originalAuc;\n AttributeInfo classAttrubute;\n if (deltaAuc > 0.01) {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 1,2);\n System.out.println(\"found positive match\");\n } else {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 0,2);\n }\n\n //finally, we need to add the dataset attribtues and the class attribute\n for (AttributeInfo datasetAttInfo : datasetAttributes.values()) {\n candidateAttributes.put(candidateAttributes.size(), datasetAttInfo);\n }\n\n candidateAttributes.put(candidateAttributes.size(), classAttrubute);\n wrapperResultsLock.lock();\n candidateAttributesList.add(candidateAttributes);\n wrapperResultsLock.unlock();\n }\n catch (Exception ex) {\n System.out.println(\"Error in ML features generation : \" + oa.getName() + \" : \" + ex.getMessage());\n }\n });\n }\n\n return candidateAttributesList;\n }", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public abstract Annotations getClassAnnotations();", "public void test_ck_02() {\n OntModel vocabModel = ModelFactory.createOntologyModel();\n ObjectProperty p = vocabModel.createObjectProperty(\"p\");\n OntClass A = vocabModel.createClass(\"A\");\n \n OntModel workModel = ModelFactory.createOntologyModel();\n Individual sub = workModel.createIndividual(\"uri1\", A);\n Individual obj = workModel.createIndividual(\"uri2\", A);\n workModel.createStatement(sub, p, obj);\n }", "private void addPR(){\n \n try {\n Print.prln(\"Initialising ANNIE...\");\n\n // create a serial analyser controller to run ANNIE with\n annieController = (SerialAnalyserController) Factory.createResource(\n \"gate.creole.SerialAnalyserController\",\n Factory.newFeatureMap(),\n Factory.newFeatureMap(),\n \"ANNIE_\" + Gate.genSym());\n FeatureMap features = Factory.newFeatureMap(); // use default parameters\n\n // adding Annie PRs : i. document reset\n features.clear();\n ProcessingResource documentReset = (ProcessingResource)\n Factory.createResource(\"gate.creole.annotdelete.AnnotationDeletePR\", features);\n annieController.add(documentReset);\n\n // adding Annie PR : ii. english tokeniser\n features.clear();\n ProcessingResource englishTokeniser = (ProcessingResource)\n Factory.createResource(\"gate.creole.tokeniser.DefaultTokeniser\", features);\n annieController.add(englishTokeniser);\n\n // ading inhouse built PR: iii.. gazetteer\n features.clear();\n features.put(\"listsURL\", Converter.getURL(gazetteer));\n ProcessingResource myAnnieGaz = (ProcessingResource)\n Factory.createResource(\"gate.creole.gazetteer.DefaultGazetteer\", features);\n annieController.add(myAnnieGaz);\n\n // adding Annie PR : iv. fake sentence splitter\n features.clear();\n ProcessingResource fakeSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.clone.ql.FakeSentenceSplitter\", features);\n annieController.add(fakeSentenceSplitter);\n\n //. ading inhouse built PR: v. jape grammar 1\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape1));\n ProcessingResource myJape1 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape1);\n\n // adding Annie PRs : vi.. regex sentence splitter\n features.clear();\n ProcessingResource regexSentenceSplitter = (ProcessingResource)\n Factory.createResource(\"gate.creole.splitter.RegexSentenceSplitter\", features);\n annieController.add(regexSentenceSplitter);\n\n // adding Annie PRs :vii. pos tagger\n features.clear();\n ProcessingResource posTagger = (ProcessingResource)\n Factory.createResource(\"gate.creole.POSTagger\", features);\n annieController.add(posTagger);\n\n // ading inhouse built PR: viii. jape grammar 2\n features.clear();\n features.put(\"grammarURL\", Converter.getURL(jape2));\n ProcessingResource myJape2 = (ProcessingResource)\n Factory.createResource(\"gate.creole.Transducer\", features);\n annieController.add(myJape2);\n Print.prln(\"...PR loaded\");\n features.clear();\n }\n catch (ResourceInstantiationException ex) {\n Out.prln(ex);\n }\n }", "public static void main(String abc[]) throws Exception{\n\tScanner scan=new Scanner(System.in); //for taking the input from user\n\t//Asking the user for the description\n\tSystem.out.println(\"Please mention the description of the ontology\");\n\tString s1_des;\n\ts1_des=scan.nextLine();\n\t//Asking the user for the competency questions\n\tSystem.out.println(\"Please mention the Competency Questions related to the Ontology\");\n\tString s2_cq;\n\ts2_cq=scan.nextLine();\t\n\t//This java file has code for OWL file and classifying different properties\n\tOwl_Lexical owl_ontology=new Owl_Lexical();\n\towl_ontology.owlOntology();\n\t//Saving the description of the ontology in a file\n\tBufferedWriter writer_des=new BufferedWriter(new FileWriter(\"ontology_description\"));\n\twriter_des.write(s1_des);\n\twriter_des.close();\n\t//Saving the competency questions of the ontology in a file\n\tBufferedWriter writer_cq=new BufferedWriter(new FileWriter(\"ontology_cq\"));\n\twriter_cq.write(s2_cq);\n\twriter_cq.close();\n\t//Stop words from competency questions are removed\n\tStopWords_CqOntology stop_cq=new StopWords_CqOntology();\n\tstop_cq.stopWordsCQOntology();\n\t//Stop Words from the description are removed\n\tStopWords_Ontology stop_des=new StopWords_Ontology();\n\tstop_des.stopWordsDesOntology();\t\n\t\n/*--------------------------------EXECUTION PART------------------------------------------------\n <-------------------------------STRUCTURAL ANALYSIS---------------------------------------------->\t\n Properties obtained from the OWL file are analysed. Doc2Vec is used and cosine similarity \n gives the numeric score of the ontology against each ODP.The below functions call the respective\n class that holds the code for each Structural Property that we have taken under consideration \n for the analysis. */\n\t// 1. CHAIN OF PROPERTY\n\tParagraphVectorsChainOfProperty cp=new ParagraphVectorsChainOfProperty();\n\tcp.chainOf();\n\t// 2. DATA DOMAIN Property\n\tParagraphVectorsDataPropertyDomain pd=new ParagraphVectorsDataPropertyDomain();\n\tpd.dataPropertyDomain();\n\t// 3. DATA RANGE PROPERTY\n\tParagraphVectorsDataPropertyRange pr=new ParagraphVectorsDataPropertyRange();\n\tpr.dataPropertyRange();\n\t// 4. DISJOINT CLASSES\n\tParagraphVectorsDisjointClasses dc=new ParagraphVectorsDisjointClasses();\n\tdc.disjointClasses();\n\t// 5. OBJECT DOMAIN PROPERTY\n\tParagraphVectorsObjectDomainProperty od=new ParagraphVectorsObjectDomainProperty();\n\tod.objectDomainProperty();\n\t// 6. OBJECT RANGE PROPERTY\n\tParagraphVectorsObjectPropertyRange op=new ParagraphVectorsObjectPropertyRange();\n\top.objectRangeProperty();\n\t// 7. SUB-CLASS PROPERTY\n\tParagraphVectorsSubClassProperty sc=new ParagraphVectorsSubClassProperty();\n\tsc.subClassProperty();\n\t// 8. SUB-DATA PROPERTY\n\tParagraphVectorsSubDataProperty sd=new ParagraphVectorsSubDataProperty();\n\tsd.subDataProperty();\n\t// 9. SUB-OBJECT PROPERTY\n\tParagraphVectorsSubObjectProperty so=new ParagraphVectorsSubObjectProperty();\n\tso.subObjectProperty();\n\t\n/*<-----------------------------------BEHAVIOURAL ANALYSIS-------------------------------------------->\n The Competency Question of the ontology are saved and mappped with the competency questions \n of the ODPs in the list. The ODPs obtained manchester site do not have competency questions, but \n the rest all ontologies have.So, approximately 15 among the 73 ODPs present are without CQs\t\n\t*/\n\tParagraphVectors_CQ cq=new ParagraphVectors_CQ();\n\tcq.cqMapping();\n/*<------------------------------------LEXICAL ANALYSIS------------------------------------------------>\n Lexical Analysis involves the analysis by use of the description and by the names of classes\n properties present in the OWL file. The description along with the description(classes and properties) \n of the OWL file of the ontology are compared against the ODPs. All the ODPs present have description\n *along with the classes and properties.\n */\n // 1. DESCRIPTION\n\tParagraphVectorsTextExample te=new ParagraphVectorsTextExample();\n\tte.description();\n\t// 2. SIGNATURE\n\tParagraphVectors_Signature vs=new ParagraphVectors_Signature();\n\tvs.signature();\n/*<--------------------------------------INTEGRATION OF SCORES----------------------------------------->\n * After obtaning the numeric values of lexical, structural and behavioural parts, the cosine \n * similarity scores are combined together of the ontology and the ODPs and placed in a single\n * file.\n */\n\tIntegration_Of_Scores os=new Integration_Of_Scores();\n\tos.integratingScores();\n/*<----------------------------------------NORMALISING SCORES------------------------------------------->\n * After all the scores of an ODP (against the given ontology) are added up, the scores are normalised\n * so that these range between 0 to 1 and we can set a particular threshold for the ODP recommendations\n */\n\tNormalising_Scores ns=new Normalising_Scores();\n\tns.normalisingScores();\n/*<------------------------------------------ODP RECOMMENDER-------------------------------------------->\n * \tAfter we have normalised the scores against the ODPs, we run the this java program from where the\n * recommendations can be suggested. \n */\n ODPRecommender reco=new ODPRecommender();\n reco.odpRecommender();\n\t\n}", "private void addEntityViews(TextAnnotation ta, ACEDocumentAnnotation docAnnotation, File file) {\n SpanLabelView entityView =\n new SpanLabelView(ViewNames.MENTION_ACE,\n ACEReader.class.getCanonicalName(), ta, 1.0f, true);\n CoreferenceView corefHeadView =\n new CoreferenceView(ViewNames.COREF_HEAD, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n CoreferenceView corefExtentView =\n new CoreferenceView(ViewNames.COREF_EXTENT, ACEReader.class.getCanonicalName(), ta,\n 1.0f);\n\n for (ACEEntity entity : docAnnotation.entityList) {\n List<Constituent> corefMentions = new ArrayList<>(docAnnotation.entityList.size());\n List<Constituent> corefMentionHeads = new ArrayList<>(docAnnotation.entityList.size());\n\n for (ACEEntityMention entityMention : entity.entityMentionList) {\n int extentStartTokenId =\n ta.getTokenIdFromCharacterOffset(entityMention.extentStart);\n int extentEndTokenId = ta.getTokenIdFromCharacterOffset(entityMention.extentEnd);\n\n if (extentStartTokenId < 0 || extentEndTokenId < 0\n || extentStartTokenId > extentEndTokenId + 1) {\n logger.error(\"Incorrect Extent Token Span for mention - \" + entity.id + \" \"\n + entityMention.id);\n continue;\n }\n\n Constituent extentConstituent =\n new Constituent(entity.type, ViewNames.MENTION_ACE, ta, extentStartTokenId, extentEndTokenId + 1);\n extentConstituent.addAttribute(EntityTypeAttribute, entity.type);\n extentConstituent.addAttribute(EntityIDAttribute, entity.id);\n extentConstituent.addAttribute(EntityMentionIDAttribute, entityMention.id);\n extentConstituent.addAttribute(EntityMentionTypeAttribute, entityMention.type);\n extentConstituent.addAttribute(EntityClassAttribute, entity.classEntity);\n\n String entitySubType = (entity.subtype != null) ? entity.subtype : entity.type;\n extentConstituent.addAttribute(EntitySubtypeAttribute, entitySubType);\n\n if (entityMention.ldcType != null) {\n extentConstituent.addAttribute(EntityMentionLDCTypeAttribute, entityMention.ldcType);\n }\n\n // ACE Annotation have character offsets inclusive of start/end.\n // Converting them to a one-after-then-end.\n extentConstituent.addAttribute(EntityHeadStartCharOffset, entityMention.headStart + \"\");\n extentConstituent.addAttribute(EntityHeadEndCharOffset, entityMention.headEnd + 1 + \"\");\n\n entityView.addConstituent(extentConstituent);\n\n Constituent corefExtentConstituent =\n extentConstituent.cloneForNewViewWithDestinationLabel(\n ViewNames.COREF_EXTENT, entity.id);\n corefMentions.add(corefExtentConstituent);\n\n Constituent corefHeadConstituent =\n getEntityHeadForConstituent(corefExtentConstituent, ta,\n ViewNames.COREF_HEAD);\n if (corefHeadConstituent != null) {\n corefMentionHeads.add(corefHeadConstituent);\n }\n }\n\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n Constituent canonicalMention = null;\n double[] scores = new double[corefMentions.size()];\n for (int i = 0; i < corefMentions.size(); i++) {\n Constituent cons = corefMentions.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentions.size() > 0) {\n corefExtentView.addCorefEdges(canonicalMention, corefMentions, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n\n // Processing Coref Head Constituents\n // Picking the longest mention as the canonical mention\n // as we do not get this information is not present in the dataset.\n canonicalMention = null;\n scores = new double[corefMentionHeads.size()];\n for (int i = 0; i < corefMentionHeads.size(); i++) {\n Constituent cons = corefMentionHeads.get(i);\n scores[i] = cons.getConstituentScore();\n\n if (canonicalMention == null\n || canonicalMention.getSurfaceForm().length() < cons.getSurfaceForm().length()) {\n canonicalMention = cons;\n }\n }\n\n if (corefMentionHeads.size() > 0) {\n corefHeadView.addCorefEdges(canonicalMention, corefMentionHeads, scores);\n } else {\n logger.error(\"No Entity Mentions found for a given entity - \" + entity.id);\n }\n }\n\n ta.addView(ViewNames.MENTION_ACE, entityView);\n ta.addView(ViewNames.COREF_HEAD, corefHeadView);\n ta.addView(ViewNames.COREF_EXTENT, corefExtentView);\n }", "public static Model Analize(ArrayList<String> arraylist) throws IOException\n\t{\n\t\tModel model = ModelFactory.createOntologyModel();\n\t\tmodel.read(\"C:\\\\Users\\\\Hamza\\\\workspace\\\\Crime\\\\crime.owl\");\n\t\tResource predicate;\n\t\tProperty pred = null;\n\t\tint flag=0;\n\t\t\tword=(String) arraylist.get(1);\n\t\t\tpredicate=model.getResource(defaultNameSpace+word);\n\t\t\t\n\t\t\tif(model.contains(predicate, RDF.type,OWL.ObjectProperty))\n\t\t\t{\n\t\t\t pred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\telse if(model.contains(predicate, RDF.type,OWL.DatatypeProperty))\n\t\t\t{\n\t\t\t\tpred=model.getProperty(defaultNameSpace+word);\n\t\t\t\tflag=1;\n\t\t\t}\n\t\t\tif(flag==1)\n\t\t\t{\n\t\t\t\tword=(String) arraylist.get(0);\n\t\t\t\tResource subject = model.createResource(defaultNameSpace+word);\n\t\t\t\tword=(String) arraylist.get(2);\n\t\t\t\tResource object = model.createResource(defaultNameSpace+word);\n\t\t\t\tResource class1=model.getResource(defaultNameSpace+\"Match\");\n\t\t\t\tmodel.add(subject,RDF.type,class1);\n\t\t\t\tmodel.add(object,RDF.type,class1);\n\t\t\t\tmodel.add(subject,pred,object);\n\t\t\t\t\n\t\t\t}\n\t\t\treturn model;\n\t\t}", "protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> &ndash; all columns must be present in both tables</li>\\n<li><b>LEFT</b> &ndash; columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> &ndash; columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> &ndash; comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question &quot;Which column can have less columns?&quot;</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> &ndash; wildcard matching</li>\\n<li><b>exact</b> &ndash; value should be equals to pattern</li>\\n<li><b>regext</b> &ndash; value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}", "private void _generateRaTa() {\n\t if(instances_[CS_C_TA].total == 0) return;\n ArrayList list, courseList;\n TaInfo ta;\n RaInfo ra;\n ArrayList tas, ras;\n int i;\n\n tas = new ArrayList();\n ras = new ArrayList();\n list = _getRandomList(instances_[CS_C_TA].total + instances_[CS_C_RA].total,\n 0, instances_[CS_C_GRADSTUD].total - 1);\n System.out.println(\"underCourses \" + (underCourses_.size() - 1));\n System.out.println(\"instances ta \" + instances_[CS_C_TA].total);\n courseList = _getRandomList(instances_[CS_C_TA].total, 0,\n underCourses_.size() - 1);\n\n for (i = 0; i < courseList.size(); i++) {\n ta = new TaInfo();\n ta.indexInGradStud = ( (Integer) list.get(i)).intValue();\n ta.indexInCourse = ( (CourseInfo) underCourses_.get( ( (Integer)\n courseList.get(i)).intValue())).globalIndex;\n _generateATa(ta);\n }\n while (i < list.size()) {\n ra = new RaInfo();\n ra.indexInGradStud = ( (Integer) list.get(i)).intValue();\n _generateAnRa(ra);\n i++;\n }\n }", "@Override\n public void postInserts() \n {\n for(IndexObject i: myIndex.values())\n {\n i.tfidf(documentData);\n }\n }", "@Test\n public void testGenerateWikiAnnotations() throws Exception {\n final Node n = new Node();\n n.setId(\"u9dc7\");\n\n final User u = new User();\n u.setId(\"9m8ky\");\n u.setFamily_name(\"Metsger\");\n u.setGiven_name(\"Elliot\");\n u.setFull_name(\"Elliot Metsger\");\n\n final Wiki w = new Wiki();\n w.setId(\"hgkfe\");\n w.setUser(u);\n w.setDate_modified(\"2016-09-15T14:19:14.417000\");\n w.setContent_type(\"text/markdown\");\n w.setNode(n.getId());\n w.setKind(\"file\");\n w.setPath(\"/hgkfe\");\n w.setMaterialized_path(\"/hgkfe\");\n w.setSize(224);\n w.setName(\"home\");\n final HashMap<String, String> links = new HashMap<>();\n links.put(\"download\", \"https://test-api.osf.io/v2/wikis/hgkfe/content/\");\n links.put(\"info\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n links.put(\"self\", \"https://test-api.osf.io/v2/wikis/hgkfe/\");\n w.setLinks(links);\n final HashMap<String, String> extra = new HashMap<>();\n extra.put(\"version\", \"3\");\n w.setExtra(extra);\n\n final Registration r = new Registration();\n r.setId(\"registration\");\n r.setWikis(Collections.singletonList(w));\n\n final ManagedGraph managedGraph = new ManagedGraph(ontologyManager);\n final AnnotationsProcessor ap = new AnnotationsProcessor(managedGraph);\n\n // Process the OWL annotations on the Registration, its super classes, and its fields\n final Map<String, Individual> createdIndividuals = ap.process(r);\n\n // Write the individuals to stderr for debugging\n// writeModel(onlyIndividuals(ontologyManager.getOntModel()));\n }", "public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}", "DataMap getCustomAnnotations();", "protected void createHeadingsAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed/headings\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"Elements\", \"\",\n\t\t\t \"Literals\", \"\",\n\t\t\t \"Vocabularies\", \"\",\n\t\t\t \"Types\", \"\",\n\t\t\t \"Properties\", \"\",\n\t\t\t \"Relations\", \"\",\n\t\t\t \"Predicates\", \"\",\n\t\t\t \"Axioms\", \"\",\n\t\t\t \"Descriptions\", \"\",\n\t\t\t \"Instances\", \"\",\n\t\t\t \"Assertions\", \"\",\n\t\t\t \"Enumerations\", \"\"\n\t\t });\n\t}", "public ArrayList<Triple> createDigitalRightsAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \"ArrayList createDigitalRightsAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\r\n\t\ttry{\t\t\t\t\t\r\n\t\t\ttripleList.addAll(addAdministrativeAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addCopyRightHolderAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addPublisherAnnotationTriples(subject, digitalRightsManagementBean));\r\n\t\t\t\r\n\t\t\ttripleList.addAll(addContributorAnnotationTriples(subject, digitalRightsManagementBean));\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "private void addAnnotationReplies(Collection<Annotation> annotations) {\r\n\t\tfor(Annotation annotation : annotations) {\r\n\t\t\tArrayList<Annotation> replies = allReplies.remove(annotation.getId());\r\n\t\t\tif(replies!=null) {\r\n\t\t\t\tannotation.setReplies(replies);\r\n\t\t\t\taddAnnotationReplies(replies);\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t}", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}", "protected void createBikeshedAnnotations() {\n\t\tString source = \"https://tabatkins.github.io/bikeshed\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Abstract-Syntax\"\n\t\t });\n\t\taddAnnotation\n\t\t (elementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (identifiedElementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (importEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (axiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (assertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (predicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (argumentEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (ontologyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (memberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBoxEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionBundleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (statementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionMemberEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (vocabularyStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (descriptionStatementEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Descriptions\"\n\t\t });\n\t\taddAnnotation\n\t\t (termEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (ruleEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializableTermEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Vocabularies\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationBaseEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializablePropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (entityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (aspectEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Types\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (annotationPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (semanticPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (structuredPropertyEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (forwardRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (reverseRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (unreifiedRelationEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Relations\"\n\t\t });\n\t\taddAnnotation\n\t\t (namedInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (conceptInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (structureInstanceEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Instances\"\n\t\t });\n\t\taddAnnotation\n\t\t (keyAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (specializationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (instanceEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (literalEnumerationAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (classifierEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (scalarEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyEquivalenceAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyRangeRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyCardinalityRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertySelfRestrictionAxiomEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Axioms\"\n\t\t });\n\t\taddAnnotation\n\t\t (typeAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyValueAssertionEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Assertions\"\n\t\t });\n\t\taddAnnotation\n\t\t (unaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (binaryPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (builtInPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (typePredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (relationEntityPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (propertyPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (sameAsPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (differentFromPredicateEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Predicates\"\n\t\t });\n\t\taddAnnotation\n\t\t (quotedLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (integerLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (decimalLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (doubleLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (booleanLiteralEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Literals\"\n\t\t });\n\t\taddAnnotation\n\t\t (separatorKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t\taddAnnotation\n\t\t (rangeRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (cardinalityRestrictionKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Properties\"\n\t\t });\n\t\taddAnnotation\n\t\t (importKindEEnum,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"heading\", \"Elements\"\n\t\t });\n\t}", "public ArrayList getClassList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n int adjectiveExist = 0;\n int adjectiveNoun = 0;\n String adj = \"\";\n String storingClass = \"\";\n HashSet classWithAttr = new HashSet();\n storingClassWithAttr = new HashMap<String, HashSet>();\n\n List<Tree> leaves;\n String phraseNotation = \"(NP([<NNS|NN|NNP]$VP))\";//@\" + phrase + \"! << @\" + phrase;\n\n /*For the single Tree */\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n String tempClass = \"\";\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n adjectiveExist = 0;\n adjectiveNoun = 0;\n int separator = 0;\n\n if (innerChild.length > 1) {\n int count = 1;\n int loopCount = 1;\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).yieldWords().get(0).word();\n if (dictionaryForClassList.contains(adj)) {\n adj = \"\";\n }\n }\n //if adjective exist store the classes and attributes separately\n if (adjectiveExist == 1) {\n storeClassesAndAttributesWhenAdjectiveExistToIdentifyClasses(inChild, adjectiveNoun, adj);\n } else {\n //storeClassesAndAttributesWhenAdjectiveNotExistToIdentifyClasses(inChild, loopCount, innerChild, separator, tempClass, count);\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\") || (inChild.value().equals(\"NNP\")))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (separator == 0) {\n if (loopCount == innerChild.length) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n String word = \"\";\n word = stemmingForAWord(identifiedWord);\n if (!dictionaryForClassList.contains(word)) {\n nounList.remove(tempClass);\n nounList.add(word);\n attributeLists.add(tempClass);\n \n }\n\n } else if (count == 1) {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n\n } else {\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n if (tempClass.contains(\"_\")) {\n nounList.remove(tempClass);\n } else {\n nounList.remove(morphology.stem(tempClass));\n nounList.remove(tempClass);\n }\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n\n tempClass += \" \" + identifiedWord;\n nounList.add(tempClass);\n storingClass = tempClass;\n }\n\n count++;\n } else {\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n /*if the identified word is having underscore skips the stemming part . ex: user_id*/\n String word = stemmingForAWord(identifiedWord);\n nounList.add(word);\n tempClass = word;\n storingClass = word;\n }\n }\n\n }\n loopCount++;\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n nounList.add(morphology.stem(identifiedWord));\n } else {\n nounList.add(identifiedWord);\n }\n }\n if (inChild.value().equals(\"JJ\")) {\n //leaves correspond to the tokens\n leaves = inChild.getLeaves();\n nounList.add(((leaves.get(0).yieldWords()).get(0).word()));\n }\n }\n }\n }\n System.out.println(\"NOUN LIST :\" + nounList);\n return nounList;\n }", "static private void addRelations( final JCas jCas,\n final FhirPractitioner practitioner,\n final FhirNoteSpecs noteSpecs,\n final FhirResourceCreator<Annotation, Basic> aCreator,\n final Map<IdentifiedAnnotation, Basic> annotationBasics,\n final Map<Annotation, Basic> simpleBasics ) {\n final Collection<BinaryTextRelation> relations = JCasUtil.select( jCas, BinaryTextRelation.class );\n for ( BinaryTextRelation relation : relations ) {\n final RelationArgument arg1 = relation.getArg1();\n final Annotation source = arg1.getArgument();\n Basic basicSource;\n if ( source instanceof IdentifiedAnnotation ) {\n basicSource = annotationBasics.get( (IdentifiedAnnotation)source );\n } else {\n basicSource = getSimpleBasic( jCas, source, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final RelationArgument arg2 = relation.getArg2();\n final Annotation target = arg2.getArgument();\n Basic basicTarget;\n if ( target instanceof IdentifiedAnnotation ) {\n basicTarget = annotationBasics.get( (IdentifiedAnnotation)target );\n } else {\n basicTarget = getSimpleBasic( jCas, target, practitioner, noteSpecs, aCreator, simpleBasics );\n }\n final String type = relation.getCategory();\n basicSource.addExtension( FhirElementFactory.createRelation( type, basicTarget ) );\n }\n }", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "public void createClusters() {\n\t\t/*\n\t\t * double simAvg = documentDao.getSimilarity(avg); double simMax =\n\t\t * documentDao.getSimilarity(max); double simMin =\n\t\t * documentDao.getSimilarity(min);\n\t\t */\n\n\t\t// initClusters();\n\n\t\tList<Document> docList = documentDao.getDocumentListOrderBySimilarity();\n\t\tList<Cluster> clusterList = clusterDao.getClusterList();\n\n\t\tint i = 0;\n\t\tCluster cluster = clusterList.get(i);\n\t\tfor (Document document : docList) {\n\t\t\twhile (document.getSimilarity() < cluster.getLow()) {\n\t\t\t\tcluster = clusterList.get(++i);\n\t\t\t}\n\t\t\tif (document.getSimilarity() < cluster.getHigh() && document.getSimilarity() >= cluster.getLow()) {\n\t\t\t\tdocument.setClusterId(cluster.getId());\n\t\t\t\tdocumentDao.insertDocument(document);\n\t\t\t}\n\t\t}\n\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"validationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"settingDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\",\n\t\t\t \"invocationDelegates\", \"http://www.eclipse.org/emf/2002/Ecore/OCL\"\n\t\t });\n\t\taddAnnotation\n\t\t (localAuthenticationSystemEClass,\n\t\t source,\n\t\t new String[] {\n\t\t\t \"constraints\", \"authenticationKeyFromUserModel authenticationKeyRequiredAttribute userKeyFromAuthhenticationModel userKeyRequiredAttribute\"\n\t\t });\n\t}", "private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annotation completed ....\");\n MyWriter.write(corpus, outCorpusFile);\n Out.prln(\"*** ENTITY ANNOTATION COMPLETED *** \");\n }", "protected void createGmf_2Annotations() {\n\t\tString source = \"gmf.compartment\";\t\n\t\taddAnnotation\n\t\t (getNode_Children(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxCollapsible\", \"0\",\n\t\t\t \"mxNoLabel\", \"1\",\n\t\t\t \"xEditable\", \"0\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxStrokeColor\", \"none\"\n\t\t });\n\t}", "void addTestTermsAndCourses() {\n // Creates Terms\n addTerm(\"Term 1\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 2\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 3\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 4\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 5\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 6\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 7\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 8\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 9\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 10\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 11\", \"5/19/2019\", \"6/23/2019\");\n addTerm(\"Term 12\", \"5/19/2019\", \"6/23/2019\");\n int term1Id = getTermIdFromIndex(0);\n int term2Id = getTermIdFromIndex(1);\n// int term3Id = getTermIdFromIndex(2);\n\n // Creates Courses\n addCourse(\"course 1\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 2\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 3\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n addCourse(\"course 4\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 5\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term1Id);\n addCourse(\"course 6\", \"5/29/2019\", \"5/29/19\",\n \"Working On\", \"Dr. Phil\", \"80183834433\",\n \"[email protected]\", \"TESTING OPTIONAL NOTE\", term2Id);\n int course1Id = getCourseIdFromIndex(0);\n int course2Id = getCourseIdFromIndex(1);\n\n // Creates Assignments\n addAssignment(\"Assignment 1\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 2\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 3\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 4\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 5\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 6\", \"this shit is whack\", \"5/29/2019\", null);\n addAssignment(\"Assignment 7\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 8\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 9\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 10\", \"this shit is whack\", \"5/29/2019\", course2Id);\n addAssignment(\"Assignment 11\", \"this shit is whack\", \"5/29/2019\", course1Id);\n addAssignment(\"Assignment 12\", \"this shit is whack\", \"5/29/2019\", null);\n }", "private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}", "private static void initObjectProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n objectProperties.addAll(ontologie.listObjectProperties().toList());\n }", "protected void createGenModel_1Annotations() {\n\t\tString source = \"http://www.eclipse.org/uml2/1.1.0/GenModel\";\n\t\taddAnnotation\n\t\t (internalFailureOccurrenceDescriptionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.softwareInducedFailureType__InternalFailureOccurrenceDescription.oclIsTypeOf(ResourceTimeoutFailureType)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"self.primaryBehaviour__RecoveryAction <> null\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(0),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.recoveryAction__RecoveryActionBehaviour.recoveryActionBehaviours__RecoveryAction->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y\\r\\n\\t\\tand x.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\\r\\n\\t\\tand y.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self))\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(1),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->includes(self)\"\n\t\t });\n\t\taddAnnotation\n\t\t (recoveryActionBehaviourEClass.getEOperations().get(2),\n\t\t source,\n\t\t new String[] {\n\t\t\t \"body\", \"not self.failureHandlingAlternatives__RecoveryActionBehaviour->\\r\\n\\texists(x,y:RecoveryActionBehaviour | x<>y and\\r\\n\\tx.failureTypes_FailureHandlingEntity->\\r\\n\\t\\texists(f:mpcm::reliability::FailureType |\\r\\n\\t\\ty.failureTypes_FailureHandlingEntity->includes(f)))\"\n\t\t });\n\t}", "private static void alimenterAttributs() {\r\n\t\t\r\n\t\t/* alimente 'properties' avec la valeur \r\n\t\t * fournie par le gestionnaireProperties. */\r\n\t\tproperties = gestionnaireProperties.getProperties();\r\n\t\t\r\n\t\t/* alimente 'pathAbsoluFichierProperties' \r\n\t\t * avec la valeur fournie par le gestionnaireProperties. */\r\n\t\tpathAbsoluFichierProperties \r\n\t\t\t= gestionnaireProperties.getPathAbsoluFichierProperties();\r\n\t\t\r\n\t}", "private void GeneratePutativeOntology(String sOntologyName,\n\t\t\tString sOutputFile, RDB2OntMatcher mat) {\n\t\t\t\n\t\tString basePrefix = baseUri + sOntologyName + \".owl#\";\t\n \t\n\t\tSystem.out.println(\"1: Creating putative ontology: \"+basePrefix);\n\n\t\tontPutative = new OntologyTools();\n\t\tontPutative.createOntology(basePrefix, basePrefix);\n\n\t\tDatabaseStructure db = mat.getDatabaseStructure();\n\t\t\n\t\tfor(TableStructure table : db.getTables())\n\t\t{\n\t\t\tClassMatch match = new ClassMatch(table.getNormalizedName(), table.name, table.getOnePrimaryKey());\n\t\t\t\t\t\n\t\t\tontPutative.addClass(table.getNormalizedName(), table.name);\n\n\t\t\tfor(ColumnStructure column : table.getColumns())\n\t\t\t{\n\t\t\t\t// Each column is a datatype\n\t\t\t\tontPutative.addDatatype(\t\n\t\t\t\t\t\t\t\ttable.getNormalizedName(), \n\t\t\t\t\t\t\t\tcolumn.getNormalizedName(), \n\t\t\t\t\t\t\t\tcolumn.type);\n\t\t\t\t\n\t\t\t\tmatch.addDataPropertyMatch(new DataPropertyMatch(column.getNormalizedName(), table.name, column.name, column.type));\n\n\t\t\t\t// Each foreign key is an object property\n\t\t\t\tif(column.isForeignkey) {\n\t\t\t\t\tontPutative.addObjectproperty(\t\n\t\t\t\t\t\t\t\t\"has\"+column.getNormalizedName(), \n\t\t\t\t\t\t\t\ttable.getNormalizedName(),\n\t\t\t\t\t\t\t\tcolumn.getNormalizedForeigntable());\n\t\t\t\t\t\n\t\t\t\t\t// Checking if the columns of the foreign table are a subset of the columns of the table\n\t\t\t\t\tif(db.CheckAttributeSubset(table.name, column.foreigntable)) {\n\t\t\t\t\t\tontPutative.addClass(\n\t\t\t\t\t\t\t\ttable.getNormalizedName(), \n\t\t\t\t\t\t\t\tcolumn.getNormalizedForeigntable(), \n\t\t\t\t\t\t\t\ttable.name);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//If attributes as classes is enabled, each column is a class\n\t\t\t\tif(mbAttributesAsClasses){\n\t\t\t\t\tontPutative.addClass(\n\t\t\t\t\t\t\t column.getNormalizedName(), \n\t\t\t\t\t\t\t \"From_\"+table.name+\"-\"+column.getNormalizedName());\n\t\t\t\t\tontPutative.addObjectproperty(\n\t\t\t\t\t\t\t \"has\"+column.getNormalizedName(), \n\t\t\t\t\t\t\t table.getNormalizedName(), \n\t\t\t\t\t\t\t column.getNormalizedName());\n\t\t\t\t\tontPutative.addDatatype(\n\t\t\t\t\t\t\t column.getNormalizedName(), \n\t\t\t\t\t\t\t column.getNormalizedName(), \n\t\t\t\t\t\t\t column.type);\n\t\t\t\t\t\n\t\t\t\t\tClassMatch matchAttr = new ClassMatch(column.getNormalizedName(), table.name, column.name);\n\n\t\t\t\t\tmatchAttr.isAttributesAsClasses = true;\n\t\t\t\t\t\n\t\t\t\t\tmatchAttr.addDataPropertyMatch(new DataPropertyMatch(column.getNormalizedName(), table.name, column.name, column.type));\n\t\t\t\t\t// We add the match to the matcher's lists\n\t\t\t\t\tmat.addMatch(matchAttr);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// We add the match to the matcher's lists\n\t\t\tmat.addMatch(match);\n\t\t}\n\t\t\n\t\tontPutative.saveOntology(sOutputFile + \"_automap4obda.owl\");\n\t\t\n\t\tSystem.out.println(\" # class: \"+ontPutative.getClasses().size());\n\t\tSystem.out.println(\"\");\n\t}", "private List<EntityAnnotation> sciGraphAnnotate(String text) throws AnnotationException\n {\n List<EntityAnnotation> entities;\n try {\n StringReader reader = new StringReader(text);\n EntityFormatConfiguration.Builder builder = new EntityFormatConfiguration.Builder(reader);\n builder.includeCategories(CATEGORIES);\n builder.longestOnly(false);\n builder.includeAbbreviations(false);\n builder.includeAncronyms(false);\n builder.includeNumbers(false);\n entities = wrapper.annotate(builder.get());\n } catch (IOException e) {\n throw new AnnotationException(e.getMessage());\n }\n return entities;\n }", "public static void main(String args[]){\n featureBase Engine = new featureEngine(\"Engine!\",\n \"This is an engine test!\", 356.99,1.0, 24.5,1000.0);\n\n featureBase Wheels = new featureWheels(\"Wheels\",\n \"This is a wheels test!\", 359.9,1.0,\"Somber\", 21.0);\n\n featureBase Color = new featureColor(\"Test part!\",\n \"This is a test part cool huh?\",364.99,1.0,\"Stylish\");\n\n //Constructing a new nodeArray\n nodeArray test = new nodeArray();\n\n //inserting the objects into the array (Duplicate to test the LLL as well)\n test.insert(Wheels);\n test.insert(Engine);\n test.insert(Color);\n\n System.out.print(test.display());\n }", "public static List<Annotation> getDifferentiatingAnnotations(\r\n\t\t\tTaxon baseTaxon, List<Taxon> annotatedTaxa) {\r\n\r\n\t\tHashSet<Annotation> differentiatingAnnotationsSet = new HashSet<Annotation>();\r\n\t\tdifferentiatingAnnotationsSet.addAll(baseTaxon\r\n\t\t\t\t.getPhenotypeAnnotations());\r\n\r\n\t\tfor (Taxon taxon : annotatedTaxa) {\r\n\t\t\tHashSet<Annotation> annotationSet = new HashSet<Annotation>();\r\n\t\t\tannotationSet.addAll(taxon.getPhenotypeAnnotations());\r\n\r\n\t\t\tif (!taxon.equals(baseTaxon)) {\r\n\t\t\t\tdifferentiatingAnnotationsSet = setDifference(\r\n\t\t\t\t\t\tdifferentiatingAnnotationsSet, annotationSet);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn new ArrayList<Annotation>(differentiatingAnnotationsSet);\r\n\t}", "public ArrayList<Triple> addPublisherAnnotationTriples(Node subject ,DigitalRightsManagementBean digitalRightsManagementBean){\r\n\t\t\r\n\t\tString LOG_METHOD_NAME = \" ArrayList<Triple> addPublisherAnnotationTriples(Node, DigitalRightsManagementBean)\";\r\n\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_BEGIN + LOG_METHOD_NAME);\r\n\t\t\r\n\t\tArrayList<Triple> tripleList = new ArrayList<>();\r\n\t\tNode predicate = null, predicate_value=null;\r\n\t\ttry{\t\t\t\t\t\t\r\n\t\t\t//PUBLISHER information\r\n\t\t\tpredicate = Node.createURI(TripleStoreConstants.URI_PREDICATE_TEN_PUBLISHER);\r\n\t\t\tStringBuffer publisherAttributes = new StringBuffer();\r\n\t\t\t\r\n\t\t\t//id\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisher())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ID);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisher());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//email\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherEmail())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_EMAIL);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherEmail());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//approved\r\n\t\t\tboolean approved = (!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherApproved()) \r\n\t\t\t\t\t&& \"true\".equals(digitalRightsManagementBean.getPublisherApproved()))?true:false;\r\n\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_APPROVED);\r\n\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\tpublisherAttributes.append(approved);\r\n\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t\t\t\t\r\n\t\t\t//cell phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCellPhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CELL_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCellPhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//office phone\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOfficePhone())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OFFICE_PHONE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOfficePhone());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//FAX\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherFax())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_FAX);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherFax());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//street address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherStreetAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STREET_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherStreetAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//other address\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherOtherAddress())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_OTHER_ADDRESS);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherOtherAddress());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//city\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherCity())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_CITY);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherCity());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherState())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_STATE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherState());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//state\r\n\t\t\tif(!Utils.isEmptyOrNull(digitalRightsManagementBean.getPublisherZipCode())){\r\n\t\t\t\tpublisherAttributes.append(TripleStoreConstants.ATTRIBUTE_ZIP_CODE);\r\n\t\t\t\tpublisherAttributes.append(\"=\");\r\n\t\t\t\tpublisherAttributes.append(digitalRightsManagementBean.getPublisherZipCode());\r\n\t\t\t\tpublisherAttributes.append(\";\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpredicate_value = Node.createLiteral(publisherAttributes.toString());\r\n\t\t\ttripleList.add(new Triple(subject, predicate, predicate_value));\r\n\t\t}catch(Exception ex)\r\n\t\t{\r\n\t\t\tlog.error(ex);\r\n\t\t\tthrow ex;\r\n\t\t}finally{\r\n\t\t\tlog.debug(this.getClass() + TripleStoreConstants.LOG_END + LOG_METHOD_NAME);\r\n\t\t}\r\n\t\t\r\n\t\treturn tripleList;\r\n\t}", "protected void createIgnoreAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/2007/ImpactAnalysis/Ignore\";\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t });\n\t}", "protected void createEcoreAnnotations() {\n\t\tString source = \"http://www.eclipse.org/emf/2002/Ecore\";\n\t\taddAnnotation\n\t\t (this,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}", "protected void createGmf_1Annotations() {\n\t\tString source = \"gmf.node\";\t\n\t\taddAnnotation\n\t\t (nodeEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"mxLabel\", \"name\",\n\t\t\t \"mxFill\", \"1\",\n\t\t\t \"mxHtml\", \"1\",\n\t\t\t \"mxFillColor\", \"none\",\n\t\t\t \"mxShape\", \"swimlane\",\n\t\t\t \"mxChildLayout\", \"stackLayout\",\n\t\t\t \"mxCollapsible\", \"1\",\n\t\t\t \"mxHorizontalStack\", \"0\",\n\t\t\t \"mxResizeParent\", \"0\",\n\t\t\t \"mxResizeLast\", \"1\",\n\t\t\t \"mxRounded\", \"1\",\n\t\t\t \"mxMarginBottom\", \"0\",\n\t\t\t \"mxMarginLeft\", \"0\",\n\t\t\t \"mxMarginRight\", \"0\",\n\t\t\t \"mxMarginTop\", \"0\",\n\t\t\t \"mxWhiteSpace\", \"wrap\",\n\t\t\t \"mxWidth\", \"200\",\n\t\t\t \"mxHeight\", \"120\"\n\t\t });\n\t}", "int createAnnotation(int caseID, int authorID, int quoteID, String text);", "public void test_sf_940570() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM_RDFS_INF );\n OntClass C = m.createClass( NS + \"C\" );\n Resource a = m.createResource( NS + \"a\", C );\n \n TestUtil.assertIteratorValues( this, m.listIndividuals(), new Object[] {a} );\n \n OntModel dm = ModelFactory.createOntologyModel( OntModelSpec.DAML_MEM_RULE_INF );\n OntClass D = dm.createClass( NS + \"D\" );\n Resource b = dm.createResource( NS + \"b\", D );\n \n TestUtil.assertIteratorValues( this, dm.listIndividuals(), new Object[] {b} );\n }", "List<Training> obtainAllTrainings();", "@Override\n\tpublic void visit(OWLObjectPropertyAssertionAxiom axiom) {\n\n\t\taddFact(RewritingVocabulary.TRIPLE, //\n\t\t\t\taxiom.getSubject().asOWLNamedIndividual().getIRI(), //\n\t\t\t\taxiom.getProperty().asOWLObjectProperty().getIRI(), //\n\t\t\t\taxiom.getObject().asOWLNamedIndividual().getIRI() //\n\t\t);\n\t}", "private List<AnnotationNode> getAllAnnotations(List<AnnotationNode>... annotationLists) {\n List<AnnotationNode> resultList = null;\n for (List<AnnotationNode> annotationList : annotationLists) {\n if (annotationList!=null && annotationList.size()>0) {\n if (resultList==null) {\n resultList = new ArrayList<AnnotationNode>();\n }\n resultList.addAll(annotationList);\n }\n }\n return resultList;\n }", "private List<String> generateAnnotationList(List<Annotation> queryAnnotations) {\n\n List<String> annotationList = new ArrayList<>();\n AnnotationConfigGenerator annotationConfigGenerator = new AnnotationConfigGenerator();\n for (Annotation queryAnnotation : queryAnnotations) {\n if (!queryAnnotation.getName().equalsIgnoreCase(\"info\")) {\n annotationList.add(annotationConfigGenerator.generateAnnotationConfig(queryAnnotation));\n }\n }\n preserveCodeSegmentsOf(annotationConfigGenerator);\n return annotationList;\n }", "private static void addAnnotations(Elements elements, AnnotatedTypeFactory atypeFactory,\n AnnotatedTypeMirror alub,\n ArrayList<AnnotatedTypeMirror> types) {\n Set<AnnotatedTypeMirror> visited = Collections.newSetFromMap(new IdentityHashMap<AnnotatedTypeMirror,Boolean>());\n addAnnotationsImpl(elements, atypeFactory, alub, visited, types);\n }", "public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void fillTypedBOW(Set<TypedBOW> typedBOW, EntityTemplate annotation) {\n\n\t\tAbstractAnnotation rootAnnotation = annotation.getRootAnnotation();\n\n\t\tfinal Set<String> bow = extractEntityTypeBOW(rootAnnotation.getEntityType());\n\n\t\tif (rootAnnotation.isInstanceOfDocumentLinkedAnnotation()) {\n\t\t\tbow.addAll(extractDocLinkedBOW(rootAnnotation.asInstanceOfDocumentLinkedAnnotation()));\n\t\t}\n\t\ttypedBOW.add(new TypedBOW(bow, null));\n\n\t\tfinal Map<SlotType, Set<AbstractAnnotation>> propertyAnnotations = annotation.filter().docLinkedAnnoation()\n\t\t\t\t.multiSlots().singleSlots().merge().nonEmpty().build().getMergedAnnotations();\n\n\t\tfor (Entry<SlotType, Set<AbstractAnnotation>> prop : propertyAnnotations.entrySet()) {\n\n//\t\t\tif (!(prop.getKey() == SlotType.get(\"hasDeliveryMethod\") || prop.getKey() == SCIOSlotTypes.hasCompound\n//\t\t\t\t\t|| prop.getKey() == SlotType.get(\"hasDosage\")))\n//\t\t\t\tcontinue;\n\n\t\t\tSet<String> tmp = extractEntityTypeBOW(rootAnnotation.getEntityType());\n\n\t\t\tfor (AbstractAnnotation val : prop.getValue()) {\n//\t\t\t\ttmp.addAll(extractEntityTypeBOW(val.getEntityType()));\n\t\t\t\ttmp.addAll(extractDocLinkedBOW(val.asInstanceOfDocumentLinkedAnnotation()));\n\t\t\t}\n\n\t\t\ttypedBOW.add(new TypedBOW(tmp, prop.getKey()));\n\n\t\t}\n\n\t\t/*\n\t\t * Recursive search for terms.\n\t\t */\n\t\tfor (Set<AbstractAnnotation> props : annotation.filter().entityTemplateAnnoation().multiSlots().singleSlots()\n\t\t\t\t.merge().nonEmpty().build().getMergedAnnotations().values()) {\n\t\t\tfor (AbstractAnnotation prop : props) {\n\t\t\t\tfillTypedBOW(typedBOW, prop.asInstanceOfEntityTemplate());\n\t\t\t}\n\t\t}\n\n\t}", "public void setGroundInstancesAsAxioms(Explainer explainer, Vector concepts)\n {\n if (!use_ground_instances)\n return;\n explainer.use_ground_instances = true;\n explainer.ground_instances_as_axioms = \"\";\n for (int i=0; i<concepts.size(); i++)\n {\n Concept concept = (Concept)concepts.elementAt(i);\n if (concept.is_user_given)\n {\n for (int j=0; j<concept.datatable.size(); j++)\n {\n Row row = (Row)concept.datatable.elementAt(j);\n for (int k=0; k<row.tuples.size(); k++)\n {\n Vector tuple = (Vector)row.tuples.elementAt(k);\n Vector ground_letters = (Vector)tuple.clone();\n ground_letters.insertElementAt(row.entity, 0);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + add_to.trim() + \".\\n\";\n }\n if (concept.arity==1 && row.tuples.size()==0)\n {\n Vector ground_letters = new Vector();\n ground_letters.addElement(row.entity);\n String add_to = concept.writeDefinition(\"tptp\",ground_letters);\n if (!add_to.trim().equals(\"\"))\n explainer.ground_instances_as_axioms = explainer.ground_instances_as_axioms + \"~(\" + add_to.trim() + \").\\n\";\n }\n }\n }\n }\n }", "public void start() throws Exception {\n String datasetPath = \"dataset\\\\arcene_train.arff\";\n\n Instances dataset = new Instances(fileSystemUtil.readDataSet(datasetPath));\n dataset.setClassIndex(dataset.numAttributes() - 1);\n\n // Creating instances of feature selection models\n List<FeatureSelectionModel> featureSelectionModels = new ArrayList<>();\n featureSelectionModels.add(new CorellationFeatureSelectionModel());\n featureSelectionModels.add(new InfoGainFeatureSelectionModel());\n featureSelectionModels.add(new WrapperAttributeFeatureSelectionModel());\n\n List<List<Integer>> listOfRankedLists = calculateRankedLists(dataset, featureSelectionModels);\n\n // Creating instances of classifiers\n List<AbstractClassifier> classifiers = createClassifiers();\n Instances datasetBackup = new Instances(dataset);\n\n int modelCounter = 0;\n for (FeatureSelectionModel model : featureSelectionModels) {\n System.out.println(\"============================================================================\");\n System.out.println(String.format(\"Classification, step #%d. %s.\", ++modelCounter, model));\n System.out.println(\"============================================================================\");\n\n // Ranking attributes\n List<Integer> attrRankList = listOfRankedLists.get(modelCounter - 1);\n\n for (int attrIndex = (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1) + 1, removedCounter = 0;\n attrIndex >= attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION;\n attrIndex--, removedCounter++) {\n if (datasetBackup.numAttributes() == attrRankList.size()\n && attrIndex == 0) {\n continue;\n }\n// for (int attrIndex = attrRankList.size() * BEST_ATTRIBUTES_NUMBER_PROPORTION, removedCounter = 0;\n// attrIndex <= (attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION - 1);\n// attrIndex++, removedCounter++) {\n// if (datasetBackup.numAttributes() == attrRankList.size()\n// && attrIndex == attrRankList.size() - 1) {\n// continue;\n// }\n dataset = new Instances(datasetBackup);\n // Do not remove for first iteration\n if (removedCounter > 0) {\n // Selecting features (removing attributes one-by-one starting from worst)\n List<Integer> attrToRemoveList = attrRankList.subList(attrIndex,\n (int)(attrRankList.size() * WORST_ATTRIBUTES_NUMBER_PROPORTION));\n Collections.sort(attrToRemoveList);\n for (int i = attrToRemoveList.size() - 1; i >= 0; i--) {\n dataset.deleteAttributeAt(attrToRemoveList.get(i));\n }\n// for (Integer attr : attrToRemoveList) {\n// dataset.deleteAttributeAt(attr);\n// }\n System.out.println(\"\\n\\n-------------- \" + (removedCounter) + \" attribute(s) removed (of \" +\n (datasetBackup.numAttributes() - 1) + \") --------------\\n\");\n } else {\n System.out.println(\"\\n\\n-------------- First iteration - without feature selection --------------\\n\");\n }\n\n classify(classifiers, dataset);\n }\n }\n }", "public void getPredictions() throws IOException, InterruptedException{\n //splitColsDataFiles();\n for(String learner:listLearners){\n File modelsFolder = new File(\"models/\"+learner);\n File[] IPFolders = modelsFolder.listFiles();\n for (File nodeFolder : IPFolders) {\n if (nodeFolder.isDirectory()) {\n File[] filesInFolder = nodeFolder.listFiles();\n ArrayList<String> filesINFolderAL = new ArrayList<String>();\n for(int i=0;i<filesInFolder.length;i++){\n filesINFolderAL.add(filesInFolder[i].getName());\n }\n if(filesINFolderAL.contains(model) && filesINFolderAL.contains(\"data.properties\")){\n System.out.println(\"Generating data for: \" + nodeFolder.getPath());\n // read properties file\n // get indices of variables\n // paste appropriate cols in models/temp\n // change commands below with appropriate data\n Properties dataProps = loadProps(nodeFolder.getPath()+\"/data.properties\");\n ArrayList<Integer> indices = new ArrayList<Integer>();\n String featuresS = dataProps.getProperty(\"sampled_variables\");\n if(featuresS!=null){\n String[] featuresArray = featuresS.split(\" \");\n for(int i=0;i<featuresArray.length;i++){\n indices.add(i, Integer.parseInt(featuresArray[i]));\n }\n // the order of indices is important\n Collections.sort(indices);\n\n String pasteTrainTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTrainTempCommand += \" models/temp/tr_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTrainTempCommand += \" models/temp/tr_targets.csv > models/temp/tr_temp.csv\";\n System.out.println(pasteTrainTempCommand);\n Process pasteTrainTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTrainTempCommand});\n pasteTrainTemp_process.waitFor();\n\n\n String pasteTestTempCommand = \"paste -d',' \";\n for(int i=0;i<indices.size();i++){\n pasteTestTempCommand += \" models/temp/te_\" + (indices.get(i)+1) + \".csv\";\n }\n pasteTestTempCommand += \" models/temp/te_targets.csv > models/temp/te_temp.csv\";\n System.out.println(pasteTestTempCommand);\n Process pasteTestTemp_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", pasteTestTempCommand});\n pasteTestTemp_process.waitFor();\n \n // Add a new case when adding a new learner\n if(learner.equals(\"gpfunction\") || learner.equals(\"ruletree\") || learner.equals(\"rulelist\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }else if(learner.equals(\"mplcs\")){// C OR C++\n String predictTrain_command = \"learners/\" + learner + \" -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"learners/\" + learner + \" -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"lccb\")){ // Python\n String predictTrain_command = \"python learners/\" + learner + \".py -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"python learners/\" + learner + \".py -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n System.out.println(predictTest_command);\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }if(learner.equals(\"SBBJ\")){ // JAVA\n String predictTrain_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/tr_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTrain_\" + model+\".csv\" ;\n Process predictTrain_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTrain_command});\n predictTrain_process.waitFor();\n String predictTest_command = \"java -jar learners/\" + learner + \".jar -predict models/temp/te_temp.csv\"\n + \" -model \" + nodeFolder + \"/\" + model \n + \" -o \" + nodeFolder + \"/predsTest_\" + model+\".csv\" ;\n Process predictTest_process = Runtime.getRuntime().exec(new String[]{\"bash\" , \"-c\", predictTest_command});\n predictTest_process.waitFor();\n }\n \n }\n }\n }\n }\n }\n }", "int getObjectAnnotationsCount();" ]
[ "0.73931766", "0.7102377", "0.6225158", "0.6151864", "0.5910799", "0.56788826", "0.56054366", "0.5554718", "0.5550257", "0.55222046", "0.55154574", "0.5467522", "0.5466492", "0.53452903", "0.53402686", "0.5296542", "0.5270844", "0.52550405", "0.5215528", "0.5193948", "0.51397866", "0.51352096", "0.51344734", "0.51304007", "0.5117109", "0.5116296", "0.51016563", "0.5094703", "0.50915754", "0.50913703", "0.5091133", "0.5075822", "0.5064025", "0.50628155", "0.5057137", "0.50565416", "0.5053241", "0.5035533", "0.5030616", "0.5003363", "0.49986336", "0.49974316", "0.49959525", "0.49951968", "0.49764404", "0.49687725", "0.49581376", "0.49574322", "0.49380943", "0.49197343", "0.49166054", "0.49164474", "0.4912487", "0.49024582", "0.4900088", "0.48959067", "0.48864907", "0.4883076", "0.48810217", "0.48625162", "0.48620644", "0.48581752", "0.48543894", "0.48538563", "0.4847233", "0.4837986", "0.4836353", "0.48298582", "0.482602", "0.48160696", "0.48120496", "0.48115084", "0.48100725", "0.48075283", "0.47840655", "0.47829157", "0.4770878", "0.4767531", "0.47642118", "0.47498107", "0.4737192", "0.47361058", "0.4734749", "0.47338775", "0.4729988", "0.47203016", "0.47198173", "0.47186992", "0.47063732", "0.4703425", "0.47026828", "0.47014686", "0.4699016", "0.46928304", "0.46901706", "0.46890104", "0.46794596", "0.46740177", "0.46650392", "0.46641085" ]
0.64558554
2
if more than 2 numbers
public String[] getAllnumbers() { if(morenumbers==null) return null; ArrayList<String> al =new ArrayList<String>(); al.add(phoneNum); for(String s:morenumbers){ al.add(s); } String[] array = al.toArray(new String[0]); return array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasNum2();", "private void addTwoNumbers() {\n\t\t\n\t}", "boolean multipleOf2(int num)\n {\n return (num & 0b1) != 1;\n }", "private boolean checkBoxSituation(int secondI, int secondJ) {\n int max = 0;\n if (secondI + 1 < 8) {\n if (checkBlueBox(secondI + 1, secondJ)) {\n max++;\n }\n }\n if (secondI - 1 > -1) {\n if (checkBlueBox(secondI - 1, secondJ)) {\n max++;\n }\n }\n if (secondJ + 1 < 8) {\n if (checkBlueBox(secondI, secondJ + 1)) {\n max++;\n }\n }\n if (secondJ - 1 > -1) {\n if (checkBlueBox(secondI, secondJ - 1)) {\n max++;\n }\n }\n if (max >= 3) {\n return true;\n }\n return false;\n }", "public boolean isLovely(int n) {\n List<String> digits = new ArrayList<>(Arrays.asList(Integer.toString(n).split(\"\")));\n Map<String,Integer> toCount = new HashMap<>();\n\n for (String dig:digits) {\n if (!toCount.containsKey(dig)) {\n toCount.put(dig,1);\n } else {\n toCount.put(dig,toCount.get(dig) + 1);\n }\n }\n for (Integer value:toCount.values()) {\n if (value > 2)\n return false;\n }\n return true;\n }", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\tint tmp = t;\n\t\t\t\tif (tmp % 2 == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public static void acceptOnlyNumberFifteen(){\n\t\tSystem.out.println(\"please enter the first number: \");\n\t\tScanner scann=new Scanner(System.in);\n\t\tint x1=scann.nextInt();\n\t\tSystem.out.println(\"please enter the second number: \");\n\t\tScanner scan=new Scanner(System.in);\n\t\tint x2=scan.nextInt();\n\t\tSystem.out.println(\"The result is: \" +isTrue(x1,x2));\n\t}", "public boolean large_num(SLList pum) \n {\n // SLList for storing pum \n SLList pum_temp = new SLList(pum.first(), pum.rest());\n // For loop to iterate temporary list \n for (int i = 0; i < pum_temp.length(); i++)\n {\n // Conditional if statement to check length of string \n if(pum_temp.first.toString().length() > 3)\n {\n // Return true statement\n return true;\n }\n }\n // Set the pum_temp to the rest of pum_temp\n pum_temp = pum_temp.rest();\n // Return false statement\n return false;\n }", "@Override\r\n\tpublic int multiNums(int n1, int n2) {\n\t\treturn 0;\r\n\t}", "static boolean blanco(int numero){\n\t\tboolean resultado; \n\t\tif (numero > 43){\n\t\t\tresultado = true;\n\t\t}else{\n\t\t\tresultado = false;\n\t\t}\n\t\treturn resultado;\t\n\t}", "private static int LargerNumbers(int num1, int num2) {\n\t\tint temp = 0;\n\t\t\n\t\tif (num1 > num2) {\n\t\t\ttemp = num1;\n\t\t} else if (num1 == num2) {\n\t\t\ttemp = num1;\n\t\t}\n\t\t\n\t\treturn temp;\n\t}", "public static boolean isEven(MyInteger number1){\r\n\t\tif (number1.getInt()%2==0){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\treturn false;\r\n\t}", "boolean hasNum1();", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "public static boolean isLarger(int first, int second) {\n if (first > second) {\n return true;\n } else {\n return false;\n }\n }", "public boolean no23(int[] nums) {\n for(int j=0; j<2; j++)\n {\n if(nums[j]==2||nums[j]==3)\n {\n return false;\n }\n }\n return true;\n}", "public boolean in1020(int a, int b) {\n return ((a >= 10 && a <= 20) || (b >= 10 && b <= 20));\n}", "public static void main(String[] args) {\n\t Scanner numara=new Scanner(System.in);\n\t System.out.println(\"Please enter your first number\");\n\t int num1=numara.nextInt();\n\t \n\t System.out.println(\"please enter your second number\");\n int num2=numara.nextInt();\n \n if(num1>num2) {System.out.println(num1+\" larger than \"+num2);}\n else if(num1==num2) {System.out.println(num1+\" equel \"+num2);}\n else {System.out.println(num1+\" smaller than \"+num2);}\n \n \n\t \n\t \n}", "public static boolean checkdigitsequal() {\n int count2=0;\n for (a = 0; a < 10; a++) {\n if (digits[a] == 0)\n {\n count2++;\n if(count2==10)return true;\n }\n else return false;\n }\n return false;\n }", "public boolean check3sameNumbersMax(String password) {\n for (int i = 0; i < password.length() - 3; i++) {\n if (String.valueOf(password.charAt(i)).matches(\"\\\\d\")) { //next time: Character.isDigit(passtword.charAt(i))\n for (int j = i; j < i+3; j++) {\n if (password.charAt(j) != password.charAt(j + 1)) {\n break;\n } else if (j-i == 2) {\n return false;\n }\n }\n }\n }\n return true;\n }", "public boolean icyHot(int temp1, int temp2) {\n return ((temp1 < 0 && temp2 > 100) || (temp1 > 100 && temp2 < 0));\n}", "void showAlertForMultipleNumber();", "public static void twoNumbers() {\n\n\t\tint x;\n\t\tint z;\n\t\tScanner input = new Scanner(System.in);\n\n\t\tSystem.out.println(\"skriv in två olika tal\");\n\n\t\tx = input.nextInt();\n\t\tz = input.nextInt();\n\n\t\tSystem.out.println(minstaTal(x, z));\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Digite o primeiro numero: \");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"Digite o segundoo numero: \");\n\t\tint num2 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"Digite o terceiro numero: \");\n\t\tint num3 = scan.nextInt();\n\t\t\n\t\tif (num1 > num2 && num1 > num3) {\n\t\t\tSystem.out.println(\"O maior número é o: \" + num1);\n\t\t} else if (num2 > num1 && num2 > num3) {\n\t\t\tSystem.out.println(\"O maior número é o: \" + num2);\n\t\t} else if (num3 > num1 && num3 > num2) {\n\t\t\tSystem.out.println(\"O maior número é o: \" + num3);\n\t\t} \n\n\t}", "public boolean checkForNumber(int m, int n){\r\n\t\tif ( count[m][n] > 0 & count[m][n] < 9 & !bombs[m][n])\r\n\t\t\treturn true ;\r\n\t\treturn false;\r\n\t}", "private static void displayNumbers(){\n BigInteger bigInteger = new BigInteger(create50DigitString());\n int i = 1;\n do {\n // Checking the remainder's int value == 0 since the requirement is to find the number greater than Long.MAX_VALUE and divisible by 2 or 3.\n if (bigInteger.remainder(new BigInteger(\"2\")).intValue() == 0 || bigInteger.remainder(new BigInteger(\"3\")).intValue() == 0) {\n System.out.println(bigInteger);\n i++;\n }\n// Incrementing the bigInteger\n bigInteger = bigInteger.add(new BigInteger(\"1\"));\n// Exit condition\n } while (i != 11);\n }", "void number (int num1,int num2) {\n\t\t\n\t\tif(num1<num2) {\n\t\t\tSystem.out.println(\"This is number is \"+num1+ \" largest number\");\n\t\t}else if (num1>num2) {\n\t\t\tSystem.out.println(\"This is number is \"+num2+ \" smalest number\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Numbers are equal\");\n\t\t}\n\t\t\n\t}", "public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}", "public static void main(String[] args) {\n int num1 = 34;\n int num2 = 5;\n\n int count = 0;\n if (num2 == 0) {\n System.out.println(\"Invalid Entry\");\n }\n\n while (num1 >= num2) {\n num1 = num1 - num2;\n count++;\n }\n System.out.println(count);\n }", "public int findNumbers(int[] nums) {\n int res = 0;\n for (int num : nums) {\n if (String.valueOf(num).length() % 2 == 0) {\n res ++;\n }\n }\n return res;\n }", "private boolean isPowerOfTwo(int num) {\n if (num == 0) {\n return false;\n }\n \n // check using modulus\n else {\n while (num != 1) {\n if (num % 2 != 0) {\n return false;\n }\n num /= 2;\n }\n return true;\n }\n }", "public boolean or35 (int n) {\n if ( (n % 3 == 0) || (n % 5 == 0)){\n return true;\n }\n return false;\n}", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"Vilket heltal ska vi börja med?\");\n int first = sc.nextInt();\n System.out.println(\"Vilket ska vi avsluta med?\");\n int second = sc.nextInt();\n\n int firstMax = first * 10;\n int secondMax = second * 10;\n\n do {\n\n for (int j = first; j <= firstMax; j = j + first) {\n System.out.print(j);\n System.out.print(\" \");\n\n }\n\n System.out.println(\" \");\n first++;\n firstMax = firstMax + 10;\n\n\n\n }while(first != second + 1 && firstMax != secondMax + 10);\n\n\n\n\n\n }", "int main()\n{\n int a,t,sum1=0,sum2=0;\n cin>>a;\n while(a>0)\n {\n t=a%10;\n if(t%2!=0)\n {\n sum1=sum1+t;\n }\n else\n {\n sum2=sum2+t;\n }\n a=a/10;\n }\n (sum1==sum2)?cout<<\"Yes\":cout<<\"No\";\n return 0;\n}", "public boolean or35(int n) {\n return (n % 3 == 0 || n % 5 == 0);\n}", "public static void powerOf2(int num)\n\t{\n\t\tif(num<2 || num>32) \n\t\t{\n\t\t\tSystem.out.println(\"Enter number greater than 2 and less than 32\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tint val=1;\n\t\tfor(int i=0;i<num;i++)\n\t\t{\n\t\t\tval=val*2;\n\t\t\tSystem.out.println(val);\n\t\t}\n\t }\n }", "private boolean isValidQuiz2(double quiz2)\n\t{\n\t\treturn quiz2 >= 0 && quiz2 <= 10;\n\t}", "public static int twoNumbers(int a, int b) {\n if ( a == b) {\n return ((a+2)+(b+2));\n }\n else {\n return ((a+1)+(b+1));\n }\n\n }", "public static void main(String[] args) {\n int number = 1;\n do{\n if ( (number%2 == 0) && (number%7 == 0) ){\n System.out.print(number + \" \");\n }\n number++;\n }while(number<=1000);\n\n\n\n }", "@Override\n\tpublic boolean check(int[] digits) {\n\t\tif (digits.length <= 1 || digits == null) {\n\t\t\treturn false;\n\t\t}\n\t\tint total = 0;\n\t\tint check = digits[digits.length - 1]; // check digit\n\t\tboolean alternate = true;\n\n\t\tfor (int i = digits.length - 2; i >= 0; i--) {\n\n\t\t\t// double the value of every second digit\n\t\t\tif (alternate) {\n\t\t\t\tdigits[i] *= 2;\n\t\t\t}\n\n\t\t\tif (digits[i] > 9) {\n\t\t\t\tdigits[i] -= 9;\n\t\t\t}\n\n\t\t\talternate = !alternate;\n\t\t\ttotal += digits[i];\n\t\t}\n\n\t\ttotal += check; // add check digit to total\n\n\t\treturn total % 10 == 0;\n\t}", "public boolean makes10(int a, int b) {\n return a == 10 || b == 10 || a + b == 10;\n }", "private boolean isAppropriate(int[] counts, int length) {\n\n if (length % 2 == 0) {\n for (int count : counts) {\n if (count != 0 && count % 2 == 1) {\n return false;\n }\n }\n }\n else {\n int oddCount = 0;\n for (int count : counts) {\n if (count != 0 && count % 2 == 1) {\n if (++oddCount > 1) {\n return false;\n }\n }\n }\n }\n\n return true;\n }", "public boolean isValid(){\n\t\treturn points.size() >= 2;\n\t}", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "private static boolean isDuplicate(int b, int y, int max) {\r\n\t\tfor (int q = 1; q < y; q++) {\r\n\t\t\tint z = (b * y) / (y - q);\r\n\t\t\tboolean isInteger = (b * y) % (y - q) == 0;\r\n\t\t\tif (z <= max && isInteger) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"your number?\");\n Scanner s = new Scanner(System.in);\n int i1 = s.nextInt();\n int i2 = s.nextInt();\n int i3 = s.nextInt();\n int i4 = s.nextInt();\n int i5 = s.nextInt();\n int sum = i1 + i2 + i3 + i4 + i5;\n if (sum % 2 == 0) {\n System.out.println(sum);\n }\n }", "public static String numberComparator(int firstNumber, int secondNumber){\n\n if (firstNumber>secondNumber){\n System.out.println(\"First number is greater than second number.\");\n }if(firstNumber<secondNumber){\n System.out.println(\"First Number is smaller than second number.\");\n } if(firstNumber==secondNumber){\n System.out.println(\"The first and the second number are equals. \");\n } if(firstNumber!=secondNumber){\n System.out.println(\"The two numbers are different.\");\n }\n\n\n return \"The check number finished is task.\";\n }", "private long isUgly(long no) {\n\t\tno = maxDivide(no, 2);\n\t\tno = maxDivide(no, 3);\n\t\tno = maxDivide(no, 5);\n\n\t\treturn (no == 1) ? 1 : 0;\n\t}", "private static boolean no23(int[] arr) {\n for (int i = 0; i < arr.length; i++) {\n if (arr[i]==2||arr[i]==3){\n return false;\n }\n }\n return true;\n }", "boolean hasNumber();", "public static boolean containTwoOrThree(int[] numbers)\r\n {\r\n if (numbers[0] == 2 || numbers[1] == 2)\r\n {\r\n return true;\r\n }\r\n else if(numbers[0]==3 || numbers[1]==3)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }", "private boolean isSecondMove(int numberGeneratedSoFarLength) {\n\t\treturn numberGeneratedSoFarLength == 2;\n\t}", "public boolean compTwo(int type1, int type2, int no1, int no2) {\n if (type1 != type2) {\r\n return true;\r\n } else if (no1 > no2) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "private double calcG(int a, int b) {\n return a % 2 == 0 && b % 2 == 0 ? 20 : a % 2 == 1 && b % 2 == 1 ? 1 : 5;\n }", "public int enfrentarJugadores(int J1, int J2) {\n if ((J1 == 0 && J2 == 2) || (J1 == 1 && J2 == 0) || (J1 == 2 && J2 == 1)) {\n return 1;\n } else if ((J2 == 0 && J1 == 2) || (J2 == 1 && J1 == 0) || (J2 == 2 && J1 == 1)) {\n return 2;\n } else {\n return 0;\n }\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Hi There.. Welcome to find which is big number out of 3 numbers you entered\");\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please enter 3 numbers one by one\");\r\n\t\tdouble a = sc.nextInt();\r\n\t\tdouble b = sc.nextInt();\r\n\t\tdouble c = sc.nextInt();\r\n\t\tif (a>b && a>c) {\r\n\t\t\tSystem.out.println(\"The number \" +a+ \" enterd by you is greater than others\");\r\n\t\t}\r\n\t\telse if (b>a && b>c)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The number \" +b+ \" enterd by you is greater than others\");\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\telse if (a==b && b==c)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The number \" +c+ \" enterd by you is qual with others\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The number \" +c+ \" enterd by you is greater than others\");\r\n\t\t}\r\n\t}", "@Test\n // boundary\n public void testIsPrime2_2() {\n NaturalNumber n = new NaturalNumber2(2);\n boolean truth = true;\n assertEquals(truth, CryptoUtilities.isPrime2(n));\n }", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "private int demDoiThong(List<Card> bai) {\n List<Card> cards = new ArrayList<>() ;\n int max = 0;\n int count = 0;\n for (int i = 0; i < bai.size() - 1; i++) {\n if (bai.get(i).getId() >= 48) {\n break;\n }\n if (count == 0 && bai.get(i).getCardNumber() == bai.get(i + 1).getCardNumber()) {\n count = 1;\n if (cards.isEmpty()) {\n cards.add(bai.get(i));\n cards.add(bai.get(i + 1));\n }\n } else {\n if (count % 2 != 0) {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber() - 1) {\n count++;\n } else if (bai.get(i).getCardNumber()!= bai.get(i + 1).getCardNumber()) {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n } else {\n if (bai.get(i).getCardNumber()== bai.get(i + 1).getCardNumber()) {\n if(!cards.contains(bai.get(i))){\n cards.add(bai.get(i));\n }\n if(!cards.contains(bai.get(i+1))){\n cards.add(bai.get(i+1));\n }\n count++;\n } else {\n // valid = false;\n if (count > max) {\n max = count;\n }\n if(cards.size()<6){\n cards.clear();\n }\n count = 0;\n }\n }\n }\n }\n if (count > max) {\n max = count;\n }\n if (max >= 5) {\n this.specialCards.addAll(cards);\n }\n return (max + 1) / 2;\n }", "int main()\n\n{\n\n int n,t,e,o;\n\n cin>>n;\n\n while(n>0)\n\n {\n\n t=n%10;\n\n if(t%2==0)\n\n {\n\n e=e+t;\n\n }\n\n else\n\n {\n\n o=o+t;\n\n }\n\n n=n/10;\n\n }\n\n if(e==o)\n\n {\n\n cout<<\"Yes\";\n\n }\n\n else\n\n {\n\n cout<<\"No\";\n\n }\n\n \n\n}", "public static boolean\ttwoTwo(int[] nums) {\n\n\t\tif (nums.length == 0) {\n\t\t\treturn true;\n\t\t}\n\t\tif (nums.length == 1) {\n\t\t\tif (nums[0] == 2) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\tif (nums[nums.length - 1] == 2) {\n\t\t\tif (nums[nums.length - 1] != nums[nums.length - 2]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < nums.length-1; i++) {\n\t\t\t\n\t\t\tif (nums[i] == 2) {\n\t\t\t\tif (nums[i+1] != 2) {\n\t\t\t\t\treturn false;\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\ti++;\n\t\t\t\t}\t\t\t\n\t\t\t}\t\t\n\n\t\t}\n\n\n\t\treturn true;\n\n\n\t}", "public static void milestone1(Scanner scanner) {\n int num1, num2;\n Scanner sc = new Scanner(System.in);\n System.out.print(\"Please type a number: \");\n num1 = sc.nextInt();\n System.out.print(\"Enter another number: \");\n num2 = sc.nextInt();\n int smallNum = 0;\n int largeNum = 0; \n boolean isNum1Large = false;\n if (num1 - num2 > 0) \n {\n smallNum = num2;\n largeNum = num1;\n isNum1Large = true;\n } \n else \n {\n smallNum = num1;\n largeNum = num2;\n }\n if (isNum1Large) \n {\n for (int i = largeNum - 1; i > smallNum; i--) {\n if (i % 2 == 0) {\n System.out.println(i);\n }\n }\n } else \n {\n for (int i = smallNum + 1; i < largeNum; i++) {\n if (i % 2 == 0) {\n System.out.println(i);\n }\n }\n }\n sc.close();\n }", "public void checkClosePara(){\n try{\n if(numbers.length() > 2){\n String charactercheck = Character.toString(numbers.charAt(numbers.length()-2));\n if(charactercheck.equals(\")\")){\n numbers.append(multiplySTR);\n }else{\n return;\n }\n }else{\n return;\n }\n }catch (Exception e){\n\n }\n\n }", "static boolean isPowerOfTwo(int testNum)\r\n\t{\r\n\t\t//set ret to false\r\n\t\tboolean ret = false;\r\n\t\tfor (int i = 9; i < 15 || ret==false; i++)\r\n\t\t{\r\n\t\t\t//if 2 to the i power is equal to testNum (systemPage)\r\n\t\t\tif (Math.pow(2, i) == testNum)\r\n\t\t\t{\r\n\t\t\t\t//set ret to true\r\n\t\t\t\tret = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "String getZero_or_more();", "@Test\n\tvoid RepeatedNumberTest() \n\t{ int[] oneNum = new int[] {1};\n\t\tint[] twoDiffNums = new int[] {1, 2};\n\t\tint[] twoSameNums = new int[] {2, 2};\n\t\tint[] insideOut = new int[] {5, 4, 3, 2, 1, 1, 2, 3, 4, 5};\n\t\t\n\t\tassertFalse(utilities.RepeatedNumber(oneNum));\n\t\tassertFalse(utilities.RepeatedNumber(twoDiffNums));\n\t\tassertTrue(utilities.RepeatedNumber(twoSameNums));\n\t\tassertTrue(utilities.RepeatedNumber(insideOut));\n\t}", "public boolean duplicatedigitInNumberRange(int num)\r\n\t\r\n\t{\r\n\r\n\t\tMap<Character,Integer> map = new HashMap<Character, Integer>();\r\n\t\tchar[] char1= String.valueOf(num).toCharArray();\r\n\t//\tint count=1;\r\n\t\tboolean f=true;\r\n\tfor(char c:char1)\r\n\t{\r\n\t\tif(f=true)\r\n\t\t{\r\n\t\tif(map.containsKey(c))\r\n\t\t{\r\n\t\t\tf=false;\r\n\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tmap.put(c,1);\r\n\t\t\t\r\n\t\t}\r\n\t\t}\r\n\t\t\r\n\t}\r\n\treturn f;\r\n\t\r\n\t}", "public static void main(String[] args) {\n\t\tint n,n1,n2;\r\n\t\tScanner ja=new Scanner(System.in);\r\n\t\tn=ja.nextInt();\r\n\t\tn1=ja.nextInt();\r\n\t\tn2=ja.nextInt();\r\n\t\tif(n1>n2||n1>n2){\r\n\t\t\tSystem.out.println(n1);\r\n\t\t}\r\n\t\telse if(n1>n||n1>n2){\r\n\t\t\tSystem.out.println(n2);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(n);\r\n\t\t}\r\n\r\n\t}", "@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }", "public boolean eNera(int riga, int colonna)\n { return ( (riga % 2) == (colonna % 2) ); }", "public boolean restarVarios(int num){\n\t\tif (numero>0 && numero>num) {\n\t\t\tnumero -= num;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isEvenNumber(long number) {\n\t\tif(number%2 == 0) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean esPrimo(int pNumero)\r\n\t{\r\n\t\tboolean esPrimo = true;\r\n\t\tfor(int i=2; i<=pNumero/2 && esPrimo;i++)\r\n\t\t{\r\n\t\t\tif(pNumero%i == 0)\r\n\t\t\t{\r\n\t\t\t\tesPrimo = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn esPrimo;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc =new Scanner(System.in);\n\t\tint num, num2 ;\n\t\t\n\t\tSystem.out.println(\"숫자2개를 입력해주세요\");\n\t\tSystem.out.print(\"숫자 1 : \");\n\t\tnum = sc.nextInt();\n\t\t\n\t\t\n\t\tSystem.out.print(\"숫자 2 : \");\n\t\tnum2 = sc.nextInt();\n\t\t\n\t\t\n\t\tif(num>num2) {\n\t\t\tSystem.out.print(\"큰수:\"+num);\n\t\t\tSystem.out.print(\"작은수:\"+num2);\n\t\t\t\n\t\t}else if(num2>num) {\n\t\t\tSystem.out.print(\"큰수:\"+num2);\n\t\t\tSystem.out.print(\"작은수:\"+num);\n\t\t\t\n\t\t\t\n\t\t}else {\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tsc.close();\n\t\t\n\t}", "private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}", "public boolean hasTwoPairs() {\n\t\t\n\t\tboolean paired = false;\n\t\t\n\t\tif (firstDigit == secondDigit && thirdDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == thirdDigit && secondDigit == forthDigit) {paired = true;}\n\t\telse if (firstDigit == forthDigit && secondDigit == thirdDigit) {paired = true;}\n\t\t\n\t\treturn paired;\n\t}", "public void ejercicio03() {\r\n\t\tcabecera(\"03\", \"Comparar numeros\");\r\n\r\n // Inicio modificacion\r\n\t\t\r\n NumeroEntero n1 = new NumeroEntero(10);\r\n NumeroEntero n2 = new NumeroEntero(10);\r\n\r\n if (n1.comapreTo(n2) == -1){\r\n \t System.out.println(\"N1-> \"+n1);\r\n System.out.println(\"N1 es mayor que N2\");\r\n }\r\n else if (n1.comapreTo(n2) ==1) {\r\n System.out.println(\"N1 -> \"+n1);\r\n System.out.println(\"N1 es menor que N2\");\r\n }\r\n else{\r\n System.out.println(\"N1 y N2 son iguales -> N1 ->\"+n1+\" N2 -> \"+n2);\r\n }\r\n\r\n\t\t// Fin modificacion\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint num[]={2,7,9,1,10,11,23,21,22};\n\t\tint Small=num[0];\n\t\tint secSmall=num[0];\n\t\t\nfor(int i=0;i<num.length;i++)\n{\nif(num[i]<Small)\n{\n\tsecSmall=Small;//secLarge=11 ,21\n\tSmall=num[i];//large=23\n}else if(num[i]<secSmall)//21>11,22>21\n{\n\tsecSmall=num[i];//22\n\t}\n}\n\nSystem.out.println(\"Second Samllest : \"+secSmall);\n\n\t}", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "int main()\n{\n int b1, b2, b3, i, b;\n cin>>b1>>b2>>b3;\n for(i = b3; i > 0; i--)\n if(b1 % i == 0 && b2 % i == 0 && b3 % i == 0)\n break;\n if (b1 >= b2 && b1 <= b3)\n b = b1;\n else if (b2 >= b1 && b2 <= b3)\n b = b2;\n else if (b1 >= b3 && b1 <= b2)\n b = b2;\n else if (b2 >= b3 && b2 <= b1)\n b = b2;\n else\n b = b3;\n cout<<\"The treasure is in box which has number \"<<b<<\"\\nThe code to open the box is \"<<i;\n}", "public String checkNumber(String num)\n {\n String[] numbers=num.split(\",\");\n int[] number=new int[numbers.length];\n\n //convert string elements into integer and store in array\n for(int i=0;i<numbers.length;i++)\n {\n number[i]=Integer.parseInt(numbers[i]);\n }\n int flag=0;\n\n //check if the numbers in the array are consecutive\n for(int i=0;i<number.length-1;i++)\n {\n if(number[i+1]==(number[i]-1))\n {\n flag=1;\n }\n else {\n flag=0;\n break;\n }\n }\n if(flag==1)\n {\n return \"Consecutive numbers\";\n }\n else{\n return \"Non consecutive numbers\";\n }\n }", "private void check2(){\n \n // All methods past the first rule check to see\n // if errorCode is still 0 or not; if not skips respective method\n if(errorCode == 0){\n \n if (!(fourthDigit == fifthDigit + 1)){\n valid = false;\n errorCode = 2;\n }\n }\n\t}", "@Test\n\tpublic void whenSecondMoreFirstAndThird() {\n\t\tMax max = new Max();\n\t\tint result = max.max(2, 7, 3);\n\t\tint expected = 7;\n\t\tassertThat(result, is(expected));\n\t}", "@Test\n\tpublic void whenThirdMoreFirstAndSecond() {\n\t\tMax max = new Max();\n\t\tint result = max.max(2, 7, 9);\n\t\tint expected = 9;\n\t\tassertThat(result, is(expected));\n\t}", "public static void main(String args[]){\n\n //even number of everything\n //odd number of 1 thing MAX\n\n //sort string\n //check subsequent chars to count their numbers until length -1\n //break if 2 odd number chars\n System.out.println(isPalindromePermutation(\"22334455asdfdsa66\"));\n\n\n }", "private static boolean checkForMethod2() {\n\t\t\n\t\tif(easyTag2.size() < 3 || mediumTag3.size() < 3 || hardTag1.size() < 3 || easyTag5.size() < 3 || mediumTag6.size() < 3 || hardTag4.size() < 3) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean double23(int[] nums) {\n int numsLen = nums.length;\n if(numsLen == 2) {\n int n0 = nums[0];\n int n1 = nums[1];\n if((n0==2&&n1==2)||(n0==3&&n1==3)) {\n return true;\n }\n } else if(numsLen==1) {\n return false;\n }\n return false;\n }", "private static boolean checkBy3 (int a) {\n return a % 3 == 0;\n }", "@Override\n public Boolean getValue(Number number, Number number2) {\n if(number==number2){\n return true;\n }\n else {\n return false;\n }\n\n }", "public static void main(String[] args) {\n\t\tInteger n;\nScanner sc= new Scanner (System.in);\n System.out.print (\"Introdusca un Numero\");\n\t\tn = sc. nextInt();\n\t\tif (n%2==0);\n\t\t\tSystem.out.print(\"Es un numero par\");\n\t\n\telse\n\t\t\tSystem.out.print(\"es un numero impar\");\n\t\t\n\n\t}", "if(x%2)\r\n\r\n\tpublic static void main(String[] args) {\r\n\r\n\t\t\r\n\t}", "@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }", "public boolean lastDigit(int a, int b) {\n return (a % 10 == b % 10);\n}", "boolean hasN();", "boolean hasN();", "public static void main(String[] args) {\n int number = 990;\n boolean result = number > 1000 || number % 10 == 0;\n System.out.println(result);\n }", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\n \n }" ]
[ "0.64843696", "0.5998187", "0.5990657", "0.59756863", "0.59438264", "0.58746195", "0.5833382", "0.58282155", "0.5806344", "0.5716957", "0.56634146", "0.5660871", "0.56359905", "0.5628001", "0.5620823", "0.56063616", "0.5591019", "0.5585", "0.5567917", "0.5565411", "0.556051", "0.5556356", "0.55543613", "0.5537421", "0.5522725", "0.55198675", "0.54896903", "0.547835", "0.5477096", "0.5460616", "0.5447888", "0.5445607", "0.54420096", "0.54372007", "0.54209846", "0.5394056", "0.5392609", "0.5388036", "0.5375446", "0.5368309", "0.536493", "0.5362713", "0.5360497", "0.5353796", "0.53537434", "0.535211", "0.5338123", "0.53370136", "0.53107435", "0.52985525", "0.5295914", "0.5287306", "0.52868104", "0.52864605", "0.5273098", "0.5272852", "0.52659845", "0.5258952", "0.5254078", "0.52525944", "0.52525944", "0.52525944", "0.52482325", "0.5247974", "0.5242972", "0.52287704", "0.522082", "0.5220628", "0.5220325", "0.5219927", "0.52163386", "0.52158016", "0.52119297", "0.5210138", "0.5205942", "0.5205396", "0.52049845", "0.52039313", "0.5200633", "0.5199376", "0.51985365", "0.51970136", "0.5195814", "0.5188427", "0.51857203", "0.51742226", "0.51738054", "0.5167517", "0.51652306", "0.5164788", "0.5160818", "0.51566106", "0.5150549", "0.51499945", "0.5148031", "0.51457614", "0.5140577", "0.514001", "0.514001", "0.51397324", "0.5139487" ]
0.0
-1
Creates new form RadioUI
public RadioUI() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected ComponentHandler<?> createPushButton(ComponentManager manager,\n boolean create) throws FormBuilderException\n {\n return manager.createRadioButton(this, create);\n }", "Radian createRadian();", "public RadioButtons()\n {\n }", "FORM createFORM();", "public abstract void add(Field.RadioData radioData);", "public Alunos() {\n initComponents();\n ButtonGroup bg = new ButtonGroup(); \n \n//Agora basta vc adicionar os seus RadioButtons ao objeto desta classe. \n \nbg.add(rdNome); \nbg.add(rdID); \nbg.add(rdNomeEditar);\nbg.add(rdIdEditar);\n }", "@Override\n public Element createDomImpl(Renderable element) {\n InputElement radioInputElement =\n Document.get().createRadioInputElement(\"xx\");\n radioInputElement.setClassName(CheckConstants.css.radio());\n radioInputElement.setTabIndex(0);\n return radioInputElement;\n }", "@Override\n\tprotected Button createRadioButton(Composite parent, String label) {\n\t\treturn super.createRadioButton(parent, label);\t\n\t}", "public Sistema() {\n initComponents();\n //Codigo de Configuracion\n _radio = new ArrayList();\n _radio.add(RadioButtonDollar);\n _radio.add(RadioButtonSol);\n _radio.add(RadioButtonPeso);\n \n }", "private void InitForm() {\n\t\t\t// Select default/preferred genre\n\t\tString preferredGenre = PluginPreferences.getGenre();\n\n\t if( preferredGenre != null ) {\n\t\t if( preferredGenre.equals(\"scifi\") ) {\n\t\t\t scifiRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"pirates\") ) {\n\t\t\t priratesRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"hospital\") ) {\n\t\t\t hospitalRadioButton.setSelected(true);\n\t\t } else if( preferredGenre.equals(\"esoteric\") ) {\n\t\t\t esotericRadioButton.setSelected(true);\n\t\t } else {\n\t\t\t latinRadioButton.setSelected(true);\n\t\t }\n\t }\n \n\t}", "public GUI_Tipo_Cadastro() {\n initComponents();\n \n buttonGroup1.add(jRadioButton_Cliente);\n buttonGroup1.add(jRadioButton_Profissional);\n buttonGroup1.add(jRadioButton_Admin);\n \n // Centraliza o JFrame na tela\n this.setLocationRelativeTo(null);\n }", "public JRadioSortTypeMenu(){\n date = new JRadioButton(LanguageLoader.Language(\"COLUMNDATE\"), true);\n customerName = new JRadioButton(LanguageLoader.Language(\"LABELCUSTOMERNAME\"));\n bookingId = new JRadioButton(LanguageLoader.Language(\"COLUMNID\"));\n \n date.setBounds(20, 20, 200, 20);\n customerName.setBounds(20, 40, 200, 20);\n bookingId.setBounds(20, 60, 200, 20);\n \n buttonGroup.add(date);\n buttonGroup.add(customerName);\n buttonGroup.add(bookingId);\n }", "public void actionPerformed( ActionEvent e )\r\n {\n JRadioButton b = new JRadioButton();\r\n radioGroup.add( b );\r\n b.setSelected( true );\r\n radioGroup.remove( b );\r\n }", "private void RadioButtonAgregarActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private RadioButton addRadioButton(String title, String path)\n\t{\n\t\tContext context = getContext();\n\t\tRadioButton button = new RadioButton(context);\n\t\tRadioGroup.LayoutParams params = new RadioGroup.LayoutParams(\n\t\t\tViewGroup.LayoutParams.MATCH_PARENT,\n\t\t\tViewGroup.LayoutParams.WRAP_CONTENT);\n\t\tString selectedPath = getMediaPath();\n\t\tint[] padding = this.getPadding();\n\t\tint textSize = this.getTextSize();\n\n\t\tthis.mRadioGroup.addView(button);\n\t\tbutton.setText(title);\n\t\tbutton.setTag(path);\n\t\tbutton.setLayoutParams(params);\n\t\tbutton.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);\n\t\tbutton.setPadding(padding[0], padding[1], padding[2], padding[3]);\n\t\tbutton.setOnClickListener(this);\n\n\t\tif (!selectedPath.isEmpty() && selectedPath.equals(path))\n\t\t{\n\t\t\tbutton.setChecked(true);\n\t\t}\n\n\t\treturn button;\n\t}", "public void addRadioButtonField(String text, boolean compulsory, ArrayList<String> buttonTexts) {\n genderRadio = new RadioGroup(getContext());\n LinearLayout ll = new LinearLayout(getContext());\n ll.setOrientation(LinearLayout.HORIZONTAL);\n\n TextView textView = new TextView(getContext());\n textView.setTextSize(20);\n\n textView.setPadding(0, 15, 0, 0);\n\n String req = compulsory ? required : \"\";\n textView.setText(text + req);\n\n genderRadio.setOrientation(RadioGroup.HORIZONTAL);\n\n for (int i = 0; i < buttonTexts.size(); i++) {\n genderRadio.addView(new RadioButton(getContext()));\n ((RadioButton) genderRadio.getChildAt(i)).setText(buttonTexts.get(i));\n }\n if (compulsory)\n ((RadioButton) genderRadio.getChildAt(0)).setChecked(true);\n\n ll.addView(textView);\n ll.addView(genderRadio);\n\n mainll.addView(ll);\n }", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\t\tsetControl(container);\r\n\t\tGroup group = new Group(container, SWT.NONE);\r\n\t\tgroup.setBounds(0, 281, 533, 60);\r\n\t\t\r\n\t\tLabel lblSelectWhetherYou = new Label(group, SWT.NONE);\r\n\t\tlblSelectWhetherYou.setBounds(10, 22, 374, 26);\r\n\t\tlblSelectWhetherYou.setText(\"\\u9009\\u62E9\\u662F\\u5426\\u8981\\u53D1\\u5E03\\u3001\\u68C0\\u7D22\\u6216\\u5220\\u9664\\u670D\\u52A1\\u5668\\u4E0A\\u7684\\u62A5\\u544A\\u3002\");\r\n\t\t\r\n\t\tlb_pr = new Label(container, SWT.NONE);\r\n\t\tlb_pr.setBounds(69, 79, 48, 48);\r\n\t\tlb_pr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportPublish.png\"),48,48));\r\n\t\t\r\n\t\trbtn_pr = new Button(container, SWT.RADIO);\r\n\t\trbtn_pr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_pr.setBounds(59, 133, 69, 16);\r\n\t\trbtn_pr.setText(\"\\u53D1\\u5E03\\u62A5\\u544A\");\r\n\t\trbtn_pr.setData(\"PublishedReportW2_Pub\");\r\n\t\t\r\n\t\tlb_rr = new Label(container, SWT.NONE);\r\n\t\tlb_rr.setBounds(185, 79, 48, 48);\r\n\t\tlb_rr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportRetrieve.png\"),48,48));\r\n\t\t\r\n\t\t\r\n\t\trbtn_rr = new Button(container, SWT.RADIO);\r\n\t\trbtn_rr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_rr.setBounds(175, 133, 69, 16);\r\n\t\trbtn_rr.setText(\"\\u68C0\\u7D22\\u62A5\\u544A\");//»ρΘ‘\\u68C0\\u7D22\\\r\n\t\trbtn_rr.setData(\"PublishedReportW2_Ret\");\r\n\t\t\r\n\t\tlb_dr = new Label(container, SWT.NONE);\r\n\t\tlb_dr.setBounds(297, 79, 48, 48);\r\n\t\tlb_dr.setImage(SwtImageConverter.ConvertToSwtImage(ImageResolver.get_Resolver().ResolveImage(\"[IMAGE]Core#Images.Icons.ReportDelete.png\"),48,48));\r\n\t\t\r\n\t\t\r\n\t\trbtn_dr = new Button(container, SWT.RADIO);\r\n\t\trbtn_dr.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\r\n\t\t\t\tgetNextPage();\r\n\t\t\t}\r\n\t\t});\r\n\t\trbtn_dr.setBounds(287, 133, 69, 16);\r\n\t\trbtn_dr.setText(\"\\u5220\\u9664\\u62A5\\u544A\");\r\n\t\trbtn_dr.setData(\"PublishedReportW2_Del\");\r\n\t\t\r\n\t}", "public JRadioButton add(E enumValue) {\n JRadioButton button = new JRadioButton(enumValue.getDisplay());\n add(button, enumValue);\n return button;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem();\n try {\n jPanel1 =(javax.swing.JPanel)java.beans.Beans.instantiate(getClass().getClassLoader(), \"com/LD/Windows/TheWay.TheWay_jPanel1\");\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (java.io.IOException e) {\n e.printStackTrace();\n }\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new BackgroundPanel(TheWay);\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jRadioButton3 = new javax.swing.JRadioButton();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new MJTextField();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jTextField2 = new MJTextField();\n jTextField3 = new MJTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jTextField4 = new MJTextField();\n jLabel8 = new javax.swing.JLabel();\n jTextField5 = new MJTextField();\n jLabel9 = new javax.swing.JLabel();\n jRadioButton4 = new javax.swing.JRadioButton();\n jRadioButton5 = new javax.swing.JRadioButton();\n\n jRadioButtonMenuItem1.setSelected(true);\n jRadioButtonMenuItem1.setText(\"jRadioButtonMenuItem1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"LD type\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jLabel1.setFont(ff.loadFont(36));\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"LD type\");\n\n jPanel2.setBackground(new java.awt.Color(255, 51, 51));\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 41, Short.MAX_VALUE)\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 41, Short.MAX_VALUE)\n );\n\n jRadioButton1.setBackground(new java.awt.Color(0, 206, 201));\n ways.add(jRadioButton1);\n jRadioButton1.setFont(ss.ssFont(24));\n jRadioButton1.setForeground(new java.awt.Color(255, 255, 255));\n jRadioButton1.setSelected(true);\n jRadioButton1.setText(\"LD decay\");\n jRadioButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton1ActionPerformed(evt);\n }\n });\n\n jRadioButton2.setBackground(new java.awt.Color(0, 206, 201));\n ways.add(jRadioButton2);\n jRadioButton2.setFont(ss.ssFont(24));\n jRadioButton2.setForeground(new java.awt.Color(255, 255, 255));\n jRadioButton2.setText(\"LD site\");\n jRadioButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton2ActionPerformed(evt);\n }\n });\n\n jRadioButton3.setBackground(new java.awt.Color(0, 206, 201));\n ways.add(jRadioButton3);\n jRadioButton3.setFont(ss.ssFont(24));\n jRadioButton3.setForeground(new java.awt.Color(255, 255, 255));\n jRadioButton3.setText(\"LD block\");\n jRadioButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton3ActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(ss.ssFont(24));\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"Chrom:\");\n\n jTextField1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTextField1MouseClicked(evt);\n }\n });\n jTextField1.addInputMethodListener(new java.awt.event.InputMethodListener() {\n public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {\n jTextField1InputMethodTextChanged(evt);\n }\n public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {\n }\n });\n jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField1KeyTyped(evt);\n }\n });\n\n jLabel3.setFont(ss.ssFont(24));\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"End:\");\n\n jLabel4.setFont(ss.ssFont(24));\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"Start:\");\n\n jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField2KeyTyped(evt);\n }\n });\n\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField3ActionPerformed(evt);\n }\n });\n jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField3KeyTyped(evt);\n }\n });\n\n jButton1.setFont(ss.ssFont(12));\n jButton1.setText(\"OK\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(ss.ssFont(12));\n jButton2.setText(\"CANCEL\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(ss.ssFont(24));\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"Region\");\n\n jLabel6.setFont(ss.ssFont(24));\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"Site\");\n\n jLabel7.setFont(ss.ssFont(24));\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"Chr :\");\n\n jTextField4.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField4KeyTyped(evt);\n }\n });\n\n jLabel8.setFont(ss.ssFont(24));\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"Pos:\");\n\n jTextField5.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyTyped(java.awt.event.KeyEvent evt) {\n jTextField5KeyTyped(evt);\n }\n });\n\n jLabel9.setFont(ss.ssFont(24));\n jLabel9.setForeground(new java.awt.Color(255, 255, 255));\n jLabel9.setText(\"Intermediate:\");\n\n jRadioButton4.setBackground(new java.awt.Color(0, 206, 201));\n Intermediate.add(jRadioButton4);\n jRadioButton4.setFont(ss.ssFont(12));\n jRadioButton4.setForeground(new java.awt.Color(255, 255, 255));\n jRadioButton4.setText(\"YES\");\n\n jRadioButton5.setBackground(new java.awt.Color(0, 206, 201));\n Intermediate.add(jRadioButton5);\n jRadioButton5.setFont(ss.ssFont(12));\n jRadioButton5.setForeground(new java.awt.Color(255, 255, 255));\n jRadioButton5.setSelected(true);\n jRadioButton5.setText(\"NO\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addComponent(jRadioButton1)\n .addGap(66, 66, 66)\n .addComponent(jRadioButton3)\n .addGap(49, 49, 49)\n .addComponent(jRadioButton2))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(163, 163, 163)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(70, 70, 70)\n .addComponent(jLabel1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel5)\n .addGap(208, 208, 208)\n .addComponent(jLabel6))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel7))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel8)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1))\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jRadioButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jRadioButton5))\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addContainerGap(101, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton3)\n .addComponent(jRadioButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jLabel6))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton4)\n .addComponent(jRadioButton5)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(95, 95, 95))\n );\n\n jLabel2.setVisible(false);\n jTextField1.addFocusListener(new JTextFieldHintListener(jTextField1, \"Example:11\"));\n jTextField1.setVisible(false);\n\n jLabel3.setVisible(false);\n jLabel4.setVisible(false);\n jTextField2.addFocusListener(new JTextFieldHintListener(jTextField2, \"Example:10000\"));\n jTextField2.setVisible(false);\n jTextField3.addFocusListener(new JTextFieldHintListener(jTextField3, \"Example:10000\"));\n jTextField3.setVisible(false);\n jLabel5.setVisible(false);\n jLabel6.setVisible(false);\n jLabel7.setVisible(false);\n jTextField4.addFocusListener(new JTextFieldHintListener(jTextField4, \"Example:11\"));\n jTextField4.setVisible(false);\n jLabel8.setVisible(false);\n jTextField5.addFocusListener(new JTextFieldHintListener(jTextField5, \"Example:10000\"));\n jTextField5.setVisible(false);\n jLabel9.setVisible(false);\n jRadioButton4.setVisible(false);\n jRadioButton5.setVisible(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 595, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)\n );\n\n this.setIconImage(ic);\n new MJTextField();\n\n pack();\n setLocationRelativeTo(null);\n }", "public radioButtonClass()\n {\n setTitle(\"radioButtons\");\n setLayout(new FlowLayout());\n \n tf=new JTextField(\"DUDE!!! WTF\", 20);\n add(tf);\n \n plain_b= new JRadioButton(\"plain\",true); //for radio buttons one needs to be true so when they are grouped it unchecks all except one\n bold_b= new JRadioButton(\"bold\",false);\n italic_b= new JRadioButton(\"italic\",false);\n bi_b= new JRadioButton(\"bold&italic\",false);\n add(plain_b);\n add(bold_b);\n add(italic_b);\n add(bi_b);\n \n //needed to create a family so that each one knows who is checked/unchecked\n group= new ButtonGroup(); \n group.add(plain_b); //group.add as its being added to group only\n group.add(bold_b);\n group.add(italic_b);\n group.add(bi_b);\n \n \n //to create fonts that will be passsed directly as an object to handler class\n pf= new Font(\"Serif\",Font.PLAIN,15);\n bf= new Font(\"Serif\",Font.BOLD,15);\n itf= new Font(\"Serif\",Font.ITALIC,15);\n bif= new Font(\"Serif\",Font.BOLD+Font.ITALIC,15);\n tf.setFont(pf); //setting initial font for the text field\n \n //waits for event and directly pass object(Of font) to cnstructor \n plain_b.addItemListener(new Handler(pf));\n bold_b.addItemListener(new Handler(bf));\n italic_b.addItemListener(new Handler(itf));\n bi_b.addItemListener(new Handler(bif));\n }", "private void setupRadioGroup(){\n //region Used to set up the RadioGroup\n\n selectUserTypeRadioGroup.clearCheck();\n selectUserTypeRadioGroup.setOnCheckedChangeListener(\n new RadioGroup.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton clickedButton = group.findViewById(checkedId);\n if(checkedId == R.id.createAccountStudentRadio){\n isStudent = true;\n isTeacher = false;}\n else if(checkedId == R.id.createAccountTeacherRadio){\n isTeacher = true;\n isStudent = false;}\n else\n Log.d(\"Create Account\", \"Something has gone wrong picking user type\");\n }\n }\n );\n\n //endregion\n }", "private Button addRadioOption(Composite composite, final boolean requiresTextBox, \n\t\t\t\t\t\t\t\t final int selectedButtonIndex, String label) {\n\t\tfinal Button newButton = new Button(composite, SWT.RADIO);\n\t\tnewButton.setText(label);\n\t\tGridData gridData = new GridData();\n\t\tnewButton.setLayoutData(gridData);\n\t\t\n\t\t/* \n\t\t * Add a listener for this radio button. Depending on the radio button chosen,\n\t\t * we may (or may not) want to enable the text box entry.\n\t\t */\n\t\tnewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\t/* was the radio button recently selected? */\n\t\t\t\tif (newButton.getSelection()) {\n\t\t\t\t\tradioButtonState = selectedButtonIndex;\n\t\t\t\t\t\n\t\t\t\t\t/* does this option require a (non-empty) text box field? */\n\t\t\t\t\tif (requiresTextBox) {\n\t\t\t\t\t\ttextBox.setEnabled(true);\n\t\t\t\t\t\tgetButton(OK).setEnabled(!textBox.getText().isEmpty());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t/* or is no text box input required? */\n\t\t\t\t\telse {\n\t\t\t\t\t\ttextBox.setEnabled(false);\n\t\t\t\t\t\tgetButton(OK).setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\treturn newButton;\n\t}", "public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }", "private void drawOptions() {\n RadioGroup rgpOptions = (RadioGroup) findViewById(R.id.rgpOptions);\n rgpOptions.removeAllViews();\n int lastId = 0;\n for (int i = 0; i < criteriaList.get(currentCriteria).getOptionList().size(); i++) {\n RadioButton rdbtn = new RadioButton(this);\n lastId = i;\n rdbtn.setId(i);\n rdbtn.setText(criteriaList.get(currentCriteria).getOptionList().get(i).getDescription());\n rdbtn.setAllCaps(true);\n rdbtn.setTextSize(18);\n rgpOptions.addView(rdbtn);\n }\n RadioButton rdbtn = new RadioButton(this);\n rdbtn.setId(lastId + 1);\n rdbtn.setText(\"No lo se\");\n rdbtn.setAllCaps(true);\n rdbtn.setTextSize(18);\n rgpOptions.addView(rdbtn);\n rgpOptions.check(rdbtn.getId());\n }", "public RadioButtonPanelBuilder add(String option)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"[INFO] <RADIOBUTTON_PANEL_BUILDER> Running add\"); // Debug\r\n\t\t\t\r\n\t\t\tradioButtons[nextRadioButtonLocation] = new JRadioButton(option);\r\n\t\t\tnextRadioButtonLocation++;\r\n\t\t\t\r\n\t\t\treturn this;\r\n\t\t}", "public RadioButtonPanel build()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"[INFO] <RADIOBUTTON_PANEL_BUILDER> Running build\"); // Debug\r\n\t\t\t\r\n\t\t\ttrimArray();\r\n\t\t\t\r\n\t\t\treturn new RadioButtonPanel(this);\r\n\t\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jRadioButtonMenuItem1 = new javax.swing.JRadioButtonMenuItem();\n jRadioButtonMenuItem2 = new javax.swing.JRadioButtonMenuItem();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n teaInfoAddButton = new javax.swing.JButton();\n teaInfoResetButton = new javax.swing.JButton();\n teaManRadioButton = new javax.swing.JRadioButton();\n teaWomanRadioButton = new javax.swing.JRadioButton();\n teaRadioButton1 = new javax.swing.JRadioButton();\n teaRadioButton2 = new javax.swing.JRadioButton();\n teaRadioButton3 = new javax.swing.JRadioButton();\n teaIDText = new javax.swing.JTextField();\n teaNameText = new javax.swing.JTextField();\n teaDepartmentText = new javax.swing.JTextField();\n teaCollegeText = new javax.swing.JTextField();\n teaInterestText = new javax.swing.JTextField();\n teaPhoneText = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n teaRadioButton4 = new javax.swing.JRadioButton();\n jLabel10 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n\n jRadioButtonMenuItem1.setSelected(true);\n jRadioButtonMenuItem1.setText(\"jRadioButtonMenuItem1\");\n\n jRadioButtonMenuItem2.setSelected(true);\n jRadioButtonMenuItem2.setText(\"jRadioButtonMenuItem2\");\n\n setClosable(true);\n setTitle(\"老师信息添加\");\n\n jLabel1.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel1.setText(\"教工号*\");\n\n jLabel2.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel2.setText(\"姓名*\");\n\n jLabel3.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel3.setText(\"性别*\");\n\n jLabel4.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel4.setText(\"学院*\");\n\n jLabel5.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel5.setText(\"系*\");\n\n jLabel6.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel6.setText(\"类别*\");\n\n jLabel7.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel7.setText(\"手机*\");\n\n jLabel8.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel8.setText(\"兴趣\");\n\n jLabel9.setBackground(new java.awt.Color(255, 0, 0));\n jLabel9.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(255, 0, 0));\n jLabel9.setText(\"填写要求:1、除兴趣一栏可选外其余均为必填!\");\n\n teaInfoAddButton.setFont(new java.awt.Font(\"华文行楷\", 0, 18)); // NOI18N\n teaInfoAddButton.setText(\"添加\");\n teaInfoAddButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaInfoAddButtonActionPerformed(evt);\n }\n });\n\n teaInfoResetButton.setFont(new java.awt.Font(\"华文行楷\", 0, 18)); // NOI18N\n teaInfoResetButton.setText(\"重置\");\n teaInfoResetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaInfoResetButtonActionPerformed(evt);\n }\n });\n\n teaManRadioButton.setSelected(true);\n teaManRadioButton.setText(\"男\");\n teaManRadioButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaManRadioButtonActionPerformed(evt);\n }\n });\n\n teaWomanRadioButton.setText(\"女\");\n teaWomanRadioButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaWomanRadioButtonActionPerformed(evt);\n }\n });\n\n teaRadioButton1.setSelected(true);\n teaRadioButton1.setText(\"助理教授\");\n teaRadioButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaRadioButton1ActionPerformed(evt);\n }\n });\n\n teaRadioButton2.setText(\"副教授\");\n teaRadioButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaRadioButton2ActionPerformed(evt);\n }\n });\n\n teaRadioButton3.setText(\"教授\");\n teaRadioButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaRadioButton3ActionPerformed(evt);\n }\n });\n\n teaIDText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaIDTextActionPerformed(evt);\n }\n });\n\n teaNameText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaNameTextActionPerformed(evt);\n }\n });\n\n teaDepartmentText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaDepartmentTextActionPerformed(evt);\n }\n });\n\n teaCollegeText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaCollegeTextActionPerformed(evt);\n }\n });\n\n teaInterestText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaInterestTextActionPerformed(evt);\n }\n });\n\n teaPhoneText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaPhoneTextActionPerformed(evt);\n }\n });\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/view/icons/teacher.png\"))); // NOI18N\n\n teaRadioButton4.setText(\"其他\");\n teaRadioButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n teaRadioButton4ActionPerformed(evt);\n }\n });\n\n jLabel10.setBackground(new java.awt.Color(255, 0, 0));\n jLabel10.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel10.setForeground(new java.awt.Color(255, 0, 0));\n jLabel10.setText(\"2、教工号为11位纯数字,如52282168868\");\n\n jLabel12.setBackground(new java.awt.Color(255, 0, 0));\n jLabel12.setFont(new java.awt.Font(\"华文行楷\", 0, 24)); // NOI18N\n jLabel12.setForeground(new java.awt.Color(255, 0, 0));\n jLabel12.setText(\"3、手机号为11位纯数字,如13358878188\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.TRAILING)))\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jLabel8))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(teaIDText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(teaNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(teaCollegeText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(teaDepartmentText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(teaPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(teaManRadioButton)\n .addGap(18, 18, 18)\n .addComponent(teaWomanRadioButton))\n .addGroup(layout.createSequentialGroup()\n .addComponent(teaRadioButton1)\n .addGap(18, 18, 18)\n .addComponent(teaRadioButton2)\n .addGap(18, 18, 18)\n .addComponent(teaRadioButton3)\n .addGap(18, 18, 18)\n .addComponent(teaRadioButton4))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(teaInfoAddButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(teaInfoResetButton))\n .addComponent(teaInterestText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel9))\n .addGroup(layout.createSequentialGroup()\n .addGap(108, 108, 108)\n .addComponent(jLabel10)))))\n .addGap(60, 60, 60))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jLabel10)\n .addGap(18, 18, 18)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teaIDText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(teaNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(teaManRadioButton)\n .addComponent(teaWomanRadioButton))\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teaCollegeText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teaDepartmentText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(teaRadioButton1)\n .addComponent(teaRadioButton2)\n .addComponent(teaRadioButton3)\n .addComponent(teaRadioButton4)))\n .addComponent(jLabel11))\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teaPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teaInterestText, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(teaInfoAddButton)\n .addComponent(teaInfoResetButton))\n .addContainerGap())\n );\n\n pack();\n }", "private void initRadioButtons() {\r\n\t\tkomiButtonGroup = new ButtonGroup();\r\n\r\n\t\tsmallKomiButton = new JRadioButton(\"5.5\");\r\n\t\tmediumKomiButton = new JRadioButton(\"6.5\");\r\n\t\tlargeKomiButton = new JRadioButton(\"7.5\");\r\n\r\n//\t\tsmallKomiButton.setOpaque(false);\r\n//\t\tmediumKomiButton.setOpaque(false);\r\n//\t\tlargeKomiButton.setOpaque(false);\r\n\r\n\t\tkomiButtonGroup.add(smallKomiButton);\r\n\t\tkomiButtonGroup.add(mediumKomiButton);\r\n\t\tkomiButtonGroup.add(largeKomiButton);\r\n\r\n\t\tsmallKomiButton.setSelected(true);\r\n\r\n\t\t/*\r\n\t\t * Initialize goban' size Buttons\r\n\t\t */\r\n\t\tsizeButtonGroup = new ButtonGroup();\r\n\r\n\t\tsmallGobanButton = new JRadioButton();\r\n\t\tmediumGobanButton = new JRadioButton();\r\n\t\tlargeGobanButton = new JRadioButton();\r\n\r\n//\t\tsmallGobanButton.setOpaque(false);\r\n//\t\tmediumGobanButton.setOpaque(false);\r\n//\t\tlargeGobanButton.setOpaque(false);\r\n\r\n\t\tsizeButtonGroup.add(smallGobanButton);\r\n\t\tsizeButtonGroup.add(mediumGobanButton);\r\n\t\tsizeButtonGroup.add(largeGobanButton);\r\n\r\n\t\tsmallGobanButton.setSelected(true);\r\n\r\n\t\t/*\r\n\t\t * Initialize colors button\r\n\t\t */\r\n\t\tcolorButtonGroup = new ButtonGroup();\r\n\r\n\t\tblackButton = new JRadioButton(\"Black\");\r\n\t\twhiteButton = new JRadioButton(\"White\");\r\n\t\trandombButton = new JRadioButton(\"Nigiri \");\r\n\r\n//\t\tblackButton.setOpaque(false);\r\n//\t\twhiteButton.setOpaque(false);\r\n//\t\trandombButton.setOpaque(false);\r\n\r\n\t\tcolorButtonGroup.add(blackButton);\r\n\t\tcolorButtonGroup.add(whiteButton);\r\n\t\tcolorButtonGroup.add(randombButton);\r\n\r\n\t\tblackButton.setSelected(true);\r\n\r\n\t}", "public MainFrame() {\n initComponents();\n ButtonGroup buttonGroup = new ButtonGroup();\n typeTCPRadioBtn.setSelected(true);\n buttonGroup.add(typeTCPRadioBtn);\n buttonGroup.add(typeUDPRadioBtn);\n msg = \"\";\n target = \"\";\n port = 0;\n replyMsg = \"\";\n }", "public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }", "private void initComponents() {\n final javax.swing.ButtonGroup accountTypeButtonGroup = new javax.swing.ButtonGroup();\n final javax.swing.JLabel accountTypeTitleJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel loginInfoTitleJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel emailJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel usernameJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel passwordJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel confirmPasswordJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel securityTitleJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel securityQuestionJLabel = new javax.swing.JLabel();\n final javax.swing.JLabel securityAnswerJLabel = new javax.swing.JLabel();\n final javax.swing.JSeparator jSeparator1 = new javax.swing.JSeparator();\n final javax.swing.JSeparator jSeparator2 = new javax.swing.JSeparator();\n \n setOpaque(false);\n accountTypeTitleJLabel.setFont(Fonts.DialogFont);\n accountTypeTitleJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.AccountTypeTitle\"));\n \n accountTypeButtonGroup.add(accountTypeGuestJRadioButton);\n accountTypeGuestJRadioButton.setFont(Fonts.DialogFont);\n accountTypeGuestJRadioButton.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.AccountTypeGuest\"));\n accountTypeGuestJRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n accountTypeGuestJRadioButton.setMargin(new java.awt.Insets(0, 0, 0, 0));\n accountTypeGuestJRadioButton.setOpaque(false);\n \n accountTypeButtonGroup.add(accountTypeStandardJRadioButton);\n accountTypeStandardJRadioButton.setFont(Fonts.DialogFont);\n accountTypeStandardJRadioButton.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.AccountTypeStandard\"));\n accountTypeStandardJRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n accountTypeStandardJRadioButton.setMargin(new java.awt.Insets(0, 0, 0, 0));\n accountTypeStandardJRadioButton.setOpaque(false);\n \n learnMoreJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.LearnMore\"));\n learnMoreJLabel.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n learnMoreJLabelMousePressed(evt);\n }\n });\n \n loginInfoTitleJLabel.setFont(Fonts.DialogFont);\n loginInfoTitleJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.LoginInfoTitle\"));\n \n emailJLabel.setFont(Fonts.DialogFont);\n emailJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.EmailLabel\"));\n \n emailJTextField.setFont(Fonts.DialogTextEntryFont);\n emailJTextField.setMaximumSize(new java.awt.Dimension(300, 2147483647));\n emailJTextField.setMinimumSize(new java.awt.Dimension(300, 20));\n emailJTextField.setPreferredSize(new java.awt.Dimension(300, 20));\n ((AbstractDocument) emailJTextField.getDocument()).setDocumentFilter(new JTextFieldLengthFilter(profileConstraints.getEmail()));\n \n usernameJLabel.setFont(Fonts.DialogFont);\n usernameJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.UsernameLabel\"));\n \n usernameJTextField.setFont(Fonts.DialogTextEntryFont);\n usernameJTextField.setMaximumSize(new java.awt.Dimension(300, 2147483647));\n usernameJTextField.setMinimumSize(new java.awt.Dimension(300, 20));\n usernameJTextField.setPreferredSize(new java.awt.Dimension(300, 20));\n ((AbstractDocument) usernameJTextField.getDocument()).setDocumentFilter(new JTextFieldLengthFilter(profileConstraints.getUsername()));\n \n passwordJLabel.setFont(Fonts.DialogFont);\n passwordJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.PasswordLabel\"));\n \n passwordJPasswordField.setFont(Fonts.DialogTextEntryFont);\n passwordJPasswordField.setMaximumSize(new java.awt.Dimension(300, 2147483647));\n passwordJPasswordField.setMinimumSize(new java.awt.Dimension(300, 20));\n passwordJPasswordField.setPreferredSize(new java.awt.Dimension(300, 20));\n ((AbstractDocument) passwordJPasswordField.getDocument()).setDocumentFilter(new JTextFieldLengthFilter(profileConstraints.getPassword()));\n \n confirmPasswordJLabel.setFont(Fonts.DialogFont);\n confirmPasswordJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.ConfirmPasswordLabel\"));\n \n confirmPasswordJPasswordField.setFont(Fonts.DialogTextEntryFont);\n confirmPasswordJPasswordField.setMaximumSize(new java.awt.Dimension(300, 2147483647));\n confirmPasswordJPasswordField.setMinimumSize(new java.awt.Dimension(300, 20));\n confirmPasswordJPasswordField.setPreferredSize(new java.awt.Dimension(300, 20));\n ((AbstractDocument) confirmPasswordJPasswordField.getDocument()).setDocumentFilter(new JTextFieldLengthFilter(profileConstraints.getPassword()));\n \n securityTitleJLabel.setFont(Fonts.DialogFont);\n securityTitleJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.SecurityTitle\"));\n \n securityQuestionJLabel.setFont(Fonts.DialogFont);\n securityQuestionJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.SecurityQuestion\"));\n \n securityQuestionJComboBox.setEditable(true);\n securityQuestionJComboBox.setFont(Fonts.DialogTextEntryFont);\n securityQuestionJComboBox.setModel(securityQuestionModel);\n securityQuestionJComboBox.setMaximumSize(new java.awt.Dimension(300, 32767));\n securityQuestionJComboBox.setMinimumSize(new java.awt.Dimension(300, 18));\n securityQuestionJComboBox.setPreferredSize(new java.awt.Dimension(300, 20));\n if (null != getSecurityQuestionDocument()) {\n ((AbstractDocument) getSecurityQuestionDocument()).setDocumentFilter(new JTextFieldLengthFilter(profileConstraints.getSecurityQuestion()));\n }\n \n securityAnswerJLabel.setFont(Fonts.DialogFont);\n securityAnswerJLabel.setText(java.util.ResourceBundle.getBundle(\"localization/Browser_Messages\").getString(\"SignupAvatar.AccountInfo.SecurityAnswer\"));\n \n securityAnswerJTextField.setFont(Fonts.DialogTextEntryFont);\n securityAnswerJTextField.setMaximumSize(new java.awt.Dimension(300, 2147483647));\n securityAnswerJTextField.setMinimumSize(new java.awt.Dimension(300, 20));\n securityAnswerJTextField.setPreferredSize(new java.awt.Dimension(300, 20));\n ((AbstractDocument) securityAnswerJTextField.getDocument()).setDocumentFilter(new JTextFieldLengthFilter(profileConstraints.getSecurityAnswer()));\n \n errorMessageJLabel.setFont(Fonts.DialogFont);\n errorMessageJLabel.setForeground(Colours.DIALOG_ERROR_TEXT_FG);\n errorMessageJLabel.setText(\"!Error Message!\");\n \n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(accountTypeGuestJRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(55, 55, 55)\n .addComponent(learnMoreJLabel))\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(accountTypeStandardJRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(confirmPasswordJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(emailJLabel)\n .addComponent(passwordJLabel)\n .addComponent(usernameJLabel))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(emailJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(usernameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(passwordJPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(confirmPasswordJPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(securityQuestionJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(securityAnswerJLabel))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(securityAnswerJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(securityQuestionJComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(securityTitleJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 414, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 455, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 455, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(accountTypeTitleJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 455, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(loginInfoTitleJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 455, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(errorMessageJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 455, Short.MAX_VALUE)))\n .addContainerGap())\n );\n \n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {securityAnswerJTextField, securityQuestionJComboBox});\n \n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(accountTypeTitleJLabel)\n .addGap(14, 14, 14)\n .addComponent(accountTypeStandardJRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(learnMoreJLabel)\n .addComponent(accountTypeGuestJRadioButton))\n .addGap(15, 15, 15)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(loginInfoTitleJLabel)\n .addGap(14, 14, 14)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(emailJLabel)\n .addComponent(emailJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(usernameJLabel)\n .addComponent(usernameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(passwordJLabel)\n .addComponent(passwordJPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(confirmPasswordJLabel)\n .addComponent(confirmPasswordJPasswordField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(15, 15, 15)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(securityTitleJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(15, 15, 15)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(securityQuestionJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(securityQuestionJComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(securityAnswerJLabel)\n .addComponent(securityAnswerJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(19, 19, 19)\n .addComponent(errorMessageJLabel)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n }", "public void onLoadMenuRadioSelected();", "public void createControl(Composite parent) {\n Group group = SWTFactory.createGroup(parent, PDEUIMessages.ProfileBlock_0, 1, 1, GridData.FILL_HORIZONTAL);\n fGenerateProfileButton = SWTFactory.createCheckButton(group, PDEUIMessages.ProfileBlock_1, null, false, 1);\n fGenerateProfileButton.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n fTab.updateLaunchConfigurationDialog();\n }\n });\n }", "public void addRadio(int aChanel) {\n radioList.add(radioLibrary.get(aChanel));\n rewriteXmlSource();\n }", "public abstract void addSelectorForm();", "public CreateAccount_GUI() {\n initComponents();\n }", "public void setRadio(GenericRadio radio) {\n\t\tthis.radio = radio;\r\n\t}", "private void newNetworkDialogCreateButton(){\n //Create new networkData object here based on the field info\n LabData.NetworkData newNetworkData = new LabData.NetworkData(\n NetworkAddDialogNameTextfield.getText().toUpperCase(),\n NetworkAddDialogMaskTextfield.getText(),\n NetworkAddDialogGatewayTextfield.getText(),\n (int)NetworkAddDialogMacVLanExtSpinner.getValue(),\n (int)NetworkAddDialogMacVLanSpinner.getValue(),\n NetworkAddDialogIPRangeTextfield.getText(),\n NetworkAddDialogTapRadioButton.isSelected()\n );\n \n // Update the list of labs in the current UI data object\n labDataCurrent.getNetworks().add(newNetworkData);\n \n // Add the network into the UI \n addNetworkPanel(newNetworkData);\n \n // Update the Container Config dialogs to include the new network\n updateNetworkReferenceInContainerConfigDialogs(\"Add\", NetworkAddDialogNameTextfield.getText().toUpperCase(), null);\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate SWTRadioButtonView() {\r\n\t\tthis.containingForm = null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jrdb1 = new javax.swing.JRadioButton();\n jrdb2 = new javax.swing.JRadioButton();\n jrdb3 = new javax.swing.JRadioButton();\n jLabel1 = new javax.swing.JLabel();\n jbtnAceptar = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setName(\"Form\"); // NOI18N\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(teoriadealinfo.TeoriadealInfoApp.class).getContext().getResourceMap(Tam_bloque.class);\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, resourceMap.getString(\"jPanel1.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, resourceMap.getFont(\"jPanel1.border.titleFont\"))); // NOI18N\n jPanel1.setName(\"jPanel1\"); // NOI18N\n\n buttonGroup1.add(jrdb1);\n jrdb1.setFont(resourceMap.getFont(\"jrdb1.font\")); // NOI18N\n jrdb1.setText(resourceMap.getString(\"jrdb1.text\")); // NOI18N\n jrdb1.setName(\"jrdb1\"); // NOI18N\n jrdb1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jrdb1ActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(jrdb2);\n jrdb2.setFont(resourceMap.getFont(\"jrdb2.font\")); // NOI18N\n jrdb2.setText(resourceMap.getString(\"jrdb2.text\")); // NOI18N\n jrdb2.setName(\"jrdb2\"); // NOI18N\n\n buttonGroup1.add(jrdb3);\n jrdb3.setFont(resourceMap.getFont(\"jrdb3.font\")); // NOI18N\n jrdb3.setText(resourceMap.getString(\"jrdb3.text\")); // NOI18N\n jrdb3.setName(\"jrdb3\"); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jrdb1)\n .addGap(53, 53, 53)\n .addComponent(jrdb2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 52, Short.MAX_VALUE)\n .addComponent(jrdb3)\n .addGap(36, 36, 36))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jrdb1)\n .addComponent(jrdb3)\n .addComponent(jrdb2))\n .addContainerGap(20, Short.MAX_VALUE))\n );\n\n jLabel1.setFont(resourceMap.getFont(\"jLabel1.font\")); // NOI18N\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n jbtnAceptar.setFont(resourceMap.getFont(\"jbtnAceptar.font\")); // NOI18N\n jbtnAceptar.setText(resourceMap.getString(\"jbtnAceptar.text\")); // NOI18N\n jbtnAceptar.setName(\"jbtnAceptar\"); // NOI18N\n jbtnAceptar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtnAceptarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(36, 36, 36)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(40, 40, 40))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(69, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(56, 56, 56))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(169, Short.MAX_VALUE)\n .addComponent(jbtnAceptar)\n .addGap(159, 159, 159))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jbtnAceptar)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void updateRadioGroup(String name){\n radioGroup = findViewById(R.id.radioGroup);\n RadioButton rb = new RadioButton(getApplicationContext());\n rb.setText(name);\n rb.setTextColor(Color.BLACK);\n radioGroup.addView(rb);\n }", "private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n buttonGroupChoice = new javax.swing.ButtonGroup();\n jGTILabelCaption = new de.unisiegen.gtitool.ui.swing.JGTILabel();\n jGTIPanelChoice = new de.unisiegen.gtitool.ui.swing.JGTIPanel();\n jGTIRadioButtonRegularGrammar = new de.unisiegen.gtitool.ui.swing.JGTIRadioButton();\n jGTIRadioButtonContextFreeGrammar = new de.unisiegen.gtitool.ui.swing.JGTIRadioButton();\n jGTIPanelColumn0 = new de.unisiegen.gtitool.ui.swing.JGTIPanel();\n jGTIPanelButtons = new de.unisiegen.gtitool.ui.swing.JGTIPanel();\n jGTIButtonPrevious = new de.unisiegen.gtitool.ui.swing.JGTIButton();\n jGTIButtonNext = new de.unisiegen.gtitool.ui.swing.JGTIButton();\n jGTIButtonCancel = new de.unisiegen.gtitool.ui.swing.JGTIButton();\n\n setLayout(new java.awt.GridBagLayout());\n\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"de/unisiegen/gtitool/ui/i18n/messages\"); // NOI18N\n jGTILabelCaption.setText(bundle.getString(\"NewDialog.ChooseGrammar\")); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 16, 5, 16);\n add(jGTILabelCaption, gridBagConstraints);\n\n buttonGroupChoice.add(jGTIRadioButtonRegularGrammar);\n jGTIRadioButtonRegularGrammar.setSelected(true);\n jGTIRadioButtonRegularGrammar.setText(bundle.getString(\"NewDialog.RG\")); // NOI18N\n jGTIRadioButtonRegularGrammar.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jGTIRadioButtonRegularGrammarItemStateChanged(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 0, 5, 0);\n jGTIPanelChoice.add(jGTIRadioButtonRegularGrammar, gridBagConstraints);\n\n buttonGroupChoice.add(jGTIRadioButtonContextFreeGrammar);\n jGTIRadioButtonContextFreeGrammar.setText(bundle.getString(\"NewDialog.CFG\")); // NOI18N\n jGTIRadioButtonContextFreeGrammar.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jGTIRadioButtonContextFreeGrammarItemStateChanged(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);\n jGTIPanelChoice.add(jGTIRadioButtonContextFreeGrammar, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 16, 5, 16);\n add(jGTIPanelChoice, gridBagConstraints);\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 2;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 16, 5, 16);\n add(jGTIPanelColumn0, gridBagConstraints);\n\n jGTIButtonPrevious.setMnemonic(java.util.ResourceBundle.getBundle(\"de/unisiegen/gtitool/ui/i18n/messages\").getString(\"NewDialog.PreviousMnemonic\").charAt(0));\n jGTIButtonPrevious.setText(bundle.getString(\"NewDialog.Previous\")); // NOI18N\n jGTIButtonPrevious.setToolTipText(bundle.getString(\"NewDialog.PreviousToolTip\")); // NOI18N\n jGTIButtonPrevious.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jGTIButtonPreviousActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);\n jGTIPanelButtons.add(jGTIButtonPrevious, gridBagConstraints);\n\n jGTIButtonNext.setMnemonic(java.util.ResourceBundle.getBundle(\"de/unisiegen/gtitool/ui/i18n/messages\").getString(\"NewDialog.NextMnemonic\").charAt(0));\n jGTIButtonNext.setText(bundle.getString(\"NewDialog.Next\")); // NOI18N\n jGTIButtonNext.setToolTipText(bundle.getString(\"NewDialog.NextToolTip\")); // NOI18N\n jGTIButtonNext.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jGTIButtonNextActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\n gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);\n jGTIPanelButtons.add(jGTIButtonNext, gridBagConstraints);\n\n jGTIButtonCancel.setMnemonic(java.util.ResourceBundle.getBundle(\"de/unisiegen/gtitool/ui/i18n/messages\").getString(\"NewDialog.CancelMnemonic\").charAt(0));\n jGTIButtonCancel.setText(bundle.getString(\"NewDialog.Cancel\")); // NOI18N\n jGTIButtonCancel.setToolTipText(bundle.getString(\"NewDialog.CancelToolTip\")); // NOI18N\n jGTIButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jGTIButtonCancelActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;\n gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);\n jGTIPanelButtons.add(jGTIButtonCancel, gridBagConstraints);\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 0;\n gridBagConstraints.gridy = 3;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.insets = new java.awt.Insets(5, 16, 16, 16);\n add(jGTIPanelButtons, gridBagConstraints);\n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grupo = new javax.swing.ButtonGroup();\n radiotituloOpcion0 = new javax.swing.JRadioButton();\n radiotituloOpcion1 = new javax.swing.JRadioButton();\n radiotituloOpcion2 = new javax.swing.JRadioButton();\n radiotituloOpcion3 = new javax.swing.JRadioButton();\n botonRespuesta = new javax.swing.JButton();\n imagen = new javax.swing.JLabel();\n siguiente = new javax.swing.JButton();\n Salir = new javax.swing.JButton();\n etiquetaTituloPregunta = new javax.swing.JLabel();\n etiquetaRespueta = new javax.swing.JLabel();\n Calificacion = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n grupo.add(radiotituloOpcion0);\n radiotituloOpcion0.setText(\"jRadioButton1\");\n\n grupo.add(radiotituloOpcion1);\n radiotituloOpcion1.setText(\"jRadioButton2\");\n\n grupo.add(radiotituloOpcion2);\n radiotituloOpcion2.setText(\"jRadioButton3\");\n\n grupo.add(radiotituloOpcion3);\n radiotituloOpcion3.setText(\"jRadioButton4\");\n\n botonRespuesta.setBackground(new java.awt.Color(153, 255, 153));\n botonRespuesta.setText(\"Verificar\");\n botonRespuesta.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonRespuestaActionPerformed(evt);\n }\n });\n\n imagen.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\guill\\\\Documents\\\\NetBeansProjects\\\\Figuras_1\\\\images\\\\origen-nombres-informatica-nunca-hubieras-imaginado_2.jpg\")); // NOI18N\n\n siguiente.setBackground(new java.awt.Color(255, 102, 102));\n siguiente.setText(\"Siguiente\");\n siguiente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n siguienteActionPerformed(evt);\n }\n });\n\n Salir.setBackground(new java.awt.Color(0, 204, 153));\n Salir.setText(\"Finalizar\");\n Salir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SalirActionPerformed(evt);\n }\n });\n\n etiquetaTituloPregunta.setText(\".\");\n\n etiquetaRespueta.setText(\".\");\n\n Calificacion.setText(\".\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(botonRespuesta)\n .addGap(60, 60, 60)\n .addComponent(siguiente)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Salir)\n .addGap(26, 26, 26))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(radiotituloOpcion0)\n .addComponent(radiotituloOpcion2)\n .addComponent(radiotituloOpcion1)\n .addComponent(radiotituloOpcion3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(imagen)\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaTituloPregunta, javax.swing.GroupLayout.PREFERRED_SIZE, 648, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(etiquetaRespueta, javax.swing.GroupLayout.PREFERRED_SIZE, 393, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 79, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Calificacion, javax.swing.GroupLayout.PREFERRED_SIZE, 403, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(38, 38, 38))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(13, Short.MAX_VALUE)\n .addComponent(etiquetaTituloPregunta, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(radiotituloOpcion0)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(radiotituloOpcion1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(radiotituloOpcion2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(radiotituloOpcion3))\n .addComponent(imagen, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(63, 63, 63)\n .addComponent(Calificacion)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, Short.MAX_VALUE)\n .addComponent(etiquetaRespueta)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(siguiente)\n .addComponent(Salir)\n .addComponent(botonRespuesta))\n .addGap(32, 32, 32))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jPanel3 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jRadioButton3 = new javax.swing.JRadioButton();\n jLabel6 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jTextField2 = new javax.swing.JTextField();\n jLabel13 = new javax.swing.JLabel();\n\n jButton1.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 24)); // NOI18N\n jButton1.setText(\"Create\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 24)); // NOI18N\n jButton2.setText(\"Cancel\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1)\n .addGap(18, 18, 18)\n .addComponent(jButton2)\n .addGap(20, 20, 20))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Images/icons8_sewing_machine_128px.png\"))); // NOI18N\n\n jLabel2.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 48)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(102, 102, 255));\n jLabel2.setText(\"Gangsa Tailor\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE))\n .addGap(23, 23, 23))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(102, 102, 255), 2), \"Vermak\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Gill Sans MT\", 0, 24))); // NOI18N\n\n jLabel3.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel3.setText(\"No. Pesanan\");\n\n jLabel4.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel4.setText(\"XXXXXXXXXXXXXXX\");\n\n jLabel5.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel5.setText(\"Nama Pemesan\");\n\n jTextField1.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n\n jLabel7.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel7.setText(\"XXXXXXXXXXXXXXX\");\n\n jLabel8.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel8.setText(\"Tanggal\");\n\n jLabel9.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel9.setText(\"Jenis\");\n\n buttonGroup1.add(jRadioButton1);\n jRadioButton1.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jRadioButton1.setText(\"Potong\");\n jRadioButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jRadioButton1MouseClicked(evt);\n }\n });\n\n buttonGroup1.add(jRadioButton2);\n jRadioButton2.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jRadioButton2.setText(\"Mengecilkan\");\n jRadioButton2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jRadioButton2MouseDragged(evt);\n }\n });\n jRadioButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jRadioButton2MouseClicked(evt);\n }\n });\n\n buttonGroup1.add(jRadioButton3);\n jRadioButton3.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jRadioButton3.setText(\"Tambal\");\n jRadioButton3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jRadioButton3MouseClicked(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel6.setText(\"Total\");\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel10.setText(\"0,-\");\n\n jLabel11.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 24)); // NOI18N\n jLabel11.setText(\"RP\");\n\n jButton3.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 24)); // NOI18N\n jButton3.setText(\"Calculate\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jTextField2.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n\n jLabel13.setFont(new java.awt.Font(\"Gill Sans MT\", 0, 18)); // NOI18N\n jLabel13.setText(\"Kuantitas\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jLabel9)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextField2)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jTextField1)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jRadioButton1)\n .addGap(18, 18, 18)\n .addComponent(jRadioButton2)\n .addGap(18, 18, 18)\n .addComponent(jRadioButton3)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(240, 240, 240)\n .addComponent(jButton3)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton2)\n .addComponent(jRadioButton3))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n rSRadioButtonMaterial29 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial30 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial31 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial32 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial33 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial34 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial35 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial36 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial37 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial38 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial39 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial41 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial42 = new RSMaterialComponent.RSRadioButtonMaterial();\n rSRadioButtonMaterial43 = new RSMaterialComponent.RSRadioButtonMaterial();\n jPanel3 = new javax.swing.JPanel();\n rbx_1 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_5 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_9 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_13 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_2 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_6 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_10 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_14 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_3 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_7 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_11 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_4 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_8 = new RSMaterialComponent.RSRadioButtonMaterial();\n rbx_12 = new RSMaterialComponent.RSRadioButtonMaterial();\n jPanel4 = new javax.swing.JPanel();\n rSDateChooser2 = new rojeru_san.componentes.RSDateChooser();\n jLabel9 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jButton1.setText(\"crear backup\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"restorebackup\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"clear databse\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n rSRadioButtonMaterial29.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial29.setText(\"8:00 - 8:30\");\n rSRadioButtonMaterial29.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial29.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial29.setFocusPainted(false);\n rSRadioButtonMaterial29.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial29.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial30.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial30.setText(\"10:00 - 10:30\");\n rSRadioButtonMaterial30.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial30.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial30.setFocusPainted(false);\n rSRadioButtonMaterial30.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial30.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial31.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial31.setText(\"12:00 - 12:30\");\n rSRadioButtonMaterial31.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial31.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial31.setFocusPainted(false);\n rSRadioButtonMaterial31.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial31.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial32.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial32.setText(\"14:00 - 14:30\");\n rSRadioButtonMaterial32.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial32.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial32.setFocusPainted(false);\n rSRadioButtonMaterial32.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial32.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial33.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial33.setText(\"8:30 - 9:00\");\n rSRadioButtonMaterial33.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial33.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial33.setFocusPainted(false);\n rSRadioButtonMaterial33.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial33.setRippleColor(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial33.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rSRadioButtonMaterial33ActionPerformed(evt);\n }\n });\n\n rSRadioButtonMaterial34.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial34.setText(\"10:30 - 11:00\");\n rSRadioButtonMaterial34.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial34.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial34.setFocusPainted(false);\n rSRadioButtonMaterial34.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial34.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial35.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial35.setText(\"12:30 - 13:00\");\n rSRadioButtonMaterial35.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial35.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial35.setFocusPainted(false);\n rSRadioButtonMaterial35.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial35.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial36.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial36.setText(\"14:30 - 15:00\");\n rSRadioButtonMaterial36.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial36.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial36.setFocusPainted(false);\n rSRadioButtonMaterial36.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial36.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial37.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial37.setText(\"9:00 - 9:30\");\n rSRadioButtonMaterial37.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial37.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial37.setFocusPainted(false);\n rSRadioButtonMaterial37.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial37.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial38.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial38.setText(\"11:.00 - 11:30\");\n rSRadioButtonMaterial38.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial38.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial38.setFocusPainted(false);\n rSRadioButtonMaterial38.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial38.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial39.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial39.setText(\"13:00 - 13:30\");\n rSRadioButtonMaterial39.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial39.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial39.setFocusPainted(false);\n rSRadioButtonMaterial39.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial39.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial41.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial41.setText(\"9:00 - 9:30\");\n rSRadioButtonMaterial41.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial41.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial41.setFocusPainted(false);\n rSRadioButtonMaterial41.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial41.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rSRadioButtonMaterial42.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial42.setText(\"11:.00 - 11:30\");\n rSRadioButtonMaterial42.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial42.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial42.setFocusPainted(false);\n rSRadioButtonMaterial42.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial42.setRippleColor(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial42.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rSRadioButtonMaterial42ActionPerformed(evt);\n }\n });\n\n rSRadioButtonMaterial43.setForeground(new java.awt.Color(51, 51, 51));\n rSRadioButtonMaterial43.setText(\"13:00 - 13:30\");\n rSRadioButtonMaterial43.setColorCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial43.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rSRadioButtonMaterial43.setFocusPainted(false);\n rSRadioButtonMaterial43.setFont(new java.awt.Font(\"Segoe UI\", 0, 13)); // NOI18N\n rSRadioButtonMaterial43.setRippleColor(new java.awt.Color(0, 112, 192));\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap(23, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rSRadioButtonMaterial30, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial29, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial32, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial31, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))\n .addGap(18, 18, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rSRadioButtonMaterial33, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial34, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial35, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial36, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addGap(18, 18, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rSRadioButtonMaterial37, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial38, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial39, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rSRadioButtonMaterial41, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial42, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial43, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))\n .addContainerGap(27, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rSRadioButtonMaterial41, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial37, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rSRadioButtonMaterial33, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(5, 5, 5)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rSRadioButtonMaterial34, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSRadioButtonMaterial38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSRadioButtonMaterial42, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(rSRadioButtonMaterial30, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rSRadioButtonMaterial35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSRadioButtonMaterial31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSRadioButtonMaterial39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSRadioButtonMaterial43, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rSRadioButtonMaterial36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rSRadioButtonMaterial32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 255));\n\n rbx_1.setForeground(new java.awt.Color(51, 51, 51));\n rbx_1.setText(\"8:00 - 8:30\");\n rbx_1.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_1.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_1.setFocusPainted(false);\n rbx_1.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_1.setRippleColor(new java.awt.Color(0, 112, 192));\n rbx_1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbx_1ActionPerformed(evt);\n }\n });\n\n rbx_5.setForeground(new java.awt.Color(51, 51, 51));\n rbx_5.setText(\"10:00 - 10:30\");\n rbx_5.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_5.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_5.setFocusPainted(false);\n rbx_5.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_5.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_9.setForeground(new java.awt.Color(51, 51, 51));\n rbx_9.setText(\"12:00 - 12:30\");\n rbx_9.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_9.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_9.setFocusPainted(false);\n rbx_9.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_9.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_13.setForeground(new java.awt.Color(51, 51, 51));\n rbx_13.setText(\"14:00 - 14:30\");\n rbx_13.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_13.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_13.setFocusPainted(false);\n rbx_13.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_13.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_2.setForeground(new java.awt.Color(51, 51, 51));\n rbx_2.setText(\"8:30 - 9:00\");\n rbx_2.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_2.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_2.setFocusPainted(false);\n rbx_2.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_2.setRippleColor(new java.awt.Color(0, 112, 192));\n rbx_2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbx_2ActionPerformed(evt);\n }\n });\n\n rbx_6.setForeground(new java.awt.Color(51, 51, 51));\n rbx_6.setText(\"10:30 - 11:00\");\n rbx_6.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_6.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_6.setFocusPainted(false);\n rbx_6.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_6.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_10.setForeground(new java.awt.Color(51, 51, 51));\n rbx_10.setText(\"12:30 - 13:00\");\n rbx_10.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_10.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_10.setFocusPainted(false);\n rbx_10.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_10.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_14.setForeground(new java.awt.Color(51, 51, 51));\n rbx_14.setText(\"14:30 - 15:00\");\n rbx_14.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_14.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_14.setFocusPainted(false);\n rbx_14.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_14.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_3.setForeground(new java.awt.Color(51, 51, 51));\n rbx_3.setText(\"9:00 - 9:30\");\n rbx_3.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_3.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_3.setFocusPainted(false);\n rbx_3.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_3.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_7.setForeground(new java.awt.Color(51, 51, 51));\n rbx_7.setText(\"11:.00 - 11:30\");\n rbx_7.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_7.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_7.setFocusPainted(false);\n rbx_7.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_7.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_11.setForeground(new java.awt.Color(51, 51, 51));\n rbx_11.setText(\"13:00 - 13:30\");\n rbx_11.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_11.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_11.setFocusPainted(false);\n rbx_11.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_11.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_4.setForeground(new java.awt.Color(51, 51, 51));\n rbx_4.setText(\"9:00 - 9:30\");\n rbx_4.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_4.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_4.setFocusPainted(false);\n rbx_4.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_4.setRippleColor(new java.awt.Color(0, 112, 192));\n\n rbx_8.setForeground(new java.awt.Color(51, 51, 51));\n rbx_8.setText(\"11:.00 - 11:30\");\n rbx_8.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_8.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_8.setFocusPainted(false);\n rbx_8.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_8.setRippleColor(new java.awt.Color(0, 112, 192));\n rbx_8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbx_8ActionPerformed(evt);\n }\n });\n\n rbx_12.setForeground(new java.awt.Color(51, 51, 51));\n rbx_12.setText(\"13:00 - 13:30\");\n rbx_12.setColorCheck(new java.awt.Color(0, 112, 192));\n rbx_12.setColorUnCheck(new java.awt.Color(0, 112, 192));\n rbx_12.setFocusPainted(false);\n rbx_12.setFont(new java.awt.Font(\"Poppins\", 0, 13)); // NOI18N\n rbx_12.setRippleColor(new java.awt.Color(0, 112, 192));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(31, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(rbx_5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE)\n .addComponent(rbx_1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(rbx_13, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(rbx_9, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))\n .addGap(18, 26, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rbx_2, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\n .addComponent(rbx_6, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rbx_10, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rbx_14, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addGap(18, 26, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rbx_3, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)\n .addComponent(rbx_7, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rbx_11, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rbx_4, javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)\n .addComponent(rbx_8, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE)\n .addComponent(rbx_12, javax.swing.GroupLayout.PREFERRED_SIZE, 1, Short.MAX_VALUE))\n .addContainerGap(35, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rbx_4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rbx_3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rbx_1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rbx_2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(5, 5, 5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbx_6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rbx_7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rbx_8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(rbx_5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbx_10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rbx_9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rbx_11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rbx_12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rbx_14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(rbx_13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n rSDateChooser2.setColorBackground(new java.awt.Color(3, 111, 198));\n rSDateChooser2.setColorButtonHover(new java.awt.Color(3, 111, 198));\n rSDateChooser2.setColorDiaActual(new java.awt.Color(255, 0, 0));\n rSDateChooser2.setColorForeground(new java.awt.Color(3, 111, 198));\n rSDateChooser2.setFuente(new java.awt.Font(\"Segoe UI\", 0, 15)); // NOI18N\n\n jLabel9.setFont(new java.awt.Font(\"Poppins SemiBold\", 0, 14)); // NOI18N\n jLabel9.setForeground(new java.awt.Color(51, 51, 51));\n jLabel9.setText(\"FECHA DE LA CITA:\");\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap(41, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(18, 18, Short.MAX_VALUE)\n .addComponent(rSDateChooser2, javax.swing.GroupLayout.DEFAULT_SIZE, 203, Short.MAX_VALUE)\n .addContainerGap(265, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(rSDateChooser2, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(jLabel9)))\n .addContainerGap(24, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(254, 254, 254)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(47, 47, 47)\n .addComponent(jButton2))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(150, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(85, 85, 85)\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(86, 86, 86)))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addGap(32, 32, 32)\n .addComponent(jButton3)\n .addGap(105, 105, 105)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(351, 351, 351)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(100, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(475, 475, 475)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(475, Short.MAX_VALUE)))\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grupo = new javax.swing.ButtonGroup();\n etiquetaTituloPregunta = new javax.swing.JLabel();\n radioTituloOpcion0 = new javax.swing.JRadioButton();\n radioTituloOpcion1 = new javax.swing.JRadioButton();\n radioTituloOpcion2 = new javax.swing.JRadioButton();\n radioTituloOpcion3 = new javax.swing.JRadioButton();\n botonRespuesta = new javax.swing.JButton();\n etiquetaRespuesta = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n etiquetaTituloPregunta.setText(\"jLabel1\");\n\n grupo.add(radioTituloOpcion0);\n radioTituloOpcion0.setText(\"jRadioButton1\");\n\n grupo.add(radioTituloOpcion1);\n radioTituloOpcion1.setText(\"jRadioButton2\");\n radioTituloOpcion1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n radioTituloOpcion1ActionPerformed(evt);\n }\n });\n\n grupo.add(radioTituloOpcion2);\n radioTituloOpcion2.setText(\"jRadioButton3\");\n radioTituloOpcion2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n radioTituloOpcion2ActionPerformed(evt);\n }\n });\n\n grupo.add(radioTituloOpcion3);\n radioTituloOpcion3.setText(\"jRadioButton4\");\n\n botonRespuesta.setText(\"Checar respuesta\");\n botonRespuesta.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonRespuestaActionPerformed(evt);\n }\n });\n\n jLabel1.setBackground(new java.awt.Color(0, 204, 153));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/cuestionario/pro.png\"))); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(etiquetaTituloPregunta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(etiquetaRespuesta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(radioTituloOpcion0, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)\n .addComponent(radioTituloOpcion1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(radioTituloOpcion2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(radioTituloOpcion3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(botonRespuesta))\n .addGap(65, 65, 65)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(etiquetaTituloPregunta, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(radioTituloOpcion0)\n .addGap(18, 18, 18)\n .addComponent(radioTituloOpcion1)\n .addGap(18, 18, 18)\n .addComponent(radioTituloOpcion2)\n .addGap(18, 18, 18)\n .addComponent(radioTituloOpcion3)\n .addGap(18, 18, 18)\n .addComponent(botonRespuesta))\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(etiquetaRespuesta, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(69, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "public PDMRelationshipForm() {\r\n initComponents();\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLFoto = new javax.swing.JLabel();\n jLNombre = new javax.swing.JLabel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jRadioButton3 = new javax.swing.JRadioButton();\n btVistarPerfil = new javax.swing.JButton();\n\n jRadioButton1.setText(\"Familia\");\n\n jRadioButton2.setText(\"Amigo\");\n\n jRadioButton3.setText(\"Compañero de Trabajo\");\n\n btVistarPerfil.setText(\"jButton1\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jRadioButton2)\n .addGap(61, 61, 61)\n .addComponent(btVistarPerfil))\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton3))\n .addContainerGap(240, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(65, 65, 65)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jRadioButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton2)\n .addComponent(btVistarPerfil))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton3)))\n .addContainerGap(82, Short.MAX_VALUE))\n );\n }", "public TelaBagunca() {\n initComponents();\n addCheckBox();\n jRadioButton1.setSelected(true);\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n radio_group = new javax.swing.ButtonGroup();\n label_header = new javax.swing.JLabel();\n label_soal = new javax.swing.JLabel();\n pilihan_a = new javax.swing.JRadioButton();\n pilihan_b = new javax.swing.JRadioButton();\n pilihan_c = new javax.swing.JRadioButton();\n pilihan_d = new javax.swing.JRadioButton();\n btn_next = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n label_header.setFont(new java.awt.Font(\"8-bit pusab\", 1, 24)); // NOI18N\n label_header.setText(\"Soal\");\n\n label_soal.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n label_soal.setText(\"Lorem Ipsum sit dolor amet consectetur alit \");\n label_soal.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n\n radio_group.add(pilihan_a);\n pilihan_a.setText(\"pilihan a\");\n\n radio_group.add(pilihan_b);\n pilihan_b.setText(\"pilihan b\");\n pilihan_b.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pilihan_bActionPerformed(evt);\n }\n });\n\n radio_group.add(pilihan_c);\n pilihan_c.setText(\"pilihan c\");\n pilihan_c.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pilihan_cActionPerformed(evt);\n }\n });\n\n radio_group.add(pilihan_d);\n pilihan_d.setText(\"pilihan d\");\n\n btn_next.setText(\"Next\");\n btn_next.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btn_nextActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(205, 205, 205)\n .addComponent(btn_next, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pilihan_a)\n .addComponent(pilihan_b)\n .addComponent(pilihan_c)\n .addComponent(pilihan_d)))\n .addGroup(layout.createSequentialGroup()\n .addGap(200, 200, 200)\n .addComponent(label_header)))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(label_soal, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(label_header)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(label_soal, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8)\n .addComponent(pilihan_a)\n .addGap(18, 18, 18)\n .addComponent(pilihan_b)\n .addGap(18, 18, 18)\n .addComponent(pilihan_c)\n .addGap(18, 18, 18)\n .addComponent(pilihan_d)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)\n .addComponent(btn_next, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "public ProvisioningForm() {\n//\t\tsuper(new BorderLayout());\n//\n//\t\tfinal ResourceManagementService resources = ProvisioningActivator.getResourceService();\n//\n//\t\tConfigurationService config = ProvisioningActivator.getConfigurationService();\n//\n//\t\tenableCheckBox = new SIPCommCheckBox(resources.getI18NString(\"plugin.provisioning.ENABLE_DISABLE\"));\n//\n//\t\tdhcpButton = new SIPCommRadioButton(resources.getI18NString(\"plugin.provisioning.DHCP\"));\n//\n//\t\tdnsButton = new SIPCommRadioButton(resources.getI18NString(\"plugin.provisioning.DNS\"));\n//\n//\t\tbonjourButton = new SIPCommRadioButton(resources.getI18NString(\"plugin.provisioning.BONJOUR\"));\n//\n//\t\tmanualButton = new SIPCommRadioButton(resources.getI18NString(\"plugin.provisioning.MANUAL\"));\n//\n//\t\turiField = new SIPCommTextField(resources.getI18NString(\"plugin.provisioning.URI\"));\n//\n//\t\tJPanel mainPanel = new TransparentPanel();\n//\n//\t\tadd(mainPanel, BorderLayout.NORTH);\n//\n//\t\tmainPanel.setLayout(new GridBagLayout());\n//\n//\t\tGridBagConstraints c = new GridBagConstraints();\n//\n//\t\tenableCheckBox.setAlignmentX(Component.LEFT_ALIGNMENT);\n//\n//\t\tc.fill = GridBagConstraints.HORIZONTAL;\n//\t\tc.weightx = 1.0;\n//\t\tc.gridx = 0;\n//\t\tc.gridy = 0;\n//\t\tc.insets = new Insets(0, 0, 10, 0);\n//\t\tmainPanel.add(enableCheckBox, c);\n//\n//\t\tfinal ButtonGroup buttonGroup = new ButtonGroup();\n//\n//\t\tbuttonGroup.add(dhcpButton);\n//\t\tbuttonGroup.add(bonjourButton);\n//\t\tbuttonGroup.add(dnsButton);\n//\t\tbuttonGroup.add(manualButton);\n//\n//\t\tfinal JPanel radioButtonPanel = new TransparentPanel(new GridLayout(0, 1));\n//\n//\t\tradioButtonPanel.setBorder(BorderFactory.createTitledBorder(resources.getI18NString(\"plugin.provisioning.AUTO\")));\n//\n//\t\tradioButtonPanel.add(dhcpButton);\n//\t\tradioButtonPanel.add(bonjourButton);\n//\t\tradioButtonPanel.add(dnsButton);\n//\n//\t\tc.fill = GridBagConstraints.HORIZONTAL;\n//\t\tc.weightx = 1.0;\n//\t\tc.insets = new Insets(0, 20, 0, 0);\n//\t\tc.gridx = 0;\n//\t\tc.gridy = 1;\n//\t\tmainPanel.add(radioButtonPanel, c);\n//\n//\t\tc.fill = GridBagConstraints.HORIZONTAL;\n//\t\tc.weightx = 1.0;\n//\t\tc.insets = new Insets(0, 26, 0, 0);\n//\t\tc.gridx = 0;\n//\t\tc.gridy = 2;\n//\t\tmainPanel.add(manualButton, c);\n//\n//\t\tc.fill = GridBagConstraints.HORIZONTAL;\n//\t\tc.weightx = 1.0;\n//\t\tc.insets = new Insets(0, 51, 0, 0);\n//\t\tc.gridx = 0;\n//\t\tc.gridy = 3;\n//\t\tmainPanel.add(uriField, c);\n//\n//\t\tJPanel uuidPanel = new TransparentPanel(new FlowLayout(FlowLayout.LEFT));\n//\n//\t\tfinal JTextField uuidPane = new JTextField();\n//\t\tuuidPane.setEditable(false);\n//\t\tuuidPane.setOpaque(false);\n//\t\tuuidPane.setText(config.getString(ProvisioningServiceImpl.PROVISIONING_UUID_PROP));\n//\n//\t\tuuidPanel.add(new JLabel(resources.getI18NString(\"plugin.provisioning.UUID\")));\n//\t\tuuidPanel.add(uuidPane);\n//\n//\t\tc.fill = GridBagConstraints.HORIZONTAL;\n//\t\tc.weightx = 0;\n//\t\tc.insets = new Insets(10, 10, 0, 0);\n//\t\tc.gridwidth = GridBagConstraints.REMAINDER;\n//\t\tc.gridx = 0;\n//\t\tc.gridy = 4;\n//\t\tmainPanel.add(uuidPanel, c);\n//\n//\t\tJButton clipboardBtn = new JButton(resources.getI18NString(\"plugin.provisioning.COPYTOCLIPBOARD\"));\n//\t\tclipboardBtn.addActionListener(new ActionListener() {\n//\t\t\t/**\n//\t\t\t * {@inheritsDoc}\n//\t\t\t */\n//\t\t\tpublic void actionPerformed(ActionEvent evt)\n//\t\t\t{\n//\t\t\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n//\t\t\t\tif (clipboard != null) {\n//\t\t\t\t\tString selection = uuidPane.getText();\n//\t\t\t\t\tStringSelection data = new StringSelection(selection);\n//\t\t\t\t\tclipboard.setContents(data, data);\n//\t\t\t\t}\n//\t\t\t\telse {\n//\t\t\t\t\tJOptionPane.showMessageDialog(ProvisioningForm.this, resources.getI18NString(\"plugin.provisioning.CLIPBOARD_FAILED\"),\n//\t\t\t\t\t\tresources.getI18NString(\"plugin.provisioning.CLIPBOARD_FAILED\"), JOptionPane.ERROR_MESSAGE);\n//\t\t\t\t}\n//\t\t\t}\n//\t\t});\n//\n//\t\tc.fill = GridBagConstraints.HORIZONTAL;\n//\t\tc.weightx = 1.0;\n//\t\tc.insets = new Insets(5, 10, 0, 0);\n//\t\tc.gridwidth = 0;\n//\t\tc.gridx = 0;\n//\t\tc.gridy = 5;\n//\t\tmainPanel.add(clipboardBtn, c);\n//\n//\t\tJPanel userPassPanel = new TransparentPanel(new BorderLayout());\n//\t\tuserPassPanel.setBorder(BorderFactory.createTitledBorder(ProvisioningActivator.getResourceService().getI18NString(\"plugin.provisioning.CREDENTIALS\")));\n//\t\tJPanel labelPanel = new TransparentPanel(new GridLayout(0, 1));\n//\t\tlabelPanel.setBorder(BorderFactory.createEmptyBorder(4, 8, 4, 0));\n//\t\tJPanel valuesPanel = new TransparentPanel(new GridLayout(0, 1));\n//\t\tvaluesPanel.setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 0));\n//\t\tlabelPanel.add(new JLabel(ProvisioningActivator.getResourceService().getI18NString(\"plugin.simpleaccregwizz.LOGIN_USERNAME\")));\n//\t\tlabelPanel.add(new JLabel(ProvisioningActivator.getResourceService().getI18NString(\"service.gui.PASSWORD\")));\n//\t\tusernameField = new JTextField();\n//\t\tusernameField.setEditable(false);\n//\t\tpasswordField = new JPasswordField();\n//\t\tpasswordField.setEditable(false);\n//\t\tvaluesPanel.add(usernameField);\n//\t\tvaluesPanel.add(passwordField);\n//\t\tuserPassPanel.add(labelPanel, BorderLayout.WEST);\n//\t\tuserPassPanel.add(valuesPanel, BorderLayout.CENTER);\n//\t\tJPanel buttonPanel = new TransparentPanel(new FlowLayout(FlowLayout.RIGHT));\n//\t\tforgetPasswordButton = new JButton(resources.getI18NString(\"plugin.provisioning.FORGET_PASSWORD\"));\n//\t\tbuttonPanel.add(forgetPasswordButton);\n//\t\tuserPassPanel.add(buttonPanel, BorderLayout.SOUTH);\n//\t\tc.fill = GridBagConstraints.HORIZONTAL;\n//\t\tc.weightx = 1.0;\n//\t\tc.insets = new Insets(5, 10, 0, 0);\n//\t\tc.gridwidth = 0;\n//\t\tc.gridx = 0;\n//\t\tc.gridy = 6;\n//\t\tmainPanel.add(userPassPanel, c);\n//\n//\t\tJTextPane pane = new JTextPane();\n//\t\tpane.setForeground(Color.RED);\n//\t\tpane.setEditable(false);\n//\t\tpane.setOpaque(false);\n//\t\tpane.setText(ProvisioningActivator.getResourceService().getI18NString(\"plugin.provisioning.RESTART_WARNING\",\n//\t\t\tnew String[] { ProvisioningActivator.getResourceService().getSettingsString(\"service.gui.APPLICATION_NAME\") }));\n//\n//\t\tc.gridy = 7;\n//\t\tmainPanel.add(pane, c);\n//\n//\t\tinitButtonStates();\n//\t\tinitListeners();\n\t}", "public interface GuiFactory {\n\n Button createButton();\n CheckBox createCheckbox();\n\n\n}", "private void initComponents() {\n optModeButtonGroup = new javax.swing.ButtonGroup();\n optModePanel = new javax.swing.JPanel();\n droopRadioButton = new javax.swing.JRadioButton();\n isochRadioButton = new javax.swing.JRadioButton();\n rLabel = new javax.swing.JLabel();\n rTextField = new javax.swing.JTextField();\n fp1Label = new javax.swing.JLabel();\n fp1TextField = new javax.swing.JTextField();\n fp2Label = new javax.swing.JLabel();\n fp2TextField = new javax.swing.JTextField();\n fp3Label = new javax.swing.JLabel();\n fp3TextField = new javax.swing.JTextField();\n pmaxLabel = new javax.swing.JLabel();\n pmaxTextField = new javax.swing.JTextField();\n pminLabel = new javax.swing.JLabel();\n pminTextField = new javax.swing.JTextField();\n t1Label = new javax.swing.JLabel();\n t1TextField = new javax.swing.JTextField();\n t2Label = new javax.swing.JLabel();\n t2TextField = new javax.swing.JTextField();\n t3Label = new javax.swing.JLabel();\n t3TextField = new javax.swing.JTextField();\n t4Label = new javax.swing.JLabel();\n t4TextField = new javax.swing.JTextField();\n t5Label = new javax.swing.JLabel();\n t5TextField = new javax.swing.JTextField();\n\n optModePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), \"Operation Mode\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 0, 10)));\n optModeButtonGroup.add(droopRadioButton);\n droopRadioButton.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n droopRadioButton.setSelected(true);\n droopRadioButton.setText(\"Droop \");\n droopRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n droopRadioButton.setMargin(new java.awt.Insets(0, 0, 0, 0));\n optModePanel.add(droopRadioButton);\n\n optModeButtonGroup.add(isochRadioButton);\n isochRadioButton.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n isochRadioButton.setText(\"Isoch\");\n isochRadioButton.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n isochRadioButton.setMargin(new java.awt.Insets(0, 0, 0, 0));\n optModePanel.add(isochRadioButton);\n\n rLabel.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n rLabel.setText(\"R(%)\");\n rLabel.setAlignmentX(1.0F);\n\n rTextField.setColumns(5);\n rTextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n rTextField.setText(\"5.0\");\n rTextField.setAlignmentX(1.0F);\n\n fp1Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n fp1Label.setText(\"Fp1(pu)\");\n fp1Label.setAlignmentX(1.0F);\n\n fp1TextField.setColumns(5);\n fp1TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n fp1TextField.setText(\"0.3\");\n fp1TextField.setAlignmentX(1.0F);\n\n fp2Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n fp2Label.setText(\"Fp2(pu)\");\n fp2Label.setAlignmentX(1.0F);\n\n fp2TextField.setColumns(5);\n fp2TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n fp2TextField.setText(\"0.4\");\n fp2TextField.setAlignmentX(1.0F);\n\n fp3Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n fp3Label.setText(\"Fp3(pu)\");\n fp3Label.setAlignmentX(2.0F);\n\n fp3TextField.setColumns(5);\n fp3TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n fp3TextField.setText(\"0.3\");\n fp3TextField.setAlignmentX(2.0F);\n\n pmaxLabel.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n pmaxLabel.setText(\"Pmax(pu)\");\n pmaxLabel.setAlignmentX(2.0F);\n\n pmaxTextField.setColumns(5);\n pmaxTextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n pmaxTextField.setText(\"1.1\");\n pmaxTextField.setAlignmentX(2.0F);\n\n pminLabel.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n pminLabel.setText(\"Pmin(pu)\");\n pminLabel.setAlignmentX(2.0F);\n\n pminTextField.setColumns(5);\n pminTextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n pminTextField.setText(\"0.0\");\n pminTextField.setAlignmentX(2.0F);\n\n t1Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t1Label.setText(\"T1(s)\");\n\n t1TextField.setColumns(5);\n t1TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t1TextField.setText(\"0.1\");\n\n t2Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t2Label.setText(\"T2(s)\");\n\n t2TextField.setColumns(5);\n t2TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t2TextField.setText(\"0.1\");\n\n t3Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t3Label.setText(\"T3(s)\");\n\n t3TextField.setColumns(5);\n t3TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t3TextField.setText(\"0.15\");\n\n t4Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t4Label.setText(\"T4(s)\");\n\n t4TextField.setColumns(5);\n t4TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t4TextField.setText(\"4.0\");\n\n t5Label.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t5Label.setText(\"T5(s)\");\n\n t5TextField.setColumns(5);\n t5TextField.setFont(new java.awt.Font(\"Dialog\", 0, 12));\n t5TextField.setText(\"0.3\");\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap(63, Short.MAX_VALUE)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(128, 128, 128)\n .add(optModePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 179, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(rLabel)\n .add(35, 35, 35)\n .add(rTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(30, 30, 30)\n .add(fp1Label)\n .add(30, 30, 30)\n .add(fp1TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(30, 30, 30)\n .add(fp2Label)\n .add(28, 28, 28)\n .add(fp2TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(fp3Label)\n .add(20, 20, 20)\n .add(fp3TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(30, 30, 30)\n .add(pmaxLabel)\n .add(20, 20, 20)\n .add(pmaxTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(30, 30, 30)\n .add(pminLabel)\n .add(20, 20, 20)\n .add(pminTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(t1Label)\n .add(34, 34, 34)\n .add(t1TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(30, 30, 30)\n .add(t2Label)\n .add(44, 44, 44)\n .add(t2TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(30, 30, 30)\n .add(t3Label)\n .add(42, 42, 42)\n .add(t3TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(layout.createSequentialGroup()\n .add(t4Label)\n .add(34, 34, 34)\n .add(t4TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(30, 30, 30)\n .add(t5Label)\n .add(44, 44, 44)\n .add(t5TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))\n .add(61, 61, 61))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .addContainerGap()\n .add(optModePanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(15, 15, 15)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(rLabel))\n .add(rTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(fp1Label))\n .add(fp1TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(fp2Label))\n .add(fp2TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(10, 10, 10)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(fp3Label))\n .add(fp3TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(pmaxLabel))\n .add(pmaxTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(pminLabel))\n .add(pminTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(10, 10, 10)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(t1Label))\n .add(t1TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(t2Label))\n .add(t2TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(t3Label))\n .add(t3TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .add(10, 10, 10)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(t4Label))\n .add(t4TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(layout.createSequentialGroup()\n .add(2, 2, 2)\n .add(t5Label))\n .add(t5TextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(33, Short.MAX_VALUE))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n projecttypebuttonGroup = new javax.swing.ButtonGroup();\n jLabel1 = new javax.swing.JLabel();\n projectNameTextField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n folderTextField = new javax.swing.JTextField();\n browseButton = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n wiredRadioButton = new javax.swing.JRadioButton();\n wirelessRadioButton = new javax.swing.JRadioButton();\n okNewProjectButton = new javax.swing.JButton();\n cancelNewProjectButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(flexisim.views.FlexiSimApp.class).getContext().getResourceMap(NewProject.class);\n setTitle(resourceMap.getString(\"Form.title\")); // NOI18N\n setName(\"Form\"); // NOI18N\n setResizable(false);\n\n jLabel1.setText(resourceMap.getString(\"jLabel1.text\")); // NOI18N\n jLabel1.setName(\"jLabel1\"); // NOI18N\n\n projectNameTextField.setText(resourceMap.getString(\"projectNameTextField.text\")); // NOI18N\n projectNameTextField.setName(\"projectNameTextField\"); // NOI18N\n\n jLabel2.setText(resourceMap.getString(\"jLabel2.text\")); // NOI18N\n jLabel2.setName(\"jLabel2\"); // NOI18N\n\n jLabel3.setText(resourceMap.getString(\"jLabel3.text\")); // NOI18N\n jLabel3.setName(\"jLabel3\"); // NOI18N\n\n folderTextField.setText(resourceMap.getString(\"folderTextField.text\")); // NOI18N\n folderTextField.setName(\"folderTextField\"); // NOI18N\n //folderTextField.setText();\n\n browseButton.setText(resourceMap.getString(\"browseButton.text\")); // NOI18N\n browseButton.setName(\"browseButton\"); // NOI18N\n browseButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browseButtonActionPerformed(evt);\n }\n });\n\n jLabel4.setText(resourceMap.getString(\"jLabel4.text\")); // NOI18N\n jLabel4.setName(\"jLabel4\"); // NOI18N\n\n projecttypebuttonGroup.add(wiredRadioButton);\n wiredRadioButton.setText(resourceMap.getString(\"wiredRadioButton.text\")); // NOI18N\n wiredRadioButton.setName(\"wiredRadioButton\"); // NOI18N\n wiredRadioButton.setSelected(true);\n wiredRadioButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n wiredRadioButtonActionPerformed(evt);\n }\n });\n\n projecttypebuttonGroup.add(wirelessRadioButton);\n wirelessRadioButton.setText(resourceMap.getString(\"wirelessRadioButton.text\")); // NOI18N\n wirelessRadioButton.setName(\"wirelessRadioButton\"); // NOI18N\n wirelessRadioButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n wirelessRadioButtonActionPerformed(evt);\n }\n });\n\n okNewProjectButton.setText(resourceMap.getString(\"okNewProjectButton.text\")); // NOI18N\n okNewProjectButton.setName(\"okNewProjectButton\"); // NOI18N\n okNewProjectButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okNewProjectButtonActionPerformed(evt);\n }\n });\n\n cancelNewProjectButton.setText(resourceMap.getString(\"cancelNewProjectButton.text\")); // NOI18N\n cancelNewProjectButton.setName(\"cancelNewProjectButton\"); // NOI18N\n cancelNewProjectButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelNewProjectButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(projectNameTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE))\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(folderTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(browseButton))\n .addComponent(jLabel4)))\n .addGroup(layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(wirelessRadioButton)\n .addComponent(wiredRadioButton))\n .addGap(277, 277, 277))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(cancelNewProjectButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(okNewProjectButton, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(projectNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(folderTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(browseButton))\n .addGap(18, 18, 18)\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(wiredRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(wirelessRadioButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(okNewProjectButton)\n .addComponent(cancelNewProjectButton))\n .addContainerGap())\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n campoNroFactura = new javax.swing.JTextField();\n campoCliente = new javax.swing.JTextField();\n campoValor = new javax.swing.JTextField();\n botonBuscar = new javax.swing.JButton();\n botonRegistrar = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n campoFecha = new com.toedter.calendar.JDateChooser();\n opcionPagoR = new javax.swing.JRadioButton();\n\n setBorder(javax.swing.BorderFactory.createTitledBorder(\"Registro Ventas Antiguas\"));\n\n jLabel1.setText(\"Nro Factura\");\n\n jLabel2.setText(\"Cliente\");\n\n jLabel3.setText(\"Valor Factura\");\n\n campoCliente.setEditable(false);\n\n botonBuscar.setText(\"Buscar\");\n botonBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonBuscarActionPerformed(evt);\n }\n });\n\n botonRegistrar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/Add.png\"))); // NOI18N\n botonRegistrar.setText(\"Registrar\");\n botonRegistrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botonRegistrarActionPerformed(evt);\n }\n });\n\n jLabel5.setText(\"Fecha Venta\");\n\n opcionPagoR.setText(\"Pagó\");\n opcionPagoR.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n opcionPagoRActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(campoFecha, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(campoNroFactura, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(botonRegistrar))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(45, 45, 45))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(14, 14, 14)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(campoValor, javax.swing.GroupLayout.DEFAULT_SIZE, 300, Short.MAX_VALUE)\n .addComponent(campoCliente))\n .addGap(18, 18, 18)\n .addComponent(botonBuscar))\n .addComponent(opcionPagoR))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(campoFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(campoNroFactura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(campoCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(botonBuscar))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(campoValor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(opcionPagoR)\n .addGap(18, 18, 18)\n .addComponent(botonRegistrar)\n .addContainerGap(229, Short.MAX_VALUE))\n );\n }", "public void radioSelect(ActionEvent e)\n\t{\n\t\tString rep=\"\";\n\t\tif(rdoOui.isSelected())\n\t\t\trep=\"Oui\";\n\t\telse if(rdoNon.isSelected())\n\t\t\trep=\"Non\";\n\t\telse\n\t\t\trep=\"Peut être\";\n\t\tlblRadio.setText(rep);\n\t}", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public TorneoForm() {\n initComponents();\n }", "private void inicializar(){\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n radioButtons();\n txtTitulo.setText(txtTitulo.getText() + \" para \" + nombre);\n }", "public RadioGroupFieldEditor makeNewRadioGroupField(\n PreferencePage page, PreferencesTab tab,\n IPreferencesService service, String level,\t\n String name, String labelText, String toolTip, int numColumns,\n String[] values, String[] labels, Composite parent, boolean useGroup,\n boolean isEnabled, boolean isRemovable)\t\n {\n\n boolean onProjectLevelWithNullProject =\n level != null && level.equals(IPreferencesService.PROJECT_LEVEL) && service.getProject() == null;\n boolean notOnARealLevel = level == null;\n boolean onAFunctioningLevel = !onProjectLevelWithNullProject && !notOnARealLevel;\n\n RadioGroupFieldEditor field = new RadioGroupFieldEditor(\n page, tab, service, level, name, labelText, numColumns,\n values, labels, parent, useGroup);\n\n field.setToolTipText(toolTip);\n //Composite radioBoxControl = field.getRadioBoxControl(parent);\n //Composite radioBoxControlParent = field.getRadioBoxControl(parent).getParent();\n\n if (!onProjectLevelWithNullProject) {\n setField(field, parent);\n addRadioGroupPropertyChangeListeners(service, level, field, name, parent);\n } else {\n //setField(field, parent);\n //addStringPropertyChangeListeners(service, level, field, key, fieldHolder);\n }\n\n // Set the enabled state\n // Assumes that RadioGroups use the Group representation for the button box;\n // if a Group is not used, then fill out the elxe branches below accordingly\n if (onProjectLevelWithNullProject || notOnARealLevel) {\n if (useGroup) {\n Group radioGroup = (Group) field.getRadioBoxControl();\n radioGroup.setEnabled(false);\n } else {\n // do something else as appropriate to the representation\n }\n field.setEnabled(false, parent);\n } else if (onAFunctioningLevel) {\n if (useGroup) {\n Group radioGroup = (Group) field.getRadioBoxControl();\n radioGroup.setEnabled(isEnabled);\n } else {\n // do something else as appropriate to the representation\n }\n field.setEnabled(isEnabled, parent);\t\n }\n\n if (level == null) field.setRemovable(false);\t// can never remove from a field that doesn't have a stored value\n else if (level.equals(IPreferencesService.DEFAULT_LEVEL)) field.setRemovable(false);\t// can never remove from Default level\n else field.setRemovable(isRemovable);\n\n return field;\n }", "public GUI_Crear_Funcionario() {\r\n initComponents();\r\n lbl1.setVisible(false);\r\n lbl2.setVisible(false);\r\n lbl3.setVisible(false);\r\n lbl4.setVisible(false);\r\n lbl5.setVisible(false);\r\n lbl6.setVisible(false);\r\n lbl7.setVisible(false);\r\n lbl8.setVisible(false);\r\n lbl9.setVisible(false);\r\n lbl10.setVisible(false);\r\n groupSexoBtn.add(rBtn1);\r\n groupSexoBtn.add(rBtn2);\r\n cargarImagen(jdp4,foto1);\r\n ocultarBarraTitulo();\r\n \r\n }", "private void reloadAccountTypeRadioButtons() {\n accountTypeStandardJRadioButton.setSelected(true);\n }", "public JRadioButton add(E enumValue, JComponent panel) {\n JRadioButton button = add(enumValue);\n panel.add(button);\n return button;\n }", "public GRadioGroup(View activity, int... radiosIDs) {\n super();\n String nightMode = sharedPrefs.getString(SettingsActivity.NIGHTMODE);\n if (nightMode==null) nightMode=\"disable\";\n int radioCount=0;\n for (int radioButtonID : radiosIDs) {\n RadioButton rb = (RadioButton)activity.findViewById(radioButtonID);\n if (rb != null) {\n this.radios.add(rb);\n rb.setTypeface(TypefaceUtil.get(getApplicationContext()));\n rb.setOnClickListener(onClick);\n }\n rb.setChecked(false);\n if (radioCount==0 && nightMode.equals(\"enable\")) rb.setChecked(true);\n else if (radioCount==1 && nightMode.equals(\"disable\")) rb.setChecked(true);\n radioCount++;\n }\n }", "@Override\n\tpublic void startRadio() {\n\t\tSystem.out.println(\"Radio started...\");\t\t\n\t}", "public quanlixe_form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n faultBGRadio = new javax.swing.ButtonGroup();\n emuaBGRadio = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jRadioButton3 = new javax.swing.JRadioButton();\n jRadioButton4 = new javax.swing.JRadioButton();\n jRadioButton5 = new javax.swing.JRadioButton();\n jRadioButton6 = new javax.swing.JRadioButton();\n jRadioButton12 = new javax.swing.JRadioButton();\n jRadioButton13 = new javax.swing.JRadioButton();\n jPanel2 = new javax.swing.JPanel();\n jRadioButton7 = new javax.swing.JRadioButton();\n jRadioButton8 = new javax.swing.JRadioButton();\n jRadioButton9 = new javax.swing.JRadioButton();\n jRadioButton10 = new javax.swing.JRadioButton();\n jRadioButton11 = new javax.swing.JRadioButton();\n jRadioButton14 = new javax.swing.JRadioButton();\n jRadioButton15 = new javax.swing.JRadioButton();\n rbBCUFault = new javax.swing.JRadioButton();\n jRadioButton17 = new javax.swing.JRadioButton();\n jRadioButton18 = new javax.swing.JRadioButton();\n jPanel3 = new javax.swing.JPanel();\n jRadioButton19 = new javax.swing.JRadioButton();\n jRadioButton20 = new javax.swing.JRadioButton();\n jRadioButton21 = new javax.swing.JRadioButton();\n bttnActivate = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Fault Generate\");\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Signalling Fault\"));\n\n faultBGRadio.add(jRadioButton1);\n jRadioButton1.setText(\"Emergency brake Error\");\n\n faultBGRadio.add(jRadioButton2);\n jRadioButton2.setText(\"VDX Error\");\n\n faultBGRadio.add(jRadioButton3);\n jRadioButton3.setText(\"ATP Software Error\");\n\n faultBGRadio.add(jRadioButton4);\n jRadioButton4.setText(\"Over Speed\");\n\n faultBGRadio.add(jRadioButton5);\n jRadioButton5.setText(\"Balise Error\");\n\n faultBGRadio.add(jRadioButton6);\n jRadioButton6.setText(\"Telegram Loss\");\n\n faultBGRadio.add(jRadioButton12);\n jRadioButton12.setText(\"Service Brake Error\");\n\n faultBGRadio.add(jRadioButton13);\n jRadioButton13.setText(\"Tachometer Error\");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton4)\n .addComponent(jRadioButton12))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton5)\n .addComponent(jRadioButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton3)\n .addComponent(jRadioButton6)))\n .addComponent(jRadioButton13))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton2)\n .addComponent(jRadioButton3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton4)\n .addComponent(jRadioButton5)\n .addComponent(jRadioButton6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton12)\n .addComponent(jRadioButton13))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Siemens Fault\"));\n\n faultBGRadio.add(jRadioButton7);\n jRadioButton7.setText(\"Low Air Pressure\");\n\n faultBGRadio.add(jRadioButton8);\n jRadioButton8.setText(\"Parking not Release\");\n\n faultBGRadio.add(jRadioButton9);\n jRadioButton9.setText(\"Door Control Fault\");\n\n faultBGRadio.add(jRadioButton10);\n jRadioButton10.setText(\"PER\");\n\n faultBGRadio.add(jRadioButton11);\n jRadioButton11.setText(\"MCB Door Loop Tripped\");\n\n faultBGRadio.add(jRadioButton14);\n jRadioButton14.setText(\"Propulsion System Fault\");\n\n faultBGRadio.add(jRadioButton15);\n jRadioButton15.setText(\"400 Power Supply\");\n\n faultBGRadio.add(rbBCUFault);\n rbBCUFault.setText(\"BCU Fault\");\n\n faultBGRadio.add(jRadioButton17);\n jRadioButton17.setText(\"Friction Brake On\");\n\n faultBGRadio.add(jRadioButton18);\n jRadioButton18.setText(\"MCB Train Control 1 Tripped\");\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"EMU-A\"));\n\n emuaBGRadio.add(jRadioButton19);\n jRadioButton19.setText(\"A-Car\");\n\n emuaBGRadio.add(jRadioButton20);\n jRadioButton20.setText(\"C-Car\");\n\n emuaBGRadio.add(jRadioButton21);\n jRadioButton21.setText(\"C1-Car\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jRadioButton19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton20)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton21)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton19)\n .addComponent(jRadioButton20)\n .addComponent(jRadioButton21))\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton7)\n .addComponent(jRadioButton10))\n .addGap(23, 23, 23)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton8)\n .addComponent(jRadioButton17)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jRadioButton15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rbBCUFault)))\n .addGap(25, 25, 25)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton9)\n .addComponent(jRadioButton14)))\n .addComponent(jRadioButton18)\n .addComponent(jRadioButton11))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton7)\n .addComponent(jRadioButton8)\n .addComponent(jRadioButton9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton10)\n .addComponent(jRadioButton14)\n .addComponent(jRadioButton17))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton15)\n .addComponent(rbBCUFault))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton18)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton11)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n bttnActivate.setText(\"Activate\");\n bttnActivate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bttnActivateActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(bttnActivate))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(bttnActivate)\n .addContainerGap(9, Short.MAX_VALUE))\n );\n\n pack();\n }", "static Icon getRadioButtonIcon()\r\n/* 37: */ {\r\n/* 38: 85 */ if (radioButtonIcon == null) {\r\n/* 39: 86 */ radioButtonIcon = new RadioButtonIcon(null);\r\n/* 40: */ }\r\n/* 41: 88 */ return radioButtonIcon;\r\n/* 42: */ }", "public FormPanel(){ \n setLayout(new FlowLayout(FlowLayout.LEFT)); \n \n lbl_name = new JLabel(\"Name\");\n lbl_name.setPreferredSize(new Dimension(150, 20));\n lbl_name.setBorder(border);\n lbl_name.setToolTipText(\"AnjirrLo\");//*************************\n \n add(lbl_name);\n name = new JTextField(20);\n add(name);\n \n lbl_matric = new JLabel(\"Matric No.\");\n lbl_matric.setPreferredSize(new Dimension(150, 20));\n add(lbl_matric);\n matric = new JTextField(15);\n add(matric); \n \n String[] courses={\"[Select]\", \"KP14203 Course Name\", \"KT20363 Course Name\"};\n \n lbl_code = new JLabel(\"Course Code\");\n lbl_code.setPreferredSize(new Dimension(150, 20));\n add(lbl_code);\n code = new JComboBox<String>(courses);\n add(code); \n \n //JComboBox action listener\n code.addActionListener(new ActionListener(){\n public void actionPerformed(ActionEvent ae){\n //get selected item\n code_selection = (String) code.getSelectedItem();\n }\n }); \n \n lbl_rating = new JLabel(\"Rating\");\n lbl_rating.setPreferredSize(new Dimension(150, 20));\n add(lbl_rating);\n \n //Radio buttons and action listener\n rb1 = new JRadioButton(\"1\");\n rb1.addActionListener(this);\n rb2 = new JRadioButton(\"2\");\n rb2.addActionListener(this);\n rb3 = new JRadioButton(\"3\");\n rb3.addActionListener(this);\n rb4 = new JRadioButton(\"4\");\n rb4.addActionListener(this);\n rb5 = new JRadioButton(\"5\");\n rb5.addActionListener(this);\n add(rb1);\n add(rb2);\n add(rb3);\n add(rb4);\n add(rb5);\n \n //define button group\n bg = new ButtonGroup();\n bg.add(rb1);\n bg.add(rb2);\n bg.add(rb3);\n bg.add(rb4);\n bg.add(rb5);\n \n lbl_outcome = new JLabel(\"Outcome\");\n lbl_outcome.setPreferredSize(new Dimension(150, 20));\n add(lbl_outcome);\n \n //checkbox and item listener\n c1 = new JCheckBox(\"Basic knowledge\");\n c1.addItemListener(this);\n c2 = new JCheckBox(\"Advanced knowledge\");\n c2.addItemListener(this);\n add(c1);\n add(c2);\n \n b_submit = new JButton(\"Submit\");\n add(b_submit);\n b_clear = new JButton(\"Clear\");\n add(b_clear);\n \n //handle button submit action listener\n //view the input to output label\n //and write to file\n b_submit.addActionListener(new ActionListener(){ \n public void actionPerformed(ActionEvent e){ \n //call method \n if(printOutput()){\n writeInput();\n JOptionPane.showMessageDialog(null, \"Sucessfully saving data to \" + filePath); \n } //------------- \n } \n });\n \n //handle button clear action listener\n b_clear.addActionListener(new ActionListener(){ \n public void actionPerformed(ActionEvent e){ \n lbl_output.setText(\"Output\");\n rb_selection=\"\";\n cb_selection=\"\"; \n name.setText(\"\");\n matric.setText(\"\"); \n \n code.setSelectedIndex(0);\n bg.clearSelection();\n c1.setSelected(false);\n c2.setSelected(false);\n } \n });\n \n lbl_output = new JLabel(\"Output\");\n lbl_output.setBorder(border); \n lbl_output.setVerticalAlignment(JLabel.TOP);\n \n //add output label to scrollpane\n jsp = new JScrollPane(lbl_output);\n jsp.setPreferredSize(new Dimension(410,120));\n jsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n add(jsp); \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grbtTurno = new javax.swing.ButtonGroup();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n txtRegFuncional = new javax.swing.JTextField();\n txtNome = new javax.swing.JTextField();\n txtEndereco = new javax.swing.JTextField();\n txtTelefone = new javax.swing.JTextField();\n jPanelTurno = new javax.swing.JPanel();\n rbtManha = new javax.swing.JRadioButton();\n rbtTarde = new javax.swing.JRadioButton();\n rbtNoite = new javax.swing.JRadioButton();\n btnConsultar = new javax.swing.JButton();\n btnInserir = new javax.swing.JButton();\n btnAlterar = new javax.swing.JButton();\n btnExcluir = new javax.swing.JButton();\n btnSair = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Cadastro Atendente\");\n\n jLabel1.setText(\"Reg. Funcional\");\n\n jLabel2.setText(\"Nome\");\n\n jLabel3.setText(\"Endereço\");\n\n jLabel4.setText(\"Telefone\");\n\n txtNome.setEnabled(false);\n\n txtEndereco.setEnabled(false);\n\n txtTelefone.setEnabled(false);\n\n jPanelTurno.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Turno\"));\n\n grbtTurno.add(rbtManha);\n rbtManha.setSelected(true);\n rbtManha.setText(\"Manhã\");\n rbtManha.setEnabled(false);\n\n grbtTurno.add(rbtTarde);\n rbtTarde.setText(\"Tarde\");\n rbtTarde.setEnabled(false);\n\n grbtTurno.add(rbtNoite);\n rbtNoite.setText(\"Noite\");\n rbtNoite.setEnabled(false);\n\n javax.swing.GroupLayout jPanelTurnoLayout = new javax.swing.GroupLayout(jPanelTurno);\n jPanelTurno.setLayout(jPanelTurnoLayout);\n jPanelTurnoLayout.setHorizontalGroup(\n jPanelTurnoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanelTurnoLayout.createSequentialGroup()\n .addComponent(rbtManha)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rbtTarde)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rbtNoite)\n .addContainerGap())\n );\n jPanelTurnoLayout.setVerticalGroup(\n jPanelTurnoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelTurnoLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addGroup(jPanelTurnoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rbtManha)\n .addComponent(rbtTarde)\n .addComponent(rbtNoite)))\n );\n\n btnConsultar.setText(\"Consultar\");\n btnConsultar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnConsultarActionPerformed(evt);\n }\n });\n\n btnInserir.setText(\"Inserir\");\n btnInserir.setEnabled(false);\n btnInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnInserirActionPerformed(evt);\n }\n });\n\n btnAlterar.setText(\"Alterar\");\n btnAlterar.setEnabled(false);\n btnAlterar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAlterarActionPerformed(evt);\n }\n });\n\n btnExcluir.setText(\"Excluir\");\n btnExcluir.setEnabled(false);\n btnExcluir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExcluirActionPerformed(evt);\n }\n });\n\n btnSair.setText(\"Sair\");\n btnSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSairActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnConsultar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnInserir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnAlterar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnExcluir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnSair))\n .addComponent(jPanelTurno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtNome, javax.swing.GroupLayout.DEFAULT_SIZE, 250, Short.MAX_VALUE)\n .addComponent(txtEndereco)\n .addComponent(txtRegFuncional, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(16, Short.MAX_VALUE))\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {btnAlterar, btnConsultar, btnExcluir, btnInserir, btnSair});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(43, 43, 43)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtRegFuncional, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtEndereco, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtTelefone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanelTurno, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnConsultar)\n .addComponent(btnInserir)\n .addComponent(btnAlterar)\n .addComponent(btnExcluir)\n .addComponent(btnSair))\n .addContainerGap(10, Short.MAX_VALUE))\n );\n\n layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {btnAlterar, btnConsultar, btnExcluir, btnInserir, btnSair});\n\n pack();\n }", "private void initForm() {\n\t\tfor (int i = 0; i < userRoles.size(); i++) {\n\t\t\tlb.addItem(userRoles.get(i).value);\n\t\t}\n\t}", "public AddVisite(java.awt.Frame parent, boolean modal, EventType type) {\n super(parent, modal);\n isRadioEnable = true;\n this.type = type;\n if (type == EventType.OUTING){\n eventType = \"Sortie\";\n }\n else\n eventType = \"Visite\";\n\n System.out.println(eventType);\n initComponents();\n alerteEmptyField.setVisible(false);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n typeButtonGroup = new javax.swing.ButtonGroup();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n amountRButton = new javax.swing.JRadioButton();\n presentageRButton = new javax.swing.JRadioButton();\n amountField = new javax.swing.JTextField();\n presentageField = new javax.swing.JTextField();\n addButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setBackground(new java.awt.Color(204, 0, 204));\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Choose a discount type\");\n jLabel1.setOpaque(true);\n\n amountRButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n amountRButton.setText(\"Amount\");\n amountRButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n amountRButtonActionPerformed(evt);\n }\n });\n amountRButton.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n amountRButtonKeyPressed(evt);\n }\n });\n\n presentageRButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n presentageRButton.setText(\"Presentage\");\n presentageRButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n presentageRButtonActionPerformed(evt);\n }\n });\n presentageRButton.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n presentageRButtonKeyPressed(evt);\n }\n });\n\n amountField.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); // NOI18N\n amountField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n amountFieldActionPerformed(evt);\n }\n });\n amountField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n amountFieldKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n amountFieldKeyReleased(evt);\n }\n });\n\n presentageField.setFont(new java.awt.Font(\"Times New Roman\", 0, 18)); // NOI18N\n presentageField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n presentageFieldActionPerformed(evt);\n }\n });\n presentageField.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n presentageFieldKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n presentageFieldKeyReleased(evt);\n }\n });\n\n addButton.setBackground(new java.awt.Color(6, 137, 6));\n addButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n addButton.setForeground(new java.awt.Color(255, 255, 255));\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(presentageRButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(amountRButton, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(amountField, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(presentageField, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(132, 132, 132)\n .addComponent(addButton, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(amountRButton)\n .addComponent(amountField, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(presentageRButton)\n .addComponent(presentageField, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(addButton, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n jRadioButton_Cliente = new javax.swing.JRadioButton();\n jRadioButton_Profissional = new javax.swing.JRadioButton();\n jRadioButton_Admin = new javax.swing.JRadioButton();\n jLabel1 = new javax.swing.JLabel();\n jButton_Criar = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jRadioButton_Cliente.setText(\"Cliente\");\n\n jRadioButton_Profissional.setText(\"Profissional\");\n\n jRadioButton_Admin.setText(\"Administrador\");\n\n jLabel1.setText(\"Tipo de Usuário\");\n\n jButton_Criar.setText(\"Criar\");\n jButton_Criar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_CriarActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Voltar\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton_Criar)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 155, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jRadioButton_Admin)\n .addComponent(jRadioButton_Profissional)\n .addComponent(jRadioButton_Cliente)\n .addComponent(jLabel1))\n .addGap(144, 144, 144))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(73, 73, 73)\n .addComponent(jRadioButton_Cliente)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton_Profissional)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jRadioButton_Admin)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 93, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton_Criar)\n .addComponent(jButton1))\n .addContainerGap())\n );\n\n pack();\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // Radio button\n radioButton();\n }", "private void createProgram() {\n String name = createNameEt.getText().toString().trim();\n String description = createDescriptionEt.getText().toString().trim();\n int radioId = createTypeRGrp.getCheckedRadioButtonId();\n createTypeRBtn = findViewById(radioId);\n String type = createTypeRBtn.getText().toString();\n// String type = createTypeSp.getSelectedItem().toString().trim();\n String dateTime = createDateTimeEt.getText().toString().trim();\n String link = createLinkEt.getText().toString().trim();\n String filename = createFilenameTv.getText().toString().trim();\n\n if(name.isEmpty()) {\n createNameEt.setError(\"Program name is required!\");\n createNameEt.requestFocus();\n return;\n }\n\n else if(description.isEmpty()) {\n createDescriptionEt.setError(\"Description is required!\");\n createDescriptionEt.requestFocus();\n return;\n }\n\n else if(dateTime.isEmpty()) {\n createDateTimeEt.setError(\"Date and time of program is required!\");\n createDateTimeEt.requestFocus();\n\n Toast t = Toast.makeText(\n getApplicationContext(),\n \"Date and time of program is required!\",\n Toast.LENGTH_SHORT\n );\n t.show();\n\n return;\n }\n\n else if(!validProgramDate) {\n createDateTimeEt.setError(\"Invalid date and time of program!\");\n createDateTimeEt.requestFocus();\n\n Toast t = Toast.makeText(\n getApplicationContext(),\n \"Invalid date and time of program!\",\n Toast.LENGTH_SHORT\n );\n t.show();\n\n return;\n }\n\n else if(!Patterns.WEB_URL.matcher(link).matches()) {\n createLinkEt.setError(\"Please provide a valid link!\");\n createLinkEt.requestFocus();\n return;\n }\n\n else if(photoURL == null) {\n Toast t = Toast.makeText(\n getApplicationContext(),\n \"Uploading a photo is required!\",\n Toast.LENGTH_SHORT\n );\n t.show();\n\n return;\n }\n\n else {\n storeProgram();\n }\n\n }", "private RadioMenuItem getRadioMenuItem(String text,\n boolean isSelected,\n ToggleGroup toggleGroup,\n EventHandler<ActionEvent> handler) {\n RadioMenuItem mi = new RadioMenuItem(text);\n mi.setSelected(isSelected);\n mi.setOnAction(handler);\n mi.setToggleGroup(toggleGroup);\n\n return mi;\n }", "public QuizCreatorView() {\n answerInput1.setText(\"\");\n answerInput2.setText(\"\");\n answerInput3.setText(\"\");\n answerInput4.setText(\"\");\n optionsGroup = new ButtonGroup();\n optionsGroup.add(OptionA);\n optionsGroup.add(OptionB);\n optionsGroup.add(OptionC);\n optionsGroup.add(OptionD);\n }", "public IMRSelectForm() {\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "public JRadioButton getJRadioButtonBOhne()\n\t{\n\t\tif (jRadioButtonBOhne == null)\n\t\t{\n\t\t\tjRadioButtonBOhne = new JRadioButton();\n\t\t\tjRadioButtonBOhne.setText(\"ohne\");\n\t\t\tjRadioButtonBOhne.setVisible(false);\n\t\t\tjRadioButtonBOhne.setBounds(125, 145, 70, 20);\n\t\t\tjRadioButtonBOhne.addItemListener(new ItemListener() {\n\t\t\t\tpublic void itemStateChanged(ItemEvent evt) {\n\t\t\t\t\tonCheckBoxBreak(0, evt);}});\n\t\t\tjRadioButtonBOhne.addKeyListener(keyListener);\n\t\t}\n\t\treturn jRadioButtonBOhne;\n\t}", "public void initialize(){\n addButton.setDisable(true);\n radio2.setDisable(true);\n radio1.setSelected(true);\n radio3.setDisable(true);\n radioGreen.setSelected(true);\n\n addButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n Stage stage = (Stage) addButton.getScene().getWindow();\n processResults();\n stage.close();\n }\n });\n\n\n cancelButton.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n Stage stage = (Stage) addButton.getScene().getWindow();\n stage.close();\n }\n });\n }", "public void createControl(Composite parent) {\r\n\t\tComposite container = new Composite(parent, SWT.NULL);\r\n\t\tfinal GridLayout gridLayout = new GridLayout();\r\n\t\tcontainer.setLayout(gridLayout);\r\n\t\tsetControl(container);\r\n\r\n\t\tfinal SubscriptionWorkingCopy workingCopy = wizard.getWorkingCopy();\r\n\r\n\t\tfinal SashForm sashForm = new SashForm(container, SWT.NONE);\r\n\t\tsashForm.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\r\n\t\tGroup treeGroup = new Group(sashForm, SWT.NONE);\r\n\t\ttreeGroup.setLayout(new FillLayout());\r\n\t\ttreeGroup.setText(\"Detected feeds\");\r\n\r\n\t\tfinal TreeViewer treeViewer = new TreeViewer(treeGroup, SWT.BORDER);\r\n\t\ttreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\t\t\tpublic void selectionChanged(final SelectionChangedEvent event) {\r\n\t\t\t\tISelection selection = event.getSelection();\r\n\t\t\t\tif (selection instanceof IStructuredSelection) {\r\n\t\t\t\t\tObject selected = ((IStructuredSelection) selection)\r\n\t\t\t\t\t\t\t.getFirstElement();\r\n\t\t\t\t\tif (selected instanceof Subscription) {\r\n\t\t\t\t\t\tworkingCopy.copy((Subscription) selected);\r\n\t\t\t\t\t\turlText.setText(workingCopy.getURL());\r\n\t\t\t\t\t\tcombo.setText(workingCopy.getTitle());\r\n\t\t\t\t\t\tif (authenticationButton != null) {\r\n\t\t\t\t\t\t\tIFeedCatalog catalog = ((Subscription) selected)\r\n\t\t\t\t\t\t\t\t\t.getCatalog();\r\n\t\t\t\t\t\t\tif (catalog.supportsAuthentication()) {\r\n\t\t\t\t\t\t\t\tauthenticationButton.setEnabled(true);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tauthenticationButton.setSelection(false);\r\n\t\t\t\t\t\t\t\tauthenticationButton.setEnabled(false);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tTree tree = treeViewer.getTree();\r\n\t\ttree.setFocus();\r\n\t\ttreeViewer.setContentProvider(new ITreeContentProvider() {\r\n\r\n\t\t\tprivate IFeedCatalog[] catalogs;\r\n\r\n\t\t\tpublic Object[] getElements(Object inputElement) {\r\n\t\t\t\treturn catalogs;\r\n\t\t\t}\r\n\r\n\t\t\tpublic void dispose() {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void inputChanged(Viewer viewer, Object oldInput,\r\n\t\t\t\t\tObject newInput) {\r\n\t\t\t\tcatalogs = AggregatorPlugin.getDefault().getCatalogs();\r\n\t\t\t}\r\n\r\n\t\t\tpublic Object[] getChildren(Object parentElement) {\r\n\t\t\t\tif (parentElement instanceof IFeedCatalog) {\r\n\t\t\t\t\t((IFeedCatalog) parentElement).getLabels();\r\n\t\t\t\t\treturn ((IFeedCatalog) parentElement).getFeeds();\r\n\t\t\t\t}\r\n\t\t\t\tif (parentElement instanceof IFeedCatalog[]) {\r\n\t\t\t\t\treturn catalogs;\r\n\t\t\t\t}\r\n\t\t\t\treturn new Object[0];\r\n\t\t\t}\r\n\r\n\t\t\tpublic Object getParent(Object element) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tpublic boolean hasChildren(Object element) {\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t});\r\n\t\ttreeViewer.setInput(this);\r\n\t\ttreeViewer.setLabelProvider(new LabelProvider() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String getText(Object element) {\r\n\t\t\t\tif (element instanceof IFeedCatalog) {\r\n\t\t\t\t\treturn ((IFeedCatalog) element).getName();\r\n\t\t\t\t}\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\treturn ((Subscription) element).getTitle();\r\n\t\t\t\t}\r\n\t\t\t\treturn super.getText(element);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Image getImage(Object element) {\r\n\t\t\t\tif (element instanceof IFeedCatalog) {\r\n\t\t\t\t\tIFeedCatalog catalog = (IFeedCatalog) element;\r\n\t\t\t\t\tImageRegistry registry = AggregatorUIPlugin.getDefault()\r\n\t\t\t\t\t\t\t.getImageRegistry();\r\n\t\t\t\t\tString id = \"catalog.\" + catalog.getId() + \".\"\r\n\t\t\t\t\t\t\t+ catalog.getIcon();\r\n\t\t\t\t\tif (registry.get(id) == null) {\r\n\t\t\t\t\t\tImageDescriptor img = ImageDescriptor\r\n\t\t\t\t\t\t\t\t.createFromURL(catalog.getIcon());\r\n\t\t\t\t\t\tregistry.put(id, img);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn registry.get(id);\r\n\t\t\t\t}\r\n\t\t\t\tif (element instanceof Subscription) {\r\n\t\t\t\t\tImageRegistry registry = AggregatorUIPlugin.getDefault()\r\n\t\t\t\t\t\t\t.getImageRegistry();\r\n\t\t\t\t\treturn registry.get(AggregatorUIPlugin.IMG_FEED_OBJ);\r\n\t\t\t\t}\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tComposite detailsGroup = new Composite(sashForm, SWT.NONE);\r\n\t\tdetailsGroup.setLayout(new FillLayout(SWT.VERTICAL));\r\n\t\tcreateConnectionGroup(workingCopy, detailsGroup);\r\n\t\tcreateAuthenticationGroup(workingCopy, detailsGroup);\r\n\t\tsashForm.setWeights(new int[] { 1, 1 });\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n grupo = new javax.swing.ButtonGroup();\n jPanel2 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n txtTipo = new javax.swing.JTextField();\n txtDescricao = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n btnSalvar = new javax.swing.JButton();\n btnVoltar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n txtLucro = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n txtEstoque = new javax.swing.JTextField();\n txtCusto = new javax.swing.JSpinner();\n txtVenda = new javax.swing.JSpinner();\n jPanel4 = new javax.swing.JPanel();\n jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"PRODUTOS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 18))); // NOI18N\n\n jLabel9.setText(\"Tipo:\");\n\n jLabel8.setText(\"Descrição:\");\n\n jLabel1.setText(\"Nome : \");\n\n txtNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomeActionPerformed(evt);\n }\n });\n\n btnSalvar.setText(\"Salvar\");\n btnSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalvarActionPerformed(evt);\n }\n });\n\n btnVoltar.setText(\"Voltar\");\n btnVoltar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVoltarActionPerformed(evt);\n }\n });\n\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel2.setText(\"Valor de Custo:\");\n\n jLabel3.setText(\"Lucro(%):\");\n\n jLabel4.setText(\"Valor de Venda:\");\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(\"ESTOQUE\"));\n\n txtEstoque.setEditable(false);\n txtEstoque.setFont(new java.awt.Font(\"Dialog\", 0, 36)); // NOI18N\n txtEstoque.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(txtEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(txtEstoque, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n txtCusto.setModel(new javax.swing.SpinnerNumberModel(0.0f, 0.0f, null, 1.0f));\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtVenda))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtLucro, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCusto, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 0, Short.MAX_VALUE))))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtCusto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtLucro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(20, 20, 20))\n );\n\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(\"FORNECEDOR\"));\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 508, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 69, Short.MAX_VALUE)\n );\n\n jRadioButton1.setText(\"jRadioButton1\");\n jRadioButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton1ActionPerformed(evt);\n }\n });\n\n jRadioButton2.setText(\"jRadioButton2\");\n jRadioButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jRadioButton2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtDescricao))\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(21, 21, 21)\n .addComponent(txtNome)))\n .addGap(18, 18, 18)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(btnSalvar)\n .addGap(18, 18, 18)\n .addComponent(btnVoltar)\n .addGap(18, 18, 18)\n .addComponent(btnCancelar)))\n .addContainerGap())\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(130, 130, 130)\n .addComponent(jRadioButton1)\n .addGap(38, 38, 38)\n .addComponent(jRadioButton2)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnVoltar)\n .addComponent(btnCancelar)\n .addComponent(btnSalvar)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(txtDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel9)\n .addComponent(txtTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n notEducated = new javax.swing.JRadioButton();\n jLabel10 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n notPrepared = new javax.swing.JRadioButton();\n isPrepared = new javax.swing.JRadioButton();\n isChildrenOnBoard = new javax.swing.JRadioButton();\n notOnBoardChildren = new javax.swing.JRadioButton();\n notGuilty = new javax.swing.JRadioButton();\n jLabel9 = new javax.swing.JLabel();\n isGuilty = new javax.swing.JRadioButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n notComfortable = new javax.swing.JRadioButton();\n txtEmail = new javax.swing.JTextField();\n isComfortable = new javax.swing.JRadioButton();\n txtUsername = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n isBigChange = new javax.swing.JRadioButton();\n notBigChange = new javax.swing.JRadioButton();\n isPromise = new javax.swing.JRadioButton();\n messageTxt = new javax.swing.JTextField();\n notPromise = new javax.swing.JRadioButton();\n patientID1 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n isFinance = new javax.swing.JRadioButton();\n notSelectFinance = new javax.swing.JRadioButton();\n isEducated = new javax.swing.JRadioButton();\n btnReject = new javax.swing.JButton();\n btnAccept = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n setBackground(java.awt.SystemColor.activeCaption);\n setMaximumSize(new java.awt.Dimension(1245, 1000));\n setMinimumSize(new java.awt.Dimension(1245, 1000));\n setPreferredSize(new java.awt.Dimension(1245, 1000));\n\n notEducated.setText(\"No\");\n notEducated.setEnabled(false);\n\n jLabel10.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel10.setText(\"You are educated about the realities of the type of adoption you are pursuing.\");\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel6.setText(\"You are financially prepared for the child.\");\n\n notPrepared.setText(\"No\");\n notPrepared.setEnabled(false);\n\n isPrepared.setText(\"Yes\");\n isPrepared.setEnabled(false);\n\n isChildrenOnBoard.setText(\"Yes\");\n isChildrenOnBoard.setEnabled(false);\n\n notOnBoardChildren.setText(\"No\");\n notOnBoardChildren.setEnabled(false);\n\n notGuilty.setText(\"No\");\n notGuilty.setEnabled(false);\n\n jLabel9.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel9.setText(\"Your current children are on board with the situation.\");\n\n isGuilty.setText(\"Yes\");\n isGuilty.setEnabled(false);\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel5.setText(\"You are prepared for the “worst case scenario.”\");\n\n jLabel12.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel12.setText(\"You want to say “yes” not out of guilt.\");\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel4.setText(\"Email*:\");\n\n notComfortable.setText(\"No\");\n notComfortable.setEnabled(false);\n\n txtEmail.setEnabled(false);\n\n isComfortable.setText(\"Yes\");\n isComfortable.setEnabled(false);\n\n txtUsername.setEnabled(false);\n\n jLabel8.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel8.setText(\"Your partner is comfortable with the situation.\");\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel1.setText(\"Username*:\");\n\n isBigChange.setText(\"Yes\");\n isBigChange.setEnabled(false);\n\n notBigChange.setText(\"No\");\n notBigChange.setEnabled(false);\n\n isPromise.setText(\"Yes\");\n isPromise.setEnabled(false);\n\n messageTxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n messageTxtActionPerformed(evt);\n }\n });\n\n notPromise.setText(\"No\");\n notPromise.setEnabled(false);\n\n patientID1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n patientID1.setText(\"Message:\");\n\n jLabel11.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel11.setText(\"You plan to make promises or commitments you actually can or will keep\");\n\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel7.setText(\"You are able or willing to make BIG changes.\");\n\n isFinance.setText(\"Yes\");\n isFinance.setEnabled(false);\n\n notSelectFinance.setText(\"No\");\n notSelectFinance.setEnabled(false);\n\n isEducated.setText(\"Yes\");\n isEducated.setEnabled(false);\n\n btnReject.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n btnReject.setText(\"Reject\");\n\n btnAccept.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n btnAccept.setText(\"Accept\");\n btnAccept.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAcceptActionPerformed(evt);\n }\n });\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel2.setText(\"Parent Profile\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(89, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addGroup(layout.createSequentialGroup()\n .addComponent(isComfortable)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notComfortable))\n .addComponent(jLabel8)\n .addGroup(layout.createSequentialGroup()\n .addComponent(isBigChange)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notBigChange))\n .addComponent(jLabel7)\n .addGroup(layout.createSequentialGroup()\n .addComponent(isFinance)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notSelectFinance))\n .addComponent(jLabel6)\n .addGroup(layout.createSequentialGroup()\n .addComponent(isPrepared)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notPrepared))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtUsername, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addComponent(txtEmail))\n .addGap(26, 26, 26)))\n .addGap(51, 51, 51)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(isEducated)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notEducated))\n .addComponent(jLabel10)\n .addGroup(layout.createSequentialGroup()\n .addComponent(isGuilty)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notGuilty))\n .addGroup(layout.createSequentialGroup()\n .addComponent(isPromise)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notPromise))\n .addComponent(jLabel11)\n .addGroup(layout.createSequentialGroup()\n .addComponent(isChildrenOnBoard)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(notOnBoardChildren))\n .addComponent(jLabel9)\n .addComponent(jLabel12))\n .addGap(101, 101, 101))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(343, 343, 343)\n .addComponent(btnReject, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(187, 187, 187)\n .addComponent(btnAccept, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(308, 308, 308)\n .addComponent(patientID1)\n .addGap(44, 44, 44)\n .addComponent(messageTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 387, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(469, 469, 469)\n .addComponent(jLabel2)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addGap(50, 50, 50)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(txtUsername, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(53, 53, 53)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 136, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isPrepared)\n .addComponent(notPrepared))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isFinance)\n .addComponent(notSelectFinance))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isBigChange)\n .addComponent(notBigChange))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isComfortable)\n .addComponent(notComfortable)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isChildrenOnBoard)\n .addComponent(notOnBoardChildren))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isEducated)\n .addComponent(notEducated))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isPromise)\n .addComponent(notPromise))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isGuilty)\n .addComponent(notGuilty))))\n .addGap(42, 42, 42)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(patientID1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(messageTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(60, 60, 60)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnReject, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnAccept, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(213, 213, 213))\n );\n }", "public newRelationship() {\n initComponents();\n }", "public VirtualCheckBox createCheckBox ();", "private JRadioButton getJRadioButtonButtReflect() {\r\n\t\t// if (buttReflect == null) {\r\n\t\tbuttReflect = new JRadioButton();\r\n\t\tbuttReflect.setText(\"Reflect\");\r\n\t\tbuttReflect.setToolTipText(\"filling borders with copies of the whole image\");\r\n\t\tbuttReflect.addActionListener(this);\r\n\t\tbuttReflect.setActionCommand(\"parameter\");\r\n\t\t// }\r\n\t\treturn buttReflect;\r\n\t}", "private void createRowForNewRegexButton(Composite compo)\n {\n buttonNewRegex = toolkit.createButton(section, \"New Regex...\", SWT.PUSH); //$NON-NLS-1$\n buttonGridData(buttonNewRegex, SWT.TOP);\n buttonNewRegex.addSelectionListener(new SelectionListener()\n {\n public void widgetDefaultSelected(SelectionEvent e)\n {\n }\n\n public void widgetSelected(SelectionEvent e)\n {\n PopupRegexDialog dialog = new PopupRegexDialog(getShell());\n if (dialog.open() == Dialog.OK)\n {\n // if the first field is not set\n if (valueToRecognizeReq == null)\n {\n valueToRecognizeReq = new Regex(dialog.getRegexInput());\n reqIdComponent.setValueText(valueToRecognizeReq.getText());\n }\n else\n {\n tree.add(new Regex(dialog.getRegexInput()));\n listFormat.refresh();\n }\n controller.removeDocumentType();\n updateWizard();\n }\n }\n });\n }", "public static void insertRadios(Field field) {\n\t\t\n\t\t Connection con = null; \n\t Statement stmt = null; \n\t Statement delstmt = null;\n\t int i;\n\t int result = 0; \n\t try { \n\t Class.forName(\"org.hsqldb.jdbc.JDBCDriver\"); \n\t con = DriverManager.getConnection(\"jdbc:hsqldb:mem:avdosdb\", \"SA\", \"\");\n\t stmt = con.createStatement();\n\t \n\t //Temporary fix for duplicate radio entries\n\t delstmt = con.createStatement();\n\t delstmt.executeUpdate(\"DELETE FROM radio_fields WHERE field_id = '\"+field.getTheId()+\"' AND form_name = '\"+field.getTheFormName()+\"'\");\n\t \n\t //Loop through radio fields array sent from web and insert them, requires rework later\n\t for (i = 0; i < field.getTheRadios().length; i++) {\n\t\t result = stmt.executeUpdate(\"INSERT INTO radio_fields (field_id, form_name, radio_value) VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheRadios()[i]+\"')\");\n\t\t \n\t\t System.out.println(field.getTheId() + \": \" + field.getTheRadios()[i] + \": -- \" + field.getTheFormName() );\n\t } \n\t con.commit(); \n\t }catch (Exception e) { \n\t e.printStackTrace(System.out); \n\t } \n\t System.out.println(result+\" rows effected\"); \n\t }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n l1 = new javax.swing.JLabel();\n l2 = new javax.swing.JLabel();\n l3 = new javax.swing.JLabel();\n r1 = new javax.swing.JRadioButton();\n r2 = new javax.swing.JRadioButton();\n r3 = new javax.swing.JRadioButton();\n b1 = new javax.swing.JButton();\n r4 = new javax.swing.JRadioButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"LIBRRIAN MODULE\");\n\n l1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n l1.setForeground(new java.awt.Color(255, 0, 0));\n l1.setText(\"WELCOME TO CBIT LIBRARY MANAGEMENT SYSTEM\");\n\n l2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Logo.jpg\"))); // NOI18N\n l2.setText(\"jLabel1\");\n\n l3.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n l3.setForeground(new java.awt.Color(0, 102, 0));\n l3.setText(\"PLEASE CHOOSE THE JOB\");\n\n r1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n r1.setText(\"EMPLOYEE REGISTRATION\");\n r1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n r1ActionPerformed(evt);\n }\n });\n\n r2.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n r2.setText(\"VIEW PROFILES/ DATABSES\");\n r2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n r2ActionPerformed(evt);\n }\n });\n\n r3.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n r3.setText(\"ANALYZE TRANSACTIONS\");\n r3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n r3ActionPerformed(evt);\n }\n });\n\n b1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n b1.setText(\"OK\");\n b1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n b1ActionPerformed(evt);\n }\n });\n\n r4.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n r4.setText(\"APPROVE LEAVE APPLICATIONS\");\n r4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n r4ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(l1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(119, 119, 119)\n .addComponent(r1))\n .addGroup(layout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(l2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(118, 118, 118)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(r3)\n .addComponent(r2)\n .addComponent(r4)))\n .addGroup(layout.createSequentialGroup()\n .addGap(76, 76, 76)\n .addComponent(l3)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(177, 177, 177)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(24, 24, 24)\n .addComponent(l1, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(l2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(l3, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(r1)\n .addGap(18, 18, 18)\n .addComponent(r2)\n .addGap(18, 18, 18)\n .addComponent(r3)\n .addGap(18, 18, 18)\n .addComponent(r4)\n .addGap(27, 27, 27)\n .addComponent(b1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(34, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void obtener_radiobuttons() {\n\n\t\tint selectedId = radioSexGroup.getCheckedRadioButtonId();\n\t\tradioSexButton = (RadioButton) findViewById(selectedId);\n\t\tselectedId = radioTipoGroup.getCheckedRadioButtonId();\n\t\tradioTipoButton = (RadioButton) findViewById(selectedId);\n\t}", "public MechanicForm() {\n initComponents();\n }", "public BeerForm() {\n ButtonGroup buttonGroup = new ButtonGroup();\n buttonGroup.add(radioButtonAllStyles);\n buttonGroup.add(radioButtonStyle);\n buttonGroup.add(radioButtonAllBeers);\n buttonGroup.add(radioButtonBeerWithId);\n\n mainButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //Selektieren Button ausfindig machen\n AbstractButton selectedButton = null;\n for (Enumeration<AbstractButton> buttons = buttonGroup.getElements(); buttons.hasMoreElements(); ) {\n AbstractButton button = buttons.nextElement();\n if (button.isSelected()) {\n selectedButton = button;\n }\n }\n\n //Model um das hinzufügen von Zeilen zu ermöglichen\n DefaultListModel<String> list = ((DefaultListModel<String>) listResults.getModel());\n //Jedes mal zuerst die Liste Leeren\n list.clear();\n if (selectedButton == radioButtonAllStyles) {\n /*\n * Erzeugt Guiausgabe der Bierarten.\n * Die id wird mit \"::\" vor dem Bierart Namen ausgeben.\n * */\n beerService.getBeerStyles()\n .forEach((k, v) -> list.addElement(k + \"::\" + v));\n } else if (selectedButton == radioButtonStyle) {\n /*\n * Erzeugt Guiausgabe der Bierarten, welche die Zeichenfolge ″search″ im Namen enthalten.\n * Die id wird mit \"::\" vor dem Bierart Namen ausgeben.\n *\n * @param searchString Zeichenfolge die enthalten sein soll\n * */\n beerService.getBeerStylesBySearchStr(textFieldArgs.getText())\n .forEach((k, v) -> list.addElement(k + \"::\" + v));\n } else if (selectedButton == radioButtonAllBeers) {\n /*\n * Gibt zeilenweise ID und Name mit \"::\" getrennt der Biere aus.\n * */\n beerService.getBeers()\n .forEach(x -> list.addElement((x.getId() + \"::\" + x.getName())));\n } else if (selectedButton == radioButtonBeerWithId) {\n /*\n * Gibt in einer Zeile ID und Namen und in einer zweiten Zeile die Beschreibung\n * des entsprechenden Bieres aus.\n *\n * @param id id nach der gesucht werden soll\n * */\n Beer beer = beerService.getBeerById(textFieldArgs.getText());\n if (beer != null) {\n list.addElement(beer.getId() + \"::\" + beer.getName());\n }\n }\n }\n });\n }", "private void makeButton(JRadioButtonMenuItem r, int i){\n\tr.setAccelerator(KeyStroke.getKeyStroke(\n\t\t\ti+48, ActionEvent.ALT_MASK));\n\tr.addActionListener(e -> {\n\t\tng = i;\n\t\tthis.revalidate();\n\t });\n\n\tgroup.add(r);\n\tsubmenu.add(r);\n }" ]
[ "0.68534696", "0.6677421", "0.6624927", "0.6594383", "0.65787685", "0.657054", "0.6451075", "0.6311874", "0.62491137", "0.61918527", "0.6147188", "0.6121048", "0.61166424", "0.6098444", "0.608268", "0.60751396", "0.60553825", "0.59495384", "0.5947966", "0.59466845", "0.59414166", "0.59161156", "0.59032995", "0.5901762", "0.5874076", "0.5808627", "0.5800643", "0.5797533", "0.57802117", "0.5776146", "0.5770331", "0.57665354", "0.5690998", "0.5690874", "0.5682727", "0.56779706", "0.56668353", "0.5665507", "0.56504494", "0.5640558", "0.5637693", "0.5635381", "0.5621974", "0.56219244", "0.56066376", "0.5604766", "0.5602869", "0.55823696", "0.5572206", "0.5571894", "0.5567477", "0.55476993", "0.5539298", "0.55244154", "0.55226225", "0.5522244", "0.5510766", "0.5501136", "0.5499436", "0.5497467", "0.54843557", "0.5481538", "0.5446433", "0.54397255", "0.5439246", "0.54391927", "0.5438181", "0.5431749", "0.5421803", "0.5413042", "0.5404321", "0.54025763", "0.53953826", "0.5393374", "0.53871036", "0.53826946", "0.53821445", "0.53801566", "0.5378012", "0.5372366", "0.5372149", "0.5370883", "0.5370841", "0.5370423", "0.53697205", "0.53673375", "0.53600734", "0.53566694", "0.53549016", "0.53543514", "0.5352494", "0.53514695", "0.53510755", "0.5349111", "0.5341443", "0.5340819", "0.53383094", "0.5336874", "0.5334462", "0.53231907" ]
0.7112177
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btnPlayURL = new javax.swing.JButton(); btnCancelPlayback = new javax.swing.JButton(); txfURL = new javax.swing.JTextField(); txfShortID = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); lstFavoriten = new javax.swing.JList(); btnShortIDSave = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); btnSelSender = new javax.swing.JButton(); btnF5 = new javax.swing.JButton(); lblStation = new javax.swing.JLabel(); btnPlayURL.setText("URL abspielen"); btnPlayURL.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnPlayURLActionPerformed(evt); } }); btnCancelPlayback.setText("Stream Stop"); btnCancelPlayback.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCancelPlaybackActionPerformed(evt); } }); lstFavoriten.setModel(new DefaultListModel<String>()); lstFavoriten.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane1.setViewportView(lstFavoriten); btnShortIDSave.setText("Kurzname speichern"); btnShortIDSave.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnShortIDSaveActionPerformed(evt); } }); jLabel1.setText("URL"); jLabel2.setText("KurzID"); btnSelSender.setText("Sender wählen"); btnSelSender.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSelSenderActionPerformed(evt); } }); btnF5.setText("Aktualisieren"); btnF5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnF5ActionPerformed(evt); } }); lblStation.setText("Aktuelle Station: "); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(lblStation, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(txfURL) .addComponent(txfShortID) .addComponent(jLabel1) .addComponent(jLabel2) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 277, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(btnPlayURL, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnSelSender, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(btnF5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) .addGroup(layout.createSequentialGroup() .addComponent(btnShortIDSave) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(btnCancelPlayback, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addComponent(lblStation) .addGap(19, 19, 19) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 337, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(btnF5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnSelSender))) .addGap(18, 18, 18) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txfURL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnPlayURL)) .addGap(18, 18, 18) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txfShortID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnShortIDSave)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnCancelPlayback, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public 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 frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73208135", "0.7291972", "0.7291972", "0.7291972", "0.7287118", "0.72494483", "0.7214677", "0.72086734", "0.7197058", "0.71912485", "0.7185818", "0.71596724", "0.71489036", "0.7094215", "0.7082007", "0.70579666", "0.6988024", "0.6978225", "0.6955616", "0.6955434", "0.69458616", "0.69446844", "0.6937443", "0.69325924", "0.69280547", "0.69266534", "0.69264925", "0.6912501", "0.6911917", "0.6894212", "0.6893167", "0.68922186", "0.6892184", "0.6890009", "0.688444", "0.6883334", "0.68823224", "0.6879555", "0.68768615", "0.6875667", "0.68722147", "0.6860655", "0.68569547", "0.6856804", "0.6856167", "0.6855431", "0.6854634", "0.68536645", "0.68536645", "0.684493", "0.6837617", "0.68372554", "0.68303156", "0.6828861", "0.6827668", "0.68246883", "0.68245596", "0.6818436", "0.6818284", "0.6812057", "0.681017", "0.68095857", "0.68093693", "0.6809163", "0.68027467", "0.67963576", "0.6794979", "0.6793972", "0.6792247", "0.67903155", "0.67896885", "0.67893314", "0.6783135", "0.6767654", "0.67672074", "0.67655265", "0.6757984", "0.6757062", "0.6754005", "0.67513984", "0.674334", "0.6740801", "0.6737678", "0.6737453", "0.6734575", "0.67281", "0.6727845", "0.67219335", "0.67169774", "0.67163646", "0.6715783", "0.67106164", "0.6708574", "0.6705358", "0.67030907", "0.6701408", "0.6700769", "0.66998196", "0.6695165", "0.66917574", "0.6691252" ]
0.0
-1
get latest notated img and count
@RequestMapping(value = "/img/getLatestWork", method = RequestMethod.GET) public UserWork getLatestWork(@RequestParam String username, @RequestParam String notateType) { UserWork work = new UserWork(); SampleVo sample = sampleService.getLatestSample(username, notateType); long count = sampleService.getCount(username, notateType); work.setCount(count); work.setSample(sample); return work; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateLatestPic() {\n\t\tPicture l = this.pictures.get(0);\n\t\tfor (int i=1;i<this.pictures.size();i++) {\n\t\t\tif (this.pictures.get(i).date.compareTo(l.date)>0) {\n\t\t\t\tl = this.pictures.get(i);\n\t\t\t}\n\t\t}\n\t\tthis.latestPic = l;\n\t}", "private static ImageFile mostTaggedImage()\n {\n ImageFile currentMostTaggedImage;\n currentMostTaggedImage = Log.allImages.get(0);\n for (ImageFile i : Log.allImages)\n {\n if (i.tagList.size() > currentMostTaggedImage.tagList.size())\n {\n currentMostTaggedImage = i;\n }\n }\n return currentMostTaggedImage;\n }", "int imageCount();", "int getMaxRawImages();", "public int getImageCount() {\n return imageCount;\n }", "public void updateEarliestPic() {\n\t\tPicture e = this.pictures.get(0);\n\t\tfor (int i=1;i<this.pictures.size();i++) {\n\t\t\tif (this.pictures.get(i).date.compareTo(e.date)<0) {\n\t\t\t\te = this.pictures.get(i);\n\t\t\t}\n\t\t}\n\t\tthis.earliestPic = e;\n\t}", "public String getLatestDateOnPhotos(String rpiId) throws SQLException;", "int getImagesByTransformCount();", "int getImgDataCount();", "public static int getLastImageId(ContentResolver cr) {\n final String[] imageColumns = { MediaStore.Images.Media._ID,\n MediaStore.Images.Media.DATA };\n final String imageOrderBy = MediaStore.Images.Media._ID + \" DESC\";\n Cursor imageCursor = cr.query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, imageColumns,\n null, null, imageOrderBy);\n if (imageCursor.moveToFirst()) {\n int id = imageCursor.getInt(imageCursor\n .getColumnIndex(MediaStore.Images.Media._ID));\n imageCursor.close();\n return id;\n } else {\n return 0;\n }\n }", "int getImagesByHandlerCount();", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "private int calculateImagesNotFound() {\n int imagesNotFound = 0;\n for (int count : countImagesNotFound) {\n imagesNotFound += count;\n }\n\n return imagesNotFound;\n }", "public int getimagecounter() {\n\t\treturn imagecounter;\r\n\t}", "public void updateRecordCurrentImageCount(final Record record) {\n String recordPath = getPathForRecord(record);\n File recordFolder = new File(recordPath);\n if (recordFolder.exists()) {\n File[] recordFiles = recordFolder.listFiles();\n record.photoCount = recordFiles != null ? recordFiles.length - 1 : 0;\n }\n }", "public static void incrementCountNotImage(int actual) {\n ++countImagesNotFound[actual];\n }", "int getBurstNImages();", "public Image getImg(){\n\t\treturn imgs[count];\n\t}", "public int getImageNumber() {\n return imageNumber;\n }", "public int getPicCount(){\n return picCount;\n }", "public BufferedImage getImage() { // operates every 10 ms\n\t\tif(isLife()) { // alive\n\t\t\treturn images[0]; // return images[0]\n\t\t}else if(isDead()) { // dead\n\t\t\tBufferedImage img = images[index++]; // start from the second image\n\t\t\tif(index==images.length) { // if at the last image\n\t\t\t\tstate = REMOVE; // change the state to REMOVE\n\t\t\t}\n\t\t\treturn img; // return explosion image\n\t\t}\n\t\treturn null; // return null when state removed\n\t\t/*\n\t\t * index=1\n\t\t * 10M img=images[1] index=2 return images[1]\n\t\t * 20M img=images[2] index=3 return images[2]\n\t\t * 30M img=images[3] index=4 return images[3]\n\t\t * 40M img=images[4] index=5(REMOVE) \t\treturn images[4]\n\t\t * 50M return null\n\t\t */\n\t}", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "public int getNoOfImages() {\n return noOfImages;\n }", "long getLastAccessed( );", "int getHotelImageURLsCount();", "private int getPetImages() {\n int nUserPets = user.getPets().size();\n Drawable defaultDrawable = getResources().getDrawable(R.drawable.single_paw, null);\n Bitmap defaultBitmap = ((BitmapDrawable) defaultDrawable).getBitmap();\n countImagesNotFound = new int[nUserPets];\n Arrays.fill(countImagesNotFound, 0);\n\n ExecutorService executorService = Executors.newCachedThreadPool();\n startRunnable(nUserPets, executorService);\n executorService.shutdown();\n\n try {\n executorService.awaitTermination(3, TimeUnit.MINUTES);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return calculateImagesNotFound();\n }", "public String getNewImageTag() {\n return newImageTag;\n }", "@Test\r\n\tpublic void test1() {\n\t\tFile jpegFile = new File(\"C:\\\\Users\\\\lefto\\\\Downloads\\\\flickr\\\\test2\\\\20170814-150511-6_36561788895_o_EDIT.jpg\");\r\n\t\tMetadata metadata;\r\n\t\ttry {\r\n\t\t\tmetadata = ImageMetadataReader.readMetadata(jpegFile);\r\n\t\t\tfor (Directory directory : metadata.getDirectories()) {\r\n\t\t\t\tfor (Tag tag : directory.getTags()) {\r\n\t\t\t\t\tSystem.out.println(tag);\r\n//\t\t\t\t\tSystem.out.println(tag.getDirectoryName() + \", \" + tag.getTagName() + \", \" + tag.getDescription());\r\n//\t\t\t\t\tif (tag.getTagType() == ExifSubIFDDirectory.TAG_DATETIME_ORIGINAL)\r\n//\t\t\t\t\t\tSystem.out.println(tag);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (ImageProcessingException | IOException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "private void fetchMorePosts() {\n long lastPostTimestamp = prismPostArrayList.get(prismPostArrayList.size() - 1).getTimestamp();\n //toast(\"Fetching more pics\");\n databaseReferenceAllPosts\n .orderByChild(Key.POST_TIMESTAMP)\n .startAt(lastPostTimestamp + 1)\n .limitToFirst(Default.IMAGE_LOAD_COUNT)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {\n PrismPost prismPost = Helper.constructPrismPostObject(postSnapshot);\n prismPostArrayList.add(prismPost);\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (prismPostArrayList.size() > 0) {\n mainContentRecyclerViewAdapter\n .notifyItemInserted(prismPostArrayList.size());\n }\n }\n });\n\n }\n populateUserDetailsForAllPosts(false);\n } else {\n Log.i(Default.TAG_DB, Message.NO_DATA);\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.e(Default.TAG_DB, databaseError.getMessage(), databaseError.toException());\n }\n });\n }", "public int getNumberOfImages() { return this.images.size(); }", "private void collectColorData(BufferedImage img) {\n int limit = img.getWidth() * img.getHeight() / 10;\n int i;\n\n for (i=0; i<limit; i++) {\n int y = (int)(Math.random() * img.getHeight());\n int x = (int)(Math.random() * img.getWidth());\n int rgb = img.getRGB(x, y) & 0xffffff;\n\n Integer count = colorMap.get(rgb);\n\n if (count == null) {\n colorMap.put(rgb, 0);\n count = colorMap.get(rgb);\n }\n\n int newCount = count.intValue() + 1;\n colorMap.put(rgb, newCount);\n\n CountData cd = topList.get(2);\n\n if (newCount > cd.count) {\n int j = 0;\n\n for (; j<topList.size(); j++) {\n CountData tcd = topList.get(j);\n\n if (tcd.rgb == rgb) {\n tcd.count++;\n break;\n }\n }\n\n if (j == topList.size()) {\n topList.add(new CountData(newCount, rgb));\n }\n\n Collections.sort(topList);\n\n while (topList.size() > TOP_LIST_COUNT) {\n topList.remove(topList.size() - 1);\n }\n }\n }\n }", "public int getImageId(){\n \t\treturn imageId;\n \t}", "public synchronized native static int getLastImage(byte[] pImgBuffer, int nImgLength, int[] pRealImaLength,\n int[] pImgWidth, int[] pImgHeight);", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\n }", "public int getImageId() {\n return imageId_;\n }", "public void updateViewCnt(Integer imgnum) throws Exception;", "public int getImage();", "public long getImageModTimeMs() throws IOException {\n UnderFileSystem ufs = UnderFileSystem.get(mImagePath);\n if (!ufs.exists(mImagePath)) {\n return -1;\n }\n return ufs.getModificationTimeMs(mImagePath);\n }", "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 int getCount() {\n return imageIDs.length;\n }", "@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn imageId.length;\n\t\t\t}", "public int getCount() {\n\t\t\treturn this.myImageIds.length;\n\t\t}", "public int getImageCount() {\n return this.imageViews.length;\n }", "public int getImageId() {\n return imageId_;\n }", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "private void getNewImage() {\n try {\n URL imageUrl = new URL(path);\n URLConnection uc = imageUrl.openConnection();\n\n InputStream is = uc.getInputStream();\n BufferedInputStream bis = new BufferedInputStream(is);\n\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n int current;\n while ((current = bis.read()) != -1) {\n buffer.write((byte) current);\n }\n final byte[] data = buffer.toByteArray();\n // enqueue UI update as a priority\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n public void run() {\n view.setImageBitmap(BitmapFactory.decodeByteArray(\n data, 0, data.length));\n }\n });\n // update database while that is queueing\n ContentValues values = new ContentValues();\n values.put(MovieEntry.COLUMN_POSTER, data);\n context.getContentResolver().update(MovieEntry.buildMovieUriWithId(movieId),\n values, null, null);\n } catch (Exception E) {\n Log.i(TAG, E.toString());\n E.printStackTrace();\n }\n }", "int getSeenInfoCount();", "private void fetchPopularPhotos() {\n\n String url = \"https://api.instagram.com/v1/media/popular?client_id=\" + CLIENT_ID;\n\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(url, null, new JsonHttpResponseHandler(){\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n Log.i(PhotosActivity.APP_TAG, \"Reloading new data success!\");\n aPhotos.clear();\n JSONArray photosJSON = null;\n try {\n photosJSON = response.getJSONArray(\"data\");\n if (photosJSON != null) {\n for (int i=0; i < photosJSON.length(); i++) {\n JSONObject photoJSON = photosJSON.getJSONObject(i);\n InstagramPhoto photo = new InstagramPhoto();\n // Map the property\n // https://instagram.com/developer/endpoints/media/#get_media_popular\n photo.username = photoJSON.getJSONObject(\"user\").getString(\"username\");\n if (photoJSON.has(\"user\") && photoJSON.getJSONObject(\"user\").has(\"profile_picture\")) {\n photo.userProfilePictureUrl = photoJSON.getJSONObject(\"user\").getString(\"profile_picture\");\n }\n if (photoJSON.has(\"caption\") &&\n photoJSON.optJSONObject(\"caption\") != null && photoJSON.getJSONObject(\"caption\").has(\"text\")) {\n try {\n photo.caption = photoJSON.getJSONObject(\"caption\").getString(\"text\");\n } catch (Exception ev){\n photo.caption = \"\";\n }\n }\n photo.imageUrl = photoJSON.getJSONObject(\"images\").getJSONObject(\"standard_resolution\")\n .getString(\"url\");\n photo.imageHeight = photoJSON.getJSONObject(\"images\").getJSONObject(\"standard_resolution\")\n .getInt(\"height\");\n photo.likesCount = photoJSON.getJSONObject(\"likes\").getInt(\"count\");\n // comments count\n photo.commentCounts = photoJSON.getJSONObject(\"comments\").getInt(\"count\");\n if (photo.commentCounts > 0){\n // iterate for each comments for this media and get the last 2\n // need to get the last 2 entry\n JSONArray commentsData = photoJSON.getJSONObject(\"comments\").getJSONArray(\"data\");\n photo.comments = new ArrayList<InstagramComment>();\n for (int j = commentsData.length() - 1;j >= 0 && photo.comments.size() < 2; j--){\n JSONObject jsonComment = commentsData.getJSONObject(j);\n InstagramComment comment = new InstagramComment();\n comment.createdTime = jsonComment.getLong(\"created_time\");\n comment.fromUserFullName = jsonComment.getJSONObject(\"from\").getString(\"username\");\n comment.fromUserProfilePic = jsonComment.getJSONObject(\"from\").getString(\"profile_picture\");\n comment.text = jsonComment.getString(\"text\");\n photo.comments.add(comment);\n }\n }\n // get the rest of the comments\n photo.createdDate = photoJSON.getLong(\"created_time\");\n // media id\n photo.id = photoJSON.getString(\"id\");\n\n // add to main arrayList\n photos.add(photo);\n }\n }\n } catch (JSONException ev){\n Log.d(PhotosActivity.APP_TAG, \"Fail on \" + photosJSON.toString());\n ev.printStackTrace();\n }\n\n Log.d(APP_TAG, \"Total photos : \" + photos.size());\n\n // callback (once this proces done, need to notify adapter)\n aPhotos.notifyDataSetChanged();\n // to signal refresh finished (on swiperefreshlayout)\n swipeContainer.setRefreshing(false);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n }\n });\n\n }", "private int getLastIDRisposte() {\n\n\t\tArrayList<Integer> risposteIdList = new ArrayList<>();\n\t\trisposteIdList.add(0);\n\t\tDB db = getDB();\t\t\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\t\n\t\tfor(Map.Entry<Long, Risposta> risposta : risposte.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta)\n\t\t\t\trisposteIdList.add(risposta.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(risposteIdList);\n\t\treturn id;\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "public String getNewImage() {\r\n\t\treturn newImage;\r\n\t}", "public int numberOfThumbnailPresent(){\r\n\t\t return driver.findElements(thumbnail()).size();\r\n\t}", "public int getImageID() {\n return imageID;\n }", "public int getCount() {\r\n\t\t\treturn ((HerdinatorApplication) getApplication()).imageIDs.length;\r\n\t\t}", "public int getDeltaNumForNextWatermark();", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "Receta getByIdWithImages(long id);", "public long getImageId() {\n return imageId;\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();", "private boolean needToUpdateImage(List<Group> groupList, int finalActual, String currentGroupDate) {\n return \"\".equals(currentGroupDate) || groupList.get(finalActual).getLastGroupImage()\n .compareTo(DateTime.Builder.buildFullString(currentGroupDate)) > 0;\n }", "private void aumentarPilha() {\n this.pilhaMovimentos++;\n }", "int getCityImageURLsCount();", "public int getCount() {\n return cp.getmImageIds(gridType).length;\n\n }", "public long getImageId() {\n return this.imageId;\n }", "public int getNumberOfPhotos(){\n\t\tint num = 0;\n\t\ttry {\n\t\t\tFileInputStream in = new FileInputStream(\"images\");\n\t\t\t//Skipping magic number\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\tin.read();\n\t\t\t}\n\t\t\tbyte[] tmpVar = new byte[4];\n\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\ttmpVar[i] = (byte) in.read();\n\t\t\t}\n\t\t\tnum = ByteBuffer.wrap(tmpVar).getInt();\n\t\t\tin.close();\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t\t\n\t}", "private long removeOldest() {\n if (lastUsageDates.isEmpty()) return 0;\n Long oldestUsage = Long.MAX_VALUE;\n File oldestFile = null;\n Set<Map.Entry<File, Long>> entries = lastUsageDates.entrySet();\n synchronized (lastUsageDates) {\n for (Map.Entry<File, Long> entry : entries) {\n Long lastValueUsage = entry.getValue();\n if (lastValueUsage < oldestUsage) {\n oldestUsage = lastValueUsage;\n oldestFile = entry.getKey();\n }\n }\n }\n if (oldestFile == null) return 0;\n long fileSize = oldestFile.length();\n if (oldestFile.delete()) {\n lastUsageDates.remove(oldestFile);\n return fileSize;\n }\n return 0;\n }", "int getStatMetadataCount();", "public int getDrinkImageCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.DrinkImageTable.TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(sqlCountQuery, null);\n cursor.close();\n int count = cursor.getCount();\n return count;\n }", "public Image getFive();", "private void downloadingIssueHistoryImages(final List<Result> listOfPersons) {\n\n ImageLoader imageLoader = ImageLoader.getInstance();\n\n for (int i = 0; i < listOfPersons.size(); i++) {\n final String imageUrl = listOfPersons.get(i).getPicture().getMedium();\n\n imageLoader.loadImage(imageUrl, new SimpleImageLoadingListener() {\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n if (loadedImage != null) {\n\n String encodedImageString = UtilFunctions.bitmapToString(loadedImage);\n /**\n * Calling function to updating profile pic string data in local database\n */\n AppDatabase.getInstance(context).updateProfileImages(imageUri, encodedImageString);\n\n } else {\n Log.d(\"az\", \"image bitmap is null with url \" + imageUri);\n }\n }\n });\n }\n\n }", "public List<T> mostliked();", "public int getRandomImage() {\n Random r = new Random();\n return r.nextInt(10);\n }", "public int getTotalPics()\n {\n\t\t/*System.out.println(\"photo\"+photo.size());\n\t\tif(photo.size() == 0)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tSystem.out.println(totalPics);*/\n return this.totalPics;\n }", "public int getPhotos() {\n\t\tJButton open = new JButton();\n\t\tJFileChooser fc = new JFileChooser(); // initialize file chooser\n\t\tfc.setMultiSelectionEnabled(true); // enable multi file selection\n\t\tif (fc.showOpenDialog(open) == JFileChooser.APPROVE_OPTION) {\n\n\t\t}\n\n\t\timageArray = fc.getSelectedFiles(); // get selected images and store\n\t\t\t\t\t\t\t\t\t\t\t// them into an array\n\t\tArrays.sort(imageArray);\n\t\tLCS(imageArray);\n\t\t// window.setScalingProgressBar(0);\n\t\treturn imageArray.length;\n\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "long getLastFetchTimeMs();", "int getLastItemOnPage();", "public int getImage_id() {\n\t\treturn image_id;\n\t}", "public byte[] getPhotoTimesBefore(String rpiId, String time, int numberOfDates) throws SQLException, IOException;", "public Image getSix();", "public Stack<ColorImage> getCurrentImageHistory() {\n return currentImage;\n }", "public int getImageCount(String id) throws FormatException, IOException {\n if (!id.equals(currentId)) initFile(id);\n return numBlocks;\n }", "private void manuallyPushImageToImageReader(){\n mImageReader = VNCUtility.createImageReader(this);\n mImageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() {\n @Override\n public void onImageAvailable(ImageReader reader) {\n Log.d(TAG, \"NEW IMAGE AVAILABLE\");\n\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n\n\n Image image = reader.acquireLatestImage();\n VNCUtility.printReaderFormat(image.getFormat());\n Log.d(TAG, \"IMAGE FORMAT: \" + image.getFormat());\n final Image.Plane[] planes = image.getPlanes();\n final ByteBuffer buffer = planes[0].getBuffer();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * mWidth;\n int w = mWidth + rowPadding / pixelStride;\n Bitmap bmp = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.RGB_565);\n bmp.copyPixelsFromBuffer(buffer);\n mBmp = bmp;\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n //saveScreen(mBmp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n });\n t.start();\n\n image.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n\n\n /*\n Image img = reader.acquireLatestImage();\n Image.Plane[] planes = img.getPlanes();\n int width = img.getWidth();\n int height = img.getHeight();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * width;\n ByteBuffer buffer = planes[0].getBuffer();\n byte[] data = new byte[buffer.capacity()];\n buffer.get(data);\n\n for(int i = 10000; i < 100; i++){\n Log.d(TAG, getColourForInt(data[i]));\n }\n\n int offset = 0;\n Bitmap bitmap = Bitmap.createBitmap(metrics, width, height, Bitmap.Config.ARGB_8888);\n for (int i = 0; i < height; ++i) {\n for (int j = 0; j < width; ++j) {\n int pixel = 0;\n pixel |= (buffer.get(offset) & 0xff) << 16; // R\n pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G\n pixel |= (buffer.get(offset + 2) & 0xff); // B\n pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A\n bitmap.setPixel(j, i, pixel);\n offset += pixelStride;\n }\n offset += rowPadding;\n }\n mBmp = bitmap;\n img.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n */\n }\n }, null);\n Surface surface = mImageReader.getSurface();\n if(surface == null){\n Log.d(TAG, \"SURFACE IS NULL\");\n }\n else{\n Log.d(TAG, \"SURFACE IS NOT NULL\");\n Canvas canvas = surface.lockCanvas(null);\n\n int[] ints = new int[mWidth * mHeight];\n for (int i = 0; i < mWidth * mHeight; i++) {\n ints[i] = Color.MAGENTA;//0x00FF0000;\n }\n\n //final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, ints.length);\n Bitmap bitmap = Bitmap.createBitmap(ints, mWidth, mHeight, Bitmap.Config.RGB_565);\n //canvas.drawARGB(255, 255, 0, 255);\n canvas.drawBitmap(bitmap,0,0,null);\n surface.unlockCanvasAndPost(canvas);\n }\n }", "public double getLastCount()\n {\n return(lastCount);\n }", "@Transactional\n\tpublic Integer countProductImagess() {\n\t\treturn ((Long) productImagesDAO.createQuerySingleResult(\"select count(o) from ProductImages o\").getSingleResult()).intValue();\n\t}", "public int getImagesByTransformCount() {\n return imagesByTransform_.size();\n }", "@Override\n public void onComplete(@NonNull Task<PlacePhotoMetadataResponse> task) {\n try{\n PlacePhotoMetadataResponse photos = task.getResult();\n\n // Get the PlacePhotoMetadataBuffer (metadata for all of the photos).\n photoMetadataBuffer = photos.getPhotoMetadata();\n MyAdapter.photoMetadataBuffer = photos.getPhotoMetadata();\n\n Log.d(\"MainActivity\",photoMetadataBuffer.toString());\n\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n\n // Get the first photo in the list.\n MyAdapter.myPhotos = null;\n if(photoMetadataBuffer.getCount() == 0){\n getYelpReviews();\n MyAdapter.myPhotos = null;\n }\n else{\n myPhotos = new Bitmap[photoMetadataBuffer.getCount()];\n Log.d(\"MainActivity\", \" Number of photos \" + photoMetadataBuffer.getCount());\n\n int i = 0;\n for(i=0;i<photoMetadataBuffer.getCount();i++){\n PlacePhotoMetadata photoMetadata = photoMetadataBuffer.get(i);\n // Get a full-size bitmap for the photo.\n Task<PlacePhotoResponse> photoResponse = mGeoDataClient.getPhoto(photoMetadata);\n\n final int finalI = i;\n photoResponse.addOnCompleteListener(new OnCompleteListener<PlacePhotoResponse>() {\n @Override\n public void onComplete(@NonNull Task<PlacePhotoResponse> task) {\n PlacePhotoResponse photo = task.getResult();\n myPhotos[finalI] = photo.getBitmap();\n Log.d(\"MainActivity\",\"Completed\" + finalI);\n if(finalI == photoMetadataBuffer.getCount()-1){\n getYelpReviews();\n\n }\n }\n });\n\n MyAdapter.myPhotos = myPhotos;\n }\n }\n } catch (Exception e){\n Log.d(\"MainActivity\",\"Some Error Occured\" + e.toString());\n }\n\n }", "private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }", "public long getLossCount()\n\t{\n\t\tCollections.sort(list);\n\t\treturn list.get(list.size()-1)- list.get(0) - list.size()+1;\n\t}", "public int getCurrRuptures();", "public int getNumberOfPictures()\r\n {\r\n return pictures.size();\r\n }", "public int getCount() {\n return mImages.length;\n }", "public static ContentValues findOrGenerateThumbnail(ContentValues timelapse){\n\t\t\n\t\tFile timelapse_dir = new File(timelapse.getAsString(SQLiteWrapper.COLUMN_DIRECTORY_PATH));\n\t\tLog.d(\"findOrGenerateThumbnail\",timelapse_dir.getAbsolutePath());\n\t\t// if the timelapse dir does not exist or is a file,\n\t\t// fixing the application state is beyond the scope of this method\n\t\t// TODO: for performance, remove this check \n\t\tif(!timelapse_dir.exists() || timelapse_dir.isFile())\n\t\t\treturn timelapse;\n\t\t\n\t\t// Make thumbnail folder if it doesn't exist\n\t\tFile thumbnail_dir = new File(timelapse_dir, TimeLapse.thumbnail_dir);\n\t if (! thumbnail_dir.exists()){\n\t if (! thumbnail_dir.mkdirs()){\n\t Log.d(TAG, \"failed to create thumbnail directory\");\n\t return timelapse;\n\t }\n\t }\n\t // Determine last image in TimeLapse dir and generate thumbnail if it doesn't exist\n\t\tFile[] children = timelapse_dir.listFiles(new imageFilter());\n\t\ttimelapse.put(SQLiteWrapper.COLUMN_IMAGE_COUNT, timelapse_dir.listFiles(new imageFilter()).length);\n\t\t// Generate thumbnail of last image and save to storage as \"./thumbnail_dir/XXXthumbnail_suffix.jpeg\"\n\t\tFile original = new File(timelapse_dir, timelapse.getAsString(SQLiteWrapper.COLUMN_IMAGE_COUNT) + \".jpeg\");\n\t\ttimelapse.put(SQLiteWrapper.COLUMN_LAST_IMAGE_PATH, original.getAbsolutePath()); \n\t\tBitmap thumbnail_bitmap = FileUtils.decodeSampledBitmapFromResource(original.getAbsolutePath(), TimeLapse.thumbnail_width, TimeLapse.thumbnail_height);\n\t\tFile thumbnail_file = new File(thumbnail_dir, timelapse.getAsString(SQLiteWrapper.COLUMN_IMAGE_COUNT)+ TimeLapse.thumbnail_suffix +\".jpeg\");\n\t\tif(!thumbnail_file.exists()){\n\t\t\tFileOutputStream out;\n\t\t\ttry {\n\t\t\t\tout = new FileOutputStream(thumbnail_file);\n\t\t\t\tthumbnail_bitmap.compress(Bitmap.CompressFormat.JPEG, 90, out);\n\t\t\t\ttimelapse.put(SQLiteWrapper.COLUMN_THUMBNAIL_PATH, thumbnail_file.getAbsolutePath()); \n\t\t\t\t//Log.d(\"Thumbnail\",\"TL \" + String.valueOf(timelapse.id) + \" thumb set to \" + timelapse.thumbnail_path);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// Not sure when this would happen...\n\t\t\t\t// FileOutputStream creates file if it doesn't exist (the intended case)\n\t\t\t\t// Maybe on permission denied...\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t//if thumbail exists, store it with TimeLapse\n\t\t\ttimelapse.put(SQLiteWrapper.COLUMN_THUMBNAIL_PATH, thumbnail_file.getAbsolutePath());\n\t\t}\n\t\t\n\t\treturn timelapse;\n\t}", "public Snapshot getLatestSnapshot() {\r\n return isSnapshot? null: snapshot;\r\n }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "@SuppressLint(\"Recycle\")\n private synchronized ArrayList<String> retriveSavedImages(Context activity) {\n Uri uri;\n Cursor cursor;\n int column_index_data, column_index_folder_name, column_index_file_name;\n ArrayList<String> listOfAllImages = new ArrayList<>();\n uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n String[] projection = {MediaStore.MediaColumns.DATA,\n MediaStore.Images.Media.BUCKET_DISPLAY_NAME,\n MediaStore.MediaColumns.DISPLAY_NAME};\n\n cursor = activity.getApplicationContext().getContentResolver().query(uri, projection, null,\n null, MediaStore.Images.Media.DATE_ADDED);//\n\n assert cursor != null;\n column_index_data = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DATA);\n column_index_folder_name = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.BUCKET_DISPLAY_NAME);\n column_index_file_name = cursor.getColumnIndexOrThrow(MediaStore.MediaColumns.DISPLAY_NAME);\n\n while (cursor.moveToNext()) {\n\n /*Images from CustomCalender folder only*/\n if (cursor.getString(column_index_folder_name).contains(\"CustomCalender\")) {\n listOfAllImages.add(cursor.getString(column_index_data));\n// Log.v(\"Images: \", cursor.getString(column_index_file_name));\n }\n }\n\n /*Testing Glide cache by making duplicates total 768 images*/\n /*listOfAllImages.addAll(listOfAllImages); //24\n listOfAllImages.addAll(listOfAllImages); //48\n listOfAllImages.addAll(listOfAllImages); //96\n listOfAllImages.addAll(listOfAllImages); //192\n listOfAllImages.addAll(listOfAllImages); //384\n listOfAllImages.addAll(listOfAllImages); //768*/\n\n return listOfAllImages;\n }", "@Override\n public int getItemCount() {\n return null == imgList ? 0 : imgList.size() * mLooperCount;\n }", "public void run() {\nif(i[0] ==le.size()){\n i[0]=0;}\n File file = new File(\"/var/www/html/PawsAndClaws/web/bundles/uploads/brochures/\" + le.get( i[0]).getBrochure());\n\n Image it = new Image(file.toURI().toString(), 500, 310, false, false);\n eventspicture.setImage(it);\n i[0]++;\n }", "int getEventMetadataCount();", "public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n return images.get(\"oeuf\").get(\"noeuf\");\n } else if (tamagoStats.getAge() <= 3) {\n return images.get(\"bebe\").get(\"metamorph\");\n } else if (tamagoStats.getAge() <= 7) {\n return images.get(\"enfant\").get(\"evoli\");\n } else {\n return images.get(\"adulte\").get(\"noctali\");\n }\n }", "public HerbierPic getBestPic() {\n\t\tHerbierPic result = null;\n\t\t\n\t\tif (!pics.isEmpty()) {\n\t\t\tVector<HerbierPic> vPics = new Vector<>();\n\t\t\tvPics.addAll(pics);\n\t\t\tCollections.sort(vPics, new Comparator<HerbierPic>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(HerbierPic pic1, HerbierPic pic2) {\n\t\t\t\t\treturn pic2.getRating() - pic1.getRating();\n\t\t\t\t}\n\t\t\t});\n\t\t\tresult = vPics.firstElement();\n\t\t}\n\t\t\n\t\treturn result;\n\t}" ]
[ "0.6576953", "0.6381243", "0.5893811", "0.5760188", "0.5740035", "0.5731922", "0.57239366", "0.57047766", "0.5610318", "0.55969244", "0.5554096", "0.55410856", "0.5501001", "0.54876214", "0.5454265", "0.5432986", "0.54244643", "0.53782", "0.5373518", "0.53525853", "0.5343565", "0.53390586", "0.5338586", "0.5333677", "0.5329306", "0.5314122", "0.52305686", "0.51947093", "0.5189602", "0.5182603", "0.5178782", "0.5173949", "0.51696813", "0.51686877", "0.51281154", "0.51247126", "0.5118174", "0.5093474", "0.5041884", "0.50342214", "0.50321865", "0.50298274", "0.5026703", "0.5017153", "0.4958045", "0.49444583", "0.4935363", "0.49264756", "0.49189267", "0.4915066", "0.49088767", "0.4898649", "0.4898274", "0.48975268", "0.48939812", "0.48782775", "0.48582023", "0.48565772", "0.48516324", "0.485003", "0.48385936", "0.48354664", "0.48335907", "0.48312402", "0.48199552", "0.48185536", "0.48173955", "0.4815662", "0.48153841", "0.48102623", "0.48035073", "0.4802114", "0.47931015", "0.47892803", "0.47863173", "0.4777746", "0.4776431", "0.47748765", "0.4767293", "0.4766476", "0.47643325", "0.47608232", "0.47577876", "0.4747676", "0.47448418", "0.4744825", "0.4743827", "0.4742896", "0.47381893", "0.47367895", "0.47320023", "0.47314972", "0.47279117", "0.47244707", "0.4722359", "0.471958", "0.47173557", "0.47169662", "0.4715847", "0.47067475", "0.46995136" ]
0.0
-1
get next img to notate by sequenceNum
@RequestMapping(value = "/notation/getSample", method = RequestMethod.GET) public SampleVo getSample(@RequestParam String username, @RequestParam int sequenceNum, @RequestParam String notateType) { SampleVo vo = sampleService.getSample(username, sequenceNum, notateType); return vo == null ? new SampleVo() : vo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "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 }", "@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 }", "private File getNextPicture() {\r\n File retVal = null;\r\n\r\n if (listFiles.size() > 0) {\r\n if (fileList.getSelectedIndex() == listFiles.size() - 1) {\r\n retVal = listFiles.get(0);\r\n fileList.setSelectedIndex(0);\r\n } else {\r\n retVal = listFiles.get(fileList.getSelectedIndex() + 1);\r\n fileList.setSelectedIndex(fileList.getSelectedIndex() + 1);\r\n }\r\n }\r\n\r\n return retVal;\r\n }", "@Override\r\n public Integer next() {\r\n // Time complexity: O(1), where the problem size N \r\n // represents the size of the sequence to generate.\r\n if (!hasNext()) // check if the current element has a next element in this sequence\r\n return null; \r\n int current = next; // set the current element to next\r\n generatedCount++; // increment the number of generated elements so far\r\n next *= RATIO; // set the next element (adds the common ratio to the current number)\r\n return current; // return the current number as the generated one\r\n }", "Long getNextSequence(String seqName);", "public int getNextUnSafeSequence(){ return value++;}", "public void loadPreviousPage() {\n// System.out.println(\"index :\"+i);\r\n// System.out.println(\"##########\");\r\n lisOfProduct = serv.read();\r\n CurrP--;\r\n if (CurrP < nbP) {\r\n i = 0;\r\n indexOfImage = CurrP * 6 + i;\r\n loadImage1(lisOfProduct.get(x).getImg_url());\r\n i++;\r\n x = CurrP * 6 + i;\r\n System.out.println(\" i: \" + i + \"Curr: \" + CurrP + \"i in page: \" + x);\r\n\r\n loadImage1(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage2(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage3(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage4(lisOfProduct.get(indexOfImage).getImg_url());\r\n indexOfImage++;\r\n loadImage5(lisOfProduct.get(indexOfImage).getImg_url()); \r\n indexOfImage++;\r\n loadImage6(lisOfProduct.get(indexOfImage).getImg_url());\r\n \r\n indexOfImage++;\r\n }\r\n indexOfImage -= 5;\r\n// IntStream.range(0, 1).forEach(\r\n// i -> next.fire()\r\n// ); \r\n\r\n// CurrP = 0;\r\n// i = 0;\r\n }", "@Override\n public void renderNextImage() {\n }", "static synchronized long getNextSeqNumber() {\n return seqNumber++;\n }", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "private void displayNext() {\r\n\t\ti++;\r\n\t\tdisplayCurrentPicture();\r\n\t}", "private int next(int index) {\n return (index + 2) & mask;\n }", "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 }", "private int nextIndex() {\n return ThreadLocalRandom.current().nextInt(currentIndex, tracks.size());\n }", "public ImageIcon getNextAnimation() {\n\t\tImageIcon animation = null;\n\t\tif (getX_direction() < 0) {\n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowLeft1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowLeft2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowLeft3;\n\t\t\t}\n\t\t} else if (getX_direction() >= 0) { \n\t\t\tif (getAnimation() == 0) {\n\t\t\t\tanimation = cowRight1;\n\t\t\t} else if (getAnimation() == 1) {\n\t\t\t\tanimation = cowRight2;\n\t\t\t} else if (getAnimation() == 2) {\n\t\t\t\tanimation = cowRight3;\n\t\t\t}\n\t\t}\n\t\tnextAnimation();\n\t\treturn animation;\n\t}", "int getSrcId(int index);", "public ImageIdentifier getImageIdentifier() {\n synchronized (this.imageLock) {\n return this.animation.getCurrentImage();\n }\n }", "private int getNext(int index) {\n return index + (index & -index);\n }", "public ImageObj prevImage() {\n if (position != 0) {\n position--;\n }\n else {\n position = model.getImageList().size() - 1;\n }\n\n return model.getImageList().get(position);\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}", "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 void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }", "public BufferedImage getImage() { // operates every 10 ms\n\t\tif(isLife()) { // alive\n\t\t\treturn images[0]; // return images[0]\n\t\t}else if(isDead()) { // dead\n\t\t\tBufferedImage img = images[index++]; // start from the second image\n\t\t\tif(index==images.length) { // if at the last image\n\t\t\t\tstate = REMOVE; // change the state to REMOVE\n\t\t\t}\n\t\t\treturn img; // return explosion image\n\t\t}\n\t\treturn null; // return null when state removed\n\t\t/*\n\t\t * index=1\n\t\t * 10M img=images[1] index=2 return images[1]\n\t\t * 20M img=images[2] index=3 return images[2]\n\t\t * 30M img=images[3] index=4 return images[3]\n\t\t * 40M img=images[4] index=5(REMOVE) \t\treturn images[4]\n\t\t * 50M return null\n\t\t */\n\t}", "public BufferedImage next() {\r\n if (ix >= numTiles) \r\n throw new NoSuchElementException();\r\n \r\n ix++;\r\n int c = ix % numCols;\r\n int r = ix / numCols;\r\n \r\n int w = getWidth();\r\n int h = getHeight();\r\n \r\n int x = c * tileWidth;\r\n int y = r * tileHeight;\r\n \r\n BufferedImage result = new BufferedImage(getWidth(), getHeight(), imageType);\r\n Graphics g = result.getGraphics();\r\n g.drawImage(m_source, 0, 0, w, h, x, y, (x + w), (y + h), null);\r\n g.dispose();\r\n \r\n return result;\r\n }", "public int getNextX(){\r\n return nextX;\r\n }", "public C getNext();", "public GameObject getNext();", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "private void nextButtonActionPerformed() {//GEN-FIRST:event_nextButtonActionPerformed\r\n getNextPicture();\r\n\r\n }", "Shape getNext(int width);", "@Override\n public int nextIndex()\n {\n return idx+1; \n }", "private long getSeqNum() throws Exception {\n\t\tSystem.out.println(\"seq: \" + seq);\n\t\tif (seq == 256) {\n\t\t\tseq = 0;\n\t\t}\n\t\treturn seq++;\n\t}", "private int getInstr(int index) {\n switch (index) {\n case 0:\n return R.drawable.chickpeacurry;\n case 1:\n return R.drawable.sweetpotatoblackbeanburger;\n case 2:\n return R.drawable.cabbagedietsoup;\n case 3:\n return R.drawable.instantpotvegetablesoup;\n case 4:\n return R.drawable.veganpumpkinsoup;\n\n default:\n return -1;\n }\n }", "public int getImageNumber() {\n return imageNumber;\n }", "public Pixel next() {\n\t\treturn (isEmpty()) ? null : iterator().next();\n\t}", "public synchronized Bitmap getNextFrame() {\n if (this.header.frameCount <= 0 || this.framePointer < 0) {\n if (Log.isLoggable(TAG, 3)) {\n String str = TAG;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Unable to decode frame, frameCount=\");\n sb.append(this.header.frameCount);\n sb.append(\", framePointer=\");\n sb.append(this.framePointer);\n Log.d(str, sb.toString());\n }\n this.status = 1;\n }\n if (this.status != 1) {\n if (this.status != 2) {\n this.status = 0;\n if (this.block == null) {\n this.block = this.bitmapProvider.obtainByteArray(255);\n }\n GifFrame gifFrame = (GifFrame) this.header.frames.get(this.framePointer);\n int i = this.framePointer - 1;\n GifFrame gifFrame2 = i >= 0 ? (GifFrame) this.header.frames.get(i) : null;\n this.act = gifFrame.lct != null ? gifFrame.lct : this.header.gct;\n if (this.act == null) {\n if (Log.isLoggable(TAG, 3)) {\n String str2 = TAG;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"No valid color table found for frame #\");\n sb2.append(this.framePointer);\n Log.d(str2, sb2.toString());\n }\n this.status = 1;\n return null;\n }\n if (gifFrame.transparency) {\n System.arraycopy(this.act, 0, this.pct, 0, this.act.length);\n this.act = this.pct;\n this.act[gifFrame.transIndex] = 0;\n }\n return setPixels(gifFrame, gifFrame2);\n }\n }\n if (Log.isLoggable(TAG, 3)) {\n String str3 = TAG;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Unable to decode frame, status=\");\n sb3.append(this.status);\n Log.d(str3, sb3.toString());\n }\n }", "private String getNext() {\n \t\t\n \t\tArrayList<String> reel = game.getType().getReel();\n \t\t\n \t\tRandom generator = new Random();\n \t\tint id = generator.nextInt(reel.size());\n \t\t\n \t\tString nextID = reel.get(id);\n \t\tString[] idSplit = nextID.split(\"\\\\:\");\n \t\t\n \t\tif (idSplit.length == 2) {\n \t\t\treturn nextID;\n \t\t}else {\n \t\t\tString newID;\n \t\t\tnewID = Integer.parseInt(idSplit[0]) + \":0\";\n \t\t\t\n \t\t\treturn newID;\n \t\t}\n \t}", "public void next(){\n if(stageNum < (defineStageNum)) {\n stageNum++;\n }else {\n stageNum = startStageNum;\n }\n }", "@Test\n public void testICCDuplicateSequence() throws IOException {\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/invalid-icc-duplicate-sequence-numbers-rgb-internal-kodak-srgb-jfif.jpg\")));\n\n assertEquals(345, reader.getWidth(0));\n assertEquals(540, reader.getHeight(0));\n\n BufferedImage image = reader.read(0);\n\n assertNotNull(image);\n assertEquals(345, image.getWidth());\n assertEquals(540, image.getHeight());\n\n reader.dispose();\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index);", "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 static String getImageId(WebElement image) {\n String imageUrl = image.getAttribute(\"src\");\n\n int indexComparisonStart = imageUrl.indexOf(START_TOKEN) + START_TOKEN.length();\n int indexComparisonFinish = imageUrl.substring(indexComparisonStart).indexOf(STOP_TOKEN);\n\n return imageUrl.substring(indexComparisonStart, indexComparisonStart + indexComparisonFinish);\n }", "public void next(){\n\t\tif(generated)\n\t\t\tcurr++;\n\t}", "String getNext();", "String getNext();", "private void loadNextFlag() \r\n {\r\n // get file name of the next flag and remove it from the list\r\n // update the correct answer\r\n // clear answerTextView \r\n\r\n // display current question number\r\n\r\n // extract the region from the next image's name\r\n\r\n // use AssetManager to load next image from assets folder\r\n // get an InputStream to the asset representing the next flag\r\n // load the asset as a Drawable and display on the flagImageView\r\n\r\n // shuffle file names\r\n\r\n // put the correct answer at the end of fileNameList\r\n\r\n // add 3, 6, or 9 guess Buttons based on the value of guessRows\r\n // place Buttons in currentTableRow\r\n // get reference to Button to configure\r\n\r\n // get country name and set it as newGuessButton's text\r\n \r\n // randomly replace one Button with the correct answer\r\n // pick random row\r\n // pick random column\r\n // get the row\r\n }", "public void viewPrevPhoto(ActionEvent event) {\n\t\t\n\t\t//System.out.println(\"left check: \" + listOfPhotos);\n\t\t\n\t\tif (displayedPhoto.isEmpty()) {\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Error!\");\n\t\t\talert.setHeaderText(\"Cannot find next image!\");\n\t\t\talert.setContentText(\"No photo selected. Failed to display next image.\");\n\t\t\talert.showAndWait();\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tint photosList_size = listOfPhotos.size();\n\t\t\n\t\tif(currPhotoIndex == 0) {\n\t\t\tcurrPhotoIndex = photosList_size - 1;\n\t\t} else {\n\t\t\tcurrPhotoIndex = currPhotoIndex - 1;\n\t\t}\n\t\t\n\t\tImageView nextPhoto = listOfPhotos.get(currPhotoIndex);\n\t\tcurrPhotoIndex = listOfPhotos.indexOf(nextPhoto);\n\t\t//System.out.println(currPhotoIndex);\n\t\tImageView newimg = new ImageView();\n\t\tnewimg.setImage(nextPhoto.getImage());\n\t\tnewimg.setFitWidth(480);\n\t\tnewimg.setFitHeight(330);\n\t\tdisplayedPhoto.clear();\n\t\tdisplayedPhoto = FXCollections.observableArrayList();\n\t\tdisplayedPhoto.add(newimg);\n\t\tDisplayedImage.setItems(displayedPhoto);\n\t}", "public Bitmap getImage(){\n return images[currentFrame];\n }", "private void nextMovement()\n\t{\n\t\tif(SEQUENCE.length <= 1)\n\t\t\tSEQUENCE = null;\n\t\telse\n\t\t{\n\t\t\tint[] temp = new int[SEQUENCE.length - 1];\n\t\t\tfor(int i = 1; i < SEQUENCE.length; i++)\n\t\t\t{\n\t\t\t\ttemp[i-1] = SEQUENCE[i];\n\t\t\t}\n\t\t\tSEQUENCE = temp;\n\t\t}\n\t}", "public int[] getNext(){\n if (wasExplored) return new int[0];\n int[] nextState = {next1.state_no};\n return nextState;\n }", "private NasmInst getNextInst(NasmInst previousInst) {\n if (previousInst == null)\n throw new FgException(\"ERROR: Need previous instruction to find the next one\");\n int instIndex = nasm.listeInst.indexOf(previousInst);\n if (instIndex == -1)\n throw new FgException(\"ERROR: Instruction doesn't appear on the NASM\");\n if (instIndex == nasm.listeInst.size() - 1)\n throw new FgException(\"ERROR: No next instruction\");\n return nasm.listeInst.get(instIndex + 1);\n }", "public void run() {\nif(i[0] ==le.size()){\n i[0]=0;}\n File file = new File(\"/var/www/html/PawsAndClaws/web/bundles/uploads/brochures/\" + le.get( i[0]).getBrochure());\n\n Image it = new Image(file.toURI().toString(), 500, 310, false, false);\n eventspicture.setImage(it);\n i[0]++;\n }", "void onNextIconClick();", "protected abstract D getNext(D d);", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByTransform(int index);", "public static void initNext() { //ініціалізація лічильника нульовим значенням\n next = 0;\n }", "@Test\n public void testICCDuplicateSequenceZeroBased() throws IOException {\n JPEGImageReader reader = createReader();\n reader.setInput(ImageIO.createImageInputStream(getClassLoaderResource(\"/jpeg/invalid-icc-duplicate-sequence-numbers-rgb-xerox-dc250-heavyweight-1-progressive-jfif.jpg\")));\n\n assertEquals(3874, reader.getWidth(0));\n assertEquals(5480, reader.getHeight(0));\n\n ImageReadParam param = reader.getDefaultReadParam();\n param.setSourceRegion(new Rectangle(0, 0, 3874, 16)); // Save some memory\n BufferedImage image = reader.read(0, param);\n\n assertNotNull(image);\n assertEquals(3874, image.getWidth());\n assertEquals(16, image.getHeight());\n\n reader.dispose();\n }", "public void Next();", "public boolean getNext();", "public int[] getNext() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] next = new int[2];\n\n // Check if current round has another heat\n int cRoundSize = rounds.get(currentRound).length();\n if (currentHeat + 1 < cRoundSize) {\n // Success, so get the next heat index\n next[0] = currentRound;\n next[1] = currentHeat + 1;\n }\n // There are no more heats left in the current round\n // Check if the race has another round\n else if (currentRound + 1 < rounds.size()) {\n // Success, but check to make sure there is actually a heat in this round\n if (rounds.get(currentRound + 1).length() > 0) {\n // Success, so get the first heat in the next round\n next[0] = currentRound + 1;\n next[1] = 0;\n }\n }\n // There are no more valid heats or rounds left\n else {\n next[0] = -1;\n next[1] = -1;\n }\n return next;\n }", "@androidx.annotation.Nullable\r\n public synchronized android.graphics.Bitmap getNextFrame() {\r\n /*\r\n r7 = this;\r\n monitor-enter(r7);\r\n r0 = r7.header;\t Catch:{ all -> 0x00ea }\r\n r0 = r0.frameCount;\t Catch:{ all -> 0x00ea }\r\n r1 = 3;\r\n r2 = 1;\r\n if (r0 <= 0) goto L_0x000d;\r\n L_0x0009:\r\n r0 = r7.framePointer;\t Catch:{ all -> 0x00ea }\r\n if (r0 >= 0) goto L_0x003b;\r\n L_0x000d:\r\n r0 = TAG;\t Catch:{ all -> 0x00ea }\r\n r0 = android.util.Log.isLoggable(r0, r1);\t Catch:{ all -> 0x00ea }\r\n if (r0 == 0) goto L_0x0039;\r\n L_0x0015:\r\n r0 = TAG;\t Catch:{ all -> 0x00ea }\r\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00ea }\r\n r3.<init>();\t Catch:{ all -> 0x00ea }\r\n r4 = \"Unable to decode frame, frameCount=\";\r\n r3.append(r4);\t Catch:{ all -> 0x00ea }\r\n r4 = r7.header;\t Catch:{ all -> 0x00ea }\r\n r4 = r4.frameCount;\t Catch:{ all -> 0x00ea }\r\n r3.append(r4);\t Catch:{ all -> 0x00ea }\r\n r4 = \", framePointer=\";\r\n r3.append(r4);\t Catch:{ all -> 0x00ea }\r\n r4 = r7.framePointer;\t Catch:{ all -> 0x00ea }\r\n r3.append(r4);\t Catch:{ all -> 0x00ea }\r\n r3 = r3.toString();\t Catch:{ all -> 0x00ea }\r\n android.util.Log.d(r0, r3);\t Catch:{ all -> 0x00ea }\r\n L_0x0039:\r\n r7.status = r2;\t Catch:{ all -> 0x00ea }\r\n L_0x003b:\r\n r0 = r7.status;\t Catch:{ all -> 0x00ea }\r\n r3 = 0;\r\n if (r0 == r2) goto L_0x00c8;\r\n L_0x0040:\r\n r0 = r7.status;\t Catch:{ all -> 0x00ea }\r\n r4 = 2;\r\n if (r0 != r4) goto L_0x0047;\r\n L_0x0045:\r\n goto L_0x00c8;\r\n L_0x0047:\r\n r0 = 0;\r\n r7.status = r0;\t Catch:{ all -> 0x00ea }\r\n r4 = r7.block;\t Catch:{ all -> 0x00ea }\r\n if (r4 != 0) goto L_0x0058;\r\n L_0x004e:\r\n r4 = r7.bitmapProvider;\t Catch:{ all -> 0x00ea }\r\n r5 = 255; // 0xff float:3.57E-43 double:1.26E-321;\r\n r4 = r4.obtainByteArray(r5);\t Catch:{ all -> 0x00ea }\r\n r7.block = r4;\t Catch:{ all -> 0x00ea }\r\n L_0x0058:\r\n r4 = r7.header;\t Catch:{ all -> 0x00ea }\r\n r4 = r4.frames;\t Catch:{ all -> 0x00ea }\r\n r5 = r7.framePointer;\t Catch:{ all -> 0x00ea }\r\n r4 = r4.get(r5);\t Catch:{ all -> 0x00ea }\r\n r4 = (com.bumptech.glide.gifdecoder.GifFrame) r4;\t Catch:{ all -> 0x00ea }\r\n r5 = r7.framePointer;\t Catch:{ all -> 0x00ea }\r\n r5 = r5 - r2;\r\n if (r5 < 0) goto L_0x0074;\r\n L_0x0069:\r\n r6 = r7.header;\t Catch:{ all -> 0x00ea }\r\n r6 = r6.frames;\t Catch:{ all -> 0x00ea }\r\n r5 = r6.get(r5);\t Catch:{ all -> 0x00ea }\r\n r5 = (com.bumptech.glide.gifdecoder.GifFrame) r5;\t Catch:{ all -> 0x00ea }\r\n goto L_0x0075;\r\n L_0x0074:\r\n r5 = r3;\r\n L_0x0075:\r\n r6 = r4.lct;\t Catch:{ all -> 0x00ea }\r\n if (r6 == 0) goto L_0x007c;\r\n L_0x0079:\r\n r6 = r4.lct;\t Catch:{ all -> 0x00ea }\r\n goto L_0x0080;\r\n L_0x007c:\r\n r6 = r7.header;\t Catch:{ all -> 0x00ea }\r\n r6 = r6.gct;\t Catch:{ all -> 0x00ea }\r\n L_0x0080:\r\n r7.act = r6;\t Catch:{ all -> 0x00ea }\r\n r6 = r7.act;\t Catch:{ all -> 0x00ea }\r\n if (r6 != 0) goto L_0x00aa;\r\n L_0x0086:\r\n r0 = TAG;\t Catch:{ all -> 0x00ea }\r\n r0 = android.util.Log.isLoggable(r0, r1);\t Catch:{ all -> 0x00ea }\r\n if (r0 == 0) goto L_0x00a6;\r\n L_0x008e:\r\n r0 = TAG;\t Catch:{ all -> 0x00ea }\r\n r1 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00ea }\r\n r1.<init>();\t Catch:{ all -> 0x00ea }\r\n r4 = \"No valid color table found for frame #\";\r\n r1.append(r4);\t Catch:{ all -> 0x00ea }\r\n r4 = r7.framePointer;\t Catch:{ all -> 0x00ea }\r\n r1.append(r4);\t Catch:{ all -> 0x00ea }\r\n r1 = r1.toString();\t Catch:{ all -> 0x00ea }\r\n android.util.Log.d(r0, r1);\t Catch:{ all -> 0x00ea }\r\n L_0x00a6:\r\n r7.status = r2;\t Catch:{ all -> 0x00ea }\r\n monitor-exit(r7);\r\n return r3;\r\n L_0x00aa:\r\n r1 = r4.transparency;\t Catch:{ all -> 0x00ea }\r\n if (r1 == 0) goto L_0x00c2;\r\n L_0x00ae:\r\n r1 = r7.act;\t Catch:{ all -> 0x00ea }\r\n r2 = r7.pct;\t Catch:{ all -> 0x00ea }\r\n r3 = r7.act;\t Catch:{ all -> 0x00ea }\r\n r3 = r3.length;\t Catch:{ all -> 0x00ea }\r\n java.lang.System.arraycopy(r1, r0, r2, r0, r3);\t Catch:{ all -> 0x00ea }\r\n r1 = r7.pct;\t Catch:{ all -> 0x00ea }\r\n r7.act = r1;\t Catch:{ all -> 0x00ea }\r\n r1 = r7.act;\t Catch:{ all -> 0x00ea }\r\n r2 = r4.transIndex;\t Catch:{ all -> 0x00ea }\r\n r1[r2] = r0;\t Catch:{ all -> 0x00ea }\r\n L_0x00c2:\r\n r0 = r7.setPixels(r4, r5);\t Catch:{ all -> 0x00ea }\r\n monitor-exit(r7);\r\n return r0;\r\n L_0x00c8:\r\n r0 = TAG;\t Catch:{ all -> 0x00ea }\r\n r0 = android.util.Log.isLoggable(r0, r1);\t Catch:{ all -> 0x00ea }\r\n if (r0 == 0) goto L_0x00e8;\r\n L_0x00d0:\r\n r0 = TAG;\t Catch:{ all -> 0x00ea }\r\n r1 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00ea }\r\n r1.<init>();\t Catch:{ all -> 0x00ea }\r\n r2 = \"Unable to decode frame, status=\";\r\n r1.append(r2);\t Catch:{ all -> 0x00ea }\r\n r2 = r7.status;\t Catch:{ all -> 0x00ea }\r\n r1.append(r2);\t Catch:{ all -> 0x00ea }\r\n r1 = r1.toString();\t Catch:{ all -> 0x00ea }\r\n android.util.Log.d(r0, r1);\t Catch:{ all -> 0x00ea }\r\n L_0x00e8:\r\n monitor-exit(r7);\r\n return r3;\r\n L_0x00ea:\r\n r0 = move-exception;\r\n monitor-exit(r7);\r\n throw r0;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.bumptech.glide.gifdecoder.StandardGifDecoder.getNextFrame():android.graphics.Bitmap\");\r\n }", "public int getNext() {\n return value++;\n }", "private void processResult(String command){\n final int[] images = new int[] {R.drawable.zero, R.drawable.abs1, R.drawable.abs2, R.drawable.bi1, R.drawable.bi2, R.drawable.tri1, R.drawable.tri2, R.drawable.delt2, R.drawable.delt3, R.drawable.leg1, R.drawable.leg2, R.drawable.back1, R.drawable.back2, R.drawable.back3, R.drawable.chest1, R.drawable.chest2, R.drawable.chest3};\n command = command.toLowerCase();\n\n\n if(command.indexOf(\"next\") != -1){\n\n if(index<images.length-1){\n index++;\n imageView.setImageResource(images[index]);\n }\n else {\n\n }\n }\n\n else if(command.indexOf(\"previous\") !=-1){\n\n if(index<images.length && index >0){\n index--;\n imageView.setImageResource(images[index]);\n }\n else index = 0;\n }\n }", "private PlayState getNext(){\n return values()[(this.ordinal() + 1) % PlayState.values().length];\n }", "private int nextContainer(int actualContainerPosition) {\n int totalNumberOfContainer = (mNumberOfBowls + mNumberOfTrays) * 2; //14 in my case, but remember it starts form 0!!\n int nextContainer = actualContainerPosition + 1;\n\n if ( nextContainer == totalNumberOfContainer) {\n nextContainer = 0;\n }\n\n return nextContainer;\n }", "public abstract int getNextBlock(int block) throws IOException;", "int getSeq();", "int getSeq();", "int getSeq();", "private void generateFirstCard() {\n List<MutableImage> images = new ArrayList<>();\n for (int i = 0; i < order; i++) {\n for (int j = 0; j < order; j++) {\n ImageImpl image = new ImageImpl(i * order + j);\n images.add(image);\n }\n ImageImpl image = new ImageImpl(order * order);\n images.add(image);\n arrayOfCardsInit.push(cardGenerator.generate(images));\n images.clear();\n }\n }", "Split getNext();", "int getNext(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 2);\n\t}", "public int getNextY(){\r\n return nextY;\r\n }", "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 int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }", "public static String getNextSeq(String seq) {\n long intNextSeq = 0;\n// if (intSeq < 204) {\n// intNextSeq = Long.parseLong(seq)+1;\n// }\n// if (intSeq == 204) {\n// seq = seq.substring(0, seq.length() - 3);\n// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd\");\n// Date date = null;\n// try {\n// date = sdf.parse(seq);\n// } catch (ParseException e) {\n// e.printStackTrace();\n// }\n// Date date2 = DateUtils.addDays(date, 1);\n// String nextDate = sdf.format(date2) + \"000\";\n// intNextSeq = Long.parseLong(nextDate);\n// intNextSeq = intNextSeq + 1;\n// }\n return intNextSeq+\"\";\n }", "public byte NEXT() {\r\n\t\t//log(\"Frame.NEXT mp=\"+mp);\r\n\t\tint addr=base+(mp++);\r\n\t\tbyte b=heap.readByte(addr);\r\n\t\t//log(\"Frame.NEXT addr=\"+addr+\"; byte=\"+b+\" \"+hexByte(b));\r\n\t\treturn b;\r\n\t}", "public int getImage();", "@Override\n\tpublic Frame getNextFrame() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Frame getNextFrame() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Frame getNextFrame() {\n\t\treturn null;\n\t}", "public int getRandomImage() {\n Random r = new Random();\n return r.nextInt(10);\n }", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "public SlideNode getNext() {\n\t\treturn next;\n\t}", "long getNextSequenceNumber();", "@Override // ohos.com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase\r\n public int getNextNodeIdentity(int i) {\r\n int i2 = i + 1;\r\n while (i2 >= this.m_size) {\r\n if (this.m_incrementalSAXSource == null) {\r\n return -1;\r\n }\r\n nextNode();\r\n }\r\n return i2;\r\n }", "protected int next() throws IOException, ExifInvalidFormatException {\n if (!mContainExifData) {\n return EVENT_END;\n }\n int offset = mTiffStream.getReadByteCount();\n int endOfTags = mIfdStartOffset + OFFSET_SIZE + TAG_SIZE * mNumOfTagInIfd;\n if (offset < endOfTags) {\n mTag = readTag();\n if (mTag == null) {\n return next();\n }\n if (mNeedToParseOffsetsInCurrentIfd) {\n checkOffsetOrImageTag(mTag);\n }\n return EVENT_NEW_TAG;\n } else if (offset == endOfTags) {\n // There is a link to ifd1 at the end of ifd0\n if (mIfdType == IfdId.TYPE_IFD_0) {\n long ifdOffset = readUnsignedLong();\n if (isIfdRequested(IfdId.TYPE_IFD_1) || isThumbnailRequested()) {\n if (ifdOffset != 0) {\n registerIfd(IfdId.TYPE_IFD_1, ifdOffset);\n }\n }\n } else {\n int offsetSize = 4;\n // Some camera models use invalid length of the offset\n if (mCorrespondingEvent.size() > 0) {\n offsetSize = mCorrespondingEvent.firstEntry().getKey() -\n mTiffStream.getReadByteCount();\n }\n if (offsetSize < 4) {\n Timber.w(\"Invalid size of link to next IFD: %s\", offsetSize);\n } else {\n long ifdOffset = readUnsignedLong();\n if (ifdOffset != 0) {\n Timber.w(\"Invalid link to next IFD: %s\", ifdOffset);\n }\n }\n }\n }\n while (mCorrespondingEvent.size() != 0) {\n Entry<Integer, Object> entry = mCorrespondingEvent.pollFirstEntry();\n Object event = entry.getValue();\n try {\n skipTo(entry.getKey());\n } catch (IOException e) {\n Timber.w(\"Failed to skip to data at: \" + entry.getKey() +\n \" for \" + event.getClass().getName() + \", the file may be broken.\");\n continue;\n }\n if (event instanceof IfdEvent) {\n mIfdType = ((IfdEvent) event).ifd;\n mNumOfTagInIfd = mTiffStream.readUnsignedShort();\n mIfdStartOffset = entry.getKey();\n\n if (mNumOfTagInIfd * TAG_SIZE + mIfdStartOffset + OFFSET_SIZE > mApp1End) {\n Timber.w(\"Invalid size of IFD %s\", mIfdType);\n return EVENT_END;\n }\n\n mNeedToParseOffsetsInCurrentIfd = needToParseOffsetsInCurrentIfd();\n if (((IfdEvent) event).isRequested) {\n return EVENT_START_OF_IFD;\n } else {\n skipRemainingTagsInCurrentIfd();\n }\n } else if (event instanceof ImageEvent) {\n mImageEvent = (ImageEvent) event;\n return mImageEvent.type;\n } else {\n ExifTagEvent tagEvent = (ExifTagEvent) event;\n mTag = tagEvent.tag;\n if (mTag.getDataType() != ExifTag.TYPE_UNDEFINED) {\n readFullTagValue(mTag);\n checkOffsetOrImageTag(mTag);\n }\n if (tagEvent.isRequested) {\n return EVENT_VALUE_OF_REGISTERED_TAG;\n }\n }\n }\n return EVENT_END;\n }", "private Integer getNextSequenceNumber(String sequenceKey) {\n return getSequenceAccessorService().getNextAvailableSequenceNumber(sequenceKey).intValue();\n }", "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 Image getImg(){\n\t\treturn imgs[count];\n\t}", "public T getNextItem();", "public void revealImage(int current){\r\n System.out.println(gameBoard[current].getPicture());\r\n if(clickable){\r\n clickable = false;\r\n /*Getting the image in our ImageArray[current] and setting the image to the new image from our\r\n card Object in our gameBoard, adding the new image to the grid, to display, and using cardIndx\r\n object to store the col Index and Row Index*/\r\n imageArr[current] = new ImageView(new Image(gameBoard[current].getPicture()));\r\n grid.add(imageArr[current], cardIndx[current].getColIndex(), cardIndx[current].getRowIndex());\r\n \r\n if(ctr == 0){\r\n clicked[0] = current;\r\n clickable = true;\r\n ctr++;\r\n }\r\n \r\n else{\r\n imageArr[current] = new ImageView(new Image(gameBoard[current].getPicture()));\r\n grid.add(imageArr[current], cardIndx[current].getColIndex(), cardIndx[current].getRowIndex());\r\n \r\n clicked[1] = current;\r\n ctr = 0; \r\n try {\r\n \r\n Thread.sleep(300);\r\n compare();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n }\r\n \r\n \r\n \r\n }", "private int next(int index)\n\t{\n\t\tif (index == list.length - 1)\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn index + 1;\n\t\t}\n\t}", "int advanceSlide(){\n if (this.currentSlide<slides.size()){\n this.currentSlide++;\n }\n return this.currentSlide;\n }", "public void getImage(int index) {\n\t\tcurrentIndex = index;\n Intent pickPhoto = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(pickPhoto, 1);//one can be replaced with any action code\n }", "public int getNext(){\n synchronized (ThreadSave.class){\n if(value > 0){\n return 1;\n }\n else if (value < 0){\n return -1;\n }\n else\n return value ++;\n }\n\n }", "public int getPosition()\n {\n return m_sequence;\n }", "public Prism getNext() {\r\n\t\treturn next;\r\n\t}", "public Image getImage() {\n float percent = (System.currentTimeMillis() - animationStart) % animationDuration / (float)animationDuration;\n return frames[(int) (percent * frames.length)];\n }" ]
[ "0.68666464", "0.6840917", "0.67011434", "0.6383158", "0.61047083", "0.6061828", "0.59432995", "0.5852638", "0.5831601", "0.57428163", "0.57272214", "0.5724682", "0.5691006", "0.56714094", "0.55899596", "0.55458826", "0.5541818", "0.5516672", "0.5513606", "0.55062455", "0.5489023", "0.54781413", "0.5461187", "0.54558593", "0.5443431", "0.5432724", "0.54209745", "0.54143107", "0.5399726", "0.5393204", "0.5392151", "0.53814656", "0.53554606", "0.53534925", "0.5350151", "0.5349199", "0.53480744", "0.53473574", "0.53443474", "0.5318301", "0.5314796", "0.5309861", "0.53003985", "0.52974254", "0.5290803", "0.5286819", "0.5286819", "0.5275724", "0.5262816", "0.5240257", "0.52389324", "0.52389276", "0.5223421", "0.5201876", "0.5200316", "0.51980203", "0.51767504", "0.5173935", "0.5158632", "0.5144911", "0.5142743", "0.5139851", "0.5130657", "0.5129705", "0.51295584", "0.51280946", "0.51270103", "0.5119316", "0.5119195", "0.5119195", "0.5119195", "0.5110724", "0.5106807", "0.51065373", "0.5093904", "0.5093565", "0.50933594", "0.50928086", "0.50824475", "0.5080677", "0.5080193", "0.5080193", "0.5080193", "0.5067116", "0.50620025", "0.50579494", "0.505462", "0.5049582", "0.5040285", "0.50369877", "0.5033431", "0.50264674", "0.50250316", "0.50186884", "0.50182474", "0.49974087", "0.49973205", "0.49955657", "0.49859747", "0.4980168", "0.4976629" ]
0.0
-1
submit current img and return a new sample to notate
@PostMapping(value = "/notation/submitNotation", consumes = "application/json", produces = "application/json") public boolean submitNotation(@RequestBody SampleVo sampleVo) { sampleService.submitNotation(sampleVo); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createImgSample() throws IOException {\n\t\tSystem.out.print(\"[INFO][PLUGIN][REPLY]:Creating IMG Sample...\");\n\t\tURL url = new URL(\"http://w23.loxa.edu.tw/mm974401/SmallNight2019.png\");\n\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\n\t\tcon.setRequestProperty(\"User-agent\", \" Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0\");\n\t\tBufferedInputStream in = new BufferedInputStream(con.getInputStream());\n\t\tbyte[] data = new byte[1024];\n\t\tnew File(\"reply/img/Sample\").mkdir();\n\t\tFile sampImg = new File(\"reply/img/Sample/SmallNight2019.png\");\n\t\tFileOutputStream fos = new FileOutputStream(sampImg);\n\t\tint n;\n\t\twhile((n=in.read(data,0,1024))>=0) \n\t\t\tfos.write(data,0,n);\n\t\tfos.flush();\n\t\tfos.close();\n\t\tin.close();\n\t\tFileWriter sampCmd = new FileWriter(\"reply/cmd/SampleImg.yml\");\n\t\tsampCmd.write(\"img\\n\");\n\t\tsampCmd.write(\"Sample\\n\");\n\t\tsampCmd.write(\"sample||Sample||TEST||test\\n\");\n\t\tsampCmd.write(\"break\\n\");\n\t\tsampCmd.flush();\n\t\tsampCmd.close();\n\t\tSystem.out.println(\"DONE!\");\n\t}", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}", "public void run() {\nif(i[0] ==le.size()){\n i[0]=0;}\n File file = new File(\"/var/www/html/PawsAndClaws/web/bundles/uploads/brochures/\" + le.get( i[0]).getBrochure());\n\n Image it = new Image(file.toURI().toString(), 500, 310, false, false);\n eventspicture.setImage(it);\n i[0]++;\n }", "public void run() {\n ImageQuestion temp = imageQuestionArrayList.get(counter);\n // Toast.makeText(GuessTheImage.this, temp.getClue(), Toast.LENGTH_LONG).show();\n displayClue.setText(temp.getClue());\n\n moveToNextQuestion();\n\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString name = file.getName().split(\"\\\\.\")[0].trim(); //获取当前图片的名字\n\t\t\tif(name.equals(answerText.getText().trim())) {\n\t\t\t\tanswerText.setText(\"\");\n\t\t\t\tresultText.setText(\"回答正确!\");\n\t\t\t\tfile = files[new Random().nextInt(files.length)];\n\t\t\t\ttry {\n\t\t\t\t\tpicturePanel.image = getImage(file);\n\t\t\t\t\tpicturePanel.repaint();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tanswerText.setText(\"\");\n\t\t\t\tresultText.setText(\"回答错误!\");\n\t\t\t}\n\t\t}", "private void getNewImage() {\n try {\n URL imageUrl = new URL(path);\n URLConnection uc = imageUrl.openConnection();\n\n InputStream is = uc.getInputStream();\n BufferedInputStream bis = new BufferedInputStream(is);\n\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n int current;\n while ((current = bis.read()) != -1) {\n buffer.write((byte) current);\n }\n final byte[] data = buffer.toByteArray();\n // enqueue UI update as a priority\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n public void run() {\n view.setImageBitmap(BitmapFactory.decodeByteArray(\n data, 0, data.length));\n }\n });\n // update database while that is queueing\n ContentValues values = new ContentValues();\n values.put(MovieEntry.COLUMN_POSTER, data);\n context.getContentResolver().update(MovieEntry.buildMovieUriWithId(movieId),\n values, null, null);\n } catch (Exception E) {\n Log.i(TAG, E.toString());\n E.printStackTrace();\n }\n }", "public void act() {\n setImage(myGif.getCurrentImage());\n }", "public RoeImage takePicture() \r\n {\r\n // return variable\r\n RoeImage result = new RoeImage();\r\n \r\n // take picture \r\n this.cam.read(this.frame);\r\n \r\n // update timestamp for image capturing\r\n this.timestamp = System.currentTimeMillis();\r\n \r\n // add picture to result\r\n result.SetImage(this.frame);\r\n \r\n // add timestamp of captured image\r\n result.setTimeStamp(this.timestamp);\r\n\r\n // the image captured with properties\r\n return result;\r\n }", "public String getNewImage() {\r\n\t\treturn newImage;\r\n\t}", "protected void changePic() {\nif(framesforUser.isEmpty())\n{\nToast.makeText(getApplicationContext(), \"Finished!\", Toast.LENGTH_LONG);\nmodeTextView.setText(\"Finished\");\nnewImgButton.setEnabled(false);\n\n}\nelse{\n\tCollections.shuffle(framesforUser);\n\n\tcurrentPicIndex=framesforUser.get(0);\n\n\t\t Log.e(\"SY\", \"Current PicIndex= \"+currentPicIndex+\" \"+framesforUser.get(0));\n\t\t currentOverlay = getResources().getDrawable(resourcefromframeorder[framesforUser.get(0)]);\n\t\t \n\t\t overlayview.setImageDrawable(currentOverlay);\n\t\t cameraframe.removeView(overlayview);\n\t\t cameraframe.addView(overlayview,1);\n\n\t\t framenumTextView.setText(currentPicIndex+\"\");\n\t\t\tcountdownView.setText(framesforUser.size()+\"\");\n\n\t}\n }", "void seTubeUpImage(String image);", "public void takePicture() {\n LightMeter lightMeter = new LightMeter(film.getSpeed());\n shutter.setSeconds(lightMeter.getRecommendedSpeed());\n aperture.setSize(lightMeter.getRecommendedAperture());\n shutter.trigger();\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tuploadCurrentImage();\n\t\t} catch (IOException | InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Call function from client with the Image URL\n\t}", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {\n pcp=new Picture(pctcollection);\nboolean result=pcp.insertData();\nif(result)\n \n JOptionPane.showMessageDialog(this,\"PICTURES Successfully INSERTED\");\nelse\n JOptionPane.showMessageDialog(this,\"PICTURES not Successfully INSERTED\");\n \n }", "public void actionPerformed(ActionEvent e) {\n img = readImage(tfIDRead.getText());\n repaint();\n }", "void update_sample(int new_sample) {\n\t sample_choice = new_sample;\n\t combine_message_and_sample();\n\t update_content();\n }", "public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }", "protected void doPostAlgorithmActions() {\r\n\r\n if (displayLoc == NEW) {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }\r\n }", "void imFinished();", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ts[0] = pathImage;\n\t\t\t\t\t\tString names = name.getText().toString();\n\t\t\t\t\t\tString types = type.getText().toString();\n\t\t\t\t\t\tString characters = character.getText().toString();\n\t\t\t\t\t\tString notes = note.getText().toString();\n\t\t\t\t\t\tString sexs = sex.getText().toString();\n\t\t\t\t\t\tDouble weights = Double.parseDouble(weight.getText().toString());\n\t\t\t\t\t\tint ages = Integer.parseInt(age.getText().toString());\n\t\t\t\t\t\t\n\t\t\t\t\t\tUpload u = new Upload(NewPet.this, s);\n\t\t\t\t\t\tu.Commit();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile(u.getUrls() == null);\n\t\t\t\t\t\ts = u.getUrls();\n\t\t\t\t\t\t\n\t\t\t\t\t\tCreatePet cp = new CreatePet(NewPet.this, names, types, characters, notes\n\t\t\t\t\t\t\t\t, sexs, weights, ages, s);\n\t\t\t\t\t\tcp.Commit();\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile(cp.getFlag() == 0){\n\t\t\t\t\t\t\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "protected void doPostAlgorithmActions() {\r\n if (outputPanel.isOutputNewImageSet()) {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }\r\n }", "@Override\n public void run() {\n ImageService.uploadProductImage(sequentialClient, gtin, imagePath, new\n PLYCompletion<ProductImage>() {\n @Override\n public void onSuccess(ProductImage result) {\n Log.d(\"UploadPImageCallback\", \"New image for product with GTIN \" + gtin + \" \" +\n \"uploaded\");\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded_more_info,\n Snackbar.LENGTH_LONG).show();\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.image_uploaded, Snackbar\n .LENGTH_LONG).show();\n }\n DataChangeListener.imageCreate(result);\n }\n\n @Override\n public void onPostSuccess(ProductImage result) {\n loadProductImage(imagePath, productImage);\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"UploadPImageCallback\", error.getMessage());\n LoadingIndicator.hide();\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar\n .LENGTH_LONG).show();\n }\n });\n }", "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}", "private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }", "public void revealImage(int current){\r\n System.out.println(gameBoard[current].getPicture());\r\n if(clickable){\r\n clickable = false;\r\n /*Getting the image in our ImageArray[current] and setting the image to the new image from our\r\n card Object in our gameBoard, adding the new image to the grid, to display, and using cardIndx\r\n object to store the col Index and Row Index*/\r\n imageArr[current] = new ImageView(new Image(gameBoard[current].getPicture()));\r\n grid.add(imageArr[current], cardIndx[current].getColIndex(), cardIndx[current].getRowIndex());\r\n \r\n if(ctr == 0){\r\n clicked[0] = current;\r\n clickable = true;\r\n ctr++;\r\n }\r\n \r\n else{\r\n imageArr[current] = new ImageView(new Image(gameBoard[current].getPicture()));\r\n grid.add(imageArr[current], cardIndx[current].getColIndex(), cardIndx[current].getRowIndex());\r\n \r\n clicked[1] = current;\r\n ctr = 0; \r\n try {\r\n \r\n Thread.sleep(300);\r\n compare();\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n }\r\n \r\n \r\n \r\n }", "public void saveImage(){\n new Thread() {\n public void run() {\n String image_url = stuffRoomInfo.getStuffLink();\n Log.i(\"OGT\", \"image_url:in showImage \" + image_url);\n getOGTag(image_url);\n // Display a png image from the specified file\n ImageUrlSendServer();\n }\n }.start();\n }", "public void changeAction()\r\n {\r\n bufferedImage = imageCopy[0];\r\n edited = imageCopy[1];\r\n cropedPart = imageCopy[2];\r\n bufferedImage = imageCopy[3];\r\n\r\n isBlured = statesCopy[0];\r\n isReadyToSave = statesCopy[1];\r\n isChanged = statesCopy[2];\r\n isInverted = statesCopy[3];\r\n isRectangularCrop = statesCopy[4];\r\n isCircularCrop = statesCopy[5];\r\n isImageLoaded = statesCopy[6];\r\n }", "private void takePicture() {\n\n captureStillPicture();\n }", "public void post() {\r\n // If first or second frame, don't update or save.\r\n if(firstFrame||secondFrame|| (!isTiling)) return;\r\n\r\n // Find image ID from reverse row order\r\n int imgid=tileImgCnt%tileNum+(tileNum-tileImgCnt/tileNum-1)*tileNum;\r\n int idx=(imgid%tileNum);\r\n int idy=(imgid/tileNum);\r\n\r\n // DAVE: in forward row order\r\n imgid = tileImgCnt;\r\n idx=(imgid%tileNum);\r\n idy=(imgid/tileNum);\r\n\r\n // Get current image from sketch and draw it into buffer\r\n p.loadPixels();\r\n tileImg.set(idx*p.width, idy*p.height, p.g);\r\n\r\n // DAVE: time to stream output image?\r\n if (idx==tileNum-1)\r\n appendTGA(tileImg.pixels);\r\n\r\n // Increment tile index\r\n tileImgCnt++;\r\n perc=100*((float)tileImgCnt/(float)tileNumSq);\r\n if(perc-percMilestone>5 || perc>99) {\r\n p.println(p.nf(perc,3,2)+\"% completed. \"+tileImgCnt+\"/\"+tileNumSq+\" images saved.\");\r\n percMilestone=perc;\r\n }\r\n\r\n if(tileImgCnt==tileNumSq) tileFinish();\r\n else tileInc();\r\n }", "public static void clickrun2() {\n JFileChooser file = new JFileChooser();\n file.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"*.images\", \"jpg\", \"png\");\n file.addChoosableFileFilter(filter);\n int result = file.showSaveDialog(null);\n if (result == JFileChooser.APPROVE_OPTION) {\n File selectedFile = file.getSelectedFile();\n String path = selectedFile.getAbsolutePath();\n lblAnhsanphamsua.setIcon(ResizeImage2(path, null));\n ImagePast2 = path;\n System.out.println(ImagePast2);\n } else {\n\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tGraphVisHandler.saveImageByType(viz, System.getProperty(\"user.dir\") + \"/..\", graphFile, true, pw, 400, 400, CommonDef.ISMAPPING);\n\t\t\t\tSystem.out.println(\"---------\");\n\t\t\t\t\n\t\t\t\t//Upload\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void run() {\n Mat frame = grabFrame();\r\n\r\n//\t\t\t\t\t\t// convert and show the frame\r\n//\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\r\n//\t\t\t\t\t\tupdateImageView(currentFrame, imageToShow);\r\n }", "public void selectedImageButtonPushed(ActionEvent event) throws IOException {\n // get the Stage to open a new window\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"open Image\");\n //filter for .jpg and .png\n FileChooser.ExtensionFilter imageFilter = new FileChooser.ExtensionFilter(\"Image Files\",\"*.jpg\",\"*.png\");\n fileChooser.getExtensionFilters().add(imageFilter);\n // set the start directory\n String userDirectoryString = System.getProperty(\"user.home\")+\"\\\\Pictures\";\n File userDirectory = new File(userDirectoryString);\n // confirm that system can reach the directory\n if (!userDirectory.canRead())\n userDirectory = new File(System.getProperty(\"user.home\"));\n //set the file chooser to select initial directory\n fileChooser.setInitialDirectory(userDirectory);\n File imageFile = fileChooser.showOpenDialog(stage);\n if (imageFile != null && imageFile.isFile())\n {\n selectImage.setImage(new Image(imageFile.toURI().toString()));\n }\n }", "public Save(BufferedImage image){\n\tthis.new_buff_image = image;\n }", "BufferedImage getSelectedImage();", "@Override\n public void run() {\n Mat frame = grabFrame();\n // convert and show the frame\n Image imageToShow = FXDIPUtils.mat2Image(frame);\n updateImageView(getCurrentFrame(), imageToShow);\n }", "public void camara(){\n Intent fotoPick = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n String fecha = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\").format(new Date());\n Uri uriSavedImage=Uri.fromFile(new File(getExternalFilesDir(Environment.DIRECTORY_DCIM),\"inmueble_\"+id+\"_\"+fecha+\".jpg\"));\n fotoPick.putExtra(MediaStore.EXTRA_OUTPUT, uriSavedImage);\n startActivityForResult(fotoPick,TAKE_PICTURE);\n\n }", "public ImageObj currentImage() {\n if (model.getImageList().size() == 0) {\n noImages = true;\n return new ImageObj(\"http://www.xn--flawiler-fachgeschfte-n2b.ch/wp-content/uploads/2016/09/sample-image.jpg\", \"No Image\");\n }\n return model.getImageList().get(position);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }", "private void enhanceImage(){\n }", "@Override\n public ExtensionResult getImage(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n\n ButtonTemplate image = new ButtonTemplate();\n image.setPictureLink(SAMPLE_IMAGE_PATH);\n image.setPicturePath(SAMPLE_IMAGE_PATH);\n\n ImageBuilder imageBuilder = new ImageBuilder(image);\n output.put(OUTPUT, imageBuilder.build());\n\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "public void displayNewImage() {\n\t\tthis.canvas.display();\n\t}", "@InternalOnly\n @PostMapping\n public ResponseEntity<Picture> newPicture(@RequestBody NewPictureReq picture) {\n Objects.requireNonNull(picture.getPicUrl(), \"Picture url is required.\");\n Picture createdPic = pictureManager.addNewPicture(picture);\n return ResponseEntity.status(HttpStatus.CREATED).body(createdPic);\n }", "public void addNewPicture() {\n ImageView imgView = (ImageView)findViewById(R.id.poll_object_btn_image);\n Resources res = getContext().getResources();\n if(this.type == \"generic\") {\n //add the new pciture for the generic type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"location\") {\n //add the new picture for the location type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }else if(this.type == \"picture\") {\n //add the new picture for the picture type\n Bitmap bitmap = BitmapFactory.decodeResource(res, R.drawable.generic_new);\n imgView.setImageBitmap(bitmap);\n }\n }", "private void analyzeImage() { // replace check picture with try catch for robustness\n try {//if user did select a picture\n bitmapForAnalysis = Bitmap.createScaledBitmap(bitmapForAnalysis, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmapForAnalysis);\n\n int size = bitmapForAnalysis.getRowBytes() * bitmapForAnalysis.getHeight();\n ByteBuffer byteBuffer = ByteBuffer.allocate(size);\n bitmapForAnalysis.copyPixelsToBuffer(byteBuffer);\n\n // These need to be saved to private member variables in order\n // to prevent successively piping too much info down multiple methods\n\n byteArrayToSave = byteBuffer.array();\n resultStringToSave = results.toString();\n\n\n //This code has been moved to the onSaveClick Interface method\n /*\n Prediction p = new Prediction(0, results.toString(), byteArray);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + results.toString() + \" bytearr: \" + byteArray);\n PredictionDatabase.insert(p);\n //PredictionDatabase.insert(new Prediction(1, \"please\", new byte[1]));\n */\n\n //This toast has been made shorter.\n Toast.makeText(this, \"Picture has been successfully analyzed\", Toast.LENGTH_SHORT).show();\n displayPredictionResult(results.toString());\n } catch (NullPointerException e) {//if user didn't select a picture, will just simply display a toast message\n Toast.makeText(this, \"No image has been selected\", Toast.LENGTH_SHORT).show();\n }\n }", "private void QueryScreenShot() {\n\t\tThread initThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\tlbIm1.setIcon(new ImageIcon(images.get(currentFrameNum)));\n\t\t\t}\n\t\t};\n\t\tinitThread.start();\n\t}", "public void postPhoto() throws InterruptedException, IOException, AWTException{\n\t\tString filepath= getTargetFilePath(\"PhotoToUpload\", \"Image\", \"jpeg\");\n\t\tSystem.out.println(\"File path is:\"+ filepath);\n\t\t\n\t\tclick(profileIcon);\n\t\tThread.sleep(1000);\n\t\tclick(PhotoTab);\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(PhotoUpload).sendKeys(filepath);\n\t\tclick(PostBttn);\n\t}", "public Result uploadImage() {\n MultipartFormData<File> body = request().body().asMultipartFormData();\n MultipartFormData.FilePart<File> fileInput = body.getFile(\"inputFile\");\n if (fileInput != null) {\n File file = (File) fileInput.getFile();\n String imageUrl = S3Action.putImg(s3, file, UUID.randomUUID().toString());\n return ok(afterPutImg.render(imageUrl));\n } else {\n return badRequest(\"error\");\n }\n }", "@Test(retryAnalyzer = RerunOnFailure.class, groups = {\"full\", \"mpx\"})\r\n public void RepresentativeImage_TC3217() throws Exception{\r\n \r\n \tReporter.log(\"STEP 1\");\r\n \tUserLogin userLogin = applib.openApplication();\r\n \tuserLogin.Login(config.getConfigValueString(\"Admin1Username\"), config.getConfigValueString(\"Admin1Password\"));\r\n \r\n \tReporter.log(\"STEP 2\");\r\n \tCreateDefaultContent createDefaultContent = new CreateDefaultContent(webDriver);\r\n \tString postTitle = createDefaultContent.Post(\"Published\");\r\n \t\r\n \tReporter.log(\"STEP 3\");\r\n \tnavigation.Content();\r\n \tSearchFor searchFor = new SearchFor(webDriver);\r\n \tsearchFor.EnterTitle(postTitle);\r\n \tsearchFor.ClickApplyBtn();\r\n \tsearchFor.VerifySearchThumbnailImgPresent(postTitle, \"HanSolo\");\r\n \t\r\n \tReporter.log(\"STEP 4\");\r\n \tnavigation.Content(\"Files\");\r\n \tThumbnails thumbnails = new Thumbnails(webDriver);\r\n \tthumbnails.VerifyThumbnailImagePresent(\"HanSolo\", \"1\");\r\n \r\n Reporter.log(\"STEP 5\");\r\n navigation.AddContent(\"Post\");\r\n \tBasicInformation basicInformation = new BasicInformation(webDriver);\r\n String postTitle2 = random.GetCharacterString(15);\r\n basicInformation.EnterTitle(postTitle2);\r\n basicInformation.EnterSynopsis();\r\n basicInformation.ClickCoverSelectBtn();\r\n SelectFile selectFile = new SelectFile(webDriver);\r\n selectFile.SwitchToSelectFileFrm();\r\n selectFile.ClickPub7MPXVideoBtn();\r\n \t\tselectFile.EnterTitle(\"AutomationWThumb\");\r\n \t\tselectFile.ClickApplyBtn();\r\n \t\tcontentParent.WaitForThrobberNotPresent();\r\n \t\tselectFile.ClickPub7MPXVideoBtn();\r\n \t\tselectFile.ClickMPXMediaThumbnailImage(\"nbclogosmall\", \"1\");\r\n \t\tcontentParent.WaitForThrobberNotPresent();\r\n \t\tThread.sleep(2000); //TODO - dynamic wait\r\n \t\tselectFile.ClickSubmitBtn();\r\n \t\tThread.sleep(2000); //TODO - dynamic wait\r\n webDriver.switchTo().defaultContent();\r\n contentParent.ClickSaveBtn();\r\n contentParent.VerifyMessageStatus(\"Post \" + postTitle2 + \" has been created.\");\r\n \r\n Reporter.log(\"STEP 6\");\r\n navigation.Content();\r\n searchFor.EnterTitle(postTitle2);\r\n \tsearchFor.ClickApplyBtn();\r\n \tsearchFor.VerifySearchThumbnailImgPresent(postTitle2, \"nbclogosmall\");\r\n \t\r\n \t//TODO - step 7 to repeat 1 through 6 for all content items as time allows\r\n }", "private void onImagePicked(@NonNull final byte[] imageBytes) {\n setBusy(true);\n\n // Make sure we don't show a list of old concepts while the image is being uploaded\n adapter.setData(Collections.<Concept>emptyList());\n\n new AsyncTask<Void, Void, ClarifaiResponse<List<ClarifaiOutput<Concept>>>>() {\n @Override protected ClarifaiResponse<List<ClarifaiOutput<Concept>>> doInBackground(Void... params) {\n // The default Clarifai model that identifies concepts in images\n final ConceptModel generalModel = App.get().clarifaiClient().getDefaultModels().foodModel();\n\n // Use this model to predict, with the image that the user just selected as the input\n return generalModel.predict()\n .withInputs(ClarifaiInput.forImage(ClarifaiImage.of(imageBytes)))\n .executeSync();\n }\n\n @Override protected void onPostExecute(ClarifaiResponse<List<ClarifaiOutput<Concept>>> response) {\n setBusy(false);\n if (!response.isSuccessful()) {\n showErrorSnackbar(R.string.error_while_contacting_api);\n return;\n }\n final List<ClarifaiOutput<Concept>> predictions = response.get();\n if (predictions.isEmpty()) {\n showErrorSnackbar(R.string.no_results_from_api);\n return;\n }\n adapter.setData(predictions.get(0).data());\n\n // INSERT METHOD FOR USER SELECTION OF FOOD\n\n // ADDED FOR DATABASE\n try {\n readCSVToMap(\"ABBREV_2.txt\");\n }\n catch (Exception e){\n Log.d(\"Failure\", \"CSV not read into database\");\n }\n String exampleResult = predictions.get(0).data().get(0).name();\n final List<String> list = listOfKeys(exampleResult);\n\n // change this line to take in user input\n final String key2 = list.get(0); // arbitrary selection of key\n\n final List<String> val = db.get(key2);\n final String message = String.valueOf(val.get(6)); //index 6 contains carb info\n Log.d(\"Output\", message);\n imageView.setImageBitmap(BitmapFactory.decodeByteArray(imageBytes, 0, imageBytes.length));\n }\n\n private void showErrorSnackbar(@StringRes int errorString) {\n Snackbar.make(\n root,\n errorString,\n Snackbar.LENGTH_INDEFINITE\n ).show();\n }\n }.execute();\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n //jika image picker membawa sebuah data berupa foto maka\r\n if (ImagePicker.shouldHandle(requestCode, resultCode, data)) {\r\n //ambil data foto yang dipilih\r\n Image image = ImagePicker.getFirstImageOrNull(data);\r\n //ambil path/lokasi dari foto/gambar yang dipilih\r\n File imgFile = new File(image.getPath());\r\n if (imgFile.exists()) {\r\n //convert path ke bitmap dan tampilkan pada imageview\r\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\r\n imgTranscript.setImageBitmap(myBitmap);\r\n\r\n //set variabel change true karena gambar telah diupdate\r\n isPicChange = true;\r\n }\r\n }\r\n\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tMat frame = grabFrame();\n\t\t\t\t\t\t// convert and show the frame\n\t\t\t\t\t\tImage imageToShow = Utils.mat2Image(frame);\n\t\t\t\t\t\tupdateImageView(imgPanel, imageToShow);\n\t\t\t\t\t}", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "int insertSelective(SysPic record);", "public void videoOriginal(BufferedImage img) {\n\t\t// update image\n\t\tcurrFrame++;\n\t\tpanel.removeAll();\n\t\tpanel.setLayout(new BorderLayout());\n\t\tJLabel label = new JLabel(new ImageIcon(img));\n\t\tlabel.setPreferredSize(new Dimension(img.getWidth(), img.getHeight()));\n\t\tpanel.add(label, BorderLayout.CENTER);\n\t\tpanel.revalidate();\n\t\tpanel.repaint();\n\t\tslider.setValue(currFrame);\n\t}", "public synchronized void addNewImage(BufferedImage img, File file) {\r\n\t\tint image_pk = db.insertImage(file.getName(), file.getAbsolutePath(), DEFAULT_TAG_PK);\r\n\t\tSaveImageOnDisk saveImage = new SaveImageOnDisk(img, file, db.getCacheName(image_pk)); \r\n\t\tsaveImage.start();\r\n\t}", "private void pickFromCamera() {\n ContentValues values = new ContentValues();\n values.put(MediaStore.Images.Media.TITLE, \"Temp Pic\");\n values.put(MediaStore.Images.Media.DESCRIPTION, \"Temp Description\");\n\n //put Image uri\n image_uri = UserProfile.this.getContentResolver().insert(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);\n\n //intent to start Camera\n Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n cameraIntent.putExtra(MediaStore.EXTRA_OUTPUT, image_uri);\n startActivityForResult(cameraIntent, IMAGE_PICK_CAMERA_CODE);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK) {\n\t\t\tswitch (requestCode) {\n//\t\t\tcase EDIT_FROM_EDITOR:\n//\t\t\t\tbyte[] bb = data.getByteArrayExtra(\"bitmap\");\n//\t\t\t\tBitmap tmp_bitmap = BitmapFactory.decodeByteArray(bb, 0,\n//\t\t\t\t\t\tbb.length);\n//\t\t\t\tcur_bitmap_list.add(tmp_bitmap);\n//\t\t\t\tiv_seller_reply_img.setImageBitmap(cur_bitmap_list.get(0));\n//\t\t\t\tbreak;\n\t\t\tcase PICK_FROM_ALBUM :\n//\t\t\t\tIntent intent = new Intent(Consumer_post.this, ImageEditActivity.class);\n//\t\t\t\tintent.putExtra(\"output\", data.getData());\n//\t\t\t\tintent.putExtra(\"flag\", \"album\");\n//\t\t\t\tstartActivityForResult(intent, EDIT_FROM_EDITOR);\n\t\t\t\tif (!addImage(data)) {\n\t\t\t\t\tToast.makeText(Seller_reply.this, \"사진 첨부 실패\",\n\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\tbreak;\n//\t\t\tcase PICK_FROM_CAMERA:\n//\t\t\t\tIntent intent2 = new Intent(Seller_reply.this,\n//\t\t\t\t\t\tImageEditActivity.class);\n//\t\t\t\tintent2.putExtra(\"output\", path + \"/\" + TEMP_IMAGE);\n//\t\t\t\tintent2.putExtra(\"flag\", \"camera\");\n//\t\t\t\tstartActivityForResult(intent2, EDIT_FROM_EDITOR);\n//\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void imagesaver(String name){\n\tthis.new_image_name = name;\n\t try{\n\t\tImageIO.write(new_buff_image, \"png\", new File(new_image_name));\n\t }\n\t catch(IOException e){\n\t\tSystem.out.println(\"The desired output file is invalid. Please try running the program again.\");\n\t\tSystem.exit(0);\n\t }\n }", "public Mat ProcessImage(Mat newFrame) {\n current = newFrame;\n\n tmp = new Mat((int)current.size().height, (int)current.size().width, CvType.CV_8UC1);\n\n currentGray = new Mat(height, width, CvType.CV_8UC1);\n Imgproc.cvtColor(current, currentGray, Imgproc.COLOR_RGBA2GRAY);\n getBackground();\n getBinaryImage();\n postProcessing();\n calculateCentroid();\n calculateMovement();\n calculateBoxMovement();\n\n Log.e(TAG, \"Send delta Movement: \" + boxMovement.getFirst());\n change.firePropertyChange(\"position\", null, boxMovement.getFirst());\n\n return binary;\n }", "public void getImage(int index) {\n\t\tcurrentIndex = index;\n Intent pickPhoto = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(pickPhoto, 1);//one can be replaced with any action code\n }", "public void camera(){\n System.out.println(\"I am taking pictures...\");\r\n }", "public abstract Image gen();", "public BufferedImage getRandomImage() {\n\n Random randomRow = new Random();\n int rowIndex = (randomRow.nextInt(16)) * 8;\n\n Random randomColumn = new Random();\n int columnIndex = (randomColumn.nextInt(16)) * 12;\n\n System.out.println(\"rowIndex = \" + rowIndex + \", columnIndex = \" + columnIndex);\n\n return input.getSubimage(rowIndex, columnIndex, subImageWidth, subImageHeight);\n }", "public ImageIcon ImagePrompt(){\r\n\t\t\tImageIcon promptImage = null;\r\n\t\t\tRandom rand = new Random();\r\n\t\t\tImageIcon aImage = new ImageIcon(\"aFinal.png\");\r\n\t\t\tImageIcon bImage = new ImageIcon(\"bFinal.png\");\r\n\t\t\tImageIcon cImage = new ImageIcon(\"cFinal.png\");\r\n\t\t\tImageIcon dImage = new ImageIcon(\"dFinal.png\");\r\n\t\t\tImageIcon eImage = new ImageIcon(\"eFinal.png\");\r\n\t\t\tImageIcon fImage = new ImageIcon(\"fFinal.png\");\r\n\t\t\tImageIcon gImage = new ImageIcon(\"gFinal.png\");\r\n\t\t\tImageIcon e1Image = new ImageIcon(\"eFinal1.png\");\r\n\t\t\tImageIcon f1Image = new ImageIcon(\"fFinal1.png\");\r\n\t\t\t\r\n\t\t\tImageIcon[] note ={aImage, bImage, cImage, dImage, eImage, fImage, gImage, e1Image, f1Image};\r\n\t\t\t\r\n\t\t\tint noteIndex = rand.nextInt(note.length);\r\n\t\t\tpromptImage = note[noteIndex];\r\n\t\t\t\r\n\t\t\treturn promptImage;\r\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tFile fileCache = ImageOptions.getCache(AddPsXqyzActivity.this);\r\n\t\t\t\tIntent intent = new Intent();\r\n\t\t\t\tintent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);\r\n\t\t\t\t// intent.addCategory(Intent.CATEGORY_DEFAULT);\r\n\t\t\t\tcurrentfile = new File(fileCache.getPath() + \"/\"\r\n\t\t\t\t\t\t+ UUID.randomUUID().toString() + \".jpg\");\r\n\t\t\t\tif (currentfile.exists()) {\r\n\t\t\t\t\tcurrentfile.delete();\r\n\t\t\t\t}\r\n\t\t\t\tUri uri = Uri.fromFile(currentfile);\r\n\t\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, uri);\r\n\t\t\t\tstartActivityForResult(intent, 3);\r\n\t\t\t\tmPopupWindow.dismiss();\r\n\t\t\t}", "@Override\npublic void actionPerformed(ActionEvent e) {\n\tif (e.getSource()==button) {\n\t\tshowPictureFromTheInternet(\"https://s3.amazonaws.com/cdn-origin-etr.akc.org/wp-content/uploads/2017/11/12231413/Labrador-Retriever-MP.jpg\");\n\t}\n\tif(e.getSource()==button1) {\n\t\tshowPictureFromTheInternet(\"https://images2.minutemediacdn.com/image/upload/c_fill,g_auto,h_1248,w_2220/v1555451599/shape/mentalfloss/istock_000008208368_small.jpg?itok=ezJlv0IU\");\n\t}\n}", "public void run() {\n System.out.print(Thread.currentThread().getId() + \"\\n\");\n try {\n try {\n File outfile = new File(dataPath + imageFile.getName().replace(\"jpg\", \"txt\"));\n if (outfile.exists()) {\n return;\n }\n String ms = \"nada\";\n records.write(\"<\");\n records.write(imageFile.getName() + \">\\n\");\n BufferedImage bin = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n bin = ImageHelpers.scale(bin, maxHeight);\n orig = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n orig = ImageHelpers.scale(orig, maxHeight);\n BufferedImage stored = cloneImage(ImageHelpers.scale(orig, maxHeight));\n BufferedImage copy = ImageHelpers.readAsBufferedImage(imageFile.getAbsolutePath());\n copy = ImageHelpers.scale(copy, maxHeight);\n records.flush();\n System.out.println(imageFile.getName());\n PlanarImage threshedImage = JAI.create(\"fileload\", imageFile.getAbsolutePath());\n BufferedImage ok = threshedImage.getAsBufferedImage();\n bin = ImageHelpers.scale(ImageHelpers.binaryThreshold(ok, 4), maxHeight);\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n Boolean doBlobExtract = true;\n if (doBlobExtract) {\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n orig.setRGB(i, j, -1);\n }\n }\n //ImageHelpers.writeImage(bin, \"/usr/web/broken/\" + imageFile.getName() + \"bin\" + \".jpg\");\n Vector<blob> blobs = new Vector<blob>();\n for (int i = 0; i < bin.getWidth(); i++) {\n for (int j = 0; j < bin.getHeight(); j++) {\n if (bin.getRGB(i, j) != -1) {\n blob thisOne = new blob(i, j);\n thisOne.copy = orig;\n if (blobs.size() % 3 == 0) {\n thisOne.color = 0xcc0000;\n }\n if (blobs.size() % 3 == 1) {\n thisOne.color = 0x000099;\n }\n if (blobs.size() % 3 == 2) {\n thisOne.color = 0x006600;\n }\n thisOne.count(bin, thisOne.getX(), thisOne.getY());\n if (thisOne.size > 5) {\n blobs.add(thisOne);\n if ((thisOne.getSize() - (thisOne.getSize() % 10)) != 5000 && (thisOne.getSize() - (thisOne.getSize() % 10)) != 0) {\n\n thisOne.calculateRelativeCoordinates();\n thisOne.drawBlob(orig, thisOne.color);\n\n }\n }\n }\n }\n }\n BufferedWriter blobWriter = new BufferedWriter(new FileWriter(outfile));\n\n int ctr = 1;\n for (int i = 0; i < blobs.size(); i++) {\n if ((blobs.get(i).size < 4000)) {\n try {\n blobs.get(i).id = ctr;\n ctr++;\n //blobs.get(i).color=0x000000;\n blobs.get(i).arrayVersion = blobs.get(i).pixels.toArray(new pixel[blobs.get(i).pixels.size()]);\n int maxX = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].x > maxX) {\n maxX = blobs.get(i).arrayVersion[k].x;\n }\n }\n blobs.get(i).width = maxX;\n int maxY = 0;\n for (int k = 0; k < blobs.get(i).arrayVersion.length; k++) {\n if (blobs.get(i).arrayVersion[k].y > maxY) {\n maxY = blobs.get(i).arrayVersion[k].y;\n }\n }\n blobs.get(i).height = maxY;\n\n\n blobs.get(i).matrixVersion = new matrixBlob(blobs.get(i));\n } catch (Exception e) {\n e.printStackTrace();\n }\n // blob.writeBlob(blobWriter, blobs.get(i));\n blob.writeMatrixBlob(blobWriter, blobs.get(i));\n blobs.set(i, null);//.matrixVersion=null;\n //blobs.get(i).arrayVersion=null;\n // blob.writeBlob(blobWriter, blobs.get(i));\n //blob.drawBlob(orig, blobs.get(i).x, blobs.get(i).y, blobs.get(i), 0x000000);\n }\n }\n System.out.print(\"found \" + ctr + \" blobs\\n\");\n\n }\n\n try {\n\n\n if (!doBlobExtract) {\n orig = bin;\n }\n //ImageHelpers.writeImage(orig, \"/usr/web/broken/\" + imageFile.getName() + \"broken\" + \".jpg\");\n\n Vector<line> lines = new Vector();\n createViewableVerticalProfile(orig, imageFile.getName(), lines);\n //ImageHelpers.writeImage(ImageHelpers.createViewableVerticalProfile(orig, imageFile.getName(), lines), \"/usr/web/broken/profile\" + imageFile.getName() + \"broken\" + \".jpg\");\n FileWriter writer = null;\n //writer = new FileWriter(new File(\"/usr/web/queries/\" + imageFile.getName() + \"\"));\n orig = ImageHelpers.scale(orig, 1000);\n Detector d = new Detector(orig, orig);\n if (lines.size() > 3) {\n lines = new Vector();\n lines.add(new line());\n lines.get(0).setStartHorizontal(0);\n lines.get(0).setStartVertical(0);\n lines.get(0).setWidth(orig.getWidth());\n lines.get(0).setDistance(maxHeight);\n }\n //d.detect();\n for (int i = 0; i < lines.size(); i++) {\n line col = lines.get(i);\n BufferedImage storedBin = ImageHelpers.binaryThreshold(stored, 4);\n BufferedImage colOnly = storedBin.getSubimage(col.getStartHorizontal(), col.getStartVertical(), col.getWidth(), col.getDistance());\n d = new Detector(colOnly, colOnly);\n d.debugLabel = imageFile.getName();\n d.forceSingle = true;\n d.detect();\n System.out.print(\"total lines in col is \" + d.lines.size() + \"\\n\");\n for (int j = 0; j < d.lines.size(); j++) {\n line r = d.lines.get(j);\n r.setStartHorizontal(r.getStartHorizontal() + col.getStartHorizontal());\n r.setStartVertical(r.getStartVertical() + col.getStartVertical());\n //r.commitQuery(writer, imageFile.getName());\n if (j % 2 == 1) {\n int color = 0x0000ff;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n } else {\n int color = 0xff0000;\n stored = highlightBlock(stored, r.getStartHorizontal(), r.getStartVertical() - r.getDistance(), r.getDistance(), r.getWidth(), color);\n }\n }\n }\n //ImageHelpers.writeImage(stored, \"\" + \"/usr/web/processed/\" + imageFile.getName());\n\n\n\n //writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n } catch (IOException ex) {\n System.out.print(ex.getMessage() + \"\\n\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return;\n }", "public void changePicture()\n\t{\n\t\twhile(usedIndex2.contains(unknownWordFileIndex))\n\t\t\tunknownWordFileIndex = r.nextInt(unknownWordFile.size());\n\t\t\n\t\t// Send to all\n\t\tfor(ConnectionThread i : connectionPool)\n\t\t{\n\t\t\ti.sendMessage(\"changePicture\");\n\t\t\ti.sendMessage(unknownWordFile.get(unknownWordFileIndex));\n\t\t}\n\t\t\t\n\t}", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent returnedIntent) {\r\n super.onActivityResult(requestCode, resultCode, returnedIntent);\r\n try {\r\n // When an Image is picked\r\n if (resultCode == RESULT_OK && null != returnedIntent) {\r\n // Get the Image from data\r\n Uri imageLocation = returnedIntent.getData();\r\n InputStream imageStream = getContentResolver().openInputStream(imageLocation);\r\n Bitmap selectedImage = BitmapFactory.decodeStream(imageStream);\r\n selectedImage = getResizedBitmap(selectedImage,1080/4,1920/4);\r\n currentUserEdit.setImageBitmap(selectedImage);\r\n currentSaveCharacter.setImage(selectedImage);\r\n saveCharacters(context);\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(this, \"ImageGet ERROR\", Toast.LENGTH_LONG)\r\n .show();\r\n Log.d(\"ImageGet ERROR\", e.toString());\r\n }\r\n\r\n }", "public static void singleRunTest(){ \t\n BlueRand random = new BlueRand(\"sample/input/a.jpg\", \"sample/input/b.jpg\");\n random.setOutputFile(\"sample/output/singleRun_ab.txt\");\n random.setOutputImage(\"sample/output/singleRun_ab.bmp\");\n random.considerTwoLSB(false);\n try {\n\t ArrayList<Byte> output = random.generateRandom();\n\t System.out.println(\"Single run finished. Bytes generated: \" + output.size());\n } catch(BlueRandException e){\n \te.printStackTrace();\n }\n }", "public void uploadImage(int pos) throws InterruptedException {\n\t}", "private void choseImage() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(intent, GALLERY_REQ_CODE);\n } else {\n Toast.makeText(this, R.string.no_image_picker, Toast.LENGTH_SHORT).show();\n }\n }", "public TestImageBLOB() {\n // Setup database connection\n try {\n conn = DriverManager.getConnection(\n \"jdbc:mysql://localhost:8888/rental_db\", \"myuser\", \"xxxx\");\n } catch(SQLException ex) {\n ex.printStackTrace();\n }\n \n // Setup GUI\n this.setLayout(new BorderLayout());\n pnlRead = new JPanel();\n this.add(pnlRead, BorderLayout.NORTH); // Top panel for read image\n pnlWrite = new JPanel();\n this.add(pnlWrite, BorderLayout.SOUTH); // Bottom panel for write image\n \n pnlRead.add(new JLabel(\"Read Image for Vehicle No:\"));\n tfIDRead = new JTextField(\"SBA1111A\", 10);\n pnlRead.add(tfIDRead);\n btnRead = new JButton(\"Read Image\");\n pnlRead.add(btnRead);\n btnRead.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n // Read image from database for the selected ID\n img = readImage(tfIDRead.getText());\n repaint();\n }\n });\n \n pnlWrite.add(new JLabel(\"Write Image for Vehicle No:\"));\n tfIDWrite = new JTextField(\"GA5555E\", 10);\n pnlWrite.add(tfIDWrite);\n \n btnWrite = new JButton(\"Select Image\");\n btnWrite.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JFileChooser chooser = new JFileChooser();\n int returnCode = chooser.showOpenDialog(null);\n File file = null;\n if (returnCode == JFileChooser.APPROVE_OPTION) {\n file = chooser.getSelectedFile(); // Path to image\n // Insert image into database for the selected ID\n writeImage(file, tfIDWrite.getText());\n // Show confirmation message (need to check result)\n JOptionPane.showMessageDialog(TestImageBLOB.this,\n \"Image inserted.\", \"ImageDemo\",\n JOptionPane.PLAIN_MESSAGE);\n }\n }\n });\n pnlWrite.add(btnWrite);\n }", "private void postImg(File index) {\n FileInputStream imgIn = null;\n byte[] imgData = new byte[(int)index.length()];\n try {\n imgIn = new FileInputStream(index);\n imgIn.read(imgData);\n\n BufferedOutputStream imgOut = new BufferedOutputStream(connectionSocket.getOutputStream());\n\n\n out.println(OK);\n out.println(htmlType);\n out.println(closed);\n out.println(\"Content-Length: \" + index.length());\n out.write(ENDLINE);\n out.flush();\n imgOut.write(imgData, 0, (int)index.length());\n imgOut.flush();\n\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "public static void testPosterize(){\n\t Picture beach = new Picture(\"beach.jpg\");\n\t beach.explore();\n\t beach.posterize(8);\n\t beach.explore();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (mProImage != null) {\n\t\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(),\n\t\t\t\t\t\t\tmProImage, \"QRImage\", \"QRImage\");\n\t\t\t\t\tToast.makeText(ImageShareActivity.this, \"生成成功,请到相册查看\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\tToast.makeText(ImageShareActivity.this, \"图片生成错误,请返回重试\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t}", "public SampleResult sample() {\n SampleResult res = null;\n try {\n res = sample(getUrl(), getMethod(), false, 0);\n if(res != null) {\n res.setSampleLabel(getName());\n }\n return res;\n } catch (Exception e) {\n return errorResult(e, new HTTPSampleResult());\n }\n }", "void imageChooser() {\n\n // create an instance of the\n // intent of the type image\n Intent i = new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n\n\n // pass the constant to compare it\n // with the returned requestCode\n startActivityForResult(Intent.createChooser(i, \"Select Picture\"), SELECT_PICTURE);\n }", "public void loadInputImage()\n{\n selectInput(\"Select a file to process:\", \"imageLoader\"); // select image window -> imageLoader()\n}", "public BufferedImage getImage ( ) {\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n System.gc();\n\n return img;\n \n }", "IMG createIMG();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tSkillSale.getSkillImage(\"error.jpg\");\n\t\t\t}", "public SampleResult sample() {\n SampleResult res = null;\n try {\n res = sample(getUrl(), getMethod(), false, 0);\n if (res != null) {\n res.setSampleLabel(getName());\n }\n return res;\n } catch (Exception e) {\n return errorResult(e, new HTTPSampleResult());\n }\n }", "private void helperDisplayInputImage()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//---- Get currently selected file index in the combo box\r\n\t\t\tint index = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t//---- Check the index if the action is invoked by image deletion then causes error\r\n\t\t\tint imageCount = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (index >= 0 && index < imageCount)\r\n\t\t\t{\r\n\t\t\t\t//---- Get file path of the table\r\n\r\n\t\t\t\tString filePath = DataController.getTable().getElement(index).getDataFile().getFilePath();\r\n\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().loadImage(filePath);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "public void awaitNewImage() {\n final int TIMEOUT_MS = 2500;\n\n synchronized (mFrameSyncObject) {\n while (!mFrameAvailable) {\n try {\n // Wait for onFrameAvailable() to signal us. Use a timeout to avoid\n // stalling the test if it doesn't arrive.\n mFrameSyncObject.wait(TIMEOUT_MS);\n if (!mFrameAvailable) {\n throw new RuntimeException(\"Camera frame wait timed out\");\n }\n } catch (InterruptedException ie) {\n // shouldn't happen\n throw new RuntimeException(ie);\n }\n }\n mFrameAvailable = false;\n }\n\n // Latch the data.\n mTextureRender.checkGlError(\"before updateTexImage\");\n mSurfaceTexture.updateTexImage();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK && data.getData()!=null) {\n if (requestCode == 2) {\n Uri selectedImage = data.getData();\n String[] filePath = { MediaStore.Images.Media.DATA };\n Cursor c = getContentResolver().query(selectedImage,filePath, null, null, null);\n c.moveToFirst();\n int columnIndex = c.getColumnIndex(filePath[0]);\n String picturePath = c.getString(columnIndex);\n c.close();\n Bitmap thumbnail = (BitmapFactory.decodeFile(picturePath));\n thumbnail= AppUtils.getResizedBitmap(thumbnail, 400);\n ivPic.setImageBitmap(thumbnail);\n\n //either update existing thumbnail\n if(thumbnailImage != null){\n thumbnailImage.setImage(thumbnail);\n viewModel.updateThumbnail(thumbnailImage);\n }\n //or create a new thumbnail\n else{\n contactGroup.setThumbnailId((int) viewModel.addThumbnailGetId(new ThumbnailImage(thumbnail)));\n viewModel.updateGroup(contactGroup);\n }\n }\n }\n }", "@Override\n public Action update() {\n // draws the image \"image\" at position \"this.x\" and \"this.y\" and then returns null\n Thing.getProcessing().image(this.image, this.x, this.y);\n return null;\n }", "public void addPicture() {\n FileChooser chooser = new FileChooser();\n chooser.setTitle(\"Upload your pic for this post\");\n file = chooser.showOpenDialog(null);\n if (file != null) {\n\n Image profilePicImage = new Image(file.toURI().toString());\n try {\n this.postPic = new FileInputStream(file).readAllBytes();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n postImage.setImage(profilePicImage);\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n \tlblWarning.setVisible(false);\r\n \t\r\n \tString businessCardName = txtName.getSelectedItem().toString();\r\n \tString fileBusinessCard = businessCardPath + businessCardName + \".jpeg\";\r\n \tString size = txtSize.getSelectedItem().toString();\r\n \tString color = txtColor.getText().toString();\r\n \tString price = txtPrice.getText().toString();\r\n \tString address = txtAddress.getText().toString();\r\n \tString picPath = txtPicPath.getText().toString();\r\n \tString quantity = txtQuantity.getText().toString();\r\n \tString resultPath = txtPicPathTo.getText().toString();\r\n \tString ref = txtRef.getText().toString();\r\n \t\r\n \tList <BufferedImage> list = new ArrayList<BufferedImage> ();\r\n \tBufferedImage DestImage = null;\r\n \tBufferedImage bi0 = null;\r\n \tBufferedImage bi1 = null;\r\n \tBufferedImage bi2 = null;\r\n \tBufferedImage bi3 = null;\r\n \tBufferedImage bi4 = null;\r\n\t \r\n \t//For final generated image\r\n \tFile file = new File(resultPath);\r\n\t if (!businessCardName.equals(\"请选择\") && !size.equals(\"请选择\") && !color.equals(\"\") && !price.equals(\"\") \r\n\t \t\t&& !address.equals(\"\") && !picPath.equals(\"\") && !quantity.equals(\"\") && !resultPath.equals(\"\") \r\n\t \t\t&& file.isDirectory() && file.canWrite()) {\r\n\t\t\r\n \tif ((!resultPath.endsWith(\"\\\\\")) && (!resultPath.endsWith(\"/\"))) {\r\n \t\tresultPath = resultPath + \"/\";\r\n \t}\r\n \t\t \r\n \t\t\r\n\t \tString[] list1 = {size, color, price, address, quantity, ref};\r\n\t \tsi.paintString(list1, \"Reference\");\r\n\t \tsi.paintString(list1, \"Address\");\r\n\t \t\r\n\t try { \r\n\t \tbi0 = si.getBufferedImageFromStream(fileBusinessCard);\r\n\t \tbi1 = si.getBufferedImage(fileReference);\r\n\t \t//For uploaded the image of product\r\n\t \tbi2 = si.getBufferedImage(fileUploadedProduct1);\r\n\t \tif (path3 != null) {\r\n\t \t\tbi3 = si.getBufferedImage(path3);\r\n\t \t}\r\n\t \tbi4 = si.getBufferedImage(fileAddress);\r\n\t \t\r\n\t } catch (Exception e) { \r\n\t e.printStackTrace(); \r\n\t JOptionPane.showMessageDialog(null, e.getMessage(), \"错误\", JOptionPane.ERROR_MESSAGE);\r\n\t } \r\n\t \r\n\t list.add(bi4);\r\n\t list.add(bi1);\r\n\t list.add(bi2);\r\n\t list.add(bi3);\r\n\t list.add(bi0);\r\n\t //list.add(bi5);\r\n\t\r\n\t\r\n\t try { \r\n\t \tDestImage = si.mergeImage(list); \r\n\t \t//new ShowImage((Image)destImg);\r\n\t } catch (IOException e) { \r\n\t e.printStackTrace(); \r\n\t } \r\n\t \r\n\t \r\n\t //Save the result image\r\n\t Random random = new Random();\r\n\t int ran = random.nextInt(10000);\r\n\t String fileResult = \"Result\" + ran + \".jpg\";\r\n\t si.saveImage(DestImage, resultPath, fileResult); \r\n\t DestImage.flush();\r\n\t JOptionPane.showMessageDialog(null, \"图像已生成!\", \"消息\", JOptionPane.INFORMATION_MESSAGE);\r\n\t \r\n\t } else {\r\n\t \t//For warning msg\r\n\t \t//lblWarning = new JLabel(\"必填项未填或者生成图片路径不对或者路径没有权限\");\r\n\t \t\tfr.add(lblWarning);\r\n\t \t\t//Font font = new Font(\"Dialog\",1,18);\r\n\t \t\t//lblWarning.setFont(font);\r\n\t \t\tlblWarning.setVisible(true);\r\n\t \t\t//lblWarning.setBounds(150,400,400,50);\r\n\t }\r\n }", "public void uploadTemp(FileUploadEvent event) {\n setFileImage(event.getFile());\n getSelected().setUrlImage(event.getFile().getFileName());\n RequestContext.getCurrentInstance().update(\"image\");\n\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tfloat[][][] hsbImage = Utilities.getImage(imageItem.getText());\n\t\t\t\t\t// notifies each transformation\n\t\t\t\t\tfor (ITransformation t : allTransformations) t.newImage(hsbImage);\n\t\t\t\t\t// alert the combo boxes of a change so the current algorithm can execute on the new image\n\t\t\t\t\tfor (JComboBox<ITransformation> comboBox : transformationComboBoxes) {\n\t\t\t\t\t\tcomboBox.setSelectedIndex(comboBox.getSelectedIndex());\n\t\t\t\t\t}\n\t\t\t\t}", "protected void consume(MonitorItem monItem) {\n BackgroundStatus bgStat= monItem.getStatus();\n for(PushItem item= getNextItem(bgStat); (item!=null); item= getNextItem(bgStat) ) {\n TitleFlasher.flashTitle(\"!! New Image !!\");\n CatalogPanel.setDefaultSearchMethod(CatalogRequest.Method.POLYGON);\n AllPlots.getInstance().getActionReporter().setMonitorItem(monItem);\n String fileName;\n switch (item.pushType) {\n case WEB_PLOT_REQUEST:\n WebPlotRequest wpr= WebPlotRequest.parse(item.data);\n String id;\n if (wpr.getPlotId()!=null) {\n id= wpr.getPlotId();\n }\n else {\n id=IMAGE_CMD_PLOT_ID+idCnt;\n idCnt++;\n wpr.setPlotId(id);\n }\n prepareRequest(wpr);\n break;\n case REGION_FILE_NAME:\n fileName= item.data;\n DS9RegionLoadDialog.loadRegFile(fileName,null,monItem);\n break;\n case TABLE_FILE_NAME:\n fileName= item.data;\n loadTable(fileName,monItem);\n //\n break;\n case FITS_COMMAND_EXT:\n PlotCmdExtension ext= parsePlotCmdExtension(item.data);\n List<PlotCmdExtension> list= AllPlots.getInstance().getExtensionList(null);\n list.add(ext);\n for(MiniPlotWidget mpw : AllPlots.getInstance().getAll()) {\n if (mpw.getPlotView()!=null) {\n mpw.recomputeUserExtensionOptions();\n }\n }\n\n break;\n }\n }\n }", "void save(Images image);", "private boolean createNewTest() {\n\t\tFileOutputStream fout;\t\t\n\t\ttry {\n\t\t\tfout = new FileOutputStream(this.sampleName);\n\t\t\tfor (int k = 0; k < this.sizeOfFile; k++) {\n\t\t\t\tfout.write(this.testBytes[k]);\n\t\t\t}\n\t\t\tfout.close();\n\t\t}\n\t\t// Catches any error conditions\n\t\tcatch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to write image\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void updateImageForIndex(int index) {\n\t\t//Nothing to do\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\tIndex = Main.getIndex();\n\t\t\n\t\tmyBf = new BufferedImage(1050,820,BufferedImage.TYPE_INT_RGB);\n\t\t\n\t\tGraphics2D gd = (Graphics2D) myBf.createGraphics();\n\t\t\n\t\t/*gd.setColor(Color.WHITE);\n\t\tgd.fillRect(0,0,1050,820);*/\n\t\t\n\t\tColor c = Main.arr.get(Index).jp.getBackground();\n\t\t\n\t\tgd.setColor(c);\n\t\tgd.fillRect(0,0,1050,820);\n\t\t\n\t\t//gd.setBackground(Color.WHITE);\n\t\t\n\t\t\n\t\t\n\t\tgd.drawImage(Main.arr.get(Index).bf,null,0,0);\n\t\t\n\t\tFileDialog fd = new FileDialog(Main.frame,\"\",FileDialog.SAVE);\n\t\tfd.setVisible(true);\n\t\tFile outputFile = new File (fd.getDirectory()+\"/\" + fd.getFile()+ \".jpg\");\n\t\t\n\t\ttry {\n\t\t\tImageIO.write(myBf, \"jpg\",outputFile);\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file not saved\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "private void takePicture() {\n lockFocus();\n }", "public void compareImageAction() {\n\t\tif (selectedAnimalModel == null) {\n\t\t\tshowDialog(ERROR_MESSAGE, \"Animal needs to be saved first.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (selectedAnimalModel.getId() == 0L || isImageChangedFlag) {\n\t\t\tshowDialog(ERROR_MESSAGE, \"Animal needs to be saved first.\");\n\t\t\treturn;\n\t\t}\n\n\t\tAsyncTask asyncTask = new AsyncTask() {\n\t\t\tAnimalModel animal1 = null;\n\t\t\tAnimalModel animal2 = null;\n\t\t\tAnimalModel animal3 = null;\n\n\t\t\t@Override\n\t\t\tprotected void onDone(boolean success) {\n\t\t\t\tif (!success) {\n\t\t\t\t\tshowDialog(ERROR_MESSAGE, \"Cannot compare images.\");\n\t\t\t\t} else {\n\t\t\t\t\tCompareImagesDialog dialog = new CompareImagesDialog(multimediaPanel, selectedAnimalModel, animal1, animal2, animal3);\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected Boolean doInBackground() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tArrayList<AnimalModel> models;\n\n\t\t\t\t\tmodels = DataManager.getInstance().getThreeSimilarImages(selectedAnimalModel);\n\n\t\t\t\t\tif (models.size() > 0) {\n\t\t\t\t\t\tanimal1 = models.get(0);\n\t\t\t\t\t}\n\t\t\t\t\tif (models.size() > 1) {\n\t\t\t\t\t\tanimal2 = models.get(1);\n\t\t\t\t\t}\n\t\t\t\t\tif (models.size() > 2) {\n\t\t\t\t\t\tanimal3 = models.get(2);\n\t\t\t\t\t}\n\n\t\t\t\t} catch (DataManagerException e1) {\n\t\t\t\t\tLogger.createLog(Logger.ERROR_LOG, e1.getMessage());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t\tasyncTask.start();\n\n\t}", "public void updatePicture(int frameNum) {\n\n if (frameNum < billboardFileList.size()) {\n String[] filename = billboardFileList.get(frameNum);\n File inputfile = new File(\"/Users/sha33/NetBeansProjects/vbs2gui/saved/\" + filename[1]);\n if (inputfile.exists()) {\n BufferedImage uncropped = null;\n BufferedImage scaled = null;\n\n try {\n uncropped = ImageIO.read(inputfile);\n } catch (IOException e) {\n }\n AffineTransform at = new AffineTransform();\n at.scale(1.5, 1.5);\n AffineTransformOp scaleOp =\n new AffineTransformOp(at, AffineTransformOp.TYPE_BICUBIC);\n scaled = scaleOp.filter(uncropped, scaled);\n picture.setIcon(new ImageIcon(scaled));\n// txt.setText(\"Showing now: \" + billboardFileList.get(frameNum));\n\n } else {\n picture.setText(\"image #\" + billboardFileList.get(frameNum) + \" does not exist!\");\n }\n }\n }" ]
[ "0.62262267", "0.5881654", "0.57999134", "0.57502097", "0.5717264", "0.56100166", "0.55738914", "0.5548965", "0.5541446", "0.5520063", "0.54861546", "0.54512143", "0.54389143", "0.53863376", "0.53832924", "0.53803915", "0.53754395", "0.5326428", "0.53249735", "0.53247714", "0.532119", "0.5298593", "0.52869016", "0.5280427", "0.52777123", "0.5272858", "0.5259804", "0.5250433", "0.5247429", "0.5241139", "0.52409166", "0.523579", "0.5234047", "0.5227041", "0.5223863", "0.5222522", "0.52200323", "0.5217095", "0.5213236", "0.5210761", "0.5190404", "0.51790595", "0.5172937", "0.5172498", "0.51700896", "0.5167331", "0.51663494", "0.51644", "0.5160111", "0.5149758", "0.51433986", "0.51414853", "0.51365775", "0.5133533", "0.51288396", "0.5123447", "0.51165986", "0.51124126", "0.5107961", "0.5106096", "0.51057655", "0.50941366", "0.50799227", "0.50771296", "0.5076648", "0.50675696", "0.50646055", "0.50628144", "0.5057637", "0.50565153", "0.5053474", "0.5049573", "0.5042721", "0.5040946", "0.504046", "0.50395304", "0.503623", "0.5035996", "0.50354487", "0.5034615", "0.50283784", "0.5027061", "0.5025401", "0.5023128", "0.50209206", "0.5017894", "0.5014608", "0.50143236", "0.5012801", "0.5012686", "0.5006501", "0.50043845", "0.5003108", "0.5003044", "0.49995798", "0.4996311", "0.49913248", "0.49897698", "0.49867642", "0.49750838", "0.49749908" ]
0.0
-1
For Vuforia engine 1 (for Android Camera)
private void initVuforia(int cameraMonitorViewId) { VuforiaLocalizer.Parameters parameters1 = new VuforiaLocalizer.Parameters(cameraMonitorViewId); // VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters(); parameters1.vuforiaLicenseKey = VUFORIA_KEY; parameters1.cameraDirection = VuforiaLocalizer.CameraDirection.BACK; // Instantiate the Vuforia engine 1 vuforia = ClassFactory.getInstance().createVuforia(parameters1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onCamera();", "Camera getCamera();", "private native void iniciarCamara(int idCamera);", "public void openCamera() {\n \n\n }", "boolean useCamera2();", "public void onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline r20) {\n /*\n r19 = this;\n r0 = r19\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"onCreateCameraPipeline\"\n r1.d(r2)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r2 = r20\n r1.f73l = r2\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.FileType r1 = r1.getFileType()\n com.arashivision.insta360.basemedia.model.FileType r2 = com.arashivision.insta360.basemedia.model.FileType.FISH_EYE\n r3 = 1\n r4 = 0\n if (r1 != r2) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r1 = r1.IL1Iii\n com.arashivision.insta360.basemedia.model.viewconstraint.Constraint r1 = r1.getConstraint()\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r2 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.capture.ICaptureParams r2 = r2.IL1Iii\n int[] r2 = r2.getConstraintRatio()\n if (r1 == 0) goto L_0x0059\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r5 = r0.f577a\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r6 = r5.I11L\n float r5 = r1.getDefaultDistance()\n double r9 = (double) r5\n float r5 = r1.getDefaultFov()\n double r11 = (double) r5\n r5 = r2[r3]\n float r5 = (float) r5\n r2 = r2[r4]\n float r2 = (float) r2\n float r5 = r5 / r2\n double r13 = (double) r5\n float r2 = r1.getXScale()\n double r7 = (double) r2\n float r1 = r1.getYScale()\n double r1 = (double) r1\n r15 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n r17 = r7\n r7 = r15\n r15 = r17\n r17 = r1\n r6.setGyroStabilizerFovDistance2(r7, r9, r11, r13, r15, r17)\n L_0x0059:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n r1.setLoading(r4)\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n if (r1 == 0) goto L_0x00cf\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r2 = r1.ILil\n if (r2 == 0) goto L_0x006d\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r2 = r2.getCameraRenderSurfaceInfo()\n if (r2 == 0) goto L_0x006d\n r4 = r3\n L_0x006d:\n if (r4 != 0) goto L_0x0077\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Custom surface is null\"\n L_0x0073:\n r1.e(r2)\n goto L_0x00c5\n L_0x0077:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r2 = r1.I11L\n if (r2 != 0) goto L_0x0080\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Render is null\"\n goto L_0x0073\n L_0x0080:\n boolean r2 = r1.llliI\n if (r2 == 0) goto L_0x0089\n com.arashivision.insta360.basemedia.log.MediaLogger r1 = com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView.LL1IL\n java.lang.String r2 = \"startCameraRenderSurface return. Already render surface\"\n goto L_0x0073\n L_0x0089:\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo r2 = new com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender$CameraRenderSurfaceInfo\n r2.<init>()\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderWidth\n r2.renderWidth = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n int r4 = r4.renderHeight\n r2.renderHeight = r4\n a.a.a.a.e.a.e.l r4 = r1.f60IL\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r5 = r1.ILil\n int r5 = r5.getRenderModelType()\n com.arashivision.graphicpath.render.rendermodel.RenderModelType r4 = r4.a(r5)\n int r4 = r4.getType()\n r2.renderModeType = r4\n com.arashivision.insta360.basemedia.ui.player.capture.IPlayCaptureParams r4 = r1.ILil\n com.arashivision.insta360.basemedia.ui.player.capture.CameraRenderSurfaceInfo r4 = r4.getCameraRenderSurfaceInfo()\n android.view.Surface r4 = r4.mSurface\n r2.mSurface = r4\n com.arashivision.arvbmg.previewer.BMGCameraPreviewerSessionRender r4 = r1.I11L\n r4.startCameraRenderSurface(r2)\n r1.llliI = r3\n L_0x00c5:\n com.arashivision.insta360.basemedia.ui.player.capture.CapturePlayerView r1 = r0.f577a\n com.arashivision.insta360.basemedia.ui.player.listener.IBasePlayerViewListener r1 = r1.f741\n if (r1 == 0) goto L_0x00ce\n r1.onLoadingFinish()\n L_0x00ce:\n return\n L_0x00cf:\n r1 = 0\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.e.a.f.h.onCreateCameraPipeline(com.arashivision.onestream.pipeline.ICameraPreviewPipeline):void\");\n }", "public void camera360() {\n\n }", "public interface ICamera {\n\n /**\n * Return frame access interface for client usage\n *\n * @param interface_index\n * @return\n */\n public long getFrameAccessIfc(int interface_index);\n\n /**\n * Start the camera stream\n */\n public void start();\n\n /**\n * Stop the camera stream\n */\n public void stop();\n\n public String prepare(final UsbMonitor.UsbConnectionData connectionData);\n\n /**\n * Register json status callback\n *\n * @param callback\n */\n public void setStatusCallback(final IStatusCallback callback);\n\n /**\n * Queries camera for supported mode\n *\n * @return supported video modes String\n */\n public String getSupportedVideoModes();\n\n// /**\n// * Select camera capture mode\n// *\n// * @param width\n// * @param height\n// * @param frameFormat\n// */\n// public void setCaptureMode(final int width, final int height, final int frameFormat);\n\n /**\n * Select camera capture mode\n *\n * @param width\n * @param height\n * @param min_fps\n * @param max_fps\n * @param frameFormat\n */\n public void setCaptureMode(final int width, final int height, final int min_fps, final int max_fps, final int frameFormat);\n}", "public void configureCamera(){\n try{\n camera = Camera.open(findBackFacingCamera());\n } catch (Exception e){}\n\n if(camera != null) {\n cameraView = new CameraView(this.getApplicationContext(), camera);\n FrameLayout camera_view = (FrameLayout)findViewById(R.id.CameraView);\n camera_view.addView(cameraView);\n }\n }", "void cameraSetup();", "@Override\n public void onCameraOpenFailed(Exception e) {\n }", "@Override\r\n\tpublic void surfaceCreated(SurfaceHolder holder) \r\n\t{\n\t\t if (mCamera != null)\r\n\t\t {\r\n\t\t\t Parameters params = mCamera.getParameters();\r\n\t mCamera.setParameters(params);\r\n\t Log.i(\"Surface\", \"Created\");\r\n\t }\r\n\t\t else\r\n\t\t {\r\n\t\t\t Toast.makeText(getApplicationContext(), \"Camera not available!\",\r\n\t Toast.LENGTH_LONG).show();\r\n\r\n\t finish();\r\n\t }\r\n\t}", "public Camera getCam() {\n return this.cam;\n }", "public void updateCamera() {\n\t}", "void onBind(String cameraId);", "public interface CamAPI {\n\n\n public String getPath();\n\n public String up();\n\n public String left();\n\n public String right();\n\n public String down();\n\n public String center();\n\n public String img();\n\n\n}", "public interface CameraPreview {\n\n /**\n * Set the camera system this will act as the preview for.\n * <p/>\n * The preview will update the camera system as necessary for certain events, such as\n * setting the surface holder, or pausing/restarting the preview when reconfiguring the surface.\n *\n * @param cameraSystem the camera system to connect to\n */\n void connectToCameraSystem(@NonNull CameraSystem cameraSystem);\n\n}", "public void getCameraInstance() {\n newOpenCamera();\n }", "@Override\n public Camera setupCamera() {\n mCamera = Camera.open(Camera.CameraInfo.CAMERA_FACING_BACK);\n try {\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setPreviewSize(mWidth, mHeight);\n parameters.setPreviewFormat(mFormat);\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : parameters.getSupportedPreviewSizes()) {\n Log.d(TAG, \"SIZE:\" + size.width + \"x\" + size.height);\n }\n for (Integer format : parameters.getSupportedPreviewFormats()) {\n Log.d(TAG, \"FORMAT:\" + format);\n }\n\n List<int[]> fps = parameters.getSupportedPreviewFpsRange();\n for (int[] count : fps) {\n Log.d(TAG, \"T:\");\n for (int data : count) {\n Log.d(TAG, \"V=\" + data);\n }\n }\n mCamera.setParameters(parameters);\n } catch (Exception e) {\n e.printStackTrace();\n }\n if (mCamera != null) {\n mWidth = mCamera.getParameters().getPreviewSize().width;\n mHeight = mCamera.getParameters().getPreviewSize().height;\n }\n return mCamera;\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.custom_cameraactivity);\r\n mCamera = getCameraInstance();\r\n mCameraPreview = new CameraPreview(this, mCamera);\r\n FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview);\r\n preview.addView(mCameraPreview);\r\n\r\n Bundle extras = getIntent().getExtras();\r\n looc = extras.getString(\"coor\");\r\n\r\n Button captureButton = (Button) findViewById(R.id.button_capture);\r\n captureButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n mCamera.takePicture(null, null, mPicture);\r\n // havent try to use doinbackgroud test first\r\n\r\n }\r\n });\r\n }", "private void getCamera() {\n if (camera == null) {\n try {\n camera = Camera.open();\n params = camera.getParameters();\n } catch (RuntimeException e) {\n\n }\n }\n }", "private void oldOpenCamera() {\n try {\n mCamera = Camera.open(); // attempt to get a Camera instance\n mCamera.setPreviewCallbackWithBuffer(this);\n Log.i(TAG, \"Instance created\");\n } catch (Exception e) {\n Log.e(TAG, \"Error getting Camera instance: \" + e.getMessage());\n }\n }", "public interface ICamera {\n}", "@Override\n public void onCameraPreviewStopped() {\n }", "org.auvua.utils.protobuffer.AUVprotocol.AUVState.Telemetry.Camera getCamera(int index);", "@Override\n public void onPreviewFrame(byte[] data, Camera camera) {\n\n Camera.Parameters parameters = camera.getParameters();\n int width = parameters.getPreviewSize().width;\n int height = parameters.getPreviewSize().height;\n\n mCamera.addCallbackBuffer(data);\n\n if (yuvType == null) {\n yuvType = new Type.Builder(rs, Element.U8(rs)).setX(data.length);\n in = Allocation.createTyped(rs, yuvType.create(), Allocation.USAGE_SCRIPT);\n\n rgbaType = new Type.Builder(rs, Element.RGBA_8888(rs)).setX(width).setY(height);\n out = Allocation.createTyped(rs, rgbaType.create(), Allocation.USAGE_SCRIPT);\n }\n\n in.copyFrom(data);\n\n yuvToRgbIntrinsic.setInput(in);\n yuvToRgbIntrinsic.forEach(out);\n\n Bitmap mBitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n out.copyTo(mBitmap);\n\n mBitmap = GlobalUtils.rotateBitmapOnOrientation(mBitmap,ctx);\n\n liveCamera.setVisibility(VISIBLE);\n\n if(PROCESS_IMAGE) {\n\n if(PROCESSING_TYPE == 1) {\n Rect2d rect2d = new Rect2d(100, 100, 100, 100);\n imageProcessing.RunDetection(mBitmap);\n liveCamera.setImageBitmap(mBitmap);\n }else{\n //Rect2d rect2d = new Rect2d(100, 100, 100, 100);\n liveCamera.setImageBitmap(mBitmap);\n\n }\n\n } else{\n liveCamera.setImageBitmap(mBitmap);\n }\n\n }", "private boolean checkCameraHardware(Context context) {\r\n if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){\r\n return true; // Tiene camara\r\n } else {\r\n return false;// No tiene camara\r\n }\r\n }", "public CameraManager(HardwareMap hardwareMap) {\n int cameraMonitorViewId = hardwareMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hardwareMap.appContext.getPackageName());\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK, cameraMonitorViewId);\n pipeline = new CvPipeline();\n phoneCam.setPipeline(pipeline);\n }", "public interface CameraOpenListener {\n void onCameraError(Exception exc);\n\n void onCameraOpened(CameraController cameraController, int i, int i2);\n}", "void initializeCamera() {\n camera_linear = (LinearLayout) findViewById(R.id.camera_linear);\n //The preview frame is overlayed on the layout which shows the camera view.\n preview = (FrameLayout) findViewById(R.id.camera_preview);\n //Get an instance of the phone's camera.\n mCamera = cameraRecorder.getCameraInstance();\n //Find content fort the camera preview frame using the instance of the camera initialized.\n mPreview = new CameraPreview(getApplicationContext(), mCamera);\n //Apply the camera previes content from the camera to the preview frame itself.\n preview.addView(mPreview);\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String cameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(cameraId);\n StreamConfigurationMap map = characteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n imageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]{Manifest.permission.CAMERA, Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CAMERA_PERMISSION);\n return;\n }\n manager.openCamera(cameraId, stateCallback, null);\n } catch (CameraAccessException e) {\n Toast.makeText(this, \"Camera failed to open.\", Toast.LENGTH_SHORT).show();\n e.printStackTrace();\n }\n }", "private void setCamera() {\n\t\tCamera.CameraInfo cameraInfo = new Camera.CameraInfo();\n\t\tint cameraCount = Camera.getNumberOfCameras();\n\t\tLog.i(TAG, \"count = \" + cameraCount);\n\t\tLog.i(TAG, \"isBack = \" + isBack);\n\t\tint id = 0;\n\n\t\tfor (int camIdx = 0; camIdx < cameraCount; camIdx++) {\n\t\t\tCamera.getCameraInfo(camIdx, cameraInfo);\n\t\t\tLog.i(TAG, \"cameraInfoFacing = \" + cameraInfo.facing);\n\t\t\tif (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_BACK\n\t\t\t\t\t&& isBack) {\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} else if (cameraInfo.facing == Camera.CameraInfo.CAMERA_FACING_FRONT\n\t\t\t\t\t&& !isBack){\n\t\t\t\ttry {\n\t\t\t\t\tLog.i(TAG, \"SETTING mCamera\");\n\t\t\t\t\tmCamera = Camera.open(camIdx);\n\t\t\t\t\tid = camIdx;\n\t\t\t\t} catch (RuntimeException e) {\n\t\t\t\t\tLog.e(TAG,\n\t\t\t\t\t\t\t\"Camera failed to open: \" + e.getLocalizedMessage());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (mCamera != null) {\n\t\t\tCamera.Parameters cameraParameters = mCamera.getParameters();\n\t\t\tDisplay display = getActivity().getWindowManager().getDefaultDisplay();\n\t\t\tPoint size = new Point();\n\t\t\tdisplay.getSize(size);\n\t\t\tint screenWidth = size.x;\n\t\t\tint width = Integer.MAX_VALUE;\n\t\t\tint height = 0;\n\t\t\tLog.i(TAG, \"SCREENWIDTH: \" + screenWidth);\n\t\t\tList<Camera.Size> sizes = cameraParameters.getSupportedPreviewSizes();\n\t\t\tfor (Camera.Size cSize : sizes) {\n\t\t\t\tif (cSize.width >= screenWidth && cSize.width <= width) {\n\t\t\t\t\twidth = cSize.width;\n\t\t\t\t\theight = cSize.height;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tLog.i(TAG, \"Width: \" + width + \" HEIGHT: \" + height);\n\n\t\t\tif (mPreview != null) {\n\t\t\t\tmPreview.switchCamera(mCamera, id, width, height);\n\t\t\t} else {\n\t\t\t\tmPreview = new CameraPreview(getActivity(), mCamera, id, width, height);\n\t\t\t\tFrameLayout preview = (FrameLayout) view\n\t\t\t\t\t\t.findViewById(R.id.camera_preview);\n\t\t\t\tpreview.addView(mPreview);\n\t\t\t}\n\t\t\tmCamera.startPreview();\n\t\t}\n\t}", "public TextureView$SurfaceTextureListenerC32431ew(Context context, C32451ey r11, boolean z) {\n C33171gJ r1;\n AnonymousClass0VV r0;\n EnumC21070y8 r8 = EnumC21070y8.CAMERA2;\n EnumC21070y8 r7 = EnumC21070y8.CAMERA1;\n this.A0D = context.getApplicationContext();\n this.A0T = \"WhatsAppCamera\";\n this.A0L = z ? r8 : r7;\n this.A0K = r11;\n this.A0J = new C19860vj();\n HandlerThread handlerThread = new HandlerThread(\"Simple-Lite-Camera-Callback-Thread\");\n this.A0E = handlerThread;\n handlerThread.start();\n C21110yC A002 = C21110yC.A00();\n Context context2 = this.A0D;\n EnumC21070y8 r4 = this.A0L;\n if (A002 != null) {\n if (r4 == r7) {\n C22170zz r5 = A002.A01;\n C22150zx r42 = A002.A00;\n if (C33081gA.A0e == null) {\n synchronized (C33081gA.class) {\n if (C33081gA.A0e == null) {\n C33081gA.A0e = new C33081gA(r5, r42, context2);\n }\n }\n } else if (C33081gA.A0e.A0R != r5) {\n throw new RuntimeException(\"ThreadManager instance has changed!\");\n } else if (C33081gA.A0e.A0Q != r42) {\n throw new RuntimeException(\"SessionManager instance has changed!\");\n }\n C33081gA r12 = C33081gA.A0e;\n r12.A0D = true;\n r1 = r12;\n } else if (r4 != r8) {\n StringBuilder sb = new StringBuilder(\"Invalid Camera API: \");\n sb.append(r4);\n throw new RuntimeException(sb.toString());\n } else if (context2 != null) {\n C22170zz r52 = A002.A01;\n C22150zx r43 = A002.A00;\n if (C33171gJ.A0o == null) {\n synchronized (C33171gJ.class) {\n if (C33171gJ.A0o == null) {\n C33171gJ.A0o = new C33171gJ(r52, r43, context2);\n }\n }\n } else if (C33171gJ.A0o.A0b != r52) {\n throw new RuntimeException(\"ThreadManager instance has changed!\");\n } else if (C33171gJ.A0o.A0a != r43) {\n throw new RuntimeException(\"SessionManager instance has changed!\");\n }\n C33171gJ r13 = C33171gJ.A0o;\n r13.A0J = true;\n r1 = r13;\n } else {\n throw new NullPointerException(\"Context must be provided for Camera2.\");\n }\n this.A0M = r1;\n if (0 == 0) {\n r0 = AnonymousClass0VV.BACK;\n } else if (0 == 1) {\n r0 = AnonymousClass0VV.FRONT;\n } else {\n throw new RuntimeException(AnonymousClass008.A0F(\"Could not convert camera facing to optic: \", 0));\n }\n this.A00 = !r1.AAF(r0) ? 1 : 0;\n this.A0C = true;\n TextureView textureView = new TextureView(this.A0D);\n this.A0G = textureView;\n textureView.setSurfaceTextureListener(this);\n this.A0F = new C19850vi(this, this.A0D);\n return;\n }\n throw null;\n }", "void onPreviewFrame(byte[] data, Camera camera);", "@Override\n\tpublic void onPreviewFrame(byte[] bytes, Camera camera) {\n\n\t}", "private void onCameraOpened() {\n SurfaceTexture texture = targetView.getSurfaceTexture();\n\n if (texture != null) {\n targetSurface = new Surface(texture);\n onSurfaceReceived();\n }\n else {\n targetView.setSurfaceTextureListener(new TextureView.SurfaceTextureListener() {\n @Override\n public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i1) {\n targetSurface = new Surface(surfaceTexture);\n onSurfaceReceived();\n }\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {\n return false;\n }\n\n @Override\n public void onSurfaceTextureUpdated(SurfaceTexture surfaceTexture) {\n\n }\n\n @Override\n public void onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i1) {\n\n }\n });\n }\n }", "private void iniciarQrDetector() {\n\n System.out.println(\"Iniciar Qr\");\n\n final Display display = getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n int width = size.x;\n int height = size.y;\n\n barcodeDetector = new BarcodeDetector.Builder(LectorActivity.this)\n .setBarcodeFormats(Barcode.QR_CODE)\n .build();\n\n barcodeDetector.setProcessor(new Detector.Processor<Barcode>() {\n @Override\n public void release() {\n }\n\n @Override\n public void receiveDetections(Detector.Detections<Barcode> detections) {\n\n if (seguir) {\n final SparseArray<Barcode> qrcodes = detections.getDetectedItems();\n\n try {\n value = qrcodes.valueAt(0).rawValue;\n\n\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"No se ha encontrado ningún código.\");\n }\n\n if (!value.equals(\"0\")) {\n seguir = false;\n System.out.println(\"Leido, \"+value);\n comprueba_maquina(value);\n }\n }\n }\n });\n cameraSource = new CameraSource\n .Builder(LectorActivity.this, barcodeDetector)\n .setRequestedPreviewSize(height, width)\n .setAutoFocusEnabled(true)\n .build();\n\n cameraPreview.getHolder().addCallback(new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder surfaceHolder) {\n if (ActivityCompat.checkSelfPermission(LectorActivity.this, android.Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n //Request permission\n ActivityCompat.requestPermissions(LectorActivity.this,\n new String[]{Manifest.permission.CAMERA}, RequestCameraPermissionID);\n System.out.println(\"PERMISOS\");\n return;\n }\n try {\n System.out.println(\"INICIAR CAMARA\");\n cameraSource.start(cameraPreview.getHolder());\n } catch (IOException e) {\n System.out.println(\"FALLO AL INICIAR CAMARA\");\n e.printStackTrace();\n }\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder surfaceHolder, int i, int i1, int i2) {\n\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n cameraSource.stop();\n }\n });\n }", "public void startStreaming() {\n// phoneCam.setViewportRenderingPolicy(OpenCvCamera.ViewportRenderingPolicy.OPTIMIZE_VIEW);\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.SIDEWAYS_RIGHT);\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "@Override\n public void onFrameAvailable(int cameraId) {\n }", "private void openCamera() {\n CameraManager manager = (CameraManager) getSystemService(Context.CAMERA_SERVICE);\n try {\n String mCameraId = manager.getCameraIdList()[0];\n CameraCharacteristics characteristics = manager.getCameraCharacteristics(mCameraId);\n StreamConfigurationMap map = characteristics.\n get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n assert map != null;\n mImageDimension = map.getOutputSizes(SurfaceTexture.class)[0];\n // Add permission for camera and let user grant the permission\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) !=\n PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE) !=\n PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(CameraActivity.this, new\n String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CAMERA_PERMISSION);\n }\n manager.openCamera(mCameraId, mStateCallback, null);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }", "public static Camera getCameraInstance(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n return Camera.open(0); // This is the line the error occurs\n } else {\n return Camera.open();\n }\n }", "private void createCameraSource() {\n Context ctx = getApplicationContext();\n Point displaySize = new Point();\n getWindowManager().getDefaultDisplay().getRealSize(displaySize);\n\n // dummy detector saving the last frame in order to send it to Microsoft in case of face detection\n ImageFetchingDetector imageFetchingDetector = new ImageFetchingDetector();\n\n // We need to provide at least one detector to the camera :x\n FaceDetector faceDetector = new FaceDetector.Builder(ctx).build();\n faceDetector.setProcessor(\n new LargestFaceFocusingProcessor.Builder(faceDetector, new FaceTracker(imageFetchingDetector))\n .build());\n\n BarcodeDetector barcodeDetector = new BarcodeDetector.Builder(ctx).build();\n //barcodeDetector.setProcessor(new BarcodeDetectionProcessor());\n barcodeDetector.setProcessor(\n new FirstFocusingProcessor<Barcode>(barcodeDetector, new BarcodeTracker())\n );\n\n TextRecognizer textRecognizer = new TextRecognizer.Builder(ctx).build();\n textRecognizer.setProcessor(new OcrDetectionProcessor());\n // TODO: Check if the TextRecognizer is operational.\n\n MultiDetector multiDetector = new MultiDetector.Builder()\n .add(imageFetchingDetector)\n .add(faceDetector)\n .add(barcodeDetector)\n .add(textRecognizer)\n .build();\n\n mCameraSource = new CameraSource.Builder(ctx, multiDetector)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setAutoFocusEnabled(true)\n .setRequestedFps(5.0f)\n .setRequestedPreviewSize(displaySize.y, displaySize.x)\n .build();\n }", "public void doVideoCapture() {\n /*\n r6 = this;\n r0 = r6.mPaused;\n if (r0 != 0) goto L_0x0043;\n L_0x0004:\n r0 = r6.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x0043;\n L_0x0009:\n r0 = r6.mMediaRecorderRecording;\n if (r0 == 0) goto L_0x0042;\n L_0x000d:\n r0 = r6.mNeedGLRender;\n if (r0 == 0) goto L_0x0029;\n L_0x0011:\n r0 = r6.isSupportEffects();\n if (r0 == 0) goto L_0x0029;\n L_0x0017:\n r0 = r6.mCameraDevice;\n r1 = 0;\n r0.enableShutterSound(r1);\n r0 = r6.mAppController;\n r0 = r0.getCameraAppUI();\n r1 = r6.mPictureTaken;\n r0.takePicture(r1);\n goto L_0x0041;\n L_0x0029:\n r0 = r6.mSnapshotInProgress;\n if (r0 != 0) goto L_0x0041;\n L_0x002d:\n r0 = java.lang.System.currentTimeMillis();\n r2 = r6.mLastTakePictureTime;\n r2 = r0 - r2;\n r4 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1));\n if (r2 >= 0) goto L_0x003c;\n L_0x003b:\n return;\n L_0x003c:\n r6.mLastTakePictureTime = r0;\n r6.takeASnapshot();\n L_0x0041:\n return;\n L_0x0042:\n return;\n L_0x0043:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.doVideoCapture():void\");\n }", "private void setupCamera(final int camera) {\n try {\n // mPreview = new CamPreview(this, camera, CamPreview.LayoutMode.NoBlank);// .FitToParent);\n } catch (Exception e) {\n Toast.makeText(this, R.string.cannot_connect_to_camera, Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n\n RelativeLayout.LayoutParams previewLayoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n Display display = getWindowManager().getDefaultDisplay();\n DisplayMetrics outMetrics = new DisplayMetrics();\n display.getMetrics(outMetrics);\n\n int width = outMetrics.widthPixels;\n int height = outMetrics.heightPixels;\n\n previewLayoutParams.height = width;\n previewLayoutParams.width = width;\n\n // Un-comment below line to specify the position.\n // mPreview.setCenterPosition(width / 2, height / 2);\n\n // previewParent.addView(mPreview, 0, previewLayoutParams);\n\n\n }", "public static void camDebug(Camera camera) {\n\t}", "abstract void setPreviewCallback(android.hardware.Camera.PreviewCallback cb);", "public void init(HardwareMap hwMap){\n int cameraMonitorViewID = hwMap.appContext.getResources().getIdentifier(\"cameraMonitorViewId\", \"id\", hwMap.appContext.getPackageName());\n phoneCam = OpenCvCameraFactory.getInstance().createInternalCamera(OpenCvInternalCamera.CameraDirection.BACK,cameraMonitorViewID);\n phoneCam.openCameraDevice();\n phoneCam.setPipeline(counter);\n phoneCam.openCameraDeviceAsync(new OpenCvCamera.AsyncCameraOpenListener()\n {\n @Override\n public void onOpened()\n {\n phoneCam.startStreaming(320, 240, OpenCvCameraRotation.UPRIGHT);\n }\n });\n }", "private void createCameraSource(String model) {\n if (cameraSource == null) {\n cameraSource = new CameraSource(this, graphicOverlay, graphicOverlay2);\n }\n\n try {\n switch (model) {\n case POSE_DETECTION:\n PoseDetectorOptionsBase poseDetectorOptions =\n PreferenceUtils.getPoseDetectorOptionsForLivePreview(this);\n Log.i(TAG, \"Using Pose Detector with options \" + poseDetectorOptions);\n boolean shouldShowInFrameLikelihood =\n PreferenceUtils.shouldShowPoseDetectionInFrameLikelihoodLivePreview(this);\n boolean visualizeZ = PreferenceUtils.shouldPoseDetectionVisualizeZ(this);\n boolean rescaleZ = PreferenceUtils.shouldPoseDetectionRescaleZForVisualization(this);\n boolean runClassification = PreferenceUtils.shouldPoseDetectionRunClassification(this);\n\n\n PoseDetectorProcessor poseDetectorProcessor = new PoseDetectorProcessor(\n this, poseDetectorOptions, shouldShowInFrameLikelihood, visualizeZ, rescaleZ,\n runClassification, /* isStreamMode = */true);\n\n cameraSource.setMachineLearningFrameProcessor(poseDetectorProcessor);\n poseDetectorProcessor.cameraSource = cameraSource;\n\n break;\n default:\n Log.e(TAG, \"Unknown model: \" + model);\n }\n } catch (RuntimeException e) {\n Log.e(TAG, \"Can not create image processor: \" + model, e);\n Toast.makeText(\n getApplicationContext(),\n \"Can not create image processor: \" + e.getMessage(),\n Toast.LENGTH_LONG)\n .show();\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_camera_preview);\n\t\tmCamSV = (SurfaceView) findViewById(R.id.camera_preview_surface_cam);\n\n\t\tmCamSV.getHolder().setFixedSize(VisionConfig.getWidth(),\n\t\t\t\tVisionConfig.getHeight());\n\n\t\tLog.i(\"MyLog\", \"CAP: onCreate\");\n\n\t\t// Setup Bind Service\n\t\tVisionConfig.bindService(this, mConnection);\n\t\ttakeAPictureReceiver = new TakeAPictureReceiver();\n\t\tIntentFilter filterOverlayVision = new IntentFilter(\n\t\t\t\tRobotIntent.CAM_TAKE_PICKTURE);\n\t\tHandlerThread handlerThreadOverlay = new HandlerThread(\n\t\t\t\t\"MyNewThreadOverlay\");\n\t\thandlerThreadOverlay.start();\n\t\tLooper looperOverlay = handlerThreadOverlay.getLooper();\n\t\thandlerOverlay = new Handler(looperOverlay);\n\t\tregisterReceiver(takeAPictureReceiver, filterOverlayVision, null,\n\t\t\t\thandlerOverlay);\n\t\t\n\t\tfaceDetectionReceiver = new FaceDetectionReceiver();\n\t\tIntentFilter filterFaceDetection = new IntentFilter(RobotIntent.CAM_FACE_DETECTION);\n\t\tHandlerThread handlerThreadFaceDetectionOverlay = new HandlerThread(\n\t\t\t\t\"MyNewThreadFaceDetectionOverlay\");\n\t\thandlerThreadFaceDetectionOverlay.start();\n\t\tLooper looperFaceDetectionOverlay = handlerThreadFaceDetectionOverlay.getLooper();\n\t\thandleFaceDetection = new Handler(looperFaceDetectionOverlay);\n\t\tregisterReceiver(faceDetectionReceiver, filterFaceDetection, null,\n\t\t\t\thandleFaceDetection);\n\t\t\n\t\t\n//\t\tfaceDetectionReceiver2 = new FaceDetectionReceiver2();\n//\t\tIntentFilter filterFaceDetection2 = new IntentFilter(\"hhq.face\");\n//\t\tHandlerThread handlerThreadFaceDetectionOverlay2 = new HandlerThread(\n//\t\t\t\t\"MyNewThreadFaceDetectionOverlay2\");\n//\t\thandlerThreadFaceDetectionOverlay2.start();\n//\t\tLooper looperFaceDetectionOverlay2 = handlerThreadFaceDetectionOverlay2.getLooper();\n//\t\thandleFaceDetection2 = new Handler(looperFaceDetectionOverlay2);\n//\t\tregisterReceiver(faceDetectionReceiver2, filterFaceDetection2, null,\n//\t\t\t\thandleFaceDetection2);\t\t\n\n\t\t\t\t\n\t\tpt.setColor(Color.GREEN);\n\t\tpt.setTextSize(50);\n\t\tpt.setStrokeWidth(3);\n\t\tpt.setStyle(Paint.Style.STROKE);\n\t\t\n//\t\tpt2.setColor(Color.BLUE);\n//\t\tpt2.setTextSize(50);\n//\t\tpt2.setStrokeWidth(3);\n//\t\tpt2.setStyle(Paint.Style.STROKE);\n\t}", "void onCameraError();", "@Override\n\tpublic void initCameraGlSurfaceView() {\n\t\t\n\t}", "public void phonesister(View v){\n \tIntent intent =new Intent();//意图\n \tintent.setAction(MediaStore.ACTION_IMAGE_CAPTURE);//设置拍照意图\n \tstartActivity(intent);//开启意图\t\t\n }", "public void initializeCamera(){\n mCamera = Camera.open();\n\n Camera.Parameters parameters = mCamera.getParameters();\n parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);\n\n List<Camera.Size> previewSizes = parameters.getSupportedPreviewSizes();\n // Get the supported preview size closest to the requested dimensions:\n Camera.Size previewSize = previewSizes.get(previewSizes.size() - 1); // getOptimalPreviewSize(previewSizes, width, height);\n width = previewSize.width;\n height = previewSize.height;\n Log.d(TAG, \"width: \" + width + \" , height: \" + height);\n nPixels = width * height;\n pixels = new int[nPixels];\n setSize(width, height);\n parameters.setPreviewSize(width, height);\n\n mCamera.setParameters(parameters);\n\n int dataBufferSize=(int)(height * width * (ImageFormat.getBitsPerPixel(parameters.getPreviewFormat())/8.0));\n\n mCamera.addCallbackBuffer(new byte[dataBufferSize]);\n mCamera.setPreviewCallbackWithBuffer(this);\n }", "private void createCamera() {\n camera = getCameraInstance();\n // Setting the right parameters in the camera\n SetCameraParameters();\n // Create our Preview view and set it as the content of our activity.\n camera_preview = new CameraPreview(this, camera);\n // Adding the camera preview after the FrameLayout and before the mainact_btn_InOutAct\n // as a separated element.\n InOut_cameraLayout.addView(camera_preview, 0);\n }", "public static Camera open() { \n return new Camera(); \n }", "public void startFrontCam() {\n }", "@Override\n public void onCameraNotify(int notify) {\n }", "public void openCamera() {\n Toast.makeText(this, \"Coming soon...\", Toast.LENGTH_SHORT).show();\n }", "void cameraInOperation(boolean in_operation, boolean is_video);", "private void takePhoto() {\n Uri fileUri = FileProvider.getUriForFile(Mic.getmCtx(), \"com.jay.appdemo1.fileProvider\", getOutputMediaFile());\n Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);\n intent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 10); //限制的录制时长 以秒为单位\n// intent.putExtra(MediaStore.EXTRA_SIZE_LIMIT, 1024); //限制视频文件大小 以字节为单位\n// intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1); //设置拍摄的质量0~1\n// intent.putExtra(MediaStore.EXTRA_FULL_SCREEN, false); // 全屏设置\n startActivityForResult(intent, RECORD_SYSTEM_VIDEO);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n setContentView(R.layout.activity_preview1);\n\n mOpenCvCameraView = findViewById(R.id.tutorial1_activity_java_surface_view);\n mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE);\n mOpenCvCameraView.setCvCameraViewListener(this);\n\n mOpenCvCameraView.setUseFrontCamera(true);\n mOpenCvCameraView.setDrawSource(false);\n\n\n imageViewPreview = findViewById(R.id.imageViewPreview);\n imageViewPreview2 = findViewById(R.id.imageViewPreview2);\n\n\n }", "@Override\n public void init() {\n startCamera();\n }", "private boolean _getCamera(){\n\n\t\ttry {\n\n\t\t\t// instantiate flash light object depending on SDK version\n\t\t\tif (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n\t\t\t\t_flash = new FlashLight_Pre_Marshmallow();\n\t\t\t}else{\n\t\t\t\t_flash = new FlashLight_Post_Marshmallow(_main);\n\t\t\t}\n\n\t\t\t// open the flash\n\t\t\t_flash.open();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tL.e(TAG, \"Camera Error : Couldn't get the camera, it may be used by another app !\");\n\t\t\tL.e(TAG, \"Camera Error : \" + e.getMessage());\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n openCamera();\n }", "@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n openCamera();\n }", "public interface CameraSetting {\n}", "@Override\n protected void onStart() {\n camera_ = getCameraInstance();\n Parameters params;\n\n if (camera_ != null) {\n params = camera_.getParameters();\n params.setPreviewFormat(ImageFormat.NV21);\n getSmallestPreviewSize(params);\n params.setPreviewSize(width_, height_);\n //params.setFlashMode(Parameters.FLASH_MODE_TORCH);\n params.setWhiteBalance(Parameters.WHITE_BALANCE_AUTO);\n camera_.setParameters(params);\n\n frame_ = new RGB[width_ * height_];\n for (int i = 0; i < frame_.length; ++i) {\n frame_[i] = new RGB();\n }\n\n camera_.setPreviewCallback(new PreviewCallback() {\n @Override\n public void onPreviewFrame(byte[] data, Camera camera) {\n synchronized (frame_) {\n decodeYUV420SP(frame_, data, width_, height_);\n }\n }\n });\n SurfaceTexture texture_ = new SurfaceTexture(0);\n try {\n camera_.setPreviewTexture(texture_);\n } catch (IOException e) {\n e.printStackTrace();\n }\n camera_.startPreview();\n }\n\n super.onStart();\n }", "public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n SystemBar.m33556a((Activity) this, 0);\n SystemBar.m33562b((Activity) this, 0);\n SystemBar.m33561b((Activity) this);\n SystemBar.m33561b((Activity) this);\n if (bundle != null) {\n this.f26280d = bundle.getInt(\"INSTANCE_CAMERA_FUNCTION\");\n this.f26281e = bundle.getString(\"INSTANCE_CAMERA_FILE_PATH\");\n this.f26282f = bundle.getInt(\"INSTANCE_CAMERA_QUALITY\");\n this.f26283j = bundle.getLong(\"INSTANCE_CAMERA_DURATION\");\n this.f26284k = bundle.getLong(\"INSTANCE_CAMERA_BYTES\");\n return;\n }\n Bundle extras = getIntent().getExtras();\n if (f26279c || extras != null) {\n this.f26280d = extras.getInt(\"KEY_INPUT_FUNCTION\");\n this.f26281e = extras.getString(\"KEY_INPUT_FILE_PATH\");\n this.f26282f = extras.getInt(\"KEY_INPUT_CAMERA_QUALITY\");\n this.f26283j = extras.getLong(\"KEY_INPUT_CAMERA_DURATION\");\n this.f26284k = extras.getLong(\"KEY_INPUT_CAMERA_BYTES\");\n int i = this.f26280d;\n if (i == 0) {\n if (TextUtils.isEmpty(this.f26281e)) {\n this.f26281e = AlbumUtils.m33548b((Context) this);\n }\n mo37679a(f26328g, 1);\n } else if (i == 1) {\n if (TextUtils.isEmpty(this.f26281e)) {\n this.f26281e = AlbumUtils.m33552c((Context) this);\n }\n mo37679a(f26329h, 2);\n } else {\n throw new AssertionError(\"This should not be the case.\");\n }\n } else {\n throw new AssertionError();\n }\n }", "public static void setCameraFrame() {\n\t\tCAMERA.src = VERTICES[CAMERA.v];\n\t\tVector zc = CAMERA.src.d.scale(-1).normalized();\n\t\tCAMERA.zAxis = zc;\n\t\tVector xc = MathUtils.cross(CAMERA.src.d, new Vector(0, 1, 0)).normalized();\n\t\tCAMERA.xAxis = xc;\n\t\tVector yc = MathUtils.cross(zc, xc).normalized();\n\t\tCAMERA.yAxis = yc;\n\t\t\n\t\tSystem.out.println(\"***** just set camera: \" + CAMERA.toString());\n\t}", "@TargetApi(9)\n\t@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD) {\n\t\t\tmCamera = Camera.open(0);\t\t\t\t\t\t\t\t\t//For API 9 and above. Open first camera available on device\n\t\t} else {\n\t\t\tmCamera = Camera.open();\t\t\t\t\t\t\t\t\t//For API 8\n\t\t}\n\t}", "private void openCamera() {\n Intent intent=new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n // intent.setAction(Intent.ACTION_PICK);\n // intent.putExtra(MediaStore.EXTRA_OUTPUT,Image_uri);\n startActivityForResult(intent, camera_image_code);\n\n }", "public void init(Camera cam);", "@Override\n \t\t\tpublic void onAutoFocus(boolean success, Camera camera) {\n \t\t\t}", "public interface CameraListener {\n void onCameraStart();\n void onCameraStop();\n }", "private CameraManager() {\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n Log.e(TAG, \"onOpened\");\n cameraDevice = camera;\n createCameraPreview();\n }", "void initCameraManager(){\n\t\tcameraManager = new CameraManager(getApplication());\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n Log.i(TAG, \"called onCreate\");\n super.onCreate(savedInstanceState);\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n setContentView(R.layout.main_surface_view);\n\n mOpenCvCameraView = (JavaCameraView) findViewById(R.id.main_activity_java_surface_view);\n mOpenCvCameraView.setVisibility(SurfaceView.VISIBLE);\n mOpenCvCameraView.setCvCameraViewListener(this);\n mOpenCvCameraView.setMaxFrameSize(1280, 720);\n\n }", "public int cameraOn() {\r\n System.out.println(\"hw- ligarCamera\");\r\n return serialPort.enviaDados(\"!111O*\");//camera ON \r\n }", "@SuppressLint(\"InlinedApi\")\n private void createCameraSource(boolean autoFocus, boolean useFlash) {\n Context context = getApplicationContext();\n\n // A text recognizer is created to find text. An associated processor instance\n // is set to receive the text recognition results and display graphics for each text block\n // on screen.\n TextRecognizer textRecognizer = new TextRecognizer.Builder(context).build();\n textRecognizer.setProcessor(new OcrDetectorProcessor(mGraphicOverlay,this));\n\n if (!textRecognizer.isOperational()) {\n // Note: The first time that an app using a Vision API is installed on a\n // device, GMS will download a native libraries to the device in order to do detection.\n // Usually this completes before the app is run for the first time. But if that\n // download has not yet completed, then the above call will not detect any text,\n // barcodes, or faces.\n //\n // isOperational() can be used to check if the required native libraries are currently\n // available. The detectors will automatically become operational once the library\n // downloads complete on device.\n Log.w(TAG, \"Detector dependencies are not yet available.\");\n\n // Check for low storage. If there is low storage, the native library will not be\n // downloaded, so detection will not become operational.\n IntentFilter lowstorageFilter = new IntentFilter(Intent.ACTION_DEVICE_STORAGE_LOW);\n boolean hasLowStorage = registerReceiver(null, lowstorageFilter) != null;\n\n if (hasLowStorage) {\n Toast.makeText(this, \"Memori HP kurang\", Toast.LENGTH_LONG).show();\n Log.w(TAG, \"Memori HP kurang\");\n }\n }\n\n // Creates and starts the camera. Note that this uses a higher resolution in comparison\n // to other detection examples to enable the text recognizer to detect small pieces of text.\n mCameraSource =\n new CameraSource.Builder(getApplicationContext(), textRecognizer)\n .setFacing(CameraSource.CAMERA_FACING_BACK)\n .setRequestedPreviewSize(1280, 1024)\n .setRequestedFps(2.0f)\n .setFlashMode(useFlash ? Camera.Parameters.FLASH_MODE_TORCH : null)\n .setFocusMode(autoFocus ? Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE : null)\n .build();\n mCameraSource.doZoom(1f);\n }", "public void openCamera() {\n\n Uri photoURI = FileProvider.getUriForFile(this, BuildConfig.APPLICATION_ID + \".provider\", getTempImage());\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n photoURI = Uri.fromFile(getTempImage());\n }\n\n Intent cIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n cIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);\n startActivityForResult(cIntent, CAPTURE_PHOTO);\n }", "public void surfaceCreated(SurfaceHolder holder) {\n Log.i(TAG, \"surface created\");\n if (mCamera != null) {\n final Camera.Parameters params = mCamera.getParameters();\n final List<Camera.Size> sizes = params.getSupportedPreviewSizes();\n final int screenWidth = ((View) getParent()).getWidth();\n int minDiff = Integer.MAX_VALUE;\n Camera.Size bestSize = null;\n\n /*\n * Impostazione dimensione frame a seconda delle dimensioni ottimali e dell'orientamento\n */\n if (getResources().getConfiguration().orientation\n == Configuration.ORIENTATION_LANDSCAPE) {\n for (Camera.Size size : sizes) {\n final int diff = Math.abs(size.width - screenWidth);\n if (diff < minDiff) {\n minDiff = diff;\n bestSize = size;\n }\n }\n } else {\n mCamera.setDisplayOrientation(90);\n for (Camera.Size size : sizes) {\n final int diff = Math.abs(size.height - screenWidth);\n if (Math.abs(size.height - screenWidth) < minDiff) {\n minDiff = diff;\n bestSize = size;\n }\n }\n }\n\n final int previewWidth = bestSize.width;\n final int previewHeight = bestSize.height;\n mHeight = previewHeight;\n mWidth = previewWidth;\n\n ViewGroup.LayoutParams layoutParams = getLayoutParams();\n layoutParams.height = previewHeight;\n layoutParams.width = previewWidth;\n setLayoutParams(layoutParams);\n\n // FORMATO PREVIEW\n params.setPreviewFormat(ImageFormat.NV21);\n params.setPreviewSize(previewWidth, previewHeight);\n params.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);\n\n mCamera.setParameters(params);\n\n //buffer di uscita\n int size = previewWidth * previewHeight *\n ImageFormat.getBitsPerPixel(params.getPreviewFormat()) / 8;\n setupCallback(size);\n\n // Esecuzione preview\n try {\n mCamera.setPreviewDisplay(holder);\n mCamera.startPreview();\n Log.i(TAG, \"preview started\");\n } catch (IOException e) {\n Log.e(TAG, \"Error setting camera preview: \" + e.getMessage());\n }\n\n }\n }", "public void startCamera()\n {\n startCamera(null);\n }", "@Override\n public void onClick(View v) {\n int camerasNumber = Camera.getNumberOfCameras();\n if (camerasNumber > 1) {\n //release the old camera instance\n //switch camera, from the front and the back and vice versa\n\n releaseCamera();\n chooseCamera();\n } else {\n\n }\n }", "public void prepareCamera() {\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n\n autoFocusHandler = new Handler();\n mCamera = getCameraInstance();\n\n /* Instance barcode scanner */\n scanner = new ImageScanner();\n scanner.setConfig(0, Config.X_DENSITY, 3);\n scanner.setConfig(0, Config.Y_DENSITY, 3);\n\n mPreview = new CameraPreview(this, mCamera, previewCb, autoFocusCB);\n\n cameraPreview.addView(mPreview);\n\n }", "public void obtainCameraOrFinish() {\n mCamera = getCameraInstance();\n if (mCamera == null) {\n Toast.makeText(VideoCapture.getSelf(), \"Fail to get Camera\", Toast.LENGTH_LONG).show();\n VideoCapture.getSelf().finish();\n }\n }", "public interface CameraCallback {\n\n public void onPhotoTaken(String path);\n}", "@Override\n public void onClick(View v) {\n Cam.takePicture(shutterCallback, null, mPicture);\n// Cam.takePicture();\n }", "public void toTakeAPicture(View view) {\n requestCameraPermissions();\n Intent launchCamera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(launchCamera, Constants.CAM_REQUEST);\n\n\n\n }", "@Override\n\t\tpublic void onPreviewFrame(byte[] data, Camera camera) {\n\n\t\t\tlong t=System.currentTimeMillis();\n\n\t\t\tmYuv.put(0, 0, data);\n\t\t\tMat mRgba = new Mat();\n\t\t\tImgproc.cvtColor(mYuv, mRgba, Imgproc.COLOR_YUV420sp2RGB, 4);\n\n\t\t\tBitmap bmp = Bitmap.createBitmap(CAMERA_HEIGHT, CAMERA_WIDTH, Bitmap.Config.ARGB_8888);\n\n\t\t\tif (Utils.matToBitmap(mRgba, bmp)){\n\t\t\t\tMatrix m=new Matrix();\n\t\t\t\tif(cameraIndex==0)\n\t\t\t\t\tm.setRotate(90);\n\t\t\t\telse{\n\t\t\t\t\tm.setRotate(-90);\n\t\t\t\t\tm.postScale(-1, 1);\n\t\t\t\t}\n\t\t\t\tBitmap mBit=Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), m, true);\n\t\t\t\tMat mbit=Utils.bitmapToMat(mBit);\n\t\t\t\tMat mGray=new Mat();\n\t\t\t\tlong t2=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"catch time:\"+(t2-t));\n\t\t\t\tImgproc.cvtColor(mbit, mGray, Imgproc.COLOR_RGBA2GRAY);\n\t\t\t\tFace face=ph.detectFace_and_eyes(mGray, 1.0f);\n\t\t\t\tlong t3=System.currentTimeMillis();\n\t\t\t\tLog.d(TAG, \"detectFace_and_eyes time:\"+(t3-t2));\n\t\t\t\tm.reset();\n\t\t\t\tm.postScale(2, 2);\n\t\t\t\tBitmap bmshow=Bitmap.createBitmap(mBit, 0, 0, mBit.getWidth(), mBit.getHeight(), m, true);\n\t\t\t\tCanvas canvas=mHolder.lockCanvas();\n\t\t\t\tcanvas.drawBitmap(bmshow, 0, 0, null);\n\n\n\t\t\t\tif(face!=null){\n\t\t\t\t\tPaint paint=new Paint();\n\t\t\t\t\tpaint.setStrokeWidth(3);\n\t\t\t\t\tpaint.setStyle(Style.STROKE);\n\t\t\t\t\tpaint.setColor(Color.GREEN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.face_area), paint);\n\n\t\t\t\t\tpaint.setColor(Color.CYAN);\n\t\t\t\t\tcanvas.drawRect(getRect(face.left_eye), paint);\n\t\t\t\t\tcanvas.drawRect(getRect(face.right_eye), paint); \n\n\t\t\t\t\tif(face.enable){\n\t\t\t\t\t\t\n\t\t\t\t\t\tMat faceimg=ph.makefaceimg(mGray, face);\n\t\t\t\t\t\tif(faceimg!=null){\n\t\t\t\t\t\t\tMessage.obtain(handler, 0x0100, faceimg).sendToTarget();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tLog.d(TAG, \"prehandle time:\"+(System.currentTimeMillis()-t3));\n\t\t\t\t\t}\n\t\t\t\t}\t \n\t\t\t\tmFps.measure();\n\t\t\t\tmFps.draw(canvas, (canvas.getWidth() - bmp.getWidth()) / 2, 0);\n\n\t\t\t\tmHolder.unlockCanvasAndPost(canvas);\n\t\t\t\tmGray.release();\n\t\t\t\tmbit.release();\n\t\t\t\tmBit.recycle();\n\t\t\t}\n\t\t\tmRgba.release();\n\t\t\tbmp.recycle();\n\n\t\t\tt=System.currentTimeMillis()-t;\n\t\t\tLog.d(TAG, \"time:\"+t+\"ms\");\n\t\t}", "@Override\n protected Camera getCamera() {\n return Camera.createForPositionAndAngles(new ThreeDoubleVector(31.0, 7.0, 5.5), 0.0, 0.7);\n\n // Camera for orientation curve interpolation presentation\n// return Camera.createForPositionAndAngles(new ThreeDoubleVector(54.5, 10.0, 2.5), -0.5, 0.3);\n }", "protected Camera interceptCamera (LightProperties lp) {\n\t\treturn lp.camera;\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n cameraView.start();\n }", "@Override\n\tpublic void moveCamera() {\n\n\t}", "private void initVuforia() {\n VuforiaLocalizer.Parameters parameters = new VuforiaLocalizer.Parameters();\n\n parameters.vuforiaLicenseKey = VUFORIA_KEY;\n //initialize either phone or webcam depending on field set during object initialization\n if(device == Device.Phone){\n parameters.cameraDirection = CameraDirection.BACK;\n }else{\n parameters.cameraName = hwMap.get(WebcamName.class, \"Webcam\");\n\n }\n // Instantiate the Vuforia engine\n vuforia = ClassFactory.getInstance().createVuforia(parameters);\n\n // Loading trackables is not necessary for the Tensor Flow Object Detection engine.\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n this.requestWindowFeature(Window.FEATURE_NO_TITLE);\n this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);\n setContentView(R.layout.main);\n cameraframe = (FrameLayout) findViewById(R.id.preview);\n overlayview = new ImageView(getApplicationContext());\n\t overlayview.setScaleType(ImageView.ScaleType.FIT_XY);\n\n previewing=false;\n freestyle=false;\n \n\t// set up camera, start button\n cameraView = new Preview(this); // <3>\n\n\t cameraframe.addView(cameraView,0); // <4>\n\n\t \n\t\n\t\n\t setupButtons();\n initCamera();\n \n \n\t\n\t\n\t\n \n\tloadFrames();\n\t initFileSystem();\n\t \n //retakeButton.setEnabled(false);\n\t toggleMode();\n \n Log.d(TAG, \"Fully initialized\");\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n public void onOpened(CameraDevice camera) {\n cameraDevice = camera;\n createCameraPreview();\n }", "@Override\n\tpublic void surfaceCreated(SurfaceHolder holder) {\n\t\tLog.e(TAG,\"Surface Created\");\n\t\tcamera = Camera.open();\n\t}" ]
[ "0.76345384", "0.73422766", "0.7245705", "0.7196221", "0.7194886", "0.69156986", "0.6830082", "0.681911", "0.6774303", "0.67287797", "0.67001605", "0.6687634", "0.6671615", "0.6666822", "0.66537744", "0.66290617", "0.66226137", "0.66175777", "0.6590743", "0.6589733", "0.6558195", "0.65476686", "0.6536648", "0.65208834", "0.6507541", "0.65070075", "0.650673", "0.64995414", "0.6497793", "0.64956594", "0.6488076", "0.6485062", "0.64650613", "0.6460551", "0.64400774", "0.6439152", "0.6425656", "0.64163405", "0.6407748", "0.6407748", "0.6404837", "0.63876575", "0.63873255", "0.6367307", "0.6334056", "0.633204", "0.63318455", "0.63152295", "0.63151777", "0.630248", "0.6297009", "0.628846", "0.6284999", "0.6283601", "0.6271912", "0.6258885", "0.6256747", "0.62528026", "0.6242028", "0.6235116", "0.6234546", "0.6233624", "0.6232546", "0.623086", "0.6218238", "0.6218238", "0.6205914", "0.62044084", "0.6198486", "0.6197775", "0.6190895", "0.6168619", "0.6163155", "0.61582935", "0.6155245", "0.61548233", "0.6154271", "0.6154271", "0.6139503", "0.6130241", "0.61281335", "0.6124082", "0.6124019", "0.612289", "0.61217993", "0.61173606", "0.61158234", "0.6106733", "0.6101774", "0.60984427", "0.609682", "0.6094491", "0.60904664", "0.6089313", "0.60891587", "0.60887235", "0.6087431", "0.60857856", "0.6079803", "0.6079803", "0.607871" ]
0.0
-1
TODO Autogenerated method stub
@Override public int getCount() { return mList.size(); }
{ "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 Object getItem(int position) { return mList.get(position); }
{ "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 long getItemId(int position) { return position; }
{ "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 View getView(int position, View convertView, ViewGroup parent) { ViewHolder viewHolder=null; if(convertView==null){ viewHolder=new ViewHolder(); convertView=inflater.inflate(R.layout.others_match_item, null); viewHolder.name=(TextView)convertView.findViewById(R.id.others_person_name); viewHolder.number=(TextView)convertView.findViewById(R.id.others_person_number); viewHolder.goal=(TextView)convertView.findViewById(R.id.others_person_goal); viewHolder.assist=(TextView)convertView.findViewById(R.id.others_person_assist); convertView.setTag(viewHolder); } else{ viewHolder=(ViewHolder)convertView.getTag(); } OthersMatchEntity item=mList.get(position); if (position == 0) { convertView.setBackgroundResource(R.color.other_match); }else{ convertView.setBackgroundResource(R.color.other_list); } viewHolder.name.setText(item.getName()); viewHolder.number.setText(item.getNumber()); viewHolder.goal.setText(item.getGoal()); viewHolder.assist.setText(item.getAssist()); return convertView; }
{ "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 Moves takes in a game state and a color returns an array list of ArrayList
public ArrayList<ArrayList<Move>> getMoves(int color){//TODO ArrayList<ArrayList<Move>> moves = new ArrayList<ArrayList<Move>>(); boolean jumpsExist = false; //look for jumps //search the board for pieces of your color for (int i=0; i<8; i++){ for(int j=0; j<8; j++){ //if the piece is the right color if ((gameState.getStateOfSquare(i, j) != 0)&&(gameState.getStateOfSquare(i, j)%2 == color)){ // System.out.println("found a piece you own"); //find all jumps of that piece //get jumps ArrayList<ArrayList<Move>> jumps = getJumps(color, i, j); //if there are jumps return only the jumps if (jumps.isEmpty() == false){ moves.addAll(jumps); jumpsExist = true; } } } } if (jumpsExist == false){ //look for diagonals //search the board for pieces of your color for (int i=0; i<8; i++){ for(int j=0; j<8; j++){ //if the piece is the right color if ((gameState.getStateOfSquare(i, j) != 0)&&(gameState.getStateOfSquare(i, j)%2 == color)){ // System.out.println("found a piece you own"); //get diagonals //try up right Move tryMove = new Move(i,j,i+1,j+1); if (attemptMove(tryMove, color)){// if this move is valid add it to moves addMove(tryMove, moves); } //try up left tryMove = new Move(i,j,i-1,j+1); if (attemptMove(tryMove, color)){// if this move is valid add it to moves addMove(tryMove, moves); } //try down right tryMove = new Move(i,j,i+1,j-1); if (attemptMove(tryMove, color)){// if this move is valid add it to moves addMove(tryMove, moves); } //try down left tryMove = new Move(i,j,i-1,j-1); if (attemptMove(tryMove, color)){// if this move is valid add it to moves addMove(tryMove, moves); } } } } } if (moves.isEmpty() == true){ noMoves = true; } // return moves; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Stack<int[]> getMoveOptions(int color, int row, int col) {\r\n int[] result;\r\n Stack<int[]> moves = new Stack<>();\r\n if (color == BLACK) {\r\n result=getMove(color,row,col,row-1,col-1);\r\n if(result !=null)moves.push(result);\r\n result=getMove(color,row,col,row-1,col+1);\r\n if(result !=null)moves.push(result);\r\n }\r\n if (color == WHITE) {\r\n result=getMove(color,row,col,row+1,col-1);\r\n if(result !=null)moves.push(result);\r\n result=getMove(color,row,col,row+1,col+1);\r\n if(result !=null)moves.push(result);\r\n }\r\n return moves;\r\n }", "void processNextMove(List<Coordinates> moves, Ball color);", "public List<PossibleMove> getPossibleMoves(char color) {\r\n\t\tif (color != 'B' && color != 'W') {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Error! Invalid color. Expected B or W.\");\r\n\t\t}\r\n\r\n\t\tList<PossibleMove> posMoves = new ArrayList<PossibleMove>();\r\n\t\tthis.findPossibleMoves(color);\r\n\t\tCollections.sort(possibleMoves);\r\n\t\tfor (PossibleMove p : possibleMoves) {\r\n\t\t\tposMoves.add(new PossibleMove(p.getColumn(), p.getLine()));\r\n\t\t}\r\n\t\treturn posMoves;\r\n\t}", "@Override\n public ArrayList<xMCTSStringGameState> getPossibleMoves(xMCTSStringGameState gameState)\n {\n\t ArrayList<xMCTSStringGameState> posMoves = new ArrayList<xMCTSStringGameState>();\n\t if (gameStatus(gameState) == xMCTSGame.status.ONGOING) {\n\t \t String activeCard = gameState.toString().substring(gameState.toString().length() - 2, gameState.toString().length());\n\t \t int gridSize = SIZE*2;\n\t for (int i = 0; i < gridSize; i += 2) {\n\t for (int j = 0; j < gridSize; j += 2) {\n\t int pos = i * SIZE + j;\n\t if (gameState.toString().charAt(pos) == '_') {\n\t String temp = gameState.toString().substring(0, pos)\n\t \t\t + activeCard\n\t + gameState.toString().substring(pos + 2,\n\t gameState.toString().length());\n\t posMoves.add(new xMCTSStringGameState(temp, 0.0, 0));\n\t }\n\t }\n\n\t }\n\t }\n\t else {\n\t \t // System.out.println(\"No moves can be made from this state\");\n\t \t// callsFromFullBoards++;\n\t \t// System.out.println(\"There have been \" + callsFromFullBoards + \"attempts to get possible moves from a full board\");\n\t }\n\t return posMoves;\n }", "private static ArrayList<Point> getCurrentlyValidMoves(){\n ArrayList<Point> currentlyValidMoves = new ArrayList<Point>();\n //iterate through the gameboard, checking if the move is valid\n for( int row = 0; row < 8; row++ ){\n for( int column = 0; column < 8; column++ ){\n if( gamepieces[ row ][ column ] == BACKGROUND_COLOR && isMoveValid( row, column ) ){\n //if it is valid, add it to our list\n currentlyValidMoves.add( new Point( row, column ) );\n }\n }\n }\n return currentlyValidMoves;\n }", "public Stack<Move> getNextMoves(String color, Move move) {\n Square[] squares = new Square[64];\n for (int i = 0; i < squares.length; i++) {\n squares[i] = this.squares[i].copy();\n }\n Board boardCopy = new Board(squares);\n\n //for (int i=0; i<moves.size(); i++){\n //Move move = moves.pop();\n boardCopy.movePiece(move);\n\n //}\n\n Stack<Move> nextMoves = boardCopy.getMoves(color);\n //boardCopy.undoMove(move);\n\n return nextMoves;\n }", "@Override\n public ArrayList<AState> getAllPossibleStates(AState state){\n MazeState s = (MazeState)state;\n ArrayList<AState> moves = new ArrayList<AState> ();\n\n\n int row = s.getState().getRowIndex();\n int col = s.getState().getColumnIndex();\n int [][] matrix = mySearchableMaze.getMazeMatrix();\n\n\n if(row+1 < matrix.length){\n if( matrix[row+1][col]==0 ){\n moves.add(new MazeState(new Position(row+1,col),false,s.getCost()+1));\n\n }\n }\n if(row-1 >= 0 ){\n if( matrix[row-1][col]==0){\n moves.add(new MazeState(new Position(row-1,col),false,s.getCost()+1));\n\n }\n }\n if(col+1 < matrix[0].length ){\n if( matrix[row][col+1]==0 ){\n moves.add(new MazeState(new Position(row,col+1),false,s.getCost()+1));\n\n }\n }\n if(col-1 >= 0 ){\n if( matrix[row][col-1]==0 ){\n moves.add(new MazeState(new Position(row,col-1),false,s.getCost()+1));\n }\n }\n return moves;\n }", "List<Cell> getPossibleMoves(Board board,\n Color color) {\n List<Cell> possible_moves = new ArrayList<Cell>();\n boolean flip_dir = false;\n //loop through all cells in board\n for (int i = 0; i < board.getRows(); i++) {\n for (int j = 0; j < board.getCols(); j++) {\n //check in all directions if move will flip cells\n for (Direction d : Direction.values()) {\n flip_dir = flipInDirection(board, i, j, d, color);\n if (flip_dir) {\n possible_moves.add(board.getCell(i,j));\n break;\n }\n }\n }\n }\n return possible_moves;\n }", "public List<Move> getValidMoves(TileState playerColor) {\r\n\t\tfinal long validMoveMask = playerColor == TileState.DARK ? legalDarkMoves : legalLightMoves;\r\n\t\tMove[] validMoves = new Move[Long.bitCount(validMoveMask)];\r\n\t\tint counter = 0;\r\n\t\tint highestOneIndex = 64 - Long.numberOfLeadingZeros(validMoveMask);\r\n\t\tfor (int i = Long.numberOfTrailingZeros(validMoveMask); i < highestOneIndex; i++) {\r\n\t\t\tif (((0x1L << i) & validMoveMask) != 0L) {\r\n\t\t\t\tvalidMoves[counter] = MovePool.pool[i];\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Arrays.asList(validMoves);\r\n\t}", "private List<int[]> generatePossibleMoveActions(LabyrinthGameState state) {\n List<Tile> tiles = new ArrayList<>();\n Tile orig = state.getPlayerLoc(Player.values()[playerNum]);\n tiles.add(orig);\n this.calculatePossibleMoves(orig, tiles);\n List<int[]> locations = new ArrayList<>();\n for (Tile spot : tiles) {\n int[] loc = new int[2];\n loc[0] = spot.getX();\n loc[1] = spot.getY();\n locations.add(loc);\n }\n return locations;\n }", "public ArrayList<Point> getLegalMoves(Soldier c){\n ArrayList<Point> legalMoves = new ArrayList<Point>();\n if(!containsSoldier(c, gamePieces)) \n return legalMoves;\n \n int positionX = c.i;\n int positionY = c.j;\n if(c.C== Color.black){\n getMovingPositions(new Point(positionX, positionY), Color.black, Movement.LEFT);\n getMovingPositions(new Point(positionX, positionY), Color.black, Movement.RIGHT);\n getMovingPositions(new Point(positionX, positionY), Color.black, Movement.FORWARD);\n }else if(c.C == Color.red){\n getMovingPositions(new Point(positionX, positionY), Color.red, Movement.LEFT);\n getMovingPositions(new Point(positionX, positionY), Color.red, Movement.RIGHT);\n getMovingPositions(new Point(positionX, positionY), Color.red, Movement.FORWARD);\n }\n return legalMoves;\n }", "public ArrayList<Point> moves() {\n\t\tmoves = new ArrayList<Point>();\n\t\tif (point.x > 0 && board.pieceAt(point.x - 1, point.y) == null)\n\t\t\tmoves.add(board.left(point));\n\t\tif (point.x < board.getXDim() - 1 && board.pieceAt(point.x + 1, point.y) == null)\n\t\t\tmoves.add(board.right(point));\n\t\tif (point.y > 0 && board.pieceAt(point.x, point.y - 1) == null)\n\t\t\tmoves.add(board.above(point));\n\t\tif (point.y < board.getYDim() - 1 && board.pieceAt(point.x, point.y + 1) == null)\n\t\t\tmoves.add(board.below(point));\n\t\treturn (ArrayList<Point>) moves.clone();\n\t}", "ArrayList<Move> getMoves() {\n ArrayList<Move> result = new ArrayList<>();\n getMoves(result);\n return result;\n }", "public abstract ArrayList<Move> possibleMoves(Board board);", "ArrayList<int[]> findValidMoves();", "private ArrayList<MoveNode> getAllMoves(int slotColor) {\n ArrayList<MoveNode> movePaths = new ArrayList<>();\n ArrayList<Pair<Slot, Slot>> moves = new ArrayList<>();\n HashMap<Slot, Slot> parents = new HashMap<>();\n\n for (int r = 0; r < Board.MAX_ROW; r++) {\n for (int c = 0; c < Board.MAX_COLUMN; c++) {\n if (boardObject.getSlot(r, c).getColor() == slotColor) {\n Slot slot = new Slot(r, c, slotColor);\n\n depthFirstSearch(slot, moves, parents);\n getPath(parents, moves, movePaths);\n\n parents.clear();\n moves.clear();\n }\n }\n }\n\n return movePaths;\n }", "ArrayList<Move> legalMoves() {\n ArrayList<Move> result = new ArrayList<Move>();\n int f, b;\n Move m;\n for (int i = 1; i < 8; i++) {\n for (int j = 1; j < 8; j++) {\n if (get(i,j).side() == _turn) {\n f = forward(j, i);\n b = backward(j, i);\n c = _col[j];\n r = _row[i];\n m = Move.create(j, i, j - b, i - b);\n addMove(result, m);\n m = Move.create(j, i, j + b, i + b);\n addMove(result, m);\n m = Move.create(j, i, j + f, i - f);\n addMove(result, m);\n m = Move.create(j, i, j - f, i + f);\n addMove(result, m);\n m = Move.create(j, i, j + c, i);\n addMove(result, m);\n m = Move.create(j, i, j - c, i);\n addMove(result, m);\n m = Move.create(j, i, j, i + r);\n addMove(result, m);\n m = Move.create(j, i, j, i - r);\n addMove(result, m);\n } else {\n continue;\n }\n }\n }\n return result;\n }", "public List<MoveTicket> getValidSingleMovesAtLocation(Colour player, int location);", "private int[] getMove(int color, int row, int col,int nextRow,int nextCol) {\r\n int enemyColor;\r\n if (color == 1) {enemyColor = 2;}\r\n else {enemyColor = 1;}\r\n\r\n if (isLegalPos(nextRow, nextCol)) {\r\n if (checks[nextRow][nextCol] == 0) {\r\n nextMove[nextRow][nextCol] =1;\r\n return new int[]{nextRow, nextCol};\r\n }\r\n if (checks[nextRow][nextCol]== enemyColor && isLegalPos(nextRow+(nextRow-row),nextCol+(nextCol-col))){\r\n if(checks[nextRow+(nextRow-row)][nextCol+(nextCol-col)]==0){\r\n nextMove[nextRow+(nextRow-row)][nextCol+(nextCol-col)] =1;\r\n return new int[]{nextRow+(nextRow-row),nextCol+(nextCol-col)};\r\n }\r\n }\r\n }\r\n return null;\r\n }", "ArrayList<Location> getMoveLocations();", "abstract public List<Move> getPossibleMoves();", "public ArrayList<MoveType> getMoves(BotState state, long timeout) {\n ArrayList<MoveType> moves = new ArrayList<MoveType>();\n\n Field field = state.getMyField();\n ShapeType current = state.getCurrentShape();\n ShapeType next = state.getNextShape();\n int myCombo = state.getMyCombo();\n\n Shape piece = new Shape(current, field, state.getShapeLocation());\n Shape nextPiece = new Shape(next, field, (next == ShapeType.O) ? new Point(4, -1) : new Point(3, -1));\n\n Best best = getBestFitness(field, piece, myCombo, nextPiece);\n\n int bestRot = best.bestRot;\n int bestLeft = best.bestLeft;\n\n for (; bestRot > 0; bestRot--)\n moves.add(MoveType.TURNRIGHT);\n if (bestLeft < 0)\n for (; bestLeft < 0; bestLeft++)\n moves.add(MoveType.RIGHT);\n else\n for (; bestLeft > 0; bestLeft--)\n moves.add(MoveType.LEFT);\n\n moves.add(MoveType.DROP);\n return moves;\n }", "public abstract List<Move> getLegalMoves(MachineState state, Role role) throws MoveDefinitionException, StateMachineException;", "private ArrayList<Color> createColorArray(){\n ArrayList<Color> out = new ArrayList<>();\n out.add(detectColor((String) Objects.requireNonNull(P1color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P2color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P3color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P4color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P5color.getSelectedItem())));\n out.add(detectColor((String) Objects.requireNonNull(P6color.getSelectedItem())));\n return out;\n }", "List<ValidMove> getValidMoves();", "protected List<Move> getMoves() {\n return moves;\n }", "public int[] findMove(){\n int[] blackCheckerSpots = new int[12];\n int i =0;\n while(mCheckerBoard.indexOf(new Checker(1, false)) != -1){\n int startPosition = mCheckerBoard.indexOf(new Checker(1, false)); //need to override Checker equals method\n Checker current = mCheckerBoard.get(startPosition);\n int[] answer = jumpRight(startPosition, false, current);\n if(answer.length > 1)\n {\n //jumped right downwards\n return answer;\n }\n answer = jumpLeft(startPosition, false, current);\n if(answer.length > 1){\n //jumped left downwards\n return answer;\n }\n answer = moveDiagonalRight(startPosition, false, current);\n if(answer.length > 1){\n //moved diagonal right downwards\n return;\n }\n answer = moveDiagonalLeft(startPosition, false, current);\n if(answer.length > 1){\n //moved diagonal left downwards\n return;\n }\n\n //end of loop\n //these are the ones that need to be set back to black at the end\n current.setIsRed(true);\n blackCheckerSpots[i]=startPosition;\n i++;\n }\n\n for(int j =0; j<blackCheckerSpots.length; j++){\n Checker changed = mCheckerBoard.get(blackCheckerSpots[j]);\n changed.setIsRed(false);\n mCheckerBoard.set(blackCheckerSpots[j], changed);\n }\n\n }", "private void findPossibleMoves(char color) {\r\n\t\tassert color == 'B' || color == 'W';\r\n\r\n\t\tthis.possibleMoves.clear();\r\n\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\tif (playBoard[i][j] == color) {\r\n\t\t\t\t\tfindPossibleMovesAt(i, j, color);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public String [] getMoves() {\n return moves;\n }", "private List<Move> generateMoves(boolean debug) {\r\n\r\n\t\tList<Piece> pieces = this.chessGame.getPieces();\r\n\t\tList<Move> validMoves = new ArrayList<Move>();\r\n\t\tMove testMove = new Move(0,0,0,0);\r\n\t\t\r\n\t\tint pieceColor = (this.chessGame.getGameState()==ChessGame.GAME_STATE_WHITE\r\n\t\t\t?Piece.COLOR_WHITE\r\n\t\t\t:Piece.COLOR_BLACK);\r\n\r\n\t\t// iterate over all non-captured pieces\r\n\t\tfor (Piece piece : pieces) {\r\n\r\n\t\t\t// only look at pieces of current players color\r\n\t\t\tif (pieceColor == piece.getColor()) {\r\n\t\t\t\t// start generating move\r\n\t\t\t\ttestMove.sourceRow = piece.getRow();\r\n\t\t\t\ttestMove.sourceColumn = piece.getColumn();\r\n\r\n\t\t\t\t// iterate over all board rows and columns\r\n\t\t\t\tfor (int targetRow = Piece.ROW_1; targetRow <= Piece.ROW_8; targetRow++) {\r\n\t\t\t\t\tfor (int targetColumn = Piece.COLUMN_A; targetColumn <= Piece.COLUMN_H; targetColumn++) {\r\n\r\n\t\t\t\t\t\t// finish generating move\r\n\t\t\t\t\t\ttestMove.targetRow = targetRow;\r\n\t\t\t\t\t\ttestMove.targetColumn = targetColumn;\r\n\r\n\t\t\t\t\t\tif(debug) System.out.println(\"testing move: \"+testMove);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// check if generated move is valid\r\n\t\t\t\t\t\tif (this.validator.isMoveValid(testMove, true)) {\r\n\t\t\t\t\t\t\t// valid move\r\n\t\t\t\t\t\t\tvalidMoves.add(testMove.clone());\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// generated move is invalid, so we skip it\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn validMoves;\r\n\t}", "private ArrayList<Tile> getPossibleRedTiles(){\n\t\tArrayList<Tile> toReturn = new ArrayList<>();\n\n\t\tGame game=Game.getInstance();\n\t\tArrayList<Tile> legalTiles= getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tArrayList<Tile> blockedTiles=new ArrayList<Tile>();\n\t\tlegalTiles.removeAll(coloredTilesList);\n\n\t\t//\t\tonly one soldier can move\n\t\tif(game.getTurn().isLastTileRed()) {\n\t\t\tPiece lastPMoved = game.getTurn().getLastPieceMoved();\n\t\t\tArrayList<Tile> possibleTiles=lastPMoved.getPossibleMoves(game.getCurrentPlayerColor());\n\t\t\tpossibleTiles.removeAll(coloredTilesList);\n\t\t\tif(!possibleTiles.isEmpty()) {\n\t\t\t\tfor(Tile t: possibleTiles) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(lastPMoved instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tblockedTiles.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpossibleTiles.removeAll(blockedTiles);\n\t\t\t}\n\t\t\ttoReturn = possibleTiles;\n\t\t}\n\t\telse {\n\t\t\tHashMap<Tile, ArrayList<Piece>> tempCollection = new HashMap<>();\n\n\t\t\tfor(Tile t:legalTiles) {\n\t\t\t\tfor(Piece p : getColorPieces(Game.getInstance().getCurrentPlayerColor())){\n\t\t\t\t\tboolean canMove = false;\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(canMove) {\n\t\t\t\t\t\tArrayList<Piece> pp = null;\n\t\t\t\t\t\tif(!tempCollection.containsKey(t)) {\n\t\t\t\t\t\t\tpp = new ArrayList<>();\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tpp = tempCollection.get(t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpp.add(p);\n\t\t\t\t\t\ttempCollection.put(t, pp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<Tile> tilesToRemove = new ArrayList<>();\n\n\t\t\tfor(Tile t : tempCollection.keySet()) {\n\t\t\t\tArrayList<Piece> pieces= tempCollection.get(t);\n\t\t\t\tfor(Piece p : pieces) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(p instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tif(!tilesToRemove.contains(t))\n\t\t\t\t\t\t\ttilesToRemove.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Tile t : tilesToRemove) {\n\t\t\t\ttempCollection.remove(t);\n\t\t\t}\n\n\t\t\ttoReturn = new ArrayList<Tile>(tempCollection.keySet());\t\n\t\t}\n\t\treturn toReturn;\n\t}", "static List<Move> generateLegalMoves(Position pos) {\n\t\tList<Move> moves = new ArrayList<>();\n\n\t\t// for (int square : pos.pieces) {\n\t\t// \tif (pos.pieces.size() > 32) {\n\t\t// \t\tSystem.out.println(\"problem\" + pos.pieces.size());\n\t\t// \t}\n\t\t// \tif (pos.at(square) != 0 && Piece.isColor(pos.at(square), pos.toMove)) {\n\t\t// \t\tint piece = pos.at(square);\n\t\t// \t\tint name = Piece.name(piece);\n\t\t// \t\tif (name == Piece.Pawn) {\n\t\t// \t\t\tint step = pos.toMove == 'w' ? MoveData.Up : MoveData.Down;\n\t\t// \t\t\tif (square + step >= 0 && square + step < 64) {\n\t\t// \t\t\t\t// 1 square\n\t\t// \t\t\t\tif (pos.board.squares[square + step] == 0) {\n\t\t// \t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'q'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'b'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'n'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'r'));\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step));\n\t\t// \t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t// \t\t\t\t}\n\t\t// \t\t\t\t// 2 squares\n\t\t// \t\t\t\tif ((square < 16 && pos.toMove == 'w') || square > 47 && pos.toMove == 'b') {\n\t\t// \t\t\t\t\tif (pos.board.squares[square + 2*step] == 0 && pos.board.squares[square + step] == 0) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + 2*step));\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t\t// capture\n\t\t// \t\t\t\t// right\n\t\t// \t\t\t\tif (MoveData.DistanceToEdge[square][3] > 0) {\n\t\t// \t\t\t\t\tint target = square + step + 1;\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'q'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'b'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'n'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'r'));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t\telse {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\t\t\t\n\t\t// \t\t\t\t\t} \n\t\t// \t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\n\t\t// \t\t\t\t// left\n\t\t// \t\t\t\tif (MoveData.DistanceToEdge[square][2] > 0) {\n\t\t// \t\t\t\t\tint target = square + step - 1;\n\t\t// \t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'q'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'b'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'n'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'r'));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t\telse {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\t\t\t\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t}\t\t\t\t\t\t\t\t\n\t\t// \t\t}\n\t\t// \t\telse if (name == Piece.Knight) {\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\tfor (int offset : MoveData.KnightOffsets.get(square)) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\tif (!Piece.isColor(pos.board.squares[square + offset], pos.toMove)) {\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tMove move = new Move(square, square + offset);\n\t\t// \t\t\t\t\tmoves.add(move);\t\t\t\t\t\t\t\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t}\t\t\t\t\t\n\t\t// \t\t}\n\t\t// \t\telse {\n\t\t// \t\t\tint dirStart = name == Piece.Bishop ? 4 : 0;\n\t\t// \t\t\tint dirEnd = name == Piece.Rook ? 4 : 8;\n\t\t// \t\t\tfor (int dir = dirStart; dir < dirEnd; dir++) {\n\t\t// \t\t\t\tint maxDist = MoveData.DistanceToEdge[square][dir];\n\t\t// \t\t\t\tint dist = name == Piece.King ? Math.min(1, maxDist) : maxDist;\n\n\t\t// \t\t\t\tfor (int steps = 1; steps <= dist; steps++) {\n\t\t// \t\t\t\t\tint squareIdx = square + steps * MoveData.Offsets[dir];\t\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tif (!Piece.isColor(pos.board.squares[squareIdx], pos.toMove)) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, squareIdx));\n\t\t// \t\t\t\t\t\tif (Piece.isColor(pos.board.squares[squareIdx], Opposite(pos.toMove))) {\n\t\t// \t\t\t\t\t\t\tbreak;\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse {\n\t\t// \t\t\t\t\t\tbreak;\n\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}\n\t\t// \t\t}\n\t\t// \t}\n\t\t// }\n\n\t\tfor (int i = 0; i < 64; i++) {\n\t\t\tif (pos.board.squares[i] != 0 && Piece.isColor(pos.board.squares[i], pos.toMove)) {\n\t\t\t\tint piece = pos.board.squares[i];\n\t\t\t\tint name = Piece.name(piece);\n\t\t\t\tif (name == Piece.Pawn) {\n\t\t\t\t\tint step = pos.toMove == 'w' ? MoveData.Up : MoveData.Down;\n\t\t\t\t\tif (i + step >= 0 && i + step < 64) {\n\t\t\t\t\t\t// 1 square\n\t\t\t\t\t\tif (pos.board.squares[i + step] == 0) {\n\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'q'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'b'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'n'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'r'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// 2 squares\n\t\t\t\t\t\tif ((i < 16 && pos.toMove == 'w') || i > 47 && pos.toMove == 'b') {\n\t\t\t\t\t\t\tif (pos.board.squares[i + 2*step] == 0 && pos.board.squares[i + step] == 0) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + 2*step));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t// capture\n\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (MoveData.DistanceToEdge[i][3] > 0) {\n\t\t\t\t\t\t\tint target = i + step + 1;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'q'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'b'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'n'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'r'));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// left\n\t\t\t\t\t\tif (MoveData.DistanceToEdge[i][2] > 0) {\n\t\t\t\t\t\t\tint target = i + step - 1;\n\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'q'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'b'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'n'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'r'));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (name == Piece.Knight) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tfor (int offset : MoveData.KnightOffsets.get(i)) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (!Piece.isColor(pos.board.squares[i + offset], pos.toMove)) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMove move = new Move(i, i + offset);\n\t\t\t\t\t\t\tmoves.add(move);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint dirStart = name == Piece.Bishop ? 4 : 0;\n\t\t\t\t\tint dirEnd = name == Piece.Rook ? 4 : 8;\n\t\t\t\t\tfor (int dir = dirStart; dir < dirEnd; dir++) {\n\t\t\t\t\t\tint maxDist = MoveData.DistanceToEdge[i][dir];\n\t\t\t\t\t\tint dist = name == Piece.King ? Math.min(1, maxDist) : maxDist;\n\t\t\t\t\t\tfor (int steps = 1; steps <= dist; steps++) {\n\t\t\t\t\t\t\tint squareIdx = i + steps * MoveData.Offsets[dir];\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!Piece.isColor(pos.board.squares[squareIdx], pos.toMove)) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, squareIdx));\n\t\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[squareIdx], Opposite(pos.toMove))) {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tbreak;\n\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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// castling\t\t\n\t\tif (pos.toMove == 'w' && !underAttack(pos, pos.whiteKing, 'b')) {\t\t\t\n\t\t\tif (pos.castlingRights.whiteKingSide && pos.at(Board.H1) == (Piece.Rook | Piece.White)) {\n\t\t\t\tif (pos.at(Board.F1) == Piece.Empty && pos.at(Board.G1) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.F1, 'b') && !underAttack(pos, Board.G1, 'b')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E1, Board.G1));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tif (pos.castlingRights.whiteQueenSide && pos.at(Board.A1) == (Piece.Rook | Piece.White)) {\t\t\t\t\n\t\t\t\tif (pos.at(Board.B1) == Piece.Empty && pos.at(Board.C1) == Piece.Empty && pos.at(Board.D1) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.D1, 'b') && !underAttack(pos, Board.C1, 'b')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E1, Board.C1));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse if (pos.toMove == 'b' && !underAttack(pos, pos.blackKing, 'w')){\n\t\t\tif (pos.castlingRights.blackKingSide && pos.at(Board.H8) == (Piece.Rook | Piece.Black)) {\n\t\t\t\tif (pos.at(Board.F8) == Piece.Empty && pos.at(Board.G8) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.F8, 'w') && !underAttack(pos, Board.G8, 'w')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E8, Board.G8));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pos.castlingRights.blackQueenSide && pos.at(Board.A8) == (Piece.Rook | Piece.Black)) {\n\t\t\t\tif (pos.at(Board.B8) == Piece.Empty && pos.at(Board.C8) == Piece.Empty && pos.at(Board.D8) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.D8, 'w') && !underAttack(pos, Board.C8, 'w')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E8, Board.C8));\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// filter illegal moves\n\t\tList<Move> legalMoves = new ArrayList<>();\n\t\tchar color = pos.toMove;\n\t\tfor (Move move : moves) {\n\t\t\tpos.makeMove(move);\n\t\t\tif (!kingInCheck(pos, color)) {\n\t\t\t\tlegalMoves.add(move);\n\t\t\t}\t\t\t\n\t\t\tpos.undoMove();\n\t\t}\n\n\t\treturn legalMoves;\n\t}", "List<Moves> getMoveSet();", "private void capture(Board board, List<Move> moves) {\n int x = location.x;\n int y = location.y;\n \n Piece pc;\n Point pt;\n int move;\n \n if (color == Color.White)\n move = -1;\n else\n move = 1;\n \n pt = new Point(x - 1, y + move);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt); \n if (pc != null)\n if(this.color != pc.getColor())\n moves.add(new Move(this, pt, pc)); \n }\n pt = new Point(x + 1, y + move);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt); \n if (pc != null)\n if(this.color != pc.getColor())\n moves.add(new Move(this, pt, pc)); \n }\n }", "List gen() {\n\tList ret = new ArrayList();\n\n\tlong emptySlots = ~(pieceBits[LIGHT] | pieceBits[DARK]);\n\tif (side == LIGHT) {\n\tlong moves = (pawnBits[LIGHT] >> 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {////// bouger le pion d'une case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 8, theMove, 16);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((keep & 0x0000ff0000000000L) >> 8) & emptySlots;// bouge le pion\n\t\twhile (moves != 0) {//bouger le pion de deux case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 16, theMove, 24);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {//pion qui mange un autre pion\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 9, theMove, 17);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {// manger a droite\n\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t} else {\n\tlong moves = (pawnBits[DARK] << 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 8, theMove, 16);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((keep & 0xff0000L) << 8) & emptySlots;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 16, theMove, 24);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t}\n\tlong pieces = pieceBits[side] ^ pawnBits[side];\n\twhile (pieces != 0) {\n\tint i = getLBit(pieces);\n\tint p = piece[i];\n\tfor (int j = 0; j < offsets[p]; ++j)\n\tfor (int n = i;;) {\n\tn = mailbox[mailbox64[n] + offset[p][j]];\n\tif (n == -1)\n\tbreak;\n\tif (color[n] != EMPTY) {\n\tif (color[n] == xside)\n\tgenPush(ret, i, n, 1);\n\tbreak;\n\t}\n\tgenPush(ret, i, n, 0);\n\tif (!slide[p])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\n\t/* petit rock */\n\tif (side == LIGHT) {\n\tif (((castle & 1) != 0) && (piece[F1] == EMPTY)\n\t&& (piece[G1] == EMPTY))\n\tgenPush(ret, E1, G1, 2);\n\tif (((castle & 2) != 0) && (piece[D1] == EMPTY)\n\t&& (piece[C1] == EMPTY) && (piece[B1] == EMPTY))\n\tgenPush(ret, E1, C1, 2);\n\t} else {\n\tif (((castle & 4) != 0) && (piece[F8] == EMPTY)\n\t&& (piece[G8] == EMPTY))\n\tgenPush(ret, E8, G8, 2);\n\tif (((castle & 8) != 0) && (piece[D8] == EMPTY)\n\t&& (piece[C8] == EMPTY) && (piece[B8] == EMPTY))\n\tgenPush(ret, E8, C8, 2);\n\t}\n\n\t/* generate en passant moves */\n\tif (ep != -1) {\n\tif (side == LIGHT) {\n\tif (COL(ep) != 0 && color[ep + 7] == LIGHT\n\t&& piece[ep + 7] == PAWN)\n\tgenPush(ret, ep + 7, ep, 21);\n\tif (COL(ep) != 7 && color[ep + 9] == LIGHT\n\t&& piece[ep + 9] == PAWN)\n\tgenPush(ret, ep + 9, ep, 21);\n\t} else {\n\tif (COL(ep) != 0 && color[ep - 9] == DARK\n\t&& piece[ep - 9] == PAWN)\n\tgenPush(ret, ep - 9, ep, 21);\n\tif (COL(ep) != 7 && color[ep - 7] == DARK\n\t&& piece[ep - 7] == PAWN)\n\tgenPush(ret, ep - 7, ep, 21);\n\t}\n\t}\n\treturn ret;\n\t}", "private ArrayList<Piece> getPieces(PieceColor color) {\n \tArrayList<Piece> pieces = new ArrayList<Piece>();\n \tPiece temp;\n \t\n \tfor(int i = 0; i < 8; i++) {\n \t\tfor(int j = 0; j < 8; j++) {\n \t\t\ttemp = getPiece(j, i);\n \t\t\t\n \t\t\t//add piece to list if it's the same color\n \t\t\t//NoPieces have their own color, so they won't pass this test\n \t\t\tif(temp.getColor() == color) pieces.add(temp);\n \t\t}\n \t}\n \t\n \treturn pieces;\n }", "@Override\n\tpublic String getMove(String opponentsMove, int boardDimension, \n\t\t\tString board, char color, List<String> prevBoards) {\n\t\t\n\t\tboolean opponentCanDoAMove = canOpponentDoAMove(boardDimension, board, color, prevBoards);\n\t\tboolean opponentPassed = opponentsMove.equals(Character.toString(ProtocolMessages.PASS));\n\t\tchar winner = boardState.highestScore(board);\n\t\tif ((!opponentCanDoAMove || opponentPassed) && winner == color) {\n\t\t\treturn Character.toString(ProtocolMessages.PASS);\n\t\t}\n\t\t\n\t\tboolean noMovesLeft = false;\n\t\tList<String> possibleLocations = new ArrayList<String>();\n\t\t//fill up left five columns, then move on\n\t\tint xmin = 0;\n\t\tint xmax = 4;\n\t\twhile (!noMovesLeft) {\n\t\t\tfor (int x = xmin; x <= xmax; x++) {\n\t\t\t\tfor (int y = 0; y <= boardDimension - 1; y++) {\n\t\t\t\t\tint location = x + y * boardDimension;\n\t\t\t\t\tif (isValidMove(board, boardDimension, color, prevBoards, location)) {\n\t\t\t\t\t\tif (!neighborsAllOwnColor(board, boardDimension, color, location)) {\n\t\t\t\t\t\t\tpossibleLocations.add(Integer.toString(location));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (possibleLocations.size() != 0) {\n\t\t\t\tint randomInt = (int) (Math.random() * possibleLocations.size());\n\t\t\t\treturn possibleLocations.get(randomInt);\n\t\t\t} \n\t\t\txmin = xmin + 5;\n\t\t\txmax = xmax + 5;\n\t\t\tif (xmin > boardDimension - 1) {\n\t\t\t\tnoMovesLeft = true;\n\t\t\t} else if (xmax > boardDimension - 1) {\n\t\t\t\txmax = boardDimension - 1;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn Character.toString(ProtocolMessages.PASS);\n\t}", "List genCaps() {\n\tList ret = new ArrayList();\n\n\tif (side == LIGHT) {\n\tlong moves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t& pieceBits[DARK];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7)\n\t& pieceBits[DARK];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t} else {\n\tlong moves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t}\n\tlong pieces = pieceBits[side] ^ pawnBits[side];\n\twhile (pieces != 0) {\n\tint p = getLBit(pieces);\n\tfor (int j = 0; j < offsets[piece[p]]; ++j)\n\tfor (int n = p;;) {\n\tn = mailbox[mailbox64[n] + offset[piece[p]][j]];\n\tif (n == -1)\n\tbreak;\n\tif (color[n] != EMPTY) {\n\tif (color[n] == xside)\n\tgenPush(ret, p, n, 1);\n\tbreak;\n\t}\n\tif (!slide[piece[p]])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\tif (ep != -1) {\n\tif (side == LIGHT) {\n\tif (COL(ep) != 0 && color[ep + 7] == LIGHT\n\t&& piece[ep + 7] == PAWN)\n\tgenPush(ret, ep + 7, ep, 21);\n\tif (COL(ep) != 7 && color[ep + 9] == LIGHT\n\t&& piece[ep + 9] == PAWN)\n\tgenPush(ret, ep + 9, ep, 21);\n\t} else {\n\tif (COL(ep) != 0 && color[ep - 9] == DARK\n\t&& piece[ep - 9] == PAWN)\n\tgenPush(ret, ep - 9, ep, 21);\n\tif (COL(ep) != 7 && color[ep - 7] == DARK\n\t&& piece[ep - 7] == PAWN)\n\tgenPush(ret, ep - 7, ep, 21);\n\t}\n\t}\n\treturn ret;\n\t}", "static List<Point> getMoves(Point[] possibleTilePos, int[] rowMoves, int[] colMoves, List<Point> pieceMoves, int length) {\n pieceMoves.clear();\n for (int i = 0; i < length; i++) {\n possibleTilePos[i] = new Point(rowMoves[i], colMoves[i]);\n\n }\n pieceMoves.addAll(Arrays.asList(possibleTilePos));\n return pieceMoves;\n }", "public List<Point> getPieces(Color pColor){\r\n List<Point> result = new LinkedList<>();\r\n Point pos = new Point();\r\n for (int i = 0; i < 8; i++){\r\n pos.setFirst(i);\r\n for (int j = 0; j < 8; j++){\r\n pos.setSecond(j);\r\n if((isBlack(pColor) && isBlack(pos)) || (isRed(pColor) && isRed(pos))){\r\n result.add(pos.clone());\r\n }\r\n }\r\n } \r\n return result;\r\n }", "public static List<Color> getColorList(){\n EnumSet<Color> allColor = EnumSet.allOf(Color.class);\n //create a List from the Collection \n return new ArrayList<Color>(allColor);\n //the ArrayList takes a Collection as an argument\n }", "public ArrayList<Tile> getAllLegalMoves(PrimaryColor playerColor) {\n\n\t\tLinkedHashSet<Tile> possibleTileSet = new LinkedHashSet<Tile>();\n\n\t\tArrayList<Piece> colorPieces = getColorPieces(playerColor);\n\t\tfor(Piece p : colorPieces) {\n\t\t\tpossibleTileSet.addAll(p.getPossibleMoves(playerColor));\n\t\t}\n\t\tArrayList<Tile> possibleTiles= new ArrayList<Tile>(possibleTileSet);\n\t\treturn possibleTiles;\n\t}", "public PossibleMove[] getPossibleMoves(Coordinate from);", "public ArrayList<Location> getMoveLocations(Piece p)\n {\n Location loc = getLocation(p);\n ArrayList<Location> locs = getCandidateLocations(loc);\n if (p==null)\n return null;\n for (int i = 0; i < locs.size(); i++)\n {\n if (canMoveTo(p,locs.get(i))==ILLEGAL_MOVE)\n {\n locs.remove(i);\n i--;\n }\n else\n {\n Board b = new Board(this);\n b.movePiece(loc,locs.get(i));\n if (b.findKing(p.getColor())!=null&&b.inCheck(p.getColor()))\n {\n locs.remove(i);\n i--;\n }\n }\n }\n return locs;\n }", "public List<Integer> GetMoves() {\n return GetMoves(true, true, true, Settings.MaxVolcanoLevel);\n }", "public List<Colour> getPlayerList();", "public Map<Integer, Color> getStates(){\n return myStates;\n }", "public ArrayList<String> getMoves() {\n \treturn moveList;\n }", "public BufferedImage[] moves(){\n\t\t\n\t\tBufferedImage arr[] = new BufferedImage[4];\n\t\t//arr[0] = img.getSubimage(725, 143, 70, 67);\n\t\t//arr[1] = img.getSubimage(725, 72, 70, 66);\n\t\t//arr[2] = img.getSubimage(496, 212, 74, 67);\n\t\t\n\t\tarr[0] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\tarr[1] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\tarr[2] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\tarr[3] = img.getSubimage(724, 283, 71, 67);\n\t\t\n\t\treturn arr;\n\t}", "@Override\n public List<List<Integer>> possibleMovesVisualInfo(List<Integer> playerStates) {\n List<List<Integer>> possibleMovesConfig = new ArrayList<>();\n List<Coordinate> possibleMoves = getPossibleMovesAsList(playerStates);\n for (int r = 0; r< numRows;r++) {\n List<Integer> possibleMovesRow = new ArrayList<>();\n for (int c = 0; c < numCols;c++) {\n if (possibleMoves.contains(new Coordinate(r,c))) {\n possibleMovesRow.add(1);\n } else {\n possibleMovesRow.add(0);\n }\n }\n possibleMovesConfig.add(possibleMovesRow);\n }\n return possibleMovesConfig; \n }", "public List<ScoredMove> allValidMoves(GameState gm){\n\t\tList<ScoredMove> validMoves = new ArrayList<ScoredMove>();\n\t\t\n\t\t// check for draw move\n\t\tif (getDeckSize() > 0) {\n\t\t\tvalidMoves.add(new ScoredMove(ACTION.DRAW, null, null));\n\t\t}\n\t\t/*\n\t\telse {\n\t\t\t// check for discarding move (note: only allowing if decksize is empty)\n\t\t\tfor (Card c: getHand().getCards()){\n\t\t\t\tif (!(c instanceof MerchantShip)) {\n\t\t\t\t\tvalidMoves.add(new ScoredMove(ACTION.DISCARD, c, null));\n\t\t\t\t}\n\t\t\t}\n\t\t}*/\n\t\t\n\t\tvalidMoves.addAll(allDiscardMoves(gm));\n\t\t\n\t\t// check for playing merchant ships\n\t\tvalidMoves.addAll(allmShipMoves(gm));\n\t\t\n\t\t// add all attacks\n\t\tvalidMoves.addAll(allAttackMoves(gm));\n\t\t\n\t\tif (super.getVerbosity()) {\n\t\t\tSystem.out.println(\"Valid moves found: \" + validMoves.size());\n\t\t}\n\t\treturn validMoves;\n\t}", "private Color[] getColorsForState(State state)\n {\n switch (state)\n {\n case GREEN:\n return GREEN_COLORS;\n case ORANGE:\n return ORANGE_COLORS;\n case RED:\n return RED_COLORS;\n case BACKGROUND:\n return DARK_GRAY_COLORS;\n default:\n return null;\n }\n }", "@Override\n public ArrayList<agents.Action> actionsFor(agents.State state) {\n\n ArrayList<agents.Action> legalActions = new ArrayList<agents.Action>();\n int[] board = ((State) state).getBoard();\n int blankPosition = 0;\n while (board[blankPosition] != 0) blankPosition++;\n if (blankPosition % 3 != 0) legalActions.add(new Action(LEFT));\n if (blankPosition % 3 != 2) legalActions.add(new Action(RIGHT));\n if (blankPosition < 6) legalActions.add(new Action(DOWN));\n if (blankPosition > 2) legalActions.add(new Action(UP));\n return legalActions;\n }", "private ArrayList<Integer> getMoves(int mSpot,\n ArrayList<Integer> config) {\n char myType = (char)(int)config.get(mSpot);\n\n //Generate all possible moves\n ArrayList<Integer> myMoves = generateUnitMoves(myType, mSpot);\n\n //Remove rulebreaking placements\n myMoves = pruneIllegals(myMoves, config);\n return myMoves;\n }", "public ArrayList<Piece> getPieces(PieceColor color)\n {\n ArrayList<Piece> pieces = new ArrayList<>();\n for (Square[] s1: squares)\n {\n for (Square s: s1)\n {\n Piece p = s.getPiece();\n if (p!=null&&p.getColor()==color)\n pieces.add(p);\n }\n }\n return pieces;\n }", "public ArrayList<Move> availableMoves() {\n if (getColour() == PieceCode.WHITE)\n return whiteKing();\n else\n return blackKing();\n }", "public List<BoardPos> getMoves(BoardPos from) {\n List<BoardPos> result;\n\n // strike check\n if (board.get(from).isCrown())\n result = getStrikesCrown(from);\n else result = getStrikes(from);\n\n // regular moves\n final int[] shifts = {-1, 1};\n if (result.isEmpty() && !board.get(from).isEmpty()) {\n if (board.get(from).isCrown())\n for (int shiftX : shifts)\n for (int shiftY : shifts) {\n BoardPos to = from.add(shiftX, shiftY);\n while (to.inBounds(board.side()) && board.get(to).isEmpty()) {\n result.add(to);\n to = to.add(shiftX, shiftY);\n }\n }\n else for (int shift : shifts) { // add adjacent empty positions\n BoardPos move = from.add(new BoardPos(shift,\n board.get(from).color() ? 1 : -1));\n if (board.get(move) != null && board.get(move).isEmpty())\n result.add(new BoardPos(move));\n } }\n\n // complete by adding the start position to every legal route, so that\n // it will be cleared as well when the player will move\n for (BoardPos pos : result)\n pos.addToRoute(new BoardPos(from));\n\n return result;\n }", "private ArrayList<Colours> setColour(){\n\t\tArrayList<Colours> list = new ArrayList<Colours>();\n\t\tlist.add(Colours.RED);\n\t\tlist.add(Colours.BLUE);\n\t\tlist.add(Colours.YELLOW);\n\t\tlist.add(Colours.PINK);\n\t\tlist.add(Colours.GREEN);\n\t\tlist.add(Colours.PURPLE);\n\t\treturn list;\n\t}", "public Point getMovingPositions(Point c , Color color , Movement m){\n Orientation or = color==Color.black?Orientation.DOWN:Orientation.UP;\n Color oposite = color==Color.black?Color.red:Color.black;\n Point soldierPoint = getXandYgivenOrientation(c, or, m);\n Soldier friend = new Soldier(soldierPoint.x,soldierPoint.y,color);\n Soldier foe = new Soldier(soldierPoint.x,soldierPoint.y,oposite);\n if(!containsSoldier(friend, gamePieces) && !containsSoldier(foe, gamePieces) \n && isValidSquare(soldierPoint.x, soldierPoint.y))\n return new Point(soldierPoint.x,soldierPoint.y);\n else if(containsSoldier(friend, gamePieces))\n return new Point(0,0);\n else if (containsSoldier(foe, gamePieces))\n return new Point(0,0); \n return new Point(0,0);\n }", "public static int generateMoves(BoardState bs, long[] moves) {\n int count = 0;\n //int from, int to, int special, int movPiece, int content, int pawnStart\n int piece, tmp_piece, pIndex, index;\n int sq, tmp_sq, pieceNum, dir;\n\n int turn = bs.turn;\n int opponent = turn ^ 1;\n int pawn = PAWN_BY_COLOR[turn];\n\n //PAWNS\n for (pieceNum = 0; pieceNum < bs.pieceNum[pawn]; pieceNum++) {\n sq = bs.pieceArray[pawn][pieceNum];\n assert (isOnboard(sq));\n\n tmp_sq = sq + MOVES_PAWN_STRAIGHT[turn];\n if (bs.pieces[tmp_sq] == EMPTY) {\n count = addPawnMove(bs, sq, tmp_sq, 0, 0, turn, moves, count);\n tmp_sq += MOVES_PAWN_STRAIGHT[turn];\n if (((RANKS_MAP[sq] == RANK_7 && turn == BLACK)\n || (RANKS_MAP[sq] == RANK_2 && turn == WHITE))\n && bs.pieces[tmp_sq] == EMPTY) {\n count = addPawnMove(bs, sq, tmp_sq, 0, 1, turn, moves, count);\n }\n }\n\n tmp_sq = sq + MOVES_PAWNS[turn][0];\n if (isOnboard(tmp_sq) && PIECE_COLORS[bs.pieces[tmp_sq]] == opponent) {\n count = addPawnMove(bs, sq, tmp_sq, bs.pieces[tmp_sq], 0, turn, moves, count);\n }\n if (isOnboard(bs.enPas) && bs.enPas == tmp_sq) { //En passant check\n int move = Moves.generateMove(sq, tmp_sq, 1, pawn, EMPTY, 0);\n count = addMove(move, moves, count, 105);\n }\n\n tmp_sq = sq + MOVES_PAWNS[turn][1];\n if (isOnboard(tmp_sq) && PIECE_COLORS[bs.pieces[tmp_sq]] == opponent) {\n count = addPawnMove(bs, sq, tmp_sq, bs.pieces[tmp_sq], 0, turn, moves, count);\n }\n if (isOnboard(bs.enPas) && bs.enPas == tmp_sq) { //En passant check\n int move = Moves.generateMove(sq, tmp_sq, 1, pawn, EMPTY, 0);\n count = addMove(move, moves, count, 105);\n }\n }\n\n //Bishops, Rooks & Queens\n pIndex = SLIDERS_INDEX[turn];\n piece = SLIDERS[pIndex++];\n while (piece != -1) {\n for (pieceNum = 0; pieceNum < bs.pieceNum[piece]; pieceNum++) {\n sq = bs.pieceArray[piece][pieceNum];\n for (index = 0; index < MOVES_ALL[piece].length; index++) {\n dir = MOVES_ALL[piece][index];\n tmp_sq = sq;\n\n //Slide loop\n while (isOnboard(tmp_sq += dir)) {\n tmp_piece = bs.pieces[tmp_sq];\n if (tmp_piece != EMPTY) {\n if (PIECE_COLORS[tmp_piece] == opponent) {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, tmp_piece, 0);\n count = addCaptureMove(bs, move, moves, count);\n }\n break; //Stop sliding\n } else {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n }\n }\n }\n piece = SLIDERS[pIndex++];\n }\n //Kings & Knights\n pIndex = MOVERS_INDEX[turn];\n while ((piece = MOVERS[pIndex]) != -1) {\n for (pieceNum = 0; pieceNum < bs.pieceNum[piece]; pieceNum++) {\n sq = bs.pieceArray[piece][pieceNum];\n for (index = 0; index < MOVES_ALL[piece].length; index++) {\n dir = MOVES_ALL[piece][index];\n tmp_sq = sq + dir;\n if (isOnboard(tmp_sq)) {\n tmp_piece = bs.pieces[tmp_sq];\n if (tmp_piece != EMPTY) {\n if (PIECE_COLORS[tmp_piece] == opponent) {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, tmp_piece, 0);\n count = addCaptureMove(bs, move, moves, count);\n }\n } else {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n }\n }\n }\n pIndex++;\n }\n\n //Castling\n if (turn == WHITE) {\n if ((bs.castlePerms & WKCA) != 0\n && bs.pieces[F1] == EMPTY\n && bs.pieces[G1] == EMPTY\n && !bs.isSquareThreatened(E1, BLACK)\n && !bs.isSquareThreatened(F1, BLACK)) {\n int move = Moves.generateMove(E1, G1, 1, W_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n if ((bs.castlePerms & WQCA) != 0\n && bs.pieces[D1] == EMPTY\n && bs.pieces[C1] == EMPTY\n && bs.pieces[B1] == EMPTY\n && !bs.isSquareThreatened(E1, BLACK)\n && !bs.isSquareThreatened(D1, BLACK)) {\n int move = Moves.generateMove(E1, C1, 1, W_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n } else {\n if ((bs.castlePerms & BKCA) != 0\n && bs.pieces[F8] == EMPTY\n && bs.pieces[G8] == EMPTY\n && !bs.isSquareThreatened(E8, WHITE)\n && !bs.isSquareThreatened(F8, WHITE)) {\n int move = Moves.generateMove(E8, G8, 1, B_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n if ((bs.castlePerms & BQCA) != 0\n && bs.pieces[D8] == EMPTY\n && bs.pieces[C8] == EMPTY\n && bs.pieces[B8] == EMPTY\n && !bs.isSquareThreatened(E8, WHITE)\n && !bs.isSquareThreatened(D8, WHITE)) {\n int move = Moves.generateMove(E8, C8, 1, B_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n }\n\n return count;\n }", "public ArrayList<Move> generateMoves(Board board, Piece piece){\r\n\t\treturn generateMoves(board, piece, true, true);\r\n\t}", "public List<IMove> getMoves() {\n List<ICard> hand = hands.get(currentTurn);\n\n List<IMove> moves = new ArrayList<>(hand.size() + 1);\n for (ICard card : hand) {\n if (isValidPlay(card)) {\n moves.addAll(card.getMoves(this));\n }\n }\n\n moves.add(new DrawCardMove(currentTurn));\n\n return moves;\n }", "private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }", "private List<Coordinate> getAvailableMoves(ImmutableGameBoard gameBoard) {\n List<Coordinate> availableMoves = new ArrayList<Coordinate>();\n\n for (int x = 0; x < gameBoard.getWidth(); x++) {\n for (int y = 0; y < gameBoard.getHeight(); y++) {\n if(gameBoard.getSquare(x, y) == TicTacToeGame.EMPTY)\n availableMoves.add(new Coordinate(x, y));\n }\n }\n\n return availableMoves;\n }", "private ArrayList<GameSquare> getAdjacentSquares()\n {\n ArrayList<GameSquare> list = new ArrayList<GameSquare>();\n for (int r = row - 1; r <= row + 1; r++)\n {\n if (r >= 0 && r < grid.length)\n {\n for (int c = col - 1; c <= col + 1; c++)\n {\n if (c >= 0 && c < grid[0].length)\n {\n list.add(grid[r][c]);\n }\n }\n }\n }\n return list;\n }", "public int[] makeMove(ArrayList < String > movesArray) {\n movesArray.get(0);\n Random rand = new Random();\n int ri = rand.nextInt(3);\n int rj = rand.nextInt(3);\n return new int[] {ri,rj};\n }", "public ArrayList<Pair<Coord,Coord>> returnMoves(Board b) {\r\n\t\t//copy Piece grid\r\n\t\tPiece[][] g = b.getGrid();\r\n\t\t\r\n\t\t//return array of all the possible moves\r\n\t\tArrayList<Pair<Coord,Coord>> possibleMoves = new ArrayList<Pair<Coord,Coord>>();\r\n\r\n\t\t//System.out.println(team + \": (\" + c.y + \", \" + c.x + \")\");\r\n\t\t//if the team is moving north (white team)\r\n\t\tif(team) {\r\n\t\t\t//first move, two square pawn advance\r\n\t\t\tif(moves==0 && g[c.y-1][c.x] == null && g[c.y-2][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-2,c.x),null));\r\n\t\t\t\r\n\t\t\t//single square pawn advance\r\n\t\t\tif(g[c.y-1][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally west\r\n\t\t\tif(c.x-1>=0 && c.x-1<=7 && g[c.y-1][c.x-1]!=null && (!g[c.y-1][c.x-1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x-1),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally east\r\n\t\t\tif(c.x+1>=0 && c.x+1<=7 && g[c.y-1][c.x+1]!=null && (!g[c.y-1][c.x+1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x+1),null));\r\n\t\t\t\r\n\t\t\t//en passant west\r\n\t\t\tif(c.x-1>=0 && c.y==3 && g[c.y-1][c.x-1]==null && g[c.y][c.x-1]!=null && !g[c.y][c.x-1].team \r\n\t\t\t\t\t&& g[c.y][c.x-1].toString().equals(\"P\") && g[c.y][c.x-1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x-1),new Coord(c.y, c.x-1)));\r\n\t\t\t\r\n\t\t\t//en passant east\r\n\t\t\tif(c.x+1<=7 && c.y==3 && g[c.y-1][c.x+1]==null && g[c.y][c.x+1]!=null && !g[c.y][c.x+1].team\r\n\t\t\t\t\t&& g[c.y][c.x+1].toString().equals(\"P\") && g[c.y][c.x+1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y-1,c.x+1),new Coord(c.y, c.x+1)));\r\n\t\t\t\r\n\t\t//if the team is moving south (black team)\r\n\t\t} else {\r\n\t\t\t//first move, two square pawn advance\r\n\t\t\tif(moves==0 && g[c.y+1][c.x] == null && g[c.y+2][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+2,c.x),null));\r\n\r\n\t\t\t//single square pawn advance\r\n\t\t\tif(g[c.y+1][c.x] == null)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally west\r\n\t\t\tif(c.x-1>=0 && c.x-1<=7 && g[c.y+1][c.x-1]!=null && (g[c.y+1][c.x-1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x-1),null));\r\n\t\t\t\r\n\t\t\t//capture diagonally east\r\n\t\t\tif(c.x+1>=0 && c.x+1<=7 && g[c.y+1][c.x+1]!=null && (g[c.y+1][c.x+1].team))\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x+1),null));\r\n\t\t\t\r\n\t\t\t//en passant west\r\n\t\t\tif(c.x-1>=0 && c.y==4 && g[c.y+1][c.x-1]==null && g[c.y][c.x-1]!=null && g[c.y][c.x-1].team \r\n\t\t\t\t\t&& g[c.y][c.x-1].toString().equals(\"P\") && g[c.y][c.x-1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x-1),new Coord(c.y, c.x-1)));\r\n\t\t\t\r\n\t\t\t//en passant east\r\n\t\t\tif(c.x+1<=7 && c.y==4 && g[c.y-1][c.x+1]==null && g[c.y][c.x+1]!=null && g[c.y][c.x+1].team \r\n\t\t\t\t\t&& g[c.y][c.x+1].toString().equals(\"P\") && g[c.y][c.x+1].moves==1)\r\n\t\t\t\tpossibleMoves.add(new Pair<Coord, Coord>(new Coord(c.y+1,c.x+1),new Coord(c.y, c.x+1)));\r\n\t\t\t\r\n\t\t}\t\t\r\n\r\n\t\treturn possibleMoves;\r\n\t}", "@Override\r\n\tpublic ArrayList<String> allPossibleMoves(boolean whoPlays) {\r\n\t\t\r\n\t\tArrayList<String> Moves = new ArrayList<String>();\r\n\t\t\r\n\t\tif(whoPlays) {\r\n\t\t\tif( (new Board2048model(this)).moveUP()) \r\n\t\t\tMoves.add(\"UP\");\r\n\t\t\tif( (new Board2048model(this)).moveDOWN()) \r\n\t\t\tMoves.add(\"DOWN\");\r\n\t\t\tif( (new Board2048model(this)).moveRIGHT()) \r\n\t\t\tMoves.add(\"RIGHT\");\r\n\t\t\tif( (new Board2048model(this)).moveLEFT()) \r\n\t\t\tMoves.add(\"LEFT\");\r\n\t\t\t}\r\n\t\telse { \r\n\t\t\tfor( int i = 0; i < rows_size ; i++) {\r\n\t\t\t\tfor(int j = 0; j < columns_size; j++) {\r\n\t\t\t\t\tif(isEmpty(i,j)) {\r\n\t\t\t\t\t\tMoves.add(new String(Integer.toString(i) + \",\" + Integer.toString(j) + \",\" + Integer.toString(2)));\r\n\t\t\t\t\t\tMoves.add(new String(Integer.toString(i) + \",\" + Integer.toString(j) + \",\" + Integer.toString(4)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t}\r\n\treturn Moves;\r\n\t}", "public ArrayList<PuzzleState> getNeighbors() {\n\t\tArrayList<PuzzleState> neighbors = new ArrayList<PuzzleState>();\n\t\tPuzzleState neighbor;\n\t\t//System.out.println(\"getting neighbors.\");\n\t\tfor (String act: ACTIONS) {\n\t\t\tif (current.validAction(act)){\n\t\t\t\t//System.out.println(\"Action: \" + act + \" on \" + current.getString());\n\t\t\t\tneighbor = new PuzzleState(current.getString(current.getState()),\n\t\t\t\t\t\t\t\t\t\t\tcurrent.getString(current.getGoalState()));\n\t\t\t\tsearchCost++;\n\t\t\t\tneighbor.act(act);\n\t\t\t\tneighbors.add(neighbor);\n\t\t\t}\t\n\t\t}\n\t\treturn neighbors;\n\t}", "void getMoves(ArrayList<Move> moves) {\n if (gameOver()) {\n return;\n }\n if (jumpPossible()) {\n for (int k = 0; k <= MAX_INDEX; k += 1) {\n getJumps(moves, k);\n }\n } else {\n for (int k = 0; k <= MAX_INDEX; k += 1) {\n getMoves(moves, k);\n }\n }\n }", "public static IntArrayPtr\ngetPackedColors(SoState state) \n{ \n SoLazyElement curElt = getInstance(state);\n if(state.isCacheOpen()) curElt.registerGetDependence(state, masks.DIFFUSE_MASK.getValue()); \n //return curElt.ivState.packedColors;\n return curElt.coinstate.packedarray;\n}", "public ArrayList<Cell> getPseudoLegalMoves() {\n\n Cell[][] board = Board.getBoard();\n ArrayList<Cell> moves = new ArrayList<Cell>();\n\n //Possible ways to move a knight\n int[][] possibleOffsets = {{-2,-1},{-2,1},{-1,-2},{-1,2},{1,-2},{1,2},{2,1},{2,-1}};\n\n for(int i=0; i<possibleOffsets.length; i++){\n int x = possibleOffsets[i][0] + getRow();\n int y = possibleOffsets[i][1] + getColumn();\n\n //Making sure we dont leave the board\n if(x >= board.length || x < 0\n || y >= board.length || y < 0)\n continue;\n\n //Making sure destination does not contain a friendly piece\n if(Board.containsPieceOfColor(x,y,this.getColor()))\n continue;\n\n moves.add(board[x][y]);\n }\n\n return moves;\n }", "@Override\n public int[][] getMoveList(int destinationX, int destinationY) { return new int[0][0]; }", "public Color[] getColors();", "public ArrayList<Move> getPossibleMoves(int startx, int starty, Board b){//String startpos, Board b){\n\t\t//startpos is the position of the current piece,\n\t\t//so we know which one it is on the board\n\t\t\n\t\tArrayList<Move> moves = new ArrayList<Move>();\n\t\t\n\t\t\n\t\t\n\t\t//int startx = Main.converttoMove(String.valueOf(startpos.charAt(0)));\n\t\t//int starty = Integer.valueOf(String.valueOf(startpos.charAt(1)));\n\t\t\t\t\t\n\t\tPosition startpo = b.getElement(startx, starty);\n\t\tString startcol = startpo.getState().getColor();\n\t\tboolean color = true;//color: white is true, black if false\n\t\tif(startcol.equalsIgnoreCase(\"b\")) {\n\t\t\tcolor = false;\n\t\t}\n\t\t\n\t\t\n\t\t//go up and down\n\t\t//Number of spaces to move in X and Y direction\n //int numSpacesYUp = starty+1;//Not sure if this math is correct\n \n\t\tint numSpacesYUp = Math.abs(starty);\n int numSpacesYDown = Math.abs(8-(starty+1));//^\n\t\t\n \n //go left and right\n\t\tint numSpacesXLeft=Math.abs(startx);//TO DO: Add Math\n\t\t//int numSpacesXRight =Math.abs(8-(startx+1)); //old\n\t\tint numSpacesXRight =Math.abs(8-(startx+1));//new\n \n \n \n\t\t//go diagonal upper right\n \n\t\tint numtoTopRightCorner = Math.min(numSpacesXRight, numSpacesYUp);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoTopRightCorner;i++) {\n \tint endx = startx+i;\n \tint endy = starty-(i);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\t//System.out.println(\"\");\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;\n \t}\n \tbreak;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n }\n\t\t\n\t\t\n\t\t\n\t\t//go diagonal upper left\n\t\tint numtoTopLeftCorner = Math.min(numSpacesXLeft, numSpacesYUp);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoTopLeftCorner;i++) {\n \tint endx = startx-(i);\n \tint endy = starty-(i);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;\n \t}\n \tbreak;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n \t\n \t\n }\n \n \n \n\t\t//go diagonal lewer left\n\t\tint numtoLowerLeftCorner = Math.min(numSpacesXLeft, numSpacesYDown);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoLowerLeftCorner;i++) {\n \tint endx = startx-(i);\n \tint endy = starty+(i);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;\n \t}\n \tbreak;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n }\n \n\t\t//go diagonal lower right\n\t\tint numtoLowerRightCorner = Math.min(numSpacesXRight, numSpacesYDown);//the min of the distance from the current spot to the right edge and to the top edge\n for(int i = 1;i<=numtoLowerRightCorner;i++) {\n \tint endx = startx+(i);\n \tint endy = starty+(i);\n \t\n \t//System.out.println(\"num spaces x right:\" + numSpacesXRight);\n \t//System.out.println(\"num spaces y down:\" + numSpacesYDown);\n \t\n \t\tPosition endpo = b.getElement(endx, endy);\n \t\tif(endpo.getState() != null) {//theres a piece at the end loc\n \t\tString endcol = endpo.getState().getColor();\n \t\tboolean endcolor = true;//color: white is true, black if false\n \t\tif(endcol.equalsIgnoreCase(\"b\")) {\n \t\t\tendcolor = false;\n \t\t}\n \t\tMove m = new Move(startx, starty, endx, endy);\n \tif(color != endcolor) {\n \t\tm.setPieceTaken(true);\n \t\tif(endpo.getState() instanceof King) {\n \t\t\tm.setCheck(true);\n \t\t}else {\n \t\t\tm.setCheck(false);\n \t\t}\n \t\tmoves.add(m);\n \t\t//break;//can't get any more in the upper right diag because there would be a piece blocking its way\n \t}else if(color == endcolor) {\n \t\t//we don't add the move, because its not possible :/\n \t\t//you cant move to a location where you already have a piece\n \t\t//break;//should break cause you cant go more in that direction\n \t}\n \tbreak;//can't get any more in the lower right diag because there would be a piece blocking its way\n \t\t}else {\n \t\t\tMove m = new Move(startx, starty, endx, endy);\n \t\t\tmoves.add(m);\n \t\t}\n \t\n \t\n }\n\t\t\n\t\t\n\t\treturn moves;//Return all possible legal moves\n\t}", "public List<ScoredMove> allmShipMoves(GameState gm){\n\t\t\n\t\tList<ScoredMove> mShipMoves = new ArrayList<ScoredMove>();\n\t\t\n\t\tif (getHand().hasMShip()) {\n\t\t\tfor (Card c: getHand().getCards()) {\n\t\t\t\tif (c instanceof MerchantShip) {\n\t\t\t\t\tmShipMoves.add(new ScoredMove(ACTION.PLAY_MERCHANT_SHIP, c, null));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn mShipMoves;\n\t}", "PieceColor whoseMove() {\n return _whoseMove;\n }", "public ArrayList<Cell> getPseudoLegalMoves() {\n\n int[][] offsetMultiplier = {{-1,-1},{-1,1},{1,-1},{1,1}}; //4 directions NW, NE, SW, SE\n int x = getRow(); int y = getColumn();\n\n\n return Piece.slidingPieceMoves(x,y,this.getColor(),offsetMultiplier);\n\n }", "public int[][] generateAttackMaps(PieceColor color) {\n \tArrayList<Square> moves;\n \tint[][] map = new int[8][8];\n \tint x, y;\n \t\n \tif(color == PieceColor.None) {\n \t\tSystem.out.println(\"Attack Map got the wrong color.\");\n \t\tSystem.exit(0);\n \t}\n \t\n \t//generate a list of all opposing pieces\n \tArrayList<Piece> pieces = getPieces(PieceColor.opposite(color));\n \t\n \tfor(int i = 0; i < pieces.size(); i++) {\n\t\t\tmoves = pieces.get(i).getThreatList();\n\t\t\t\n\t\t\tif(moves != null) {\n \t\t\t//loop through legal moves\n \t\t\t//add 1 to the target square's map\n \t\t\tfor(int j = 0; j < moves.size(); j++) {\n \t\t\t\tx = moves.get(j).getX();\n \t\t\t\ty = moves.get(j).getY();\n \t\t\t\t\n \t\t\t\t//add each possible move to the threat map\n \t\t\t\tmap[y][x]++;\n \t\t\t}\n\t\t\t}\n \t}\n \treturn map;\n }", "public ArrayList<Move> generateMoves(Board board, Piece piece, boolean getMoves, boolean getCaptures){\r\n\r\n\t\tArrayList<Move> list = new ArrayList<Move>();\r\n\t\tint moveNumber = piece.getMoveNumber();\r\n\t\tif(!(moveNumber >= minMove && moveNumber <= maxMove)) {\r\n\t\t\treturn list;\r\n\t\t}\r\n\t\tint i = 0;\r\n\t\tint x = piece.getPosition().getXNumeral();\r\n\t\tint y = piece.getPosition().getYNumeral();\r\n\t\twhile(board.isValidSquare(new Touple(x + dx, y + dy)) && i < limit) {\r\n\t\t\tx += dx;\r\n\t\t\ty += dy;\r\n\t\t\ti++;\r\n\t\t\t\r\n\t\t\tif(board.spaceEmpty(new Touple(x,y))) {\r\n\t\t\t\tif(move && getMoves) {\r\n\t\t\t\t\tlist.add(new Move(x-piece.getPosition().getXNumeral(),y-piece.getPosition().getYNumeral()));\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tTouple proposedCapture = new Touple(x,y);\r\n\t\t\t\t//if(capture && getMoves && !board.getPiece(proposedCapture).getColor().equals(piece.getColor())) {\r\n\t\t\t\tif(capture && getMoves && !board.pieceColorIs(proposedCapture, piece.getColor())) {\r\n\t\t\t\t\tlist.add(new Move(x-piece.getPosition().getXNumeral(),y-piece.getPosition().getYNumeral()));\r\n\t\t\t\t}\r\n\t\t\t\tif(blockable) {\t//if this move class is blockable\r\n\t\t\t\t\ti = limit; //allow no futher moves.\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public PossibleMoves getPossibleMoves(State state){\n if(possibleMoves == null){\n possibleMoves = new PossibleMoves(state);\n }\n return possibleMoves;\n }", "public ArrayList getColors(int amount){\n \n \tArrayList colors = new ArrayList();\n\n \tfloat step = img.width/amount;\n\n \tfor (int i=0; i < Math.floor(img.width/step); i++){\n \t\tfloat index = map(i*step,0,img.width,0,(float)1.0);\n \t\tint c = getColorAt(index);\n \t\tcolors.add(c);\n \t} \n\n \treturn colors;\n\n }", "public LinkedList<Move> getPossibleMoves() {\n\t\tAIPossibleMoves.clear();\n\t\tint xOrigin = 0, yOrigin = 0, xMove1 = 0, xMove2 = 0, yMove1 = 0, yMove2 = 0;\n\t\tMove move = null;\t\n\t\t\tint type = 0;\n\t\t\tfor(Checker checker: model.whitePieces) {\n\t\t\t\t\n\t\t\t\txOrigin = checker.getCurrentXPosition();\n\t\t\t\tyOrigin = checker.getCurrentYPosition();\n\t\t\t\txMove1 = (checker.getCurrentXPosition() - 1);\n\t\t\t\txMove2 = (checker.getCurrentXPosition() + 1);\n\t\t\t\tyMove1 = (checker.getCurrentYPosition() - 1);\n\t\t\t\tyMove2 = (checker.getCurrentYPosition() + 1);\n\t\t\t\ttype = checker.getType();\n\t\t\t\tswitch(type) {\n\t\t\t\tcase 2:\n\n\t\t\t\t\tif((xMove1 < 0) || (yMove1 <0)) {\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove1, false, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove1)) {\n\t\t\t\t\t\t\t//System.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove1, false, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n \n\t\t\t\t\tif((xMove2 > 7) || (yMove1 < 0)) {\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove1, true, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove1)) {\n\t\t\t\t\t\t\t// System.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove1, true, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 4:\n\t\t\t\t\t//Moving up and left isMovingRight,IsMovingDown\n\t\t\t\t\tif((xMove1 <0) || (yMove1 < 0)) {\n\t\t\t\t\t\t//continue;\n\t\t\t\t\t} else {\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove1, false, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove1)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove1, false, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove2 > 7) || (yMove1 < 0)) {\n\t\t\t\t\t//continue;\n\t\t\t\t} else {\n\t\t\t\t\t//moving up and right\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove1, true, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove1)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove1, true, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove1 < 0) || (yMove2 > 7)) {\n\t\t\t\t//\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\t//moving down and left isMovingRight,IsMovingDown\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove2, false, true )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove2)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove2);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove2,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove2, false, true)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove2);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove2 > 7) || (yMove2 > 7)) {\n\t\t\t\t\t//continue;\n\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\t//moving down and right isMovingRight,IsMovingDown\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove2, true, true )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove2)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove2);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove2,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove2, true, true)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove2);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tbreak;\t\n\t\t\t\t}\t\n\t\t\t\n\t\t\t}\n\n\t\t\treturn AIPossibleMoves;\n\t\t\t\n\t\t}", "public int[][] getMove()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile (br.ready())\r\n\t\t\t\tSystem.out.println(\"Dumping: \" + br.readLine());\r\n\r\n\t\t\tSystem.out.printf(\"Player %d queried for move%n\", colour);\r\n\t\t\tpw.println(\"4\");\r\n\t\t\tpw.flush();\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\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\tMoveThread m = new MoveThread();\r\n\t\tThread t = new Thread(m);\r\n\r\n\t\tt.start();\r\n\r\n\t\t// Query for a move every 10ms until the timeout is reached or the move\r\n\t\t// is received\r\n\t\twhile (m.getMove() == null\r\n\t\t\t\t&& System.currentTimeMillis() - start < timeOut)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(10);\r\n\t\t\t}\r\n\t\t\tcatch (InterruptedException e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tm.timeout();\r\n\r\n\t\tint[][] move = m.getMove();\r\n\r\n\t\t// Tell a player of timeout\r\n\t\tif (move == null)\r\n\t\t{\r\n\t\t\tSystem.out.printf(\"Player %d timed out while choosing a move%n\",\r\n\t\t\t\t\tcolour);\r\n\t\t\tpw.println(\"6\");\r\n\t\t\tpw.flush();\r\n\t\t}\r\n\r\n\t\treturn move;\r\n\t}", "@Override\n\tpublic List<Point> getAvailableMoves() {\n\t\treturn new ArrayList<Point>();\n\t}", "public HashMap<String, List<ColorId>> checkRocketJumpColors ()\n {\n Map<Square, List<Player>> mapRocket = checkRocketJump();\n HashMap<String, List<ColorId>> hashMapToReturn = new HashMap<>();\n List<ColorId> colorIdList ;\n\n for (Square squareIterate : mapRocket.keySet())\n {\n colorIdList = new ArrayList<>();\n\n for (Player playerIterate : mapRocket.get(squareIterate))\n {\n colorIdList.add(playerIterate.getColor());\n }\n\n hashMapToReturn.put(squareIterate.toStringCoordinates(), colorIdList);\n }\n\n return hashMapToReturn;\n\n }", "public ArrayList<String> getColorList()\n {\n \treturn colors;\n }", "private void move(Board inputBoard) {\nSimulationHelper simHelp = new SimulationHelper();\nfor (int k = 0; k < inputBoard.getAntsOnBoard().size(); k++) {\nAnt ant = inputBoard.getAntsOnBoard().get(k);\nint antPosX = ant.getAntPosX();\nint antPosY = ant.getAntPosY();\nint fieldColor = inputBoard.getCellCordinates(antPosX, antPosY).getColor();\n\nswitch (fieldColor) {\ncase 0:\nsimHelp.moveleftNinty(inputBoard);\nbreak;\ncase 1:\nsimHelp.moveRightNinty(inputBoard);\nbreak;\ncase 2:\nsimHelp.moveLeftFourtyFive(inputBoard);\nbreak;\ncase 3:\nsimHelp.moveRightFourtyFive(inputBoard);\nbreak;\ncase 4:\nsimHelp.moveRightNinty(inputBoard);\nbreak;\ndefault: Terminal.printError(\"Invalid Color\");\n\n}\n}\n}", "protected void renderMoves(Graphics g) {\n\t\tfor (Point move : moves) {\n\t\t\tg.setColor(team == 1 ? Color.red : Color.blue);\n\t\t\tPoint p = board.locationOfSquare(move);\n\t\t\tp.x += board.getSquareSize() / 4;\n\t\t\tp.y += board.getSquareSize() / 4;\n\t\t\tg.fillOval(p.x, p.y, board.getSquareSize() / 2, board.getSquareSize() / 2);\n\t\t}\n\t}", "public static ArrayList<Position> allPossibleMoves(ItalianBoard board, int posR, int posC) {\n ArrayList<Position> positions;\n if (!canCapture(board, posR, posC)) {\n positions = possibleMovesInEmptySpaces(board, posR, posC);\n } else {\n positions = allPossibleCaptures(board, posR, posC);\n }\n return positions;\n }", "public Board move(int algo){\n //if the game has not been started and it is a black piece\n if (state.noMovesMade() == 0 && color == 1){\n state.increaseMoveCount();\n\n int [] arr= new int [] {1,4,5,8};\n\n int rand_int = rand.nextInt(4);\n System.out.println(\"Removed \" + color + \" Piece at index \"+ arr[rand_int] +\", \" + arr[rand_int] );\n\n state.remove(arr[rand_int],arr[rand_int]);\n\n return state;\n }\n\n //if it is white first move\n if(state.noMovesMade() == 1 && color == -1){\n state.increaseMoveCount();\n\n\n List<int []> adjPositions = state.getAdjacentSpots();\n int rand_int = rand.nextInt(adjPositions.size());\n System.out.println(\"Removed \" + color + \" Piece at index \"+ adjPositions.get(rand_int)[0] +\", \" + adjPositions.get(rand_int)[1] );\n\n state.remove(adjPositions.get(rand_int)[0],adjPositions.get(rand_int)[1]);\n return state;\n }\n\n Move action = new Move();\n if(algo == 1){\n action = alphaBetaHeurisitic();\n\n }\n else if (algo == 2){\n action = miniMaxHeurisitic();\n }\n else if (algo == 3){\n action = randomHeurisitic();\n\n }\n else if (algo == 4){\n\n }\n moveHelper(action);\n\n return state;\n }", "public List<String> legalMoves() {\n List<String> result = new ArrayList<>();\n for (int col = 1; col < _board.length + 1; col += 1) {\n for (int row = 1; row < _board.length + 1; row += 1) {\n String move = row + \",\" + col;\n if (isLegal(move)) {\n result.add(move);\n }\n }\n }\n return result;\n }", "public List<ActionValue> getActions(State state);", "public String[] getPossibleMoves(Position p)\r\n\t{\r\n\t\tint x,y,z,counter = 0; \r\n\t\tString[] moves;\r\n\t\t\r\n\t\tx = p.getX();\r\n\t\ty = p.getY();\r\n\t\tz = p.getZ();\r\n\t\t\r\n\t\tif(y+1 < maze.length)\r\n\t\t\tif(this.maze[y+1][z][x] == 0)\r\n\t\t\t\tcounter++;\r\n\t\tif(y-1 >= 0)\r\n\t\t\tif(this.maze[y-1][z][x] == 0)\r\n\t\t\t\tcounter++;\r\n\t\tif(z+1 < maze[0].length)\r\n\t\t\tif(this.maze[y][z+1][x] == 0)\r\n\t\t\t\tcounter++;\r\n\t\tif(z-1 >= 0)\r\n\t\t\tif(this.maze[y][z-1][x] == 0)\r\n\t\t\t\tcounter++;\r\n\t\tif(x+1 < maze[0][0].length)\r\n\t\t\tif(this.maze[y][z][x+1] == 0)\r\n\t\t\t\tcounter++;\r\n\t\tif(x-1 >= 0)\r\n\t\t\tif(this.maze[y][z][x-1] == 0)\r\n\t\t\t\tcounter++;\r\n\t\t\r\n\t\tmoves = new String[counter];\r\n\t\tint j = 0;\r\n\t\t\r\n\t\tif(y+1 < maze.length)\r\n\t\t\tif(this.maze[y+1][z][x] == 0)\r\n\t\t\t{\r\n\t\t\t\tmoves[j] = \"Up\";\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\tif(y-1 >= 0)\r\n\t\t\tif(this.maze[y-1][z][x] == 0)\r\n\t\t\t{\r\n\t\t\t\tmoves[j] = \"Down\";\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\tif(z+1 < maze[0].length)\r\n\t\t\tif(this.maze[y][z+1][x] == 0)\r\n\t\t\t{\r\n\t\t\t\tmoves[j] = \"Forward\";\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\tif(z-1 >= 0)\r\n\t\t\tif(this.maze[y][z-1][x] == 0)\r\n\t\t\t{\r\n\t\t\t\tmoves[j] = \"Backward\";\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\tif(x+1 < maze[0][0].length)\r\n\t\t\tif(this.maze[y][z][x+1] == 0)\r\n\t\t\t{\r\n\t\t\t\tmoves[j] = \"Right\";\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\tif(x-1 >= 0)\r\n\t\t\tif(this.maze[y][z][x-1] == 0)\r\n\t\t\t{\r\n\t\t\t\tmoves[j] = \"Left\";\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\r\n\t\treturn moves;\r\n\t\t\r\n\t}", "private Position getRandomMove(TicTacToeBoard state) {\r\n\t\tArrayList<Position> availableMoves = new ArrayList<Position>();\r\n\t\tfor( int row = 0; row < TicTacToeBoard.SIZE; row++ ) {\r\n\t\t\tfor( int col = 0; col < TicTacToeBoard.SIZE; col++ ) {\r\n\t\t\t\tif( state.getState(row,col) == TicTacToeBoard.BLANK ) {\r\n\t\t\t\t\tavailableMoves.add(new Position(row,col));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (Position)availableMoves.get(rand.nextInt(availableMoves.size()));\r\n\t}", "List<Move> legalMoves(Piece side) {\r\n legalMovesArr = new ArrayList<Move>();\r\n HashSet<Square> pieceSide = pieceLocations(side);\r\n for (Square pieces : pieceSide) {\r\n for (int i = 0; i <= 8; i++) {\r\n Move x = mv(pieces, sq(pieces.col(), i));\r\n legalMovesArr.add(x);\r\n }\r\n for (int j = 0; j <= 8; j++) {\r\n Move y = mv(pieces, sq(j, pieces.row()));\r\n legalMovesArr.add(y);\r\n }\r\n while (legalMovesArr.remove(null));\r\n }\r\n return legalMovesArr;\r\n }", "public ArrayList<Piece> getColorPieces(PrimaryColor color){\n\t\tArrayList<Piece> colorPieces = new ArrayList<Piece>();\n\n\t\tfor(Piece p : this.pieces) {\n\t\t\tif(p.getColor()== color) {\n\t\t\t\tcolorPieces.add(p);\n\t\t\t}\n\t\t}\n\t\treturn colorPieces;\n\n\t}", "public ArrayList<Color> userColors() {\r\n int colorIndex;\r\n ArrayList<Color> dest = new ArrayList<Color>();\r\n for (colorIndex = 0; colorIndex < this.colors; colorIndex += 1) {\r\n dest.add(Cnst.colorsToChoose.get(colorIndex));\r\n }\r\n return dest;\r\n }", "public List<ColorId> checkPlayersBasicMode ()\n {\n List<ColorId> players = new ArrayList<>();\n\n for (Player playerIterate : player.playerThatSee(player.getSquare().getGameBoard()))\n {\n if (playerIterate.getSquare() != player.getSquare())\n players.add(playerIterate.getColor());\n }\n return players;\n }", "public abstract HashSet<Location> getPossibleMovements(GameBoard board);" ]
[ "0.6783842", "0.65428543", "0.6432174", "0.63984406", "0.6359269", "0.6352146", "0.63215226", "0.6219266", "0.6217932", "0.6164959", "0.61503464", "0.60523075", "0.6027849", "0.6027417", "0.5940267", "0.59242606", "0.5842629", "0.58030814", "0.5800003", "0.57814974", "0.57744616", "0.5760834", "0.5754694", "0.5742883", "0.5738651", "0.5710004", "0.567688", "0.5653143", "0.56379694", "0.5627745", "0.5613005", "0.55998194", "0.5570321", "0.5556826", "0.5555241", "0.5548352", "0.5536378", "0.550468", "0.5485037", "0.548346", "0.54778796", "0.54667103", "0.5464695", "0.54567206", "0.545658", "0.5456503", "0.5453958", "0.543079", "0.54298097", "0.542627", "0.53996503", "0.53955406", "0.53909814", "0.53842837", "0.5372314", "0.5359333", "0.53235406", "0.5315184", "0.5312886", "0.53112763", "0.5304023", "0.52965987", "0.52952105", "0.5278214", "0.5274393", "0.52690786", "0.52641594", "0.5259409", "0.5255935", "0.5253869", "0.52394265", "0.5239065", "0.52354825", "0.5234041", "0.5228805", "0.5227217", "0.5222674", "0.5213509", "0.5212522", "0.52123445", "0.521122", "0.5210485", "0.52056706", "0.5204285", "0.5203284", "0.519113", "0.5189147", "0.51889956", "0.51889735", "0.5188281", "0.51813173", "0.5173039", "0.5171331", "0.51674235", "0.5154856", "0.5144699", "0.5144458", "0.5144151", "0.51412934", "0.51377016" ]
0.7183513
0
add specified move array to the array of moves
public void addMove(Move tryMove, ArrayList<ArrayList<Move>> moves){ // System.out.println("Added: " + getClassNotation(tryMove.xFrom, tryMove.yFrom) +"" + " "+ getClassNotation(tryMove.xTo, tryMove.yTo)); ArrayList<Move> move = new ArrayList<Move>(); move.add(tryMove); moves.add(move); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeMove(int[] move) {\n\t\tmakeMove(move[0], move[1]);\n\t}", "private void addToMoves(char move) {\n this.prevMoves += move;\n }", "public void makeMove(int[] move) {\n makeMove(move[ORIENT],move[SLOT]);\n }", "private void insertMovesIntoMoveList(Unit unit, Moves[] moves) {\r\n\t\tfor (int i = 0; i < moves.length; i++) {\r\n\t\t\tfor (int j = 0; j < this.moveList.length; j++) {\r\n\t\t\t\tif (moves[i] != null && this.moveList[j] == null) {\r\n\t\t\t\t\tthis.moveList[j] = new NewMove(unit, moves[i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "abstract public int[] makeMove();", "public void setMoves(String [] moves) {\n this.moves = moves;\n signalCheck();\n }", "public void addStep(Move move) {\n moves.add(0, move);\n }", "public abstract String[] move();", "protected void addMove(Move move) {\n moveHistory.add(move);\n pointer++;\n }", "public int[] move(int num){\n int[]loc = new int[2];\n for(int c = 0; c<num; c++){\n loc = this.move();\n }\n return loc;\n }", "private void addMove(PossibleMove posMov) {\r\n\t\tassert posMov != null;\r\n\r\n\t\tboolean uniqueMove = true;\r\n\t\tfor (PossibleMove p : possibleMoves) {\r\n\t\t\tif (p.equals(posMov)) {\r\n\t\t\t\tuniqueMove = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (uniqueMove) {\r\n\t\t\tpossibleMoves.add(posMov);\r\n\t\t}\r\n\t}", "void moveAdded(int playerIndex, Move move);", "public int[] makeMove(ArrayList < String > movesArray) {\n movesArray.get(0);\n Random rand = new Random();\n int ri = rand.nextInt(3);\n int rj = rand.nextInt(3);\n return new int[] {ri,rj};\n }", "private static void addMovesWithOffset(int pieceType, long moves, LinkedList<Move> moveList,\n\t\t\tboolean enPassant, boolean promotion, byte castling, int offset) {\n\t\twhile (moves != 0) {\n\t\t\tint to = BitBoard.bitScanForward(moves);\n\t\t\tint from = (to - offset) % 64;\n\t\t\tif (from < 0) {\n\t\t\t\tfrom = 64 + from;\n\t\t\t}\n\t\t\tMove move = new Move(pieceType, from, to);\n\t\t\tmove.setCastling(castling);\n\t\t\tmove.setPromotion(promotion);\n\t\t\tmove.setEnPassant(enPassant);\n\t\t\tmoveList.add(move);\n\t\t\tmoves &= moves - 1;\n\t\t}\n\t}", "public void incrementMoves()\n {\n moves ++;\n }", "public void addAll(T[] arr);", "public void addAll(T[] arr, int from, int length);", "public void addMove() {\n\t\tmove = \"mv \" + posX + \" \" + posY;\n\t}", "private void advance(Board board, List<Move> moves) {\n int x = location.x;\n int y = location.y;\n \n Piece pc;\n Point pt;\n int move;\n \n if (color == Color.White)\n move = -1;\n else\n move = 1;\n \n pt = new Point(x, y + move);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt); \n if(pc == null) {\n moves.add(new Move(this, pt, pc)); \n \n pt = new Point(x, y + move * 2);\n if (board.validLocation(pt)) {\n pc = board.getPieceAt(pt);\n if(pc == null && numMoves == 0)\n moves.add(new Move(this, pt, pc));\n }\n } \n }\n }", "public void addMoveToBoardAndSwitchesTurns(Move move) {\n int moveX = move.getMoveX();\n int moveY = move.getMoveY(); \n char symbol = move.getPlayer().getType();\n this.boardState[moveX][moveY] = symbol;\n this.turn = move.getPlayer().getId() == 1 ? 2 : 1; \n }", "private void availableMoveHelper(ArrayList<int[]> moves, int[] direction_x, int[] direction_y, int start_x, int start_y, Board board){\n\t\tfor(int x : direction_x){\n\t\t\tfor(int y : direction_y){\n\t\t\t\tint check_x = start_x+x;\n\t\t\t\tint check_y = start_y+y;\n\t\t\t\tif(this.isValid(check_x, check_y, board)){\n\t\t\t\t\tint[] cur_pos = {check_x, check_y};\n\t\t\t\t\tmoves.add(cur_pos);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "void addMove(Move userChoice) {\n moves.add(userChoice);\n }", "private void addToMoveQueue() {\n\t\tSimulation.INSTANCE.getMoveQueue().offer(new Move(prevNode, currentNode));\n\t}", "public void add_to_future_moves(int id, int total_moves) {\n\t\tArrayList<Integer> temp_move = new ArrayList<>();\n\t\ttemp_move.add(id);\n\t\ttemp_move.add(total_moves);\n\t\tfuture_moves.add(temp_move);\n\t}", "private static void addToTraversal(int[][] array, Coordinates coords) {\n arrayTraversal[traversalLength++] = array[coords.row][coords.col];\n }", "public void addRound(ArrayList<Move> round) {\r\n\t\tfor (Move move : round) {\r\n\t\t\tadd(move);\r\n\t\t}\r\n\r\n\t\tint lastIndex = offsets.size() - 1;\r\n\t\toffsets.add(round.size() + offsets.get(lastIndex)); // accumulate the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// index\r\n\t}", "private void generateActions(double[] move) {\n //Rotate Actions\n for (int i = 0; i <= move[0]; i++) {\n GameAction act1 = new LabyrinthRotateAction(this,true);\n this.push(act1);\n }\n\n //Slide Action\n GameAction act2 = new LabyrinthSlideTileAction(this,\n Arrow.values()[(int)move[1]]);\n this.push(act2);\n\n //Move Action\n GameAction act3 = new LabyrinthMovePawnAction(this,\n (int)move[2],(int)move[3]);\n this.push(act3);\n\n //End Turn Action\n GameAction act4 = new LabyrinthEndTurnAction(this);\n this.push(act4);\n }", "P applyMovement(M move);", "void move(int steps);", "private void addPossibleMoves(int[][] boardStatus) {\n //Iterates through two dimensional array.\n for(int rows = 0; rows < boardStatus.length; rows++) {\n for(int cols = 0; cols < boardStatus[rows].length; cols++) {\n //If the spot is empty, a possible move is added.\n if(boardStatus[rows][cols] == 0) {\n moves.add(new Move(rows, cols));\n }\n }\n }\n }", "private void addMovieToArray(ArrayList<Movie> movies, String movieName, String directorName, String act1, String act2, String act3, int star)\n {\n Movie clip = new Movie(movieName, directorName, act1, act2, act3, star);\n movies.add(clip);\n }", "public ArrayList<Tile> move(Tile tiles[][], int x, int y)\n {\n \treturn null;\n \t\n }", "public static void mctsDoMove(int move, int[] board, int curPlayer){\n int xq = move & 0xf;\n int yq = (move & 0xf0) >> 4;\n int xm = (move & 0xf00) >> 8;\n int ym = (move & 0xf000) >> 12;\n int xs = (move & 0xf0000) >> 16;\n int ys = (move & 0xf00000) >> 20;\n \n board[yq*GRID+xq] = BLANK;\n board[ym*GRID+xm] = curPlayer;\n board[ys*GRID+xs] = ARROW;\n }", "public void makeMove(int move) {\n makeMove(legalMoves[nextPiece][move]);\n }", "void processNextMove(List<Coordinates> moves, Ball color);", "void move(Board b, Square target, int[] position, String imagepath);", "public void updateMoves(){\r\n\t\tthis.moves = getMoves() + 1;\r\n\t}", "private void addMove(ArrayList<Move> l, Move m) {\n if (m.valid() && isLegal(m)) {\n l.add(m);\n }\n }", "public int move_diagonally(Square[][] squares, int [] move, Boolean turn) {\n\n /* going down and right = f4 h2 [4,5,6,7] */\n if (move[2] > move[0] && move[3] > move[1]) {\n ////System.out.println(\"Down right\");\n int x = move[0];\n int y = move[1];\n x++;\n y++;\n while (x < move[2] && y < move[3]) {\n if (squares[x][y] instanceof Piece) {\n ////System.out.println(\"Piece in between \"+x + \" \" + y);\n return -1;\n }\n x++;\n y++;\n }\n }\n /* going down and left */\n else if (move[2] > move[0] && move[3] < move[1]){\n ////System.out.println(\"Down Left\");\n int x = move[0];\n int y = move[1];\n x++;\n y--;\n while (x < move[2] && y > move[3]) {\n if (squares[x][y] instanceof Piece) {\n ////System.out.println(\"Piece in between \"+x + \" \" + y);\n return -1;\n }\n x++;\n y--;\n }\n }\n /* going up and left */\n else if (move[2] < move[0] && move[3] < move[1]){\n ////System.out.println(\"Up Left\");\n int x = move[0];\n int y = move[1];\n x--;\n y--;\n while (x > move[2] && y > move[3]) {\n if (squares[x][y] instanceof Piece) {\n ////System.out.println(\"Piece in between \"+x + \" \" + y);\n return -1;\n }\n x--;\n y--;\n }\n }\n /* going up and right c1 f4 [7,2,4,5] */\n else if (move[2] < move[0] && move[3] > move[1]){\n ////System.out.println(\"Up right\");\n int x = move[0];\n int y = move[1];\n x--;\n y++;\n while (x > move[2] && y < move[3]) {\n if (squares[x][y] instanceof Piece) {\n ////System.out.println(\"Piece in between \"+x + \" \" + y);\n return -1;\n }\n x--;\n y++;\n }\n }\n return 0;\n }", "protected void setMoves(List<Move> moves) {\n this.moves = moves;\n }", "public void init(int[] a){\n this.array = a;\n moves = 0; \n }", "public void moveAll()\n\t{\n\t\tmoveOutput = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\triver[i].move(i);\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testMove() {\n System.out.println(\"move\");\n int[] number = {0, 0, 0, 1, 2, 3, 4, 5, 6, 7};\n int pos = -2;\n AbstractMethod instance = new AbstractMethodImpl();\n int[] expResult = {0, 1, 2, 3, 4, 5, 6, 7, 0, 0};\n int[] result = instance.move(number, pos);\n assertArrayEquals(expResult, result);\n\n }", "static void addToWinnings(Card[] winnings, Card... cards) {\n //Find the first null position in the winnings array and place\n //each card in that position.\n for (int i = 0; i < cards.length; i++)\n for (int j = 0; j < winnings.length; j++)\n if (winnings[j] == null) {\n winnings[j] = new Card(cards[i]);\n break;\n }\n }", "@Override\r\n\tint[] move( int turnNo ) {\n\t\treturn getUserMove();\r\n\t}", "void advancedAvailMovesLine(int num) {\n\t\t\n\t\t //vertically\n\t\tint counter;\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tcounter = 0;\n\t\t\tint yPos = 0;\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\tif (availMoves[i][j][num-1] == true) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\tyPos = j;\n\t\t\t\t\tif (counter > 1) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (counter == 1) {\n\t\t\t\tmoveQueue.add(new int[] {i, yPos, num});\n\t\t\t}\t\t\t\n\t\t}\n\t\t//horizontally\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tcounter = 0;\n\t\t\tint xPos = 0;\n\t\t\tfor(int j = 0; j < boardSize; j++) {\n\t\t\t\tif (availMoves[j][i][num-1] == true) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\txPos = j;\n\t\t\t\t\tif (counter > 1) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (counter == 1) {\n\t\t\t\tmoveQueue.add(new int[] {xPos, i, num});\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void moveEO(int move) {\n int type = move / 3;\n int[] cycle;\n if(type == 0) {cycle = new int[]{8, 4, 11, 5};}\n else if(type == 1) {cycle = new int[]{8, 3, 9, 0};}\n else if(type == 2) {cycle = new int[]{4, 0, 7, 1};}\n else if(type == 3) {cycle = new int[]{9, 6, 10, 7};}\n else if(type == 4) {cycle = new int[]{11, 1, 10, 2};}\n else {cycle = new int[]{3, 5, 2, 6};}\n\n if(move % 3 == 0) {\n int saver = eo[cycle[0]];\n eo[cycle[0]] = eo[cycle[3]];\n eo[cycle[3]] = eo[cycle[2]];\n eo[cycle[2]] = eo[cycle[1]];\n eo[cycle[1]] = saver;\n }\n else if(move % 3 == 1) {\n int saver0 = eo[cycle[0]];\n int saver1 = eo[cycle[1]];\n eo[cycle[0]] = eo[cycle[2]];\n eo[cycle[1]] = eo[cycle[3]];\n eo[cycle[2]] = saver0;\n eo[cycle[3]] = saver1;\n }\n else {\n int saver = eo[cycle[0]];\n eo[cycle[0]] = eo[cycle[1]];\n eo[cycle[1]] = eo[cycle[2]];\n eo[cycle[2]] = eo[cycle[3]];\n eo[cycle[3]] = saver;\n }\n if(move == 3 || move == 5 || move == 12 || move == 14) {\n eo[cycle[0]] = (eo[cycle[0]] + 1) % 2;\n eo[cycle[1]] = (eo[cycle[1]] + 1) % 2;\n eo[cycle[2]] = (eo[cycle[2]] + 1) % 2;\n eo[cycle[3]] = (eo[cycle[3]] + 1) % 2;\n }\n }", "void startPos(String... moves);", "public void addToTourArrayContainsThisPlaceOfInterest(Tour tour)\r\n\t{\r\n\t\tthis._tourArrayContainsThisPlaceOfInterest.add(tour);\r\n\t}", "public String [] getMoves() {\n return moves;\n }", "public abstract void calculateMoves();", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "public void moveCO(int move) {\n int type = move / 3;\n int[] cycle;\n if(type == 0) {cycle = new int[]{0, 6, 2, 4};}\n else if(type == 1) {cycle = new int[]{0, 4, 1, 5};}\n else if(type == 2) {cycle = new int[]{6, 0, 5, 3};}\n else if(type == 3) {cycle = new int[]{3, 5, 1, 7};}\n else if(type == 4) {cycle = new int[]{6, 3, 7, 2};}\n else {cycle = new int[]{4, 2, 7, 1};}\n\n if(move % 3 == 0) {\n int saver = co[cycle[0]];\n co[cycle[0]] = co[cycle[3]];\n co[cycle[3]] = co[cycle[2]];\n co[cycle[2]] = co[cycle[1]];\n co[cycle[1]] = saver;\n }\n else if(move % 3 == 1) {\n int saver0 = co[cycle[0]];\n int saver1 = co[cycle[1]];\n co[cycle[0]] = co[cycle[2]];\n co[cycle[1]] = co[cycle[3]];\n co[cycle[2]] = saver0;\n co[cycle[3]] = saver1;\n }\n else {\n int saver = co[cycle[0]];\n co[cycle[0]] = co[cycle[1]];\n co[cycle[1]] = co[cycle[2]];\n co[cycle[2]] = co[cycle[3]];\n co[cycle[3]] = saver;\n }\n\n if(move % 3 != 1 && !(move / 3 == 1 || move / 3 == 4)) {\n co[cycle[0]] = (co[cycle[0]] + 1) % 3;\n co[cycle[1]] = (co[cycle[1]] + 2) % 3;\n co[cycle[2]] = (co[cycle[2]] + 1) % 3;\n co[cycle[3]] = (co[cycle[3]] + 2) % 3;\n }\n }", "public static int generateMoves(BoardState bs, long[] moves) {\n int count = 0;\n //int from, int to, int special, int movPiece, int content, int pawnStart\n int piece, tmp_piece, pIndex, index;\n int sq, tmp_sq, pieceNum, dir;\n\n int turn = bs.turn;\n int opponent = turn ^ 1;\n int pawn = PAWN_BY_COLOR[turn];\n\n //PAWNS\n for (pieceNum = 0; pieceNum < bs.pieceNum[pawn]; pieceNum++) {\n sq = bs.pieceArray[pawn][pieceNum];\n assert (isOnboard(sq));\n\n tmp_sq = sq + MOVES_PAWN_STRAIGHT[turn];\n if (bs.pieces[tmp_sq] == EMPTY) {\n count = addPawnMove(bs, sq, tmp_sq, 0, 0, turn, moves, count);\n tmp_sq += MOVES_PAWN_STRAIGHT[turn];\n if (((RANKS_MAP[sq] == RANK_7 && turn == BLACK)\n || (RANKS_MAP[sq] == RANK_2 && turn == WHITE))\n && bs.pieces[tmp_sq] == EMPTY) {\n count = addPawnMove(bs, sq, tmp_sq, 0, 1, turn, moves, count);\n }\n }\n\n tmp_sq = sq + MOVES_PAWNS[turn][0];\n if (isOnboard(tmp_sq) && PIECE_COLORS[bs.pieces[tmp_sq]] == opponent) {\n count = addPawnMove(bs, sq, tmp_sq, bs.pieces[tmp_sq], 0, turn, moves, count);\n }\n if (isOnboard(bs.enPas) && bs.enPas == tmp_sq) { //En passant check\n int move = Moves.generateMove(sq, tmp_sq, 1, pawn, EMPTY, 0);\n count = addMove(move, moves, count, 105);\n }\n\n tmp_sq = sq + MOVES_PAWNS[turn][1];\n if (isOnboard(tmp_sq) && PIECE_COLORS[bs.pieces[tmp_sq]] == opponent) {\n count = addPawnMove(bs, sq, tmp_sq, bs.pieces[tmp_sq], 0, turn, moves, count);\n }\n if (isOnboard(bs.enPas) && bs.enPas == tmp_sq) { //En passant check\n int move = Moves.generateMove(sq, tmp_sq, 1, pawn, EMPTY, 0);\n count = addMove(move, moves, count, 105);\n }\n }\n\n //Bishops, Rooks & Queens\n pIndex = SLIDERS_INDEX[turn];\n piece = SLIDERS[pIndex++];\n while (piece != -1) {\n for (pieceNum = 0; pieceNum < bs.pieceNum[piece]; pieceNum++) {\n sq = bs.pieceArray[piece][pieceNum];\n for (index = 0; index < MOVES_ALL[piece].length; index++) {\n dir = MOVES_ALL[piece][index];\n tmp_sq = sq;\n\n //Slide loop\n while (isOnboard(tmp_sq += dir)) {\n tmp_piece = bs.pieces[tmp_sq];\n if (tmp_piece != EMPTY) {\n if (PIECE_COLORS[tmp_piece] == opponent) {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, tmp_piece, 0);\n count = addCaptureMove(bs, move, moves, count);\n }\n break; //Stop sliding\n } else {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n }\n }\n }\n piece = SLIDERS[pIndex++];\n }\n //Kings & Knights\n pIndex = MOVERS_INDEX[turn];\n while ((piece = MOVERS[pIndex]) != -1) {\n for (pieceNum = 0; pieceNum < bs.pieceNum[piece]; pieceNum++) {\n sq = bs.pieceArray[piece][pieceNum];\n for (index = 0; index < MOVES_ALL[piece].length; index++) {\n dir = MOVES_ALL[piece][index];\n tmp_sq = sq + dir;\n if (isOnboard(tmp_sq)) {\n tmp_piece = bs.pieces[tmp_sq];\n if (tmp_piece != EMPTY) {\n if (PIECE_COLORS[tmp_piece] == opponent) {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, tmp_piece, 0);\n count = addCaptureMove(bs, move, moves, count);\n }\n } else {\n int move = Moves.generateMove(sq, tmp_sq, 0, piece, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n }\n }\n }\n pIndex++;\n }\n\n //Castling\n if (turn == WHITE) {\n if ((bs.castlePerms & WKCA) != 0\n && bs.pieces[F1] == EMPTY\n && bs.pieces[G1] == EMPTY\n && !bs.isSquareThreatened(E1, BLACK)\n && !bs.isSquareThreatened(F1, BLACK)) {\n int move = Moves.generateMove(E1, G1, 1, W_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n if ((bs.castlePerms & WQCA) != 0\n && bs.pieces[D1] == EMPTY\n && bs.pieces[C1] == EMPTY\n && bs.pieces[B1] == EMPTY\n && !bs.isSquareThreatened(E1, BLACK)\n && !bs.isSquareThreatened(D1, BLACK)) {\n int move = Moves.generateMove(E1, C1, 1, W_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n } else {\n if ((bs.castlePerms & BKCA) != 0\n && bs.pieces[F8] == EMPTY\n && bs.pieces[G8] == EMPTY\n && !bs.isSquareThreatened(E8, WHITE)\n && !bs.isSquareThreatened(F8, WHITE)) {\n int move = Moves.generateMove(E8, G8, 1, B_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n if ((bs.castlePerms & BQCA) != 0\n && bs.pieces[D8] == EMPTY\n && bs.pieces[C8] == EMPTY\n && bs.pieces[B8] == EMPTY\n && !bs.isSquareThreatened(E8, WHITE)\n && !bs.isSquareThreatened(D8, WHITE)) {\n int move = Moves.generateMove(E8, C8, 1, B_KING, EMPTY, 0);\n count = addMove(bs, move, moves, count);\n }\n }\n\n return count;\n }", "public void move(int distance);", "public void addRow(int[] row) {\n board[counter] = row;\n counter += 1;\n if (counter == 9) {\n startingBoard = copyBoard();\n }\n }", "private void moveEnemyArrows(){\n\t\tint i,j;\n\t\tfor(i=0;i<enemy_num;i++){\n\t\t\tfor(j=0;j<enemy_arrow_num[i];j++){\n\t\t\t\tenemy_arrows[i][j][0] = enemy_arrows[i][j][0]+enemy_arrows[i][j][2];\n\t\t\t\tenemy_arrows[i][j][1] = enemy_arrows[i][j][1]+enemy_arrows[i][j][3];\n\t\t\t}\n\t\t}\n\t}", "public static String[] addX(String heroArray[], String newHeroName) {\n // create a new ArrayList\n List<String> arrlist\n = new ArrayList<String>(\n Arrays.asList(heroArray));\n\n // Add the new element\n arrlist.add(newHeroName);\n\n // Convert the Arraylist to array\n heroArray = arrlist.toArray(heroArray);\n\n // return the array\n return heroArray;\n }", "public boolean addMove(Table table) {\r\n\t\tif (table.getMovingNum() == 0) {\r\n\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void AddMovesToPlayer() {\n\t\t// 0 - turn left\n\t\t// 1 - turn right\n\t\t// 2 - go forward\n\t\tfor (int i = 0; i < (2 * minMoves); i++) {\n\t\t\tmoves.add(r.nextInt(3));\n\t\t}\n\t\tthis.face = 1;\n\t}", "public static Shape[] addArray(Shape[] sourceArray) {\n Shape[] targetArray = new Shape[sourceArray.length + 1];\n System.arraycopy(sourceArray, 0, targetArray, 0, sourceArray.length);\n sourceArray = targetArray;\n return sourceArray;\n }", "private void updateMoveRecord(int[] moveX, int[] moveY, int recordSize) {\n moveRecord = \"\";\r\n for (int ii=0; ii<recordSize; ii++) {\r\n moveRecord += String.valueOf((moveX[ii]-1)*3+moveY[ii]);\r\n }\r\n }", "private void randMove(Person[] array){\r\n\t\t\tlogger.info(\"randMoving starts\");\r\n\t\t\tArrayList<Integer> remaining = new ArrayList<>();\r\n\t\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\t\tremaining.add(i);\r\n\t\t\t}\r\n\t\t\tint step = 0;\r\n\t\t\tboolean isAgentArray = false;\r\n\t\t\tif(array[0] instanceof Agent) isAgentArray = true;\r\n\r\n\t\t\t//select from remaining index when remaining is not empty\r\n\t\t\twhile (step<array.length) {\r\n\t\t\t\tint index = randInt(0,remaining.size()-1);\r\n\t\t\t\tif(remaining.get(index)>=0){\r\n\t\t\t\t\t//move agents and cops here\r\n\t\t\t\t\tif(isAgentArray){\r\n\t\t\t\t\t\tif(agents[index].getJailTerm() == 0)\r\n\t\t\t\t\t\t\tagents[index].move();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse cops[index].move();\r\n\t\t\t\t\tremaining.set(index,-1);\r\n\t\t\t\t\tstep++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.info(\"randmove finished after \" + step + \"iterations.\");\r\n\t\t}", "public void addPieces() {\r\n\t\tboard[0] = 8;\r\n\t\tboard[1] = 1;\r\n\t\tboard[2] = 6;\r\n\t\tboard[3] = 3;\r\n\t\tboard[4] = 5;\r\n\t\tboard[5] = 7;\r\n\t\tboard[6] = 4;\r\n\t\tboard[7] = 9;\r\n\t\tboard[8] = 2;\r\n\t}", "public void addAll(String[] a)\n {\n\tfor (String s : a)\n\t this.add(s);\n }", "public void moveCP(int move) {\n int type = move / 3;\n int[] cycle;\n if(type == 0) {cycle = new int[]{0, 6, 2, 4};}\n else if(type == 1) {cycle = new int[]{0, 4, 1, 5};}\n else if(type == 2) {cycle = new int[]{6, 0, 5, 3};}\n else if(type == 3) {cycle = new int[]{3, 5, 1, 7};}\n else if(type == 4) {cycle = new int[]{6, 3, 7, 2};}\n else {cycle = new int[]{4, 2, 7, 1};}\n\n if(move % 3 == 0) {\n int saver = cp[cycle[0]];\n cp[cycle[0]] = cp[cycle[3]];\n cp[cycle[3]] = cp[cycle[2]];\n cp[cycle[2]] = cp[cycle[1]];\n cp[cycle[1]] = saver;\n }\n else if(move % 3 == 1) {\n int saver0 = cp[cycle[0]];\n int saver1 = cp[cycle[1]];\n cp[cycle[0]] = cp[cycle[2]];\n cp[cycle[1]] = cp[cycle[3]];\n cp[cycle[2]] = saver0;\n cp[cycle[3]] = saver1;\n }\n else {\n int saver = cp[cycle[0]];\n cp[cycle[0]] = cp[cycle[1]];\n cp[cycle[1]] = cp[cycle[2]];\n cp[cycle[2]] = cp[cycle[3]];\n cp[cycle[3]] = saver;\n }\n }", "static List<Point> getMoves(Point[] possibleTilePos, int[] rowMoves, int[] colMoves, List<Point> pieceMoves, int length) {\n pieceMoves.clear();\n for (int i = 0; i < length; i++) {\n possibleTilePos[i] = new Point(rowMoves[i], colMoves[i]);\n\n }\n pieceMoves.addAll(Arrays.asList(possibleTilePos));\n return pieceMoves;\n }", "public void moveTracks(int[] indexesToMove, int row) {\n Arrays.sort(indexesToMove);\n ArrayList<Track> newTracks = new ArrayList<Track>();\n int newPosition = position;\n for (int i = 0; i <= tracks.size(); i++) {\n if (i == row) {\n //if i = row, this is the insertion point. cyle through indexesToMove and copy them across\n for (int j = 0; j < indexesToMove.length; j++) {\n //System.out.println(\"Adding index : \" + indexesToMove[j] + \"to new list. In array\");\n newTracks.add(tracks.get(indexesToMove[j]));\n //Check if we've moved the currently playing track. If so, change position\n if (indexesToMove[j] == position) {\n //\tSystem.out.println(\"Setting position to(innner for loop) : \" + newTracks.size());\n newPosition = newTracks.size() - 1;\n }\n }\n }\n\n //Add track.get(i) to new tracks if it's not in the list of indexes to move\n //Also check array bounds -- we have to cycle with i untill one after the length, in case we drop at the end of the list.\n\n if (i < tracks.size() && Arrays.binarySearch(indexesToMove, i) < 0) {\n //System.out.println(\"Adding index : \" + i + \"to new list. Not in array\");\n newTracks.add(tracks.get(i));\n //Check if we've moved the currently playing track. If so, change position\n if (i == position) {\n //\tSystem.out.println(\"Setting position to : \" + newTracks.size());\n newPosition = newTracks.size() - 1;\n }\n }\n\n }\n //Sanity check\n if (tracks.size() != newTracks.size()) {\n Dbg.syserr(\"Mismatched sizes in move. Old: \" + tracks.size() + \". New: \" + newTracks.size());\n } else {\n //Copy newTracks to old.\n tracks = newTracks;\n //Set postion\n position = newPosition;\n }\n //System.out.println(\"New position of now playing: \" + position + \"out of \" + tracks.size() + \" tracks\");\n }", "public void move(Cell[][] map, Action[][][] actions, int[] position) {\n int[] destination = new int[2];\n for (int i = Math.max(0, position[0] - 1); (i <= Math.min(4, position[0] + 1)); i++) {\n for (int j = Math.max(0, position[1] - 1); j <= Math.min(4, position[1] + 1); j++) {\n if ((map[i][j].getSize() <= map[position[0]][position[1]].getSize())\n && !map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock().equals(TypeBlock.WORKER)\n && !map[i][j].getBlock(map[i][j].getSize() - 1).getTypeBlock().equals(TypeBlock.DOME)) {\n destination[0] = i;\n destination[1] = j;\n ((Swap) actions[i][j][0]).set(position, destination, destination, destination, true);\n }\n }\n }\n }", "private void incr() {\n Move tempMove = null;\n Piece t1, t2;\n while (_r <= M) {\n t1 = Board.this._turn;\n t2 = Board.this.get(_c, _r);\n if (t1 == t2) {\n break;\n } else {\n nextPiece();\n }\n }\n if (_r > M) {\n _move = null;\n return;\n }\n int c1, r1, count3;\n Piece temp1, temp2;\n Board tempBoard;\n _dir = _dir.succ();\n while (_dir != null) {\n count3 = pieceCountAlong(_c, _r, _dir);\n c1 = _c + _dir.dc * count3;\n r1 = _r + _dir.dr * count3;\n tempMove = Move.create(_c, _r, c1, r1, Board.this);\n if (tempMove == null) {\n _dir = _dir.succ();\n continue;\n }\n if (isLegal(tempMove)) {\n _move = tempMove;\n break;\n }\n _dir = _dir.succ();\n }\n if (_dir == null) {\n _dir = NOWHERE;\n nextPiece();\n incr();\n }\n }", "private void updateMoveList(Move m) {\n \t//first check for castling move\n \tif(m.getSource().getName().equals(\"King\")) {\n \tint sx = m.getSource().getLocation().getX();\n \tint dx = m.getDest().getLocation().getX();\n \t\n \t//castle king side\n \tif(dx - sx == 2) {\n \t\tmoveList.add(\"0-0\");\n \t\treturn;\n \t}\n \t//castle queen side\n \telse if(sx - dx == 2) {\n \t\tmoveList.add(\"0-0-0\");\n \t\treturn;\n \t}\n \t}\n \t\n \t//now do normal checks for moves\n \t//if no piece, normal notation\n \tif(m.getDest().getName().equals(\"None\")) {\n \t\t\n \t\t//check for en passant\n \t\tif(m.getSource().getName().equals(\"Pawn\")) {\n \t\t\t\n \t\t\t//it's only en passant if the pawn moves diagonally to an empty square \n \t\t\tif(m.getSource().getLocation().getX() != m.getDest().getLocation().getX()) {\n \t\t\t\tmoveList.add(m.getSource().getLocation().getFile()+ \"x\" + m.getDest().getLocation().getNotation());\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \t\t\n \t\tmoveList.add(m.getSource().getID() + m.getDest().getLocation().getNotation());\n \t}\n \t//add \"x\" for capturing\n \t//for pawn, it's a bit different\n \telse if(m.getSource().getName().equals(\"Pawn\")) {\n \t\tmoveList.add(m.getSource().getLocation().getFile()+ \"x\" + m.getDest().getLocation().getNotation());\n \t}\n \telse {\n \t\tmoveList.add(m.getSource().getID() + \"x\" + m.getDest().getLocation().getNotation());\n \t}\n }", "public int[] move(int num, boolean pr){\n int[]loc = new int[2];\n if(pr = false){\n loc = this.move(num);\n }\n else{\n for(int c= 0; c<num; c++){\n loc = this.move();\n System.out.println(\"Step \" + (c+1) + \", (\" + x + \", \" + y + \")\");\n }\n \n }\n return loc;\n }", "public void move(int mv){\n\t\t\tx+= mv;\n\t\t}", "public abstract ArrayList<Move> possibleMoves(Board board);", "void positionLoaded(List<Move> orderedMoves);", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "private boolean move(int move, String sAnnotation, boolean bUpdate) {\n if (jni.move(move) == 0) {\n return false;\n }\n addPGNEntry(jni.getNumBoard() - 1, jni.getMyMoveToString(), sAnnotation, jni.getMyMove(), -1);\n\n return true;\n }", "public void add(Object o){\n if (n<sequence.length){\n// sequence[n]=o;\n// n++;\n sequence[n++]=o;\n }\n }", "void move(IntVector delta);", "public static void main(String[] args) {\n final int NUM_OF_POSSIBLE_MOVES = 18;\n Move[] moves = new Move[NUM_OF_POSSIBLE_MOVES];\n\n //gives memory\n for(int i = 0; i < NUM_OF_POSSIBLE_MOVES; i++){\n moves[i] = new Move();\n }\n\n //sets the moves\n moves[0].setMove(0,1,3);\n moves[1].setMove(0,2,5);\n moves[2].setMove(1,3,6);\n moves[3].setMove(1,4,8);\n moves[4].setMove(2,4,7);\n moves[5].setMove(2,5,9);\n moves[6].setMove(3,6,10);\n moves[7].setMove(3,7,12);\n moves[8].setMove(4,7,11);\n moves[9].setMove(4,8,13);\n moves[10].setMove(5,8,12);\n moves[11].setMove(5,9,14);\n moves[12].setMove(3,4,5);\n moves[13].setMove(6,7,8);\n moves[14].setMove(7,8,9);\n moves[15].setMove(10,11,12);\n moves[16].setMove(11,12,13);\n moves[17].setMove(12,13,14);\n\n for(int i = 0; i < 5; i++){\n System.out.println(\" ===\" + i + \"===\");\n\n int[] cell = init(i);\n show(cell);\n\n System.out.println();\n }\n\n }", "private Action doNextMove(Action move){\n\t\t// update east or north\n\t\tif (move == Action.East){\n\t\t\teast++;\n\t\t} else if (move == Action.West){\n\t\t\teast--;\n\t\t} else if (move == Action.North){\n\t\t\tnorth++;\n\t\t} else if (move == Action.South){\n\t\t\tnorth--;\n\t\t}\n\t\treturn move;\n\t}", "private SignatureDTO[] add(SignatureDTO[] array, SignatureDTO element) {\n Class type = (array != null ? array.getClass() : (element != null ? element.getClass() : SignatureDTO.class));\n SignatureDTO[] newArray = (SignatureDTO[]) copyArrayGrow1(array, type);\n newArray[newArray.length - 1] = element;\n return newArray;\n }", "public void move(){\n\t\t\n\t}", "public MoveSet(String move) {\n\t\tmoves = move;\n\t}", "public abstract void buildMoveData(HexagonalBoard board);", "public void addPiece(int move, boolean color)\n\t{\n\t\tthis.board[5 - columns[move]][move] = new Piece(color);\n\t\tcolumns[move]++;\n\t}", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "public void tryAddCastle(int row, int col, Chess chess, List<String> moves) {\n Piece[][] board = chess.board;\n if (isFirstMove == false) {\n return;\n }\n int origRow = color == 'w' ? 0 : 7;\n if (row != origRow) {\n return;\n }\n\n Piece rook = board[row][0];\n if (rook instanceof Rook && rook.isFirstMove && board[row][1] == null && board[row][2] == null\n && board[row][3] == null && safeToCastle(row, 0, 2, 3, 4, getEnemyColor(), chess)) {\n moves.add(toPosition(row, 2));\n }\n rook = board[row][7];\n if (rook instanceof Rook && rook.isFirstMove && board[row][5] == null && board[row][6] == null\n && safeToCastle(row, 4, 5, 6, 7, getEnemyColor(), chess)) {\n moves.add(toPosition(row, 6));\n }\n }", "void doMove() {\n\t\t// we saved the moves in a queue to avoid recursing.\n\t\tint[] move;\n\t\twhile(!moveQueue.isEmpty()) {\n\t\t\tmove = moveQueue.remove(); \n\t\t\tif (board[move[0]][move[1]] == 0) {\n\t\t\t\tinsertNumber(move[0], move[1], move[2]);\n\t\t\t}\n\t\t}\n\t\tgoOverLines();\n\t}", "public void addAll(final int[] newArray) {\n for (int eachVal: newArray) {\n add(eachVal);\n }\n }", "ArrayList<int[]> findValidMoves();", "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "void makeMove(String move) {\n if (!isLegal(move)) {\n throw new IllegalArgumentException(\"This is an illegal move.\");\n }\n int column = Integer.parseInt(move.substring(2)) - 1;\n int row = Integer.parseInt(move.substring(0, 1)) - 1;\n _board[column][row] = currPlayer;\n alternatePlayer(currPlayer);\n }", "public int move_vert_horz(Square[][] squares, int [] move, Boolean turn, Boolean horz) {\n int row = move[2] - move[0];\n int col = move[3] - move[1];\n if (horz) {\n if (row > 0) { // moving down\n //System.out.println(\"Down\");\n int x = move[0];\n x++;\n while (x < move[2]) {\n if (squares[x][move[1]] instanceof Piece) {\n //System.out.println(\"Piece in between \"+ x + \" \" + move[1]);\n return -1;\n }\n x++;\n }\n }\n else if (row < 0) { // moving up\n //System.out.println(\"Up\");\n int x = move[0];\n x--;\n while (x > move[2]) {\n if (squares[x][move[1]] instanceof Piece) {\n //System.out.println(\"Piece in between \"+ x + \" \" + move[1]);\n return -1;\n }\n x--;\n }\n }\n }\n else {\n if (col > 0) { // moving right\n //System.out.println(\"Right\");\n int y = move[1];\n y++;\n while (y < move[3]) {\n if (squares[move[0]][y] instanceof Piece) {\n //System.out.println(\"Piece in between \"+ move[0] + \" \" + y);\n return -1;\n }\n y++;\n }\n }\n else if (col < 0) { // moving left\n //System.out.println(\"Left\");\n int y = move[1];\n y--;\n while (y > move[3]) {\n if (squares[move[0]][y] instanceof Piece) {\n //System.out.println(\"Piece in between \"+ move[0] + \" \" + y);\n return -1;\n }\n y--;\n }\n }\n }\n return 0;\n }", "private String getMoves(String[] all) {\n boolean addNow = false;\n String curr = \"\";\n for (String s : all) {\n if (addNow) {\n curr += s;\n }\n if (s.equals(\"S\") || s.equals(\"s\")) {\n addNow = true;\n }\n }\n return curr;\n }", "public void setMove(int index, Move move) {\r\n\t\tif (index < 0 || index > 3)\r\n\t\t\tthrow new IllegalArgumentException(\"Move index must be between 0 and 3\");\r\n\r\n\t\tmoves[index] = move;\r\n\t}", "public void arrayadd(char x){\n\t\tint i=loc%(patm);\n\t\tpatarray[i]=x;\n\t}", "private final void addToBook(Position pos, Move moveToAdd) {\n List<BookEntry> ent = bookMap.get(pos.zobristHash());\n if (ent == null) {\n ent = new ArrayList<BookEntry>();\n bookMap.put(pos.zobristHash(), ent);\n }\n for (int i = 0; i < ent.size(); i++) {\n BookEntry be = ent.get(i);\n if (be.move.equals(moveToAdd)) {\n be.count++;\n return;\n }\n }\n BookEntry be = new BookEntry(moveToAdd);\n ent.add(be);\n numBookMoves++;\n }", "public static void add(int... arr) {\r\n long result = 0;\r\n for (int i : arr) {\r\n result += i;\r\n }\r\n System.out.println(\"Addition is \" + result);\r\n }", "void makeMove(Move move) {\n assert isLegal(move);\n _moves.add(move);\n Piece replaced = move.replacedPiece();\n int c0 = move.getCol0(), c1 = move.getCol1();\n int r0 = move.getRow0(), r1 = move.getRow1();\n if (replaced != EMP) {\n set(c1, r1, EMP);\n }\n set(c1, r1, move.movedPiece());\n set(c0, r0, EMP);\n _turn = _turn.opposite();\n }" ]
[ "0.70416546", "0.69058424", "0.6650467", "0.656969", "0.62847954", "0.61459726", "0.6076166", "0.5948409", "0.58718306", "0.5845705", "0.58279765", "0.57895637", "0.57400084", "0.572189", "0.57008153", "0.5691041", "0.5687011", "0.5639263", "0.5635511", "0.5626331", "0.56121", "0.5609032", "0.5605765", "0.5575274", "0.5541847", "0.5540486", "0.54782313", "0.54686224", "0.54301107", "0.54226446", "0.54024553", "0.5390853", "0.538673", "0.5380804", "0.53711855", "0.53474927", "0.5312041", "0.5245694", "0.523467", "0.52263796", "0.5201909", "0.51954013", "0.5187556", "0.5156671", "0.51550925", "0.51527953", "0.51288056", "0.5104559", "0.51012224", "0.51003647", "0.5092795", "0.50860614", "0.5085274", "0.50683075", "0.5067021", "0.5065098", "0.5049818", "0.5040686", "0.5038694", "0.5034138", "0.50295866", "0.5008966", "0.50044423", "0.5000845", "0.49964875", "0.49673724", "0.49667007", "0.49658498", "0.49608925", "0.4958843", "0.4947936", "0.49453145", "0.49429595", "0.49428922", "0.49386543", "0.49369517", "0.49340326", "0.49303716", "0.49279535", "0.49274823", "0.4926975", "0.49254194", "0.4922469", "0.49201104", "0.49199843", "0.49191913", "0.49155688", "0.4907932", "0.4907513", "0.48965746", "0.4887175", "0.48713332", "0.48656595", "0.48642388", "0.4862944", "0.48619655", "0.48600513", "0.4856752", "0.48517814", "0.48470685" ]
0.6087416
6
returns true if valid move (doesn't check right now)
public boolean attemptMove(Move move, int color) { //ArrayList<Move> jumps = canJump(color); //make sure the to and from values don't go out of bounds if (move.xFrom > 7 || move.yFrom > 7 || move.xTo > 7 || move.yTo > 7 || move.xFrom < 0 || move.yFrom < 0 || move.xTo < 0 || move.yTo < 0 ){ // System.out.println("out of bounds"); return false; } int stateOfFrom = gameState.getStateOfSquare(move.xFrom, move.yFrom); int stateOfTo = gameState.getStateOfSquare(move.xTo, move.yTo); //if there in no piece in the "from" location return false if (stateOfFrom == 0){ // System.out.println("no piece at 'from'"); return false; } //if there is a piece in the "to" location return false if (!(stateOfTo == 0)){ // System.out.println("'to' is not empty"); return false; } //if the "from" piece is not the correct color return false if (!(gameState.getStateOfSquare(move.xFrom, move.yFrom)%2 == color)) { // System.out.println("that is not your piece"); return false; } //check if the "from" piece is moving in the right direction /*if (jumps.isEmpty() == false) //if there are jumps. { System.out.println("there are jumps"); //for every possible jump for (int i=0; i<jumps.size(); i++){ //if this move matches a possible jump then it is valid System.out.println("is this jump "+ i + "?"); if ((move.xFrom == jumps.get(i).xFrom)&& (move.yFrom == jumps.get(i).yFrom)&& (move.xTo == jumps.get(i).xTo)&& (move.yTo == jumps.get(i).yTo)){ System.out.println("yes"); return true; } else{ System.out.println("there are possible jumps"); } } //return false; //handle jumps } */ //moving diagonally else{ if (move.xTo == move.xFrom + 1 || move.xTo == move.xFrom - 1){ //if (stateOfFrom >= 3) //if piece is king it can move both forward and back if (stateOfFrom >= 3 && (move.yTo == move.yFrom + 1 || move.yTo == move.yFrom - 1)){ return true; } //red can only move up else if(color == 0 && (move.yTo == move.yFrom + 1)){ return true; } //black can only move down else if(color == 1 && (move.yTo == move.yFrom - 1)){ return true; } else{ // System.out.println("wrong way"); return false; } } else{ // System.out.println("too far away"); return false; } } //return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isThereValidMove() {\n\t\treturn true;\n\t}", "public boolean canMove() {\n\n\tArrayList<Location> moveLocs = getValid(getLocation());\n\n\tif (isEnd == true) {\n\t return false;\n\t} \n\tif (!moveLocs.isEmpty()) {\n\t \n\t randomSelect(moveLocs);\n\t // selectMoveLocation(moveLocs);\n\t return true;\n\n\t} else {\n\t return false;\n\t}\n }", "private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "boolean legalMove(Move mov) {\n if (mov == null || !validSquare(mov.toIndex())\n || !validSquare(mov.fromIndex())) {\n throw new IllegalArgumentException(\"Illegal move\");\n }\n PieceColor from = get(mov.fromIndex());\n PieceColor to = get(mov.toIndex());\n if (!mov.isJump() && jumpPossible()) {\n return false;\n }\n if (from != _whoseMove) {\n return false;\n } else if (mov.isJump()) {\n return checkJump(mov, false);\n } else if (from == BLACK && row(mov.fromIndex()) == '1') {\n return false;\n } else if (from == WHITE && row(mov.fromIndex()) == '5') {\n return false;\n } else if (mov.isLeftMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Right\");\n } else if (mov.isRightMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Left\");\n } else if (from == BLACK) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.fromIndex() - mov.toIndex() == SIDE\n || mov.fromIndex() - mov.toIndex() == SIDE - 1\n || mov.fromIndex() - mov.toIndex() == SIDE + 1;\n } else {\n return mov.fromIndex() - mov.toIndex() == SIDE && to == EMPTY;\n }\n } else if (from == WHITE) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.toIndex() - mov.fromIndex() == SIDE\n || mov.toIndex() - mov.fromIndex() == SIDE + 1\n || mov.toIndex() - mov.fromIndex() == SIDE - 1;\n } else {\n return mov.toIndex() - mov.fromIndex() == SIDE && to == EMPTY;\n }\n }\n return false;\n }", "public boolean isValidMove(Move move) {\n if (this.gameStarted && isSpaceFree(move) && isPlayerTurn(move)) {\n return true; \n }\n return false; \n }", "boolean isValidMove(int move)\n\t{\n\t\treturn move >= 0 && move <= state.size() - 1 && state.get(move) == 0;\n\t}", "public boolean canMove() {\n\t\tArrayList<Location> loc = getValid(getLocation());\n\t\tif (loc.isEmpty()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tpath.add(getLocation());\n\t\t\tif (loc.size() >= 2) {\n\t\t\t\tcrossLocation.push(path);\n\t\t\t\tpath = new ArrayList<Location>();\n\t\t\t\tnext = betterDir(loc);\n\t\t\t}\n\t\t\tnext = loc.get(0);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean isMoveValid(int srcRow, int srcCol, int destRow, int destCol) {\n\t\treturn false;\n\t}", "public abstract boolean validMove(ChessBoard board, Square from, Square to);", "private boolean isLegalMove(String move) {\n\t\tString[] moveParts = move.split(\";\");\n\n\t\tint fromRow = Integer.parseInt(moveParts[0].charAt(0) + \"\");\n\t\tint fromCol = Integer.parseInt(moveParts[0].charAt(1) + \"\");\n\n\t\tint toRow = Integer.parseInt(moveParts[1].charAt(0) + \"\");\n\t\tint toCol = Integer.parseInt(moveParts[1].charAt(1) + \"\");\n\n\t\tint minRow = Math.min(fromRow, toRow);\n\t\tint minCol = Math.min(fromCol, toCol);\n\n\t\tint maxRow = Math.max(fromRow, toRow);\n\t\tint maxCol = Math.max(fromCol, toCol);\n\n\t\tint piece = board[fromRow][fromCol];//Integer.parseInt(moveParts[2]);\n\t\tint pieceType = Math.abs(piece);\n\t\tint team = Math.round(Math.signum(piece));\n\n\t\tif (team == Math.round(Math.signum(board[toRow][toCol]))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (toRow < 0 || toRow > 7 && toCol < 0 && toCol > 7) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (team > 0) { // WHITE\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isWhiteCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else { //BLACK\n\t\t\tint enpassantBackup = enpassantCol;\n\t\t\tint[][] boardBackup = deepCopyBoard();\n\t\t\tapplyConvertedMove(move);\n\t\t\tboolean check = isBlackCheck();\n\t\t\tboard = boardBackup;\n\t\t\tenpassantCol = enpassantBackup;\n\t\t\tif (check) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif (pieceType == 1) { //Pawn\n\t\t\treturn ((board[toRow][toCol] != 0 && toRow == fromRow + team && (toCol == fromCol + 1 || toCol == fromCol - 1)) || (toCol == fromCol && board[toRow][toCol] == 0 && ((toRow == fromRow + team) || (((fromRow == 1 && team == 1) || (fromRow == 6 && team == -1)) ? toRow == fromRow + 2*team && board[fromRow + team][fromCol] == 0 : false))));\n\t\t} else if (pieceType == 2) { //Rook\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (pieceType == 3) { //Knight\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy == 5;\n\t\t} else if (pieceType == 4) { //Bishop\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\tint m = dy/dx;\n\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && board[i][startCol + m*(i - minRow)] != 7) return false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (pieceType == 5) { //Queen\n\t\t\tif (toRow == fromRow) {\n\t\t\t\tfor (int i = minCol + 1; i < maxCol; i++) {\n\t\t\t\t\tif (board[toRow][i] != 0 && Math.abs(board[toRow][i]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else if (toCol == fromCol) {\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][toCol] != 0 && Math.abs(board[i][toCol]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tint dx = toRow - fromRow;\n\t\t\t\tint dy = toCol - fromCol;\n\t\t\t\tif (dy != dx && dy != -dx) return false;\n\t\t\t\tint m = dy/dx;\n\t\t\t\tint startCol = (m < 0 ? maxCol : minCol);\n\t\t\t\tfor (int i = minRow + 1; i < maxRow; i++) {\n\t\t\t\t\tif (board[i][startCol + m*(i - minRow)] != 0 && Math.abs(board[i][startCol + m*(i - minRow)]) != 7) return false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else if (pieceType == 6) { //King\n\t\t\tint dx = toRow - fromRow;\n\t\t\tint dy = toCol - fromCol;\n\t\t\treturn dx*dx + dy*dy <= 2;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isValidMove(Point orig, Point dest){ \r\n Color playerColor = model.getCurrentPlayer().getColor();\r\n // Validate all point between board limits\r\n if(!isValidPosition(orig) || !isValidPosition(dest)) return false;\r\n // Check for continue move starting piece\r\n if(model.getCheckPiece() != null && !model.getCheckPiece().equals(orig)) return false;\r\n // Validate origin piece to player color\r\n if((isRed(playerColor) && !isRed(orig)) || (isBlack(playerColor) && !isBlack(orig))) return false;\r\n // Only can move to empty Black space\r\n if(!isEmpty(dest)) return false;\r\n // If current player have obligatory eats, then need to eat\r\n if(obligatoryEats(playerColor) && !moveEats(orig,dest)) return false;\r\n // Check move direction and length\r\n int moveDirection = orig.getFirst() - dest.getFirst(); // Direction in Rows\r\n int rLength = Math.abs(moveDirection); // Length in Rows\r\n int cLength = Math.abs(orig.getSecond() - dest.getSecond()); // Length in Columns\r\n int mLength;\r\n // Only acepts diagonal movements in 1 or 2 places (1 normal move, 2 eats move)\r\n if ((rLength == 1 && cLength == 1) || (rLength == 2 && cLength == 2)){\r\n mLength = rLength;\r\n } else {\r\n return false;\r\n }\r\n // 1 Place movement\r\n if (mLength == 1){ \r\n if (isRed(orig) && !isQueen(orig) && moveDirection > 0) return true;\r\n if (isBlack(orig) && !isQueen(orig) && moveDirection < 0) return true;\r\n if ((isRed(orig) && isQueen(orig)) || (isBlack(orig) && isQueen(orig))) return true;\r\n }\r\n // 2 Places movement need checks if eats rivals\r\n if (mLength == 2){\r\n // Compute mid point\r\n Point midPoint = getMidPoint(orig, dest);\r\n // Check move\r\n if ((isRed(orig) && isBlack(midPoint)) || (isBlack(orig) && isRed(midPoint))){\r\n if (isRed(orig) && !isQueen(orig) && moveDirection > 0) return true;\r\n if (isBlack(orig) && !isQueen(orig) && moveDirection < 0) return true;\r\n if ((isRed(orig) && isQueen(orig)) || (isBlack(orig) && isQueen(orig))) return true;\r\n }\r\n }\r\n return false;\r\n }", "@Override\n public boolean isValidMove(Move move) {\n if (board[move.oldRow][move.oldColumn].isValidMove(move, board))\n return true;\n //player will not be in check\n //move will get player out of check if they are in check\n return false;\n }", "private boolean canMove() {\n return !(bestMove[0].getX() == bestMove[1].getX() && bestMove[0].getY() == bestMove[1].getY());\n }", "public boolean isValidMove(Card card)\n {\n return false;\n }", "boolean canMove();", "private boolean validMove(int dir) {\n return !(dir == UPKEY && direction == DOWNKEY || dir == DOWNKEY && direction == UPKEY || dir == LEFTKEY && direction == RIGHTKEY || dir == RIGHTKEY && direction == LEFTKEY);\n }", "public boolean checkAndMove() {\r\n\r\n\t\tif(position == 0)\r\n\t\t\tdirection = true;\r\n\r\n\t\tguardMove();\r\n\r\n\t\tif((position == (guardRoute.length - 1)) && direction) {\r\n\t\t\tposition = 0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\tif(direction)\r\n\t\t\tposition++;\r\n\t\telse\r\n\t\t\tposition--;\r\n\r\n\t\treturn false;\r\n\t}", "public boolean validMove(Player player, Movement move) {\n\n if (!player.hasPieceAt(move.oldP) || player.hasPieceAt(move.newP))\n return false;\n else if (sharedBoard.isBlocked(move) && !board.board[move.oldP.x][move.oldP.y].canJump())\n return false;\n else if (!sharedBoard.isPositionEmpty(move.newP))\n move = new Capture(move);\n\n return board.board[move.oldP.x][move.oldP.y].validMove(move);\n }", "public boolean isMoveLegal() {\n if (!getGame().getBoard().contains(getFinalCoords())) {\n return false;\n }\n\n // for aero units move must use up all their velocity\n if (getEntity() instanceof Aero) {\n Aero a = (Aero) getEntity();\n if (getLastStep() == null) {\n if ((a.getCurrentVelocity() > 0) && !getGame().useVectorMove()) {\n return false;\n }\n } else {\n if ((getLastStep().getVelocityLeft() > 0) && !getGame().useVectorMove()\n && !(getLastStep().getType() == MovePath.MoveStepType.FLEE\n || getLastStep().getType() == MovePath.MoveStepType.EJECT)) {\n return false;\n }\n }\n }\n\n if (getLastStep() == null) {\n return true;\n }\n\n if (getLastStep().getType() == MoveStepType.CHARGE) {\n return getSecondLastStep().isLegal();\n }\n if (getLastStep().getType() == MoveStepType.RAM) {\n return getSecondLastStep().isLegal();\n }\n return getLastStep().isLegal();\n }", "public boolean isLegalMove() {\n return iterator().hasNext();\n }", "public boolean isValidMove(CardStack stack)\n {\n return false;\n }", "boolean isLegal(String move);", "private static boolean isMoveValid( int x, int y ){\n int path[] = new int[8];\n for( int distance = 1; distance < 8; distance ++ ){\n checkPath( path, 0, x + distance, y, distance );\n checkPath( path, 1, x + distance, y + distance, distance );\n checkPath( path, 2, x, y + distance, distance );\n checkPath( path, 3, x - distance, y, distance );\n checkPath( path, 4, x - distance, y - distance, distance );\n checkPath( path, 5, x, y - distance, distance );\n checkPath( path, 6, x + distance, y - distance, distance );\n checkPath( path, 7, x - distance, y + distance, distance );\n }\n for( int i = 0; i < 8; i++ ){\n if( path[ i ] > 1 ){\n return true;\n }\n }\n return false;\n }", "public boolean validMove(int x, int y){\n if(!super.validMove(x, y)){\n return false;\n }\n if(((Math.abs(x - this.x()) == 2) && (Math.abs(y - this.y()) == 1))\n || ((Math.abs(x - this.x()) == 1) && (Math.abs(y - this.y()) == 2))){\n return true;\n }else{\n return false;\n }\n }", "public boolean isValidMove(Move move) {\n return (abs(move.getStart()[0] - move.getEnd()[0]) == abs(move.getEnd()[1] - move.getStart()[1]))\n ||\n (move.getStart()[0] == move.getEnd()[0] && move.getStart()[1] != move.getEnd()[1])\n || (move.getStart()[1] == move.getEnd()[1] && move.getStart()[0] != move.getEnd()[0]);\n }", "public boolean isValidMove(ArrayList<Cell> path) {\t\t\t\t\r\n\t\treturn value != -1 && !inPath(path);\r\n\t}", "private boolean anyMove (int x,int y, OthelloPiece colour){\n boolean valid = false;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_3,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_2,VALID_MOVE_1,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_2,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_3,colour)) valid=true;\n if(move(x,y,VALID_MOVE_1,VALID_MOVE_1,colour)) valid=true;\n return (valid);\n }", "private boolean validMove(GameWorld world, Character nextKey) {\n if (nextKey.equals('Q') || nextKey.equals('q') || nextKey.equals(':')) {\n return true;\n } else if (nextKey.equals('W') || nextKey.equals('w')) {\n if (world.world[world.avatarPosition.x]\n [world.avatarPosition.y + 1].equals(Tileset.WALL)) {\n return false;\n }\n } else if (nextKey.equals('S') || nextKey.equals('s')) {\n if (world.world[world.avatarPosition.x]\n [world.avatarPosition.y - 1].equals(Tileset.WALL)) {\n return false;\n }\n } else if (nextKey.equals('D') || nextKey.equals('d')) {\n if (world.world[world.avatarPosition.x + 1]\n [world.avatarPosition.y].equals(Tileset.WALL)) {\n return false;\n }\n } else if (nextKey.equals('A') || nextKey.equals('a')) {\n if (world.world[world.avatarPosition.x - 1]\n [world.avatarPosition.y].equals(Tileset.WALL)) {\n return false;\n }\n } else {\n return true;\n }\n return true;\n }", "private boolean isLegal(String move) {\n if (!move.matches(\"[0-9]*,[0-9]*\")) {\n return false;\n }\n\n int column = Integer.parseInt(move.substring(2)) - 1;\n int row = Integer.parseInt(move.substring(0, 1)) - 1;\n\n if (beyondBoard(column, row)) {\n return false;\n }\n\n if (isOccupied(column, row)) {\n return false;\n }\n\n return true;\n }", "public boolean isValidMove(int id) {\n\t\t\n\t\tint position = findPosition(id);\n\t\t\n\t\tboolean valid = false;\n\t\t\n\t\tvalid = valid || ((blankTilePos - 1) == position);\n\t\tvalid = valid || ((blankTilePos + 1) == position);\n\t\tvalid = valid || ((blankTilePos - dimension) == position);\n\t\tvalid = valid || ((blankTilePos + dimension) == position);\n\t\t\n\t\treturn valid;\n\t}", "boolean makeMove();", "public boolean canMove() {\n ArrayList<Location> valid = canMoveInit();\n if (valid == null || valid.isEmpty()) {\n return false;\n }\n ArrayList<Location> lastCross = crossLocation.peek();\n for (Location loc : valid) {\n Actor actor = (Actor) getGrid().get(loc);\n if (actor instanceof Rock && actor.getColor().equals(Color.RED)) {\n next = loc;\n isEnd = true;\n return false;\n }\n if (!lastCross.contains(loc)) {\n lastCross.add(loc);\n next = loc;\n ArrayList<Location> nextCross = new ArrayList<>();\n nextCross.add(next);\n nextCross.add(last);\n crossLocation.push(nextCross);\n return probabilityAdd();\n }\n }\n next = lastCross.get(1);\n crossLocation.pop();\n return probabilitySub();\n }", "@Override\n\tpublic boolean isLegalMove(Square newPosition) {\n\t\treturn false;\n\t}", "public boolean isValidMove(MapTile[][] scanMapTiles, String direction) {\n\tint centerIndex = (scanMap.getEdgeSize() - 1) / 2;\n\tint x = centerIndex, y = centerIndex;\n\n\tswitch (direction) {\n\tcase \"N\":\n\t\ty = y - 1;\n\t\tbreak;\n\tcase \"S\":\n\t\ty = y + 1;\n\t\tbreak;\n\tcase \"E\":\n\t\tx = x + 1;\n\t\tbreak;\n\tcase \"W\":\n\t\tx = x - 1;\n\t\tbreak;\n\t}\n\n\tif (scanMapTiles[x][y].getTerrain() == Terrain.SAND || scanMapTiles[x][y].getTerrain() == Terrain.NONE\n\t\t\t|| scanMapTiles[x][y].getHasRover() == true)\n\t\treturn false;\n\n\treturn true;\n}", "boolean isValidMove(int col);", "public boolean canMove() {\r\n return (state == State.VULNERABLE || state == State.INVULNERABLE);\r\n\r\n }", "@Override\n\tpublic boolean isMoveValid(int row, int col) {\n\t\tif (isValidSide(row, col)) {\n\t\t\taddMissileResult(row, col);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean validMove(Player playerToMakeMove, Move move) {\n if(playerToMakeMove.equals(whosTurn())) {\n // the player can make the move!\n // is the move valid\n char atMoveLocation = board.getCharAtLocation(move.getRow(), move.getCol());\n return atMoveLocation == '.';\n } else {\n return false;\n }\n }", "public static boolean isValidMove(Robot robot) {\r\n\t\t\r\n\t\tint x = robot.getX();\r\n\t\tint y = robot.getY();\r\n\t\t\r\n\t\t//Make sure the next move won't out\r\n\t\t//of bound to the east\r\n\t\tif(robot.facingEast()) {\r\n\t\t\tif(x + 1 < 10) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Make sure the next move won't hit\r\n\t\t//the wall to the west\r\n\t\tif(robot.facingWest()) {\r\n\t\t\tif(x - 1 > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//Make sure the next move won't hit\r\n\t\t//the wall to the south\r\n\t\tif(robot.facingSouth()) {\r\n\t\t\tif(y - 1 > 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\t\r\n\t\t//Make sure the next move won't out\r\n\t\t//of the bound to the north\r\n\t\tif(robot.facingNorth()) {\r\n\t\t\tif(y + 1 < 10) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn false;\r\n\t}", "private boolean hasPossibleMove()\n {\n for(int i=0; i<FieldSize; ++i)\n {\n for(int j=1; j<FieldSize; ++j)\n {\n if(field[i][j] == field[i][j-1])\n return true;\n }\n }\n for(int j=0; j<FieldSize; ++j)\n {\n for(int i=1; i<FieldSize; ++i)\n {\n if(field[i][j] == field[i-1][j])\n return true;\n }\n }\n return false;\n }", "public boolean canMove()\n\t{\n\t\tif(delayMove>compareSpeed())\n\t\t{\n\t\t\tdelayMove=0;\n\t\t\treturn true;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isValidMove(Coordinates coordinates) {\n if (grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'X' &&\n grid[coordinates.getRow()][coordinates.getColumn()].getSymbol() != 'O') {\n return true;\n }\n\n return false;\n }", "private boolean isMove() {\n return this.getMoves().size() != 0;\n }", "private boolean isValidMove(int position) {\n\t\tif( !(position >= 0) || !(position <= 8) ) return false;\n\n\t\treturn gameBoard[position] == 0;\n\t}", "public abstract boolean canMove();", "boolean isLegal(Move move) {\r\n return isLegal(move.from(), move.to());\r\n }", "public abstract boolean canMove(int originX, int originY, int destX, int destY);", "private boolean isValidMove(int i, int j) {\n\t\tint rowDelta = Math.abs(i - row);\n\t\tint colDelta = Math.abs(j - col);\n\n\t\tif ((rowDelta == 1) && (colDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tif ((colDelta == 1) && (rowDelta == 0)) {\n\t\t\tinvalidMoveLbl.setVisible(false);\n\t\t\treturn true;\n\t\t}\n\t\tinvalidMoveLbl.setVisible(true);\n\t\treturn false;\n\t}", "boolean doMove();", "public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }", "private static boolean canMove() {\n return GameManager.getCurrentTurn();\r\n }", "public MoveResult canMovePiece(Alignment player, Coordinate from, Coordinate to);", "private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tPiece prevP = pieceAt(xi, yi);\n\t\tPiece nextP = pieceAt(xf, yf);\n\n\t\tif (prevP.isKing()) {\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && ((yf - yi) == 1 || (yi - yf) == 1)) \n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tif (prevP.isFire()) \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yf - yi) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && !nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yf - yi) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi+1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else \n\t\t{\n\t\t\tif (((xf - xi) == 1 || (xi - xf) == 1) && (yi - yf) == 1) \n\t\t\t{\n\t\t\t\tif (nextP != null && nextP.isFire()) \n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\telse if ((xf - xi) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi+1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\telse if ((xi - xf) == 2 && (yi - yf) == 2) \n\t\t\t{\n\t\t\t\tPiece pBetween = pieceAt(xi-1, yi-1);\n\t\t\t\tif (pBetween != null && prevP.side() != pBetween.side()) \n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} \n\t\t\telse \n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean canMove() {\n return (Math.abs(getDist())>=50);\n }", "public boolean isValidMove(int x, int y) {\n\n\t\t//A move is invalid\n\t\t// 1 - the cell that someone is trying to move to, is not empty\n\t\t// 2 - the co-ordinate of the cell is out of bounds of our double board array\n\n\t\t// First check if move is valid\n\t\tif (!isCellEmpty(x,y)) {\n\n\t\t\treturn false; // invalid move case 1\n\n\t\t} else if (!Utility.isWithinRange(x,0,2) || !Utility.isWithinRange(y,0,2)) {\n\n\t\t\treturn false; // invalid move case 2 \n\t\t\t\n\t\t}\n\n\t\treturn true;\n\n\t}", "@Override\r\n\tpublic boolean isMoveValid(Game g, Location from, Location to){\n\t\tColor toColor = g.getColor(to);\r\n\t\tColor fromColor = g.getColor(from);\r\n\t\tswitch(toColor){\r\n\t\tcase RED:\r\n\t\t\tif (fromColor == Color.BLACK){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase BLACK:\r\n\t\t\tif (fromColor == Color.RED){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t//cannot make a movement if the from location is empty\r\n\t\t//cannot move if the piece belongs to the opponent\r\n\t\tswitch(g.getPlayerInTurn()){\r\n\t\tcase RED:\r\n\t\t\tif(fromColor != Color.RED){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase BLACK:\r\n\t\t\tif(fromColor != Color.BLACK){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t//just return something is wrong anyways...\r\n\t\tdefault:\r\n\t\t\treturn false;\t\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean isValidMove(Move move) {\n return getPlayerFromBoard(move) == Player.None;\n }", "public boolean canMove()\n {\n return canMove;\n }", "@Test\n public void isValidMoveTest() {\n\n //get the board of the enemy with the method getBoard() from enemyGameBoard\n board = enemyGameBoard.getBoard();\n\n //Try two times for a existing point on the board\n assertTrue(enemyGameBoard.isValidMove(1,1));\n assertTrue(enemyGameBoard.isValidMove(2,4));\n\n //Try two times for a non-existing point on the board\n assertFalse(enemyGameBoard.isValidMove(15,5)); // x-value outside the board range\n assertFalse(enemyGameBoard.isValidMove(5,11)); // y-value outside the board range\n\n //hit a water field\n enemyGameBoard.makeMove(2, 3, false);\n assertTrue(board[2][3].equals(EnemyGameBoard.WATER_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(2,3));\n\n //hit a ship field\n enemyGameBoard.makeMove(5, 4, true);\n assertTrue(board[5][4].equals(EnemyGameBoard.SHIP_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(5,4));\n }", "public boolean isValidMove(String move){\n String[] art = move.split(\" \");\n if(!art[0].equals(\"mark\")){\n return false;\n }\n int x,y;\n try {\n x=Integer.parseInt(art[1]);\n y=Integer.parseInt(art[2]);\n if(0<x && x<17 && y>0 && 17>y){\n if(board.getMark(x-1,y-1) == '-') {\n //pozitie valida si libera\n return true;\n }\n else {\n //pozitie ocupata\n return false;\n }\n }\n }catch (Exception e){\n //cazul in care nu se trimit numere ca parametri\n return false;\n }\n //daca pozitia este invalida\n return false;\n }", "public boolean isValidMove(Move m) {\n // Ensure from and to make sense\n if (board[m.from] != currentPlayer || board[m.to] != 0)\n return false;\n\n // NOTE: Checking validity in this way is inefficient\n\n // Get current available moves\n ArrayList<Move> moves = new ArrayList<Move>();\n getMoves(moves);\n\n // Find the move among the set of available moves\n boolean found = moves.contains(m);\n\n return found;\n }", "boolean canMove(Tile t);", "boolean isLegal(String move) {\n int[][] theStatusBoard;\n if (_playerOnMove == ORANGE) {\n theStatusBoard = _orangeStatusBoard;\n } else {\n theStatusBoard = _violetStatusBoard;\n }\n Pieces thispiece = new Pieces();\n String piecename = move.substring(0, 1);\n int col = getCoordinate(move.substring(1, 2));\n int row = getCoordinate(move.substring(2, 3));\n int ori = Integer.parseInt(move.substring(3, 4));\n int[][] initialPositions = thispiece.getInitialPositions(piecename);\n int[][] finalPositions = thispiece.processPositions(initialPositions, ori);\n int depth = finalPositions.length;\n int length = finalPositions[0].length;\n\n if (row + depth - 1 > 13 || col + length - 1 > 13) {\n System.out.println(\"Your move makes your piece out of the board, try again!\");\n return false;\n }\n\n boolean has1 = false;\n boolean no2 = true;\n\n int i, j;\n for (i = 0; i < depth; i++) {\n for (j = 0; j < length; j++) {\n if (finalPositions[i][j] == 1) {\n if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 1) {\n has1 = true;\n } else if (theStatusBoard[15 - (row + depth - i)][col + j + 1] == 2) {\n return false;\n }\n }\n }\n }\n System.out.println(\"has1: \" + has1);\n return has1;\n }", "boolean isValid(int xPos, int yPos, int destX, int destY) {\r\n\t\tboolean valid = false;\r\n\t\t\r\n\t\t//Moves White\r\n\t\tif(this.color == \"Weiß\"){\r\n\t\t//Moving 2 Tiles\r\n\t\tif (firstMove == true && destY - yPos == -2 && destX == xPos) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving 1 Tile\r\n\t\tif (destX == xPos && destY - yPos == -1) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving Diagonal if enemy is there\r\n\t\tif ((destX == xPos + 1 || destX == xPos-1) && destY == yPos -1){\r\n\t\t\tvalid = isValidLoop(destX, destY, valid);\r\n\t\t}\r\n\t\treturn valid;\r\n\t\t} \r\n\t\t\r\n\t\t//Moves Black\r\n\t\telse {\r\n\t\t//Moving 2 Tiles\r\n\t\tif (firstMove == true && destY - yPos == 2 && destX == xPos) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving 1 Tile\r\n\t\tif (destX == xPos && destY - yPos == 1) {\r\n\t\t\tvalid = true;\r\n\t\t\tthis.firstMove = false;\r\n\t\t}\r\n\t\t//Moving Diagonal\r\n\t\tif ((destX == xPos + 1 || destX == xPos-1) && destY == yPos +1){\r\n\t\t\tvalid = isValidLoop(destX, destY,valid);\r\n\t\t}\r\n\t\t}\r\n\t\treturn valid;\r\n\t}", "public boolean isMove(int dir){\n\t if(0> dir && dir > 3){\n\t\tSystem.out.println(\"direction is failed\");\t \n\t\treturn false;\n\t }\n\t if(dir == 0 ){\n\t\tif(0<= (this.y-1) && (this.y-1)<=5)\n\t\t return true;\n\t }else if(dir == 1){\n\t\tif(0<= (this.y+1) && (this.y+1)<=5)\n\t\t return true;\n\t }else if(dir == 2){\n\t\tif(0<= (this.x+1) && (this.x+1)<=5)\n\t\t return true;\n\t }else if(dir == 3){\n\t\tif(0<= (this.x-1) && (this.x-1)<=5)\n\t\t return true;\n\t }\n\t return false;\n\t}", "private boolean validNormalMove(int newX, int newY){\n\n // checks if the new position is out of range or not and if it is then it is occupied or not\n if (!getBoard().outOfRange(newX, newY) && !getBoard().occupied(newX, newY))\n return true;\n // false if in range, occupied , but piece of the same color\n else if(!getBoard().outOfRange(newX, newY) && getBoard().occupied(newX, newY) && (getBoard().getPiece(newX, newY).getColour() == this.getColour()))\n return false ;\n\n // true if in range, occupied and in the piece of the same color\n // note that in general the Move object will be set to false but after the if statement the occupied will be set to true\n else if(!getBoard().outOfRange(newX, newY) && getBoard().occupied(newX, newY)\n && (getBoard().getPiece(newX, newY).getColour() != this.getColour()))\n return true ;\n\n else\n return false;\n }", "@Override\r\n public boolean canMove() {\r\n Grid<Actor> gr = getGrid();\r\n int dirs[] = {\r\n Location.AHEAD, Location.HALF_CIRCLE, Location.LEFT,\r\n Location.RIGHT };\r\n // 当终点在周围时,不能移动且isEnd应当为true\r\n for (int i = 0; i < dirs.length; i++) {\r\n Location tarLoc = getLocation().getAdjacentLocation(dirs[i]);\r\n if (gr.isValid(tarLoc) && gr.get(tarLoc) != null) {\r\n // Color直接用==计算竟然不可行(真是哔了dog...\r\n if (gr.get(tarLoc) instanceof Rock\r\n && gr.get(tarLoc).getColor().equals(Color.RED)) {\r\n isEnd = true;\r\n return false;\r\n }\r\n }\r\n }\r\n ArrayList<Location> nextLocs = getValid(getLocation());\r\n // 当附近没有可以移动的位置时,不能移动\r\n if (nextLocs.size() == 0) {\r\n return false;\r\n }\r\n // 当可以移动的位置>1时,说明存在一个节点,这个节点应当被新建一个arraylist入栈\r\n if (nextLocs.size() > 1) {\r\n ArrayList<Location> newStackElem = new ArrayList<Location>();\r\n newStackElem.add(getLocation());\r\n crossLocation.push(newStackElem);\r\n }\r\n // 有可以移动的位置时,向概率最高的方向移动\r\n int maxProbLoc = 0;\r\n // 由于nextLocs不一定有4个location,所以只好循环判断取最大值\r\n for (int i = 0; i < nextLocs.size(); i++) {\r\n Location loc = nextLocs.get(i);\r\n int dirNum = getLocation().getDirectionToward(loc) / 90;\r\n if (probablyDir[dirNum] > probablyDir[maxProbLoc]) {\r\n maxProbLoc = i;\r\n }\r\n }\r\n next = nextLocs.get(maxProbLoc);\r\n return true;\r\n }", "public static boolean validMove(String move, Person p, Board building )\n {\n Room[][] map = building.getMap();\n move = move.toLowerCase().trim();\n switch (move) {\n case \"n\":\n if (p.getxLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()-1][p.getyLoc()].getName());\n map[p.getxLoc()-1][p.getyLoc()].enterRoom(p,building);\n return true;\n }\n else\n {\n return false;\n }\n case \"e\":\n if (p.getyLoc()< map[p.getyLoc()].length -1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc() + 1].getName());\n map[p.getxLoc()][p.getyLoc() + 1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"s\":\n if (p.getxLoc() < map.length - 1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()+1][p.getyLoc()].getName());\n map[p.getxLoc()+1][p.getyLoc()].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"w\":\n if (p.getyLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc()-1].getName());\n map[p.getxLoc()][p.getyLoc()-1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n default:\n break;\n\n }\n return true;\n }", "private boolean moveCheck(Piece p, List<Move> m, int fC, int fR, int tC, int tR) {\n if (null == p) {\n // Legal move!\n m.add(new Move(fC, fR, tC, tR));\n // Continue checking for moves.\n return false;\n }\n if (p.owner != whoseTurn) {\n // Enemy sighted!\n // Legal move!\n m.add(new Move(fC, fR, tC, tR));\n // No more moves!\n }\n return true;\n }", "private boolean makeMove(Move move) {\n\n // Moving piece from Cell\n Piece sourcePiece = move.getStart().getCurrentPiece();\n\n // Valid Move? Calling Piece actual implementation\n if (!sourcePiece.canMove(board, move.getStart(), move.getEnd())) {\n System.out.println(\"Invalid Move, sourcePiece is \" + sourcePiece);\n }\n\n // Killed other player Piece?\n Piece destPiece = move.getEnd().getCurrentPiece();\n if (destPiece != null) {\n destPiece.setKilled(true);\n move.setPieceKilled(destPiece);\n }\n\n // castling?\n if (sourcePiece instanceof King\n && sourcePiece.isCastlingMove()) {\n move.setCastlingMove(true);\n }\n\n // Store the Move\n movesPlayed.add(move);\n\n // If move is VALID, set piece=null at start cell and new piece at dest cell\n move.getEnd().setCurrentPiece(sourcePiece);\n move.getStart().setCurrentPiece(null);\n\n // Game Win or not\n if (destPiece instanceof King) {\n if (move.getPlayedBy().isWhiteSide()) {\n this.setStatus(GameStatus.WHITE_WIN);\n } else {\n this.setStatus(GameStatus.BLACK_WIN);\n }\n\n }\n\n return true;\n }", "public boolean allowMove(Point p, int pos);", "@Override\n\tpublic boolean validMove(int xEnd, int yEnd, board b){\n\t\t//try to land one same color piece\n\t\tif(b.occupied(xEnd, yEnd)&&b.getPiece(xEnd, yEnd).getColor()==color){\n\t\t\treturn false;\n\t\t}\n\t\tif(v==0){\n\t\t\tif(!this.guard(xEnd, yEnd, b)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//normal move\n\t\tif((xEnd==x-1&&yEnd==y-1)||(xEnd==x-1&&yEnd==y)||(xEnd==x-1&&yEnd==y+1)||(xEnd==x&&yEnd==y-1)||(xEnd==x&&yEnd==y+1)||(xEnd==x+1&&yEnd==y-1)||(xEnd==x+1&&yEnd==y)||(xEnd==x+1&&yEnd==y+1)){\n\t\t\tif(b.occupied(xEnd, yEnd)){\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tb.recycle(xEnd, yEnd);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t//set the enpass flage back\n\t\t\t\tb.setFlag(color, 100, 100);\n\t\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\t\tb.update();\n\t\t\t\tc=0;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else if((xEnd==x-2&&yEnd==y)){ //castling\n\t\t\tpiece r = b.getPiece(0, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=3;i>0;i--){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(3,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else if((xEnd==x+2&&yEnd==y)){\n\t\t\tpiece r = b.getPiece(7, y);\n\t\t\tif(r==null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(r.getC()==0||r.getColor()!=color||r.getType()!= type.ROOK||c==0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfor(int i=5;i<=6;i++){\n\t\t\t\tif(b.occupied(i, y)){\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.setPosition(xEnd, yEnd);\n\t\t\tr.setPosition(5,y);\n\t\t\tc=0;\n\t\t\tr.setC(0);\n\t\t\tb.setFlag(color, 100, 100);\n\t\t\tb.update();\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean move() {\n\t\tint nextDirection;\n\t\tint pacmanX = parent.getPacManX();\n\t\tint pacmanY = parent.getPacManY();\n\t\t\n\t\tint[] directionPriority = new int[4];\n\t\t/** The direction is added to the priority in order to achieve it once the move is chosen */\n\t\tdirectionPriority[0]=(pacmanX-pixelLocationX)*(10)*state+GameCharacter.RIGHT;\n\t\tdirectionPriority[1]=((pacmanX-pixelLocationX)*(-10)*state+GameCharacter.LEFT);\n\t\tdirectionPriority[2]=(pacmanY-pixelLocationY)*(10)*state+GameCharacter.DOWN;\n\t\tdirectionPriority[3]=((pacmanY-pixelLocationY)*(-10)*state+GameCharacter.UP);\n\t\tArrays.sort(directionPriority);\n\t\t\n\t\tint i=3;\n\t\t\n\t\tdo {\n\t\t\tnextDirection = directionPriority[i]%10;\n\t\t\tif (nextDirection < 0) {\n\t\t\t\tnextDirection += 10;\n\t\t\t}\n\t\t\tif(isLegalMove(nextDirection) && (Math.abs(nextDirection-currentDirection) != 2) || i==0) {\n\t\t\t\tsetDirection(nextDirection);\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti--;\n\t\t}\n\t\twhile (i>=0);\n\t\treturn super.move();\n\t}", "public boolean checkMove(int move)\n\t{\n\t\tif (columns[move] < 6)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}", "public abstract boolean attemptMove(Player currentPlayerObj, Coordinate move);", "boolean checkMove(int row, int col, int dir) {\r\n\t\tint dimRow = board.getDimRow();\r\n\t\tint dimCol = board.getDimCol();\r\n\r\n\t\tif (row == 0 && dir == Ship.UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == 0 && dir == Ship.LEFT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == 0 && dir == Ship.RIGHT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == 0 && dir == Ship.LEFT) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == 0 && dir == Ship.LEFT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == 0 && dir == Ship.LEFT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == dimRow - 1 && dir == Ship.DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == dimRow - 1 && dir == Ship.LEFT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (row == dimRow - 1 && dir == Ship.RIGHT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (col == dimCol - 1 && dir == Ship.RIGHT) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == dimCol - 1 && dir == Ship.RIGHT_UP) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (col == dimCol - 1 && dir == Ship.RIGHT_DOWN) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\r\n\t}", "boolean isMoveFinished(int tick);", "protected boolean validMove(TetrisPiece piece, int rot, int gridRow, int gridCol) {\n\t\tif(detectOutOfBounds(piece, rot, gridRow, gridCol)) {\n\t\t\treturn false;\n\t\t}\n\t\tif(detectCollision(piece, rot, gridRow, gridCol)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true; \n\t}", "public boolean isValidMove(int toRow,int toCol){\n //Stayed in the same spot\n if(myRow == toRow && myCol == toCol){\n return false;\n }\n //if the xy coordinate we are moving to is outside the board\n if(toRow < 0 || toRow > 11 || toCol < 0 || toCol > 11){\n return false;\n }\n return true;\n }", "public final boolean isMoving() {\r\n\t\treturn moveStart > 0;\r\n\t}", "public boolean move();", "@Override\r\n\tpublic boolean canMove() {\r\n\t\treturn false;\r\n\t}", "private boolean isMoveValid (int rows, int columns) {\n return rows < this.rows && columns < this.columns && rows >= 0 && columns >= 0;\n }", "public boolean hasValidMove(HantoCoordinateImpl src, HantoCoordinateImpl dest, Board board)\n\t{\n\t\treturn moveStrategy.isValidFor(src, dest, board);\n\t}", "@Override\n public boolean validateMove(int currX, int currY, int newX, int newY) {\n if(!onBoard(newX, newY)){\n return false;\n }\n\n //must move linearly\n if(newX == currX && (newY == (currY + 1))){\n return true;\n }\n return false;\n }", "public boolean isValidMove(Move move, IChessPiece[][] board) {\n\t\tif(!super.isValidMove(move, board)){\n\t\t\treturn false;\n\t\t}\n\t\tif(Math.abs(move.fromRow-move.toRow)>1 || Math.abs(move.fromColumn-move.toColumn)>1){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean validMove(TileEnum from, TileEnum to) {\n if (!isMyTurn() || hasMoved()\n || (getMyPlayerNumber() == 1 && TileStateEnum.PLAYERONE != getTileState(from))\n || (getMyPlayerNumber() == 2 && TileStateEnum.PLAYERTWO != getTileState(from)))\n return false;\n\n List<TileEnum> fromNeighbors = getNeighborsOf(from);\n for (TileEnum otherTile : fromNeighbors) {\n if (to.equals(otherTile)) return TileStateEnum.FREE.equals(getTileState(otherTile));\n\n List<TileEnum> otherNeighbors = getNeighborsOf(otherTile);\n for (TileEnum anotherTile : otherNeighbors) {\n if (to.equals(anotherTile)) return TileStateEnum.FREE.equals(getTileState(anotherTile));\n }\n }\n return false;\n }", "private boolean validateMove(Move m, int v, Graph g, Board B) {\n\n int final_dest_R = 0, final_dest_C = 0;\n\n final_dest_R = (m.getY() + (v / B.width));\n final_dest_C = (m.getX() + (v % B.width));\n\n\n if (final_dest_R < B.height && final_dest_R >= 0\n && final_dest_C < B.width && final_dest_C >= 0) {\n\n if (!B.a.get(final_dest_R).get(final_dest_C).Reachable) {\n return false;\n }\n\n return true;\n }\n\n\n return false;\n }", "public boolean move(Direction direction) throws InvalidPuzzle {\n\t\tint[] coordinate = this.findNumber(0);\n\t\tif (direction == Direction.Up) {\n\t\t\tif (coordinate[0] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0] - 1, coordinate[1]);\n\t\t\tthis.setNumberAt(coordinate[0] - 1, coordinate[1], 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\telse if (direction == Direction.Down) {\n\t\t\tif (coordinate[0] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0] + 1, coordinate[1]);\n\t\t\tthis.setNumberAt(coordinate[0] + 1, coordinate[1], 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\telse if (direction == Direction.Left) {\n\t\t\tif (coordinate[1] == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0], coordinate[1] - 1);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1] - 1, 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\telse if (direction == Direction.Right) {\n\t\t\tif (coordinate[1] == 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tint targetedNumber = this.getNumberAt(coordinate[0], coordinate[1] + 1);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1] + 1, 0);\n\t\t\tthis.setNumberAt(coordinate[0], coordinate[1], targetedNumber);\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private boolean isNextMoveEnPassentCapture(Move move)\r\n\t{\r\n\t\tif (!(move.capture instanceof Pawn)) return false;\r\n\t\tif (Math.abs(move.from.coordinate.x - move.to.coordinate.x) != 1) return false;\r\n\t\tif (Math.abs(move.from.coordinate.y - move.to.coordinate.y) != 1) return false;\r\n\t\tif (!move.to.isEmpty()) return false;\r\n\t\treturn true;\r\n\t}", "public boolean canMove(int dir) {\n return true;\n }", "public boolean isValidMove(int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\n\t\tif (validRook(startRow, startColumn, endRow, endColumn, board) || validBish(startRow, startColumn, endRow, endColumn, board)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public abstract boolean canMove(Board board, Spot from, Spot to);", "public boolean isMoveLegal(Move move){\n return legalMoves.contains(move);\n }", "private boolean isLastMoveRochade()\r\n\t{\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMove == null) return false;\r\n\t\tPiece king = lastMove.to.piece;\r\n\t\tif (!(king instanceof King)) return false;\r\n\t\t\r\n\t\tint y = king.getColor().equals(Color.WHITE) ? 0 : 7;\r\n\t\tif (lastMove.to.coordinate.y != y) return false;\r\n\t\t\r\n\t\tint xDiffAbs = Math.abs(lastMove.to.coordinate.x - lastMove.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}", "public boolean validMove(int row, int col) {\n // kijken of de rij en kolom leeg zijn\n if (board2d[row][col] != 0) {\n return false;\n }\n return true;\n }", "private boolean canMove(String direction) {\n\t\tif (currentPiece.getLocation() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (Loc loc : currentPiece.getLocation()) {\n\t\t\tLoc nextPoint = nextPoint(loc, direction);\n\t\t\tif (nextPoint == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if there's someone else's piece blocking you\n\t\t\tif ((new Loc(nextPoint.row, nextPoint.col).isOnBoard())\n\t\t\t\t\t&& boardTiles[nextPoint.row][nextPoint.col] != backgroundColor && !isMyPiece(nextPoint)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean isMoving() {\n\t\treturn moveProgress > 0;\n\t}", "public boolean GetMove();", "public Boolean isValidMovement(int x, int y){\n\t\tif ( x < 0 || x > 7 || y < 0 || y > 7 \n\t\t\t\t|| this.board.getPiece(x, y).getColor().equalsIgnoreCase(this.color))\n\t\t\treturn false;\n\t\t\n\t\tint distX = Math.abs(this.posX - x);\n\t\tint distY = Math.abs(this.posY - y);\n\t\t\n\t\tif (distX != distY)\n\t\t\treturn false;\n\t\t\n\t\tif (this.posX > x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY > y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY - i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX > x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX - i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (this.posX < x && this.posY < y){\n\t\t\tfor (int i = 1; i < distX ; i ++){\n\t\t\t\tif (!this.board.getPiece(this.posX + i, this.posY + i).isEmpty())\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public boolean isValidMove(int value){\n if (value == HIT || value == MISS) {\n System.out.println(\"Already shot here\");\n return false;\n }\n return true;\n }" ]
[ "0.8922075", "0.83254695", "0.8172465", "0.8122225", "0.8041911", "0.80322725", "0.8006631", "0.7998413", "0.7930439", "0.7871544", "0.7866397", "0.78398186", "0.7828026", "0.7822576", "0.7813648", "0.77812725", "0.7767633", "0.77390194", "0.77108276", "0.7708913", "0.770813", "0.7677568", "0.7656782", "0.7648593", "0.76421833", "0.7635118", "0.7625086", "0.7599789", "0.75969803", "0.7589344", "0.7586595", "0.758134", "0.7579192", "0.75711286", "0.7567418", "0.75558174", "0.75294256", "0.7529102", "0.7527025", "0.7522974", "0.7515407", "0.7515005", "0.75105447", "0.7503498", "0.7501141", "0.74852926", "0.74845535", "0.74760437", "0.74741924", "0.74707276", "0.74689335", "0.7465525", "0.7450475", "0.74361837", "0.7428354", "0.74282914", "0.7426811", "0.7421769", "0.74127394", "0.7411626", "0.7408494", "0.7387455", "0.73805535", "0.7375278", "0.7373859", "0.7355798", "0.735552", "0.7348641", "0.73377144", "0.73375", "0.73315275", "0.73279244", "0.7324588", "0.7315216", "0.7312335", "0.7312032", "0.7298203", "0.7292426", "0.729139", "0.72901946", "0.72721875", "0.72721475", "0.7271417", "0.72706777", "0.7264017", "0.7255958", "0.7241614", "0.72314173", "0.7223829", "0.72165644", "0.7208994", "0.7208339", "0.72071254", "0.72023475", "0.7198232", "0.7192198", "0.71921194", "0.7185751", "0.7182821", "0.71827066", "0.71776384" ]
0.0
-1
from notation to our actual grid notation for y
public int getTheYPosition(int y){ if(y>=1 && y<=4){ return 7; } else if(y>=5 && y<=8){ return 6; } else if(y>=9 && y<=12){ return 5; } else if(y>=13 && y<=16){ return 4; } else if(y>=17 && y<=20){ return 3; } else if(y>=21 && y<=24){ return 2; } else if(y>=25 && y<=28){ return 1; } else{ return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateGridY();", "void setGridY(int i);", "public int getCartogramGridSizeInY ()\n\t{\n\t\treturn mCartogramGridSizeY;\n\t}", "public int getGridY() {\r\n\t\treturn gridY;\r\n\t}", "public double[] getOrdinateGrid() {\n return yArr.clone();\n }", "java.lang.String getY();", "public void setCartogramGridSizeInY (int gridSizeY)\n\t{\n\t\tmCartogramGridSizeY = gridSizeY;\n\t}", "private String AccelYConversion() {\n int reading = (((raw[17] & 0xFC) >> 2) + ((raw[18] & 0x0F) << 6));\n\n\n int y[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(y) + \"\";\n\n //System.out.println(\"Y \" + unsignedToSigned(reading ,10) * 0.1533);\n //return (reading * 0.1533) + \"\";\n }", "public void setGrid(int x ,int y,char newValue){\n\t\tGrid[x][y] = newValue;\n\t}", "private void drawVerticalGrid(Graphics2D g2) {\r\n double minorSpacing = majorX / getMinorCountX();\r\n double axisH = yPositionToPixel(originY);\r\n \r\n Stroke gridStroke = new BasicStroke(STROKE_GRID);\r\n Stroke axisStroke = new BasicStroke(STROKE_AXIS);\r\n \r\n Rectangle clip = g2.getClipBounds();\r\n \r\n int position;\r\n if (!isAxisPainted()) {\r\n position = (int) yPositionToPixel(originY);\r\n if (position >= clip.y && position <= clip.y + clip.height) {\r\n g2.setColor(getMajorGridColor());\r\n g2.drawLine(clip.x, position, clip.x + clip.width, position);\r\n }\r\n }\r\n \r\n// double startX = Math.floor((minX - originX) / majorX) * majorX;\r\n double startX = Math.floor(minX / majorX) * majorX;\r\n for (double x = startX; x < maxX + majorX; x += majorX) {\r\n g2.setStroke(gridStroke);\r\n g2.setColor(getMinorGridColor());\r\n for (int i = 0; i < getMinorCountX(); i++) {\r\n position = (int) xPositionToPixel(x - i * minorSpacing);\r\n if (position >= clip.x && position <= clip.x + clip.width) {\r\n g2.drawLine(position, clip.y, position, clip.y + clip.height);\r\n }\r\n }\r\n \r\n position = (int) xPositionToPixel(x);\r\n if (position >= clip.x && position <= clip.x + clip.width) {\r\n g2.setColor(getMajorGridColor());\r\n g2.drawLine(position, clip.y, position, clip.y + clip.height);\r\n\r\n if (isAxisPainted()) {\r\n g2.setStroke(axisStroke);\r\n g2.setColor(getAxisColor());\r\n g2.drawLine(position, (int) axisH - 3, position, (int) axisH + 3);\r\n }\r\n }\r\n }\r\n }", "private int colToY(int c) { \n\t\treturn c * getWidth() / BOARD_LENGTH - (BOARD_PIECE_LENGTH);\n\t}", "private int convertY(int i) {\n return i / width;\n }", "public double getY() { return y; }", "private int xyTo1D(int row, int col)\n {\n validate(row, col);\n return (row-1) * gridSize + col-1;\n }", "private int xyTo1D(int i, int j) {\n return (mGridSize * (i - 1) + j);\n }", "public int getClassNotation(int x, int y){\n\t\t\tif(x==0){\n\t\t\t\t//first col\n\t\t\t\tif(y==0) return 29;\n\t\t\t\telse if(y==2) return 21;\n\t\t\t\telse if(y==4) return 13;\n\t\t\t\telse return 5;\n\t\t\t}else if(x==1){\n\t\t\t\t//2nd col\n\t\t\t\tif(y==1) return 25;\n\t\t\t\telse if(y==3) return 17;\n\t\t\t\telse if(y==5) return 9;\n\t\t\t\telse return 1;\n\t\t\t}else if(x==2){\n\t\t\t\t//3rd col\n\t\t\t\tif(y==0) return 30;\n\t\t\t\telse if(y==2) return 22;\n\t\t\t\telse if(y==4) return 14;\n\t\t\t\telse return 6;\n\t\t\t}else if(x==3){\n\t\t\t\t//4th col\n\t\t\t\tif(y==1) return 26;\n\t\t\t\telse if(y==3) return 18;\n\t\t\t\telse if(y==5) return 10;\n\t\t\t\telse return 2;\n\t\t\t}else if(x==4){\n\t\t\t\t//5th col\n\t\t\t\tif(y==0) return 31;\n\t\t\t\telse if(y==2) return 23;\n\t\t\t\telse if(y==4) return 15;\n\t\t\t\telse return 7;\n\t\t\t}else if(x==5){\n\t\t\t\t//6th col\n\t\t\t\tif(y==1) return 27;\n\t\t\t\telse if(y==3) return 19;\n\t\t\t\telse if(y==5) return 11;\n\t\t\t\telse return 3;\n\t\t\t}else if(x==6){\n\t\t\t\t//7th col\n\t\t\t\tif(y==0) return 32;\n\t\t\t\telse if(y==2) return 24;\n\t\t\t\telse if(y==4) return 16;\n\t\t\t\telse return 8;\n\t\t\t}else{\n\t\t\t\t//8th col\n\t\t\t\tif(y==1) return 28;\n\t\t\t\telse if(y==3) return 20;\n\t\t\t\telse if(y==5) return 12;\n\t\t\t\telse return 4;\n\t\t\t}\n\t\t}", "public double getY() {\n\t\treturn ny;\n\t}", "@AnyLogicInternalCodegenAPI\n private double __plot_expression2_dataSet_xjal_YValue() {\n return \nR \n;\n }", "public char getGrid(int x ,int y){\n\t\treturn Grid[x][y] ;\n\t}", "private int convertY(float y) {\n\t\treturn (int) (axis.getY() - y*pointsParY);\n\t}", "public double getY();", "default int gridToSlot(int x, int y) {\n return y * 9 + x;\n }", "private void drawAxesGrid(Graphics g, int sizex, int sizey){\r\n\r\n\t\tint maxx = sizex - 1;\r\n\t\tint maxy = sizey - 1;\r\n\r\n\t\tGraphics2D g2d = (Graphics2D) g;\r\n\r\n\t\t//Koordinatengitter zeichnen, wenn gewuenscht\r\n\t\tif(gridColor != null){\r\n\t\t\tg2d.setColor(gridColor);\r\n\t\t\tdouble tickdist = ((double)maxx) / ((double) noofxintv);\r\n\t\t\tfor (int i = 0; i <= noofxintv; i++){\r\n\t\t\t\tg2d.drawLine((int)(i*tickdist), 0, (int)(i*tickdist), (int)(maxy));\r\n\t\t\t}\r\n\t\t\ttickdist = ((double)maxy) / ((double) noofyintv);\r\n\t\t\tfor (int i = 0; i <= noofyintv; i++){\r\n\t\t\t\tg2d.drawLine(0, (int)(i*tickdist), (int)(maxx), (int)(i*tickdist));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public double y() { return y; }", "public int getY() { return (int)y; }", "private Point2D.Float toGridPoint(int x, int y) {\n return new Point2D.Float((float)((x - centreX)*scale), (float)((centreY - y)*scale));\n }", "public abstract ParamNumber getParamY();", "public void setY(Double y);", "private int abstToDeskY(float y)\n {\n return (int)(height*y);\n }", "public void setDimY (int value)\n {\n m_dim_y = value;\n }", "public void setY(int ys)\r\n\t{\r\n\t\ty = ys;\r\n\t}", "public int getDimY ()\n {\n return m_dim_y;\n }", "public int getY() {\r\n return ix / numCols;\r\n }", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "double getY();", "public int convertYToTileY(final int y) {\n return convertYToTileY(y, getTileGridYOffset(), getTileHeight());\n }", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" + gy + \")\");\n\t}\n }", "@AnyLogicInternalCodegenAPI\n private double __plot_expression1_dataSet_xjal_YValue() {\n return \nS \n;\n }", "String getYAxisLabel();", "public int getY()\n {\n return yaxis;\n }", "public Object getCurrentCellY() {\n\t\treturn y;\n\t}", "public void setY(double y)\n\t\t{\n\t\t this.y[0] = y;\n\t\t}", "private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new Y co-ordinate\n }\n }\n\n return grid;\n }", "public int ItoY(int i){return (i/zDim)%yDim;}", "@AnyLogicInternalCodegenAPI\n private double __plot_expression0_dataSet_xjal_YValue() {\n return \nI \n;\n }", "public DraggableBehavior setGrid(int x, int y)\n\t{\n\t\tArrayItemOptions<IntegerItemOptions> grids = new ArrayItemOptions<IntegerItemOptions>();\n\t\tgrids.add(new IntegerItemOptions(x));\n\t\tgrids.add(new IntegerItemOptions(y));\n\t\tthis.options.put(\"grid\", grids);\n\t\treturn this;\n\t}", "private int [] createYArray(){\r\n\t\tint [] yCoord = {\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart + Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart\r\n\t\t};\r\n\t\treturn yCoord;\r\n\t}", "public double getY(){\r\n return y;\r\n }", "public abstract double getY();", "public double getYCoordinates() { return yCoordinates; }", "abstract double getOrgY();", "public double y() { return _y; }", "double getY() { return pos[1]; }", "public static NumberAxis calcAxisY() {\n double minY = Math.round(\n Collections.min(GlobalVariables.systemCorridor.getDistances()) / 100) * 100 - 100;\n double maxY = Math.round(\n Collections.max(GlobalVariables.systemCorridor.getDistances()) / 100) * 100 + 100;\n double scaleY = Math.round(0.1 * (maxY - minY) / 100) * 100;\n NumberAxis axis = new NumberAxis(\"Distance (ft)\", minY, maxY, scaleY);\n axis.setTickLabelFont(Font.font(16));\n axis.setMinorTickCount(4);\n return axis;\n }", "GameBoard(){\r\n int i, j;\r\n char first = '0';\r\n grid = new char[yMax][xMax];\r\n\r\n grid[0][0] = ' ';\r\n\r\n //labels rows\r\n for(i = 1; i < yMax; i++){\r\n j = 0;\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n\r\n //labels columns\r\n first = '0';\r\n for(j = 1; j < xMax; j++){\r\n i = 0;\r\n if(j % 2 == 0) {\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n\r\n //separates squares with '|'\r\n for(i = 1; i < yMax; i++){\r\n for(j = 1; j < xMax; j++){\r\n if(j % 2 != 0)\r\n grid[i][j] = '|';\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n }\r\n }", "private ArrayList<Entry> setYAxisValues(){\n ArrayList<Entry> yVals = new ArrayList<Entry>();\n for (int z = 0; z < 235; z++) {\n yVals.add(new Entry((float)graphArray[z], z));\n }\n return yVals;\n }", "private void formatYAxis() {\n ((ValueAxis<Double>) performanceGraph.getYAxis()).setTickLabelFormatter(new StringConverter<Double>() {\n @Override\n public String toString(Double object) {\n if (currMode == Mode.GROSS_PROFITS) {\n if (object < 0) {\n return \"-$\" + Math.abs(object);\n } else {\n return \"$\" + object;\n }\n } else if (currMode == Mode.PERCENT_RETURN) {\n return object + \"%\";\n } else {\n return \"err\";\n }\n }\n\n @Override\n public Double fromString(String string) {\n return null;\n }\n });\n }", "public void setEndY(double y)\n {\n endycoord=y; \n }", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public double getY(){\n return y;\n }", "private int convert2d(int x, int y) {\n return x + y * width;\n }", "private int getIsoY(int x, int y) {\n\t\treturn (x + y) * (TILE_HEIGHT/2);\n\t}", "void setY(final Number y) {\n this.yCoordinate = y;\n }", "public void setY(int y) { this.y=y; }", "public void setY (int index, int y) { coords[index][1] = y; }", "public void setY(double y){\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public int getYD1 ()\n\t{\n\t\treturn yDimension1;\n\t}", "public double getY() {\n return y;\r\n }", "@Override\n\tpublic int getY() {\n\t\treturn logicY;\n\t}", "abstract double getDirY();", "public DynamicModelPart setY(float[] y) {\n this.y = y;\n return this;\n }", "@Override\r\n\tpublic int getY() {\n\t\treturn (int)y;\r\n\t}", "public void setProgresionY(int i){\n this.ubicacion.y=i;\n }", "public static int getOrigY() {\n return 5;\n }", "public double getY() {\n return y;\n }", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "float getY();", "public String getYx() {\n return yx;\n }", "@Override\n protected void drawGrid(Graphics2D g2, int startPos, int rightEdgePos, int bottomEdgePos, int start,\n int nrows1, int ncols1, int gridOffset) {}", "public void setY(int y) { loc.y = y; }", "public void setY(double y) {\n this.y = y;\r\n }", "void setY(double y){\r\n\t\tthis.y=y;\r\n\t}", "public int getY() {\n return (int) Math.round(y);\n }", "public int getY() {\n\t\treturn this.y_indice * DIM_CASE;\n\t}", "@Override\n\tpublic double getY() {\n\t\treturn y;\n\t}", "public String toString(){\n\t\t return y; \n\t\t }", "public int getY() {return y;}", "public int getY() { return y; }", "public int getY() { return y; }" ]
[ "0.6544477", "0.64814025", "0.6310135", "0.62639266", "0.5912019", "0.58822083", "0.5764206", "0.5686397", "0.56539017", "0.563071", "0.5626048", "0.5567519", "0.55643207", "0.5540727", "0.55398995", "0.5525575", "0.5513803", "0.550415", "0.5500059", "0.5499258", "0.54829395", "0.548046", "0.54633844", "0.5435722", "0.5434402", "0.5432898", "0.5417278", "0.5402524", "0.53992474", "0.53964704", "0.5386295", "0.53854287", "0.537514", "0.53721046", "0.53721046", "0.53721046", "0.53721046", "0.53721046", "0.53721046", "0.53721046", "0.53721046", "0.53721046", "0.5370918", "0.5367318", "0.5363786", "0.5358729", "0.5356932", "0.5355603", "0.5351363", "0.5350001", "0.53464943", "0.5339518", "0.53377277", "0.53344756", "0.53331745", "0.5327578", "0.5319245", "0.5310343", "0.5308908", "0.53065354", "0.5299985", "0.52975154", "0.5296296", "0.5291445", "0.5287106", "0.5280323", "0.5278039", "0.52767676", "0.5276464", "0.5275425", "0.52750003", "0.52742064", "0.52678776", "0.52678776", "0.5264644", "0.5256115", "0.52549654", "0.5254905", "0.5242772", "0.5242583", "0.52413595", "0.5239584", "0.5233489", "0.5230555", "0.5230555", "0.5230555", "0.5230555", "0.5230555", "0.5230555", "0.52297103", "0.52278244", "0.52241457", "0.5221487", "0.5211574", "0.5210801", "0.52100956", "0.5205071", "0.52018154", "0.52008766", "0.51893926", "0.51893926" ]
0.0
-1
from notation to our actual grid notation for x now
public int getTheXPosition(int x){ if(x==5 || x==13 || x==21 || x==29){ return 0; } else if(x==1 || x==9 || x==17 || x==25){ return 1; } else if(x==6 || x==14 || x==22 || x==30){ return 2; } else if(x==2 || x==10 || x==18 || x==26){ return 3; } else if(x==7 || x==15 || x==23 || x==31){ return 4; } else if(x==3 || x==11 || x==19 || x==27){ return 5; } else if(x==8 || x==16 || x==24 || x==32){ return 6; } else{ return 7; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default int gridToSlot(int x, int y) {\n return y * 9 + x;\n }", "public void updateGridX();", "void setGridX(int i);", "private Point2D.Float toGridPoint(int x, int y) {\n return new Point2D.Float((float)((x - centreX)*scale), (float)((centreY - y)*scale));\n }", "@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" + gy + \")\");\n\t}\n }", "public int getGridX() {\r\n\t\treturn gridX;\r\n\t}", "public void setGrid(int x ,int y,char newValue){\n\t\tGrid[x][y] = newValue;\n\t}", "private Grid makeGrid()\n\t{\n\t\tGrid grid = Grid.grid().\n\t\t\t\tBus(\"1\").\n\t\t\t\tSlackSource(\"Slack\", BASE_VOLTAGE, 0, 0, 0).\n\t\t\t\tLine(\"1-2\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\tBus(\"2\").\n\t\t\t\t\t\tControllableDemand(\"S\").\n\t\t\t\t\t\tLine(\"2-3\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\t\tBus(\"3\").\n\t\t\t\t\t\t\t\tLoad(\"L\").\n\t\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tLine(\"2-4\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\tBus(\"4\").\n\t\t\t\t\t\t\tDistributedSource(\"DG\").\n\t\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\tterminate().\n\t\t\tterminate().\n\t\tgrid();\n\t\t\n\t\t// x_0:\n\t\tLoad load = grid.getLoad(\"L\");\n\t\tControllableDemand storage = grid.getControllableDemand(\"S\");\n\t\tDistributedSource dg = grid.getDistributedSource(\"DG\");\n\t\tsetupUnits(load, storage, dg);\n\t\t\n\t\treturn grid;\n\t}", "public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }", "public char getGrid(int x ,int y){\n\t\treturn Grid[x][y] ;\n\t}", "public int getCartogramGridSizeInX ()\n\t{\n\t\treturn mCartogramGridSizeX;\n\t}", "public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }", "GameBoard(){\r\n int i, j;\r\n char first = '0';\r\n grid = new char[yMax][xMax];\r\n\r\n grid[0][0] = ' ';\r\n\r\n //labels rows\r\n for(i = 1; i < yMax; i++){\r\n j = 0;\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n\r\n //labels columns\r\n first = '0';\r\n for(j = 1; j < xMax; j++){\r\n i = 0;\r\n if(j % 2 == 0) {\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n\r\n //separates squares with '|'\r\n for(i = 1; i < yMax; i++){\r\n for(j = 1; j < xMax; j++){\r\n if(j % 2 != 0)\r\n grid[i][j] = '|';\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n }\r\n }", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "public void draw_grid() {\n for (int i = 0; i <= xNumTiles; i++) {\n stroke(100);\n line(i * tileSize, 0, i * tileSize, yNumTiles * tileSize);\n }\n\n for (int j = 0; j <= yNumTiles; j++) {\n stroke(100);\n line(0, j * tileSize, xNumTiles * tileSize, j * tileSize);\n }\n }", "private void updateGridWithPosition(Pair<Integer, Integer> position) {\n int x = position.getValue0();\n int y = position.getValue1();\n int ox = origin.getValue0();\n int oy = origin.getValue1();\n while (ox + Math.abs(x) >= grid[0].length || oy + Math.abs(y) >= grid.length) {\n reallocateGrid();\n }\n if (x >= 0 && y >= 0) {\n grid[oy + y][ox + x] = '#';\n } else if (x >= 0) {\n grid[oy - Math.abs(y)][ox + x] = '#';\n } else if (y >= 0) {\n grid[oy + y][ox - Math.abs(x)] = '#';\n } else {\n grid[oy - Math.abs(y)][ox - Math.abs(x)] = '#';\n }\n }", "private int xyTo1D(int row, int col)\n {\n validate(row, col);\n return (row-1) * gridSize + col-1;\n }", "public static int getGridPosition(int x, int y, int width){\n\t\treturn (y*width)+x;\n\t}", "public String boardCellToString() {\n String str;\n Integer convertX, convertY;\n //adjusting the co'ordinates because the board starts at 1 not 0\n convertX=this.xCor + 1;\n convertY= this.yCor + 1;\n str = \"(\" + convertX.toString() + \",\" + convertY.toString() + \")\";\n return str;\n }", "private void displayGrid() {\r\n System.out.print(this.grid);\r\n }", "public void printGrid(char[][] grid){\r\n\t\tSystem.out.println(grid[0][0] + \"|\" + grid[0][1] + \"|\" + grid[0][2] + \"|\" + grid[0][3] + \"|\" + grid[0][4] + \"|\" + grid[0][5] + \"|\" + grid[0][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[1][0] + \"|\" + grid[1][1] + \"|\" + grid[1][2] + \"|\" + grid[1][3] + \"|\" + grid[1][4] + \"|\" + grid[1][5] + \"|\" + grid[1][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[2][0] + \"|\" + grid[2][1] + \"|\" + grid[2][2] + \"|\" + grid[2][3] + \"|\" + grid[2][4] + \"|\" + grid[2][5] + \"|\" + grid[2][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[3][0] + \"|\" + grid[3][1] + \"|\" + grid[3][2] + \"|\" + grid[3][3] + \"|\" + grid[3][4] + \"|\" + grid[3][5] + \"|\" + grid[3][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[4][0] + \"|\" + grid[4][1] + \"|\" + grid[4][2] + \"|\" + grid[4][3] + \"|\" + grid[4][4] + \"|\" + grid[4][5] + \"|\" + grid[4][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[5][0] + \"|\" + grid[5][1] + \"|\" + grid[5][2] + \"|\" + grid[5][3] + \"|\" + grid[5][4] + \"|\" + grid[5][5] + \"|\" + grid[5][6]);\r\n\t}", "public void displayGrid ()\n {\n for (int i = 0; i < getDimX(); i++) {\n System.out.print(\"[ \");\n for (int y = 0; y < getDimY(); y++) {\n System.out.print(m_grid[i][y]);\n System.out.print(\" \");\n }\n System.out.println(\"]\");\n }\n }", "@Override\n public void resetGrids() {\n view.clearGrid(false);\n\n // then remove non-given numbers\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n if (!grid.isGiven(row, col)) {\n grid.unsetNumber(row, col);\n }\n }\n }\n\n // finally, display the givens on the view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n }\n }\n }\n }", "private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new Y co-ordinate\n }\n }\n\n return grid;\n }", "public void printGrid(){\n\t\tfor (int i = 0; i < 8; i++){\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tSystem.out.print(Grid[i][j]+\" \"); \n\t\t\tSystem.out.println(); \n\t\t}\n\t}", "private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }", "public void printGrid(){\n\t\tfor(int i=0;i<getHeight();i++){\n\t\t\tfor(int j=0;j<getWidth();j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tSystem.out.print(\"- \");\n\t\t\t\telse if(getGrid(i,j).isPath())\n\t\t\t\t\tSystem.out.print(\"1 \");\n\t\t\t\telse if(getGrid(i,j).isScenery())\n\t\t\t\t\tSystem.out.print(\"0 \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\"? \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "@Override\n protected void drawGrid(Graphics2D g2, int startPos, int rightEdgePos, int bottomEdgePos, int start,\n int nrows1, int ncols1, int gridOffset) {}", "public int calculateGridCellColumn(int x)\n {\n float leftEdge = miniGame.getBoundaryLeft();\n x = (int)(x - leftEdge);\n return x / TILE_IMAGE_WIDTH;\n }", "private int xyTo1D(int i, int j) {\n return (mGridSize * (i - 1) + j);\n }", "@Override\n public void printGrid(){\n for(int row = 0; row < rows; row++){\n System.out.print(\"\\n\");\n if(row==0){\n char row_char='A';\n System.out.print(\" |\");\n for(int i=0; i<rows; i++){\n System.out.print(\"[\" + row_char + \"]\");\n row_char++;\n }\n System.out.print(\"\\n\");\n System.out.print(\"---|\");\n for(int i=0; i<rows;i++){\n System.out.print(\"---\");\n }\n System.out.print(\"\\n\");\n }\n\n for(int column = 0; column < columns; column++){\n if (column==0){System.out.print(\"[\"+row+\"]|\");}\n System.out.print(grid[row][column]);\n }\n }\n }", "public CharGrid(char[][] grid) {\n\t\tthis.grid = grid;\n\t}", "private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }", "private Grid(Grid oldGrid) {\n\n grid = new String[Main.Y_SIZE][Main.X_SIZE][Main.Z_SIZE];\n this.gateDatabase = oldGrid.gateDatabase;\n this.netDatabase = oldGrid.netDatabase;\n\n for (int i = 0; i < Main.Z_SIZE; i++) {\n for (int k = 0; k < Main.X_SIZE; k++) {\n for (int n = 0; n < Main.Y_SIZE; n++) {\n grid[n][k][i] = oldGrid.grid[n][k][i];\n }\n }\n }\n }", "public float centimetresToGridUnits(float cm);", "public float gridUnitsToCentimetres(float gridUnits);", "static void printGrid (int[][] G){\n for(int i=1; i<G.length; i++){\n for (int j=1; j<G[i].length; j++){\n if (G[i][j]==0){\n System.out.print(\"- \");\n } else System.out.print(G[i][j]+\" \");\n if ( j==3) System.out.print(\" \");\n if ( j==6) System.out.print(\" \");\n if ( j==9) System.out.print(\"\\n\");\n }\n if ( i==3) System.out.print(\"\\n\");\n if ( i==6) System.out.print(\"\\n\");\n }\n }", "public String toString ()\n\t{\n\t\tString s = \"Grid:\\n\";\n\t\tfor (int row=0; row<GRID_SIZE; row++)\n\t\t{\n\t\t\tfor (int col=0; col<GRID_SIZE; col++) {\n\t\t\t\ts = s + grid[col][row].value()+ \" \";\n\t\t\t}\n\t\t\ts += \"\\n\";\n\t\t}\n\t\treturn s;\n\t}", "public void printGrid()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\t\telse System.out.print( grid[x][y] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.print( \"\\n\" );\n\t}", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "public int getClassNotation(int x, int y){\n\t\t\tif(x==0){\n\t\t\t\t//first col\n\t\t\t\tif(y==0) return 29;\n\t\t\t\telse if(y==2) return 21;\n\t\t\t\telse if(y==4) return 13;\n\t\t\t\telse return 5;\n\t\t\t}else if(x==1){\n\t\t\t\t//2nd col\n\t\t\t\tif(y==1) return 25;\n\t\t\t\telse if(y==3) return 17;\n\t\t\t\telse if(y==5) return 9;\n\t\t\t\telse return 1;\n\t\t\t}else if(x==2){\n\t\t\t\t//3rd col\n\t\t\t\tif(y==0) return 30;\n\t\t\t\telse if(y==2) return 22;\n\t\t\t\telse if(y==4) return 14;\n\t\t\t\telse return 6;\n\t\t\t}else if(x==3){\n\t\t\t\t//4th col\n\t\t\t\tif(y==1) return 26;\n\t\t\t\telse if(y==3) return 18;\n\t\t\t\telse if(y==5) return 10;\n\t\t\t\telse return 2;\n\t\t\t}else if(x==4){\n\t\t\t\t//5th col\n\t\t\t\tif(y==0) return 31;\n\t\t\t\telse if(y==2) return 23;\n\t\t\t\telse if(y==4) return 15;\n\t\t\t\telse return 7;\n\t\t\t}else if(x==5){\n\t\t\t\t//6th col\n\t\t\t\tif(y==1) return 27;\n\t\t\t\telse if(y==3) return 19;\n\t\t\t\telse if(y==5) return 11;\n\t\t\t\telse return 3;\n\t\t\t}else if(x==6){\n\t\t\t\t//7th col\n\t\t\t\tif(y==0) return 32;\n\t\t\t\telse if(y==2) return 24;\n\t\t\t\telse if(y==4) return 16;\n\t\t\t\telse return 8;\n\t\t\t}else{\n\t\t\t\t//8th col\n\t\t\t\tif(y==1) return 28;\n\t\t\t\telse if(y==3) return 20;\n\t\t\t\telse if(y==5) return 12;\n\t\t\t\telse return 4;\n\t\t\t}\n\t\t}", "private int matrixRowToGridVal(int i) \n {\n return i % gDim + 1;\n }", "public double toGrid(double pixel) {\n\t\t return (pixel + GridLock.SQUARE_SIZE / 2) / GridLock.SQUARE_SIZE; \n\t \n\t}", "public void setCartogramGridSizeInX (int gridSizeX)\n\t{\n\t\tmCartogramGridSizeX = gridSizeX;\n\t}", "public DraggableBehavior setGrid(int x, int y)\n\t{\n\t\tArrayItemOptions<IntegerItemOptions> grids = new ArrayItemOptions<IntegerItemOptions>();\n\t\tgrids.add(new IntegerItemOptions(x));\n\t\tgrids.add(new IntegerItemOptions(y));\n\t\tthis.options.put(\"grid\", grids);\n\t\treturn this;\n\t}", "public void displayGrid()\n {\n\t\t\n\tfor (int y=0; y<cases.length; y++)\n\t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tSystem.out.print(\"|\"+cases[y][x].getValue());\n }\n System.out.println(\"|\");\n\t}\n }", "public mGrid(float width) {\r\n\t\tthis.width = width;\r\n\t\tthis.pos = new mPoint3(0,0,0);\r\n\t\tmPoint3[] points = new mPoint3[17];\r\n\t\tpoints[0] = pos;\r\n\t\tfor(int i=-2;i<=2;i++){\r\n\t\t\tpoints[2*i+5] = new mPoint3(2*width,i*width,0);\r\n\t\t\tpoints[2*i+6] = new mPoint3(-2*width,i*width,0);\r\n\t\t}\r\n\t\tfor(int i=-1;i<=1;i++){\r\n\t\t\tpoints[2*i+13] = new mPoint3(i*width,2*width,0);\r\n\t\t\tpoints[2*i+14] = new mPoint3(i*width,-2*width,0);\r\n\t\t}\r\n\t\tthis.shape = new mShape();\r\n\t\tshort[][] lp = new short[2][10];\r\n\t\tshort i;\r\n\t\tfor(i=0;i<5;i++){\r\n\t\t\tlp[0][i] = (short)(i*2+1);\r\n\t\t\tlp[1][i] = (short)(2*i+2);\r\n\t\t}\r\n\t\tlp[0][5] = 2;\r\n\t\tlp[1][5] = 10;\r\n\t\tlp[0][9] = 1;\r\n\t\tlp[1][9] = 9;\r\n\t\tfor(i=0;i<3;i++){\r\n\t\t\tlp[0][i+6] = (short)(2*i+11);\r\n\t\t\tlp[1][i+6] = (short)(2*i+12);\r\n\t\t}\r\n\t\tshort[][] tp = new short[1][0];\r\n\t\tthis.shape.set(points,lp,tp);\r\n\t}", "public String printGrid() {\n String s = \"KEY: \\n- (sea) = no boat not shot\"\n + \"\\nM (miss) = no boat SHOT \"\n +\" \\nB (boat) = boat not shot\"\n + \"\\nH (hit) = boat SHOT\"\n + \"\\n***********************************************************\\n\";\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n s += decideLetter(grid[i][j]) + \"\\t\";\n }\n s += \"\\n\";\n }\n return s;\n }", "public void changeGrid(int sign, boolean up) {\n // If vertical, applies change to the numY. Else to the numX.\n if (up)\n numY += sign;\n else\n numX += sign;\n\n // Ensures that the num values do not point to a non-existent element of the grid.\n if (numX < 0)\n numX = 0;\n\n if (numX > 15)\n numX = 15;\n\n if (numY < 0)\n numY = 0;\n\n if (numY > 15)\n numY = 15;\n\n // Plays the sound that indicates the player moved the cursor.\n storage.sounds.get(\"click1\").play(1.0f);\n }", "public void printGrid(){\n System.out.println(\"printing the grid\");\n for(int i=0;i<row_size;i++){\n for(int j = 0;j<col_size;j++){\n System.out.println(grid[i][j]);\n }\n }\n }", "public void drawGrid()\n {\n noStroke();\n for(int i = 0; i < xCells; i++)\n {\n for(int j = 0; j < yCells; j++)\n {\n if(pattern[i][j])\n fill(0);\n else\n fill(255);\n rect(firstCellPosition[0]+i*cellSize,firstCellPosition[1]+j*cellSize,cellSize-1,cellSize-1);\n }\n }\n }", "private void drawGrid() {\r\n\t\t// loops through the 2d array of the grid.\r\n\t\tfor (int i = 0; i < TetrisGame.PANEL_WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < TetrisGame.PANEL_HEIGHT; j++) {\r\n\t\t\t\t// checks to see if the piece isn't empty, and draws the piece at it's position.\r\n\t\t\t\tif (game.grid[i][j] != Piece.PieceShape.E) {\r\n\t\t\t\t\tdrawSquare(i, j, Piece.getColor(game.grid[i][j]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testGetGridOffsetValues() {\n\t\tAssert.assertEquals(13.68, Geoid.getGridOffset(90.0, 0.0), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\n\t\t// random grid params from EGM.complete.txt.gz\n\t\t// 89.74 5.75 13.89\n\t\t// 86.5 217.25 11.76\n\t\t// 71.25 8.0 43.56\n\t\t// 54.0 182.25 2.35\n\t\t// 35.5 186.0 -12.91\n\t\t// 14.75 213.5 -8.07\n\t\t// -22.25 221.5 -10.18\n\t\t// -37.5 13.0 25.61\n\t\t// -51.75 157.25 -17.88\n\t\t// -70.5 346.0 5.18\n\t\t// -74.5 22.0 17.5\n\t\t// -84.5 306.25 -25.71\n\t\t// -86.75 328.75 -21.81\n\n\t\tAssert.assertEquals(13.89, Geoid.getGridOffset(89.74, 5.75), EPSILON); \n\t\tAssert.assertEquals(11.76, Geoid.getGridOffset(86.5, 217.25), EPSILON);\n\t\tAssert.assertEquals(43.56, Geoid.getGridOffset(71.25, 8.0), EPSILON);\n\t\tAssert.assertEquals(2.35, Geoid.getGridOffset(54.0, 182.25), EPSILON);\n\t\tAssert.assertEquals(-12.91, Geoid.getGridOffset(35.5, 186.0), EPSILON);\n\t\tAssert.assertEquals(-8.07, Geoid.getGridOffset(14.75, 213.5), EPSILON);\n\t\tAssert.assertEquals(-10.18, Geoid.getGridOffset(-22.25, 221.5), EPSILON);\n\t\tAssert.assertEquals(25.61, Geoid.getGridOffset(-37.5, 13.0), EPSILON);\n\t\tAssert.assertEquals(-17.88, Geoid.getGridOffset(-51.75, 157.25), EPSILON);\n\t\tAssert.assertEquals(5.18, Geoid.getGridOffset(-70.5, 346.0), EPSILON);\n\t\tAssert.assertEquals(17.5, Geoid.getGridOffset(-74.5, 22.0), EPSILON);\n\t\tAssert.assertEquals(-25.71, Geoid.getGridOffset(-84.5, 306.25), EPSILON);\n\t\tAssert.assertEquals(-21.81, Geoid.getGridOffset(-86.75, 328.75), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\t}", "public Cell[][] getGrid() {\n return grid;\n }", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public boolean onGrid(int xValue, int yValue);", "public int[][] getGrid()\n {\n return grid;\n }", "public Grid decode (File file) throws IOException\n {\n String currentLine;\n int width = 0, height = 0;\n Grid _grid = null;\n\n try (BufferedReader br = new BufferedReader(new FileReader(file)))\n {\n // skip all the lines that we are not using\n while ((currentLine = br.readLine()) != null) {\n if (currentLine.startsWith(\"#\")) { continue; }\n if (currentLine.startsWith(\"x = \"))\n {\n for (String s : currentLine.split(\",\"))\n {\n if (s.contains(\"x = \"))\n {\n width = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else if (s.contains(\"y = \"))\n {\n height = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else\n {\n break;\n }\n }\n break;\n }\n }\n _grid = new Grid(height, width, false);\n\n int currentY = 0;\n int currentX = 0;\n int startX = 0;\n int i = 0;\n\n String kNumber = \"\"; // The number of times block should be repeated.\n String board = \"\";\n\n // convert the board to a long string\n while ((currentLine = br.readLine()) != null)\n {\n board += currentLine;\n }\n\n for (char c : board.toCharArray())\n {\n if (c == DEAD)\n {\n currentX += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == LIVE)\n {\n int count = (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n for (int j = 0; j < count; j++)\n {\n if (currentY < height && currentX < width)\n {\n _grid.setCell(true, currentX, currentY);\n }\n currentX++;\n }\n kNumber = \"\";\n }\n else if (c == EOL)\n {\n currentX = startX;\n currentY += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == EOF)\n {\n break;\n }\n else\n {\n kNumber += Integer.parseInt(board.substring(i, i + 1));\n }\n i++;\n }\n\n }\n return _grid;\n }", "public void initializeGrid() {\n resetGrid(_lifeGrid);\n\n _lifeGrid[8][(WIDTH / 2) - 1] = 1;\n _lifeGrid[8][(WIDTH / 2) + 1] = 1;\n _lifeGrid[9][(WIDTH / 2) - 1] = 1;\n _lifeGrid[9][(WIDTH / 2) + 1] = 1;\n _lifeGrid[10][(WIDTH / 2) - 1] = 1;\n _lifeGrid[10][(WIDTH / 2)] = 1;\n _lifeGrid[10][(WIDTH / 2) + 1] = 1;\n\n }", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "public int getGridWidth() { return gridWidth; }", "public static void changeGBCGrid(int x, int y) {\n GUI.gbc.gridx = x;\n GUI.gbc.gridy = y;\n }", "public static void main(final String[] args) throws IOException {\r\n\t\tString str;\r\n\t\tfinal FileInputStream in = new FileInputStream(\"C:\\\\git\\\\AoC2018\\\\Dag17\\\\src\\\\dag17\\\\input1.txt\");\r\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\twhile ((str = br.readLine()) != null) {\r\n\t\t\tinput.add(str);\r\n\t\t}\r\n\t\tbr.close();\r\n\t\t// precalculated dimensions\r\n\t\tint tempX;\r\n\t\tint tempY;\r\n\t\tint tempX2;\r\n\t\tint tempY2;\r\n\t\tdimensionX = maxX - minX + 5;\r\n\t\tdimensionY = maxY + 1;\r\n\t\tg = new char[dimensionX][dimensionY];// maxx-minx+3,maxy+1\r\n\t\tint sourceX = 500 - minX + 1;// 500-minx+1\r\n\t\tfor (int j = 0; j < dimensionY; j++) {\r\n\t\t\tfor (int i = 0; i < dimensionX; i++) {\r\n\t\t\t\tg[i][j] = '.';\r\n\t\t\t}\r\n\t\t}\r\n\t\tg[sourceX][0] = '+';\r\n\t\tString inp[];\r\n\t\tfor (String s : input) {\r\n\t\t\tinp = s.split(\" \");\r\n\t\t\tif (s.substring(0, 2).equals(\"x=\")) {\r\n\t\t\t\ttempX = Integer.valueOf(inp[0].substring(2, inp[0].length() - 1));\r\n\t\t\t\tif (tempX > maxX) {\r\n\t\t\t\t\tmaxX = tempX;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempX < minX) {\r\n\t\t\t\t\tminX = tempX;\r\n\t\t\t\t}\r\n\t\t\t\tinp = inp[1].substring(2, inp[1].length()).split(\"[.]\");\r\n\t\t\t\ttempY = Integer.valueOf(inp[0]);\r\n\t\t\t\ttempY2 = Integer.valueOf(inp[2]);\r\n\t\t\t\tif (tempY2 > maxY) {\r\n\t\t\t\t\tmaxY = tempY2;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempY < minY) {\r\n\t\t\t\t\tminY = tempY;\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = tempY; i <= tempY2; i++) {\r\n\t\t\t\t\tg[tempX - minX + 2][i] = '#';\r\n\t\t\t\t}\r\n\t\t\t} else { // y\r\n\t\t\t\ttempY = Integer.valueOf(inp[0].substring(2, inp[0].length() - 1));\r\n\t\t\t\tif (tempY > maxY) {\r\n\t\t\t\t\tmaxY = tempY;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempY < minY) {\r\n\t\t\t\t\tminY = tempY;\r\n\t\t\t\t}\r\n\t\t\t\tinp = inp[1].substring(2, inp[1].length()).split(\"[.]\");\r\n\t\t\t\ttempX = Integer.valueOf(inp[0]);\r\n\t\t\t\ttempX2 = Integer.valueOf(inp[2]);\r\n\t\t\t\tif (tempX2 > maxX) {\r\n\t\t\t\t\tmaxX = tempX2;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempX < minX) {\r\n\t\t\t\t\tminX = tempX;\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = tempX; i <= tempX2; i++) {\r\n\t\t\t\t\tg[i - minX + 2][tempY] = '#';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"maxX \" + maxX + \" maxY \" + maxY);\r\n\t\tSystem.out.println(\"minX \" + minX + \" minY \" + minY);\r\n\r\n\t\t// start: travel down from pointOfOrigin, mark with | until reach # or ~\r\n\t\t// first to reach maxY it ends\r\n\t\t// mark | both sides until hit # or get to freefall if beneath is (. or | ) then\r\n\t\t// call start\r\n\t\t// if enclosed by # mark all with ~\r\n\t\t// repeat until reach maxY\r\n\r\n\t\tint yolo = 0;\r\n\t\twhile (!fill(sourceX, 1)) {\r\n//\t\t\tif(yolo++ % 100 == 0) {\r\n//\t\t\t\tprint();\r\n//\t\t\t}\r\n\t\t}\r\n//\t\tprint();\r\n\t\tyolo = totalWaterTiles() - minY;\r\n//\t\tSystem.out.println(\"Wet tiles >31649 : \" + yolo);\r\n\t\tint oldYolo = 0;\r\n\t\twhile (oldYolo < yolo) {\r\n\t\t\toldYolo = yolo;\r\n\t\t\tSystem.out.println(\"YOLO!\");\r\n\t\t\tfill(sourceX, 1);\r\n\t\t\tyolo = totalWaterTiles() - minY;\r\n\t\t}\r\n\t\tprint();\r\n\t\tSystem.out.println(\"Wet tiles >31649 <32214: \" + yolo);\r\n\t\tSystem.out.println(\"Wet Still water tiles : \" + totalStillWaterTiles());\r\n\t}", "public void updateGridY();", "public MapGrid(){\n\t\tthis.cell = 25;\n\t\tthis.map = new Node[this.width][this.height];\n\t}", "public BuildGrid()\n {\n System.out.print(\"Creating a new grid: \");\n\n m_grid = new double[1][5];\n setDimX(1);\n setDimY(5);\n\n this.fillWith(0);\n System.out.println(\"Done\");\n }", "private void printGridLine(int line) {\n\t\tString textLine = \" \";\r\n\t\tswitch(line) {\r\n\t\t\tcase 1:\t\t\t\t\r\n\t\t\t\ttextLine += \" ╔ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╦ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ╗\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\ttextLine += \" ║ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╬ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ║\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\ttextLine += \" ╚ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╩ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ╝\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t}\r\n\t}", "private static void flagCell(String[] grid, int i, int j) {\r\n\t\tif (j < 0 || j > 127 || i < 0 || i > 127 || grid[i].charAt(j) != '1') return; // boundary test + value test\r\n\t\tStringBuilder sb = new StringBuilder(grid[i]);\r\n\t\tsb.setCharAt(j, 'x');\r\n\t\tgrid[i] = sb.toString();\r\n\t\tflagCell(grid, i, j-1);// flag left cell\r\n\t\tflagCell(grid, i-1, j); // flag upper cell\r\n\t\tflagCell(grid, i, j+1);// flag right cell\r\n\t\tflagCell(grid, i+1, j);// flag bottom cell\r\n\t}", "@Override\n public Tile[][] getGrid() { return grid; }", "public Box[][] getGrid() {\n return this.grid;\n }", "private void drawAxesGrid(Graphics g, int sizex, int sizey){\r\n\r\n\t\tint maxx = sizex - 1;\r\n\t\tint maxy = sizey - 1;\r\n\r\n\t\tGraphics2D g2d = (Graphics2D) g;\r\n\r\n\t\t//Koordinatengitter zeichnen, wenn gewuenscht\r\n\t\tif(gridColor != null){\r\n\t\t\tg2d.setColor(gridColor);\r\n\t\t\tdouble tickdist = ((double)maxx) / ((double) noofxintv);\r\n\t\t\tfor (int i = 0; i <= noofxintv; i++){\r\n\t\t\t\tg2d.drawLine((int)(i*tickdist), 0, (int)(i*tickdist), (int)(maxy));\r\n\t\t\t}\r\n\t\t\ttickdist = ((double)maxy) / ((double) noofyintv);\r\n\t\t\tfor (int i = 0; i <= noofyintv; i++){\r\n\t\t\t\tg2d.drawLine(0, (int)(i*tickdist), (int)(maxx), (int)(i*tickdist));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void printGrid() {\n\t\tfor (int row = 0; row < ROWS; row++) {\n\t\t\tif (row % 3 == 0 && row != 0)\n\t\t\t\tSystem.out.println(\" |\\n ------------------------\");\n\t\t\telse if (row % 3 == 0)\n\t\t\t\tSystem.out.println(\" -------------------------\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\" | \");\n\t\t\tfor (int col = 0; col < COLUMNS; col++) {\n\t\t\t\tif (col % 3 == 0)\n\t\t\t\t\tSystem.out.print(\" | \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(grid[row][col]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" |\\n -------------------------\");\n\t}", "public void setGrid(int ingrid[][],int in_row_size,int in_col_size){\n grid=ingrid;\n row_size = in_row_size;\n col_size = in_col_size;\n }", "private List transformMPToGrid(List MappedPositions, MathTransform trans) {\n List gridmp = new ArrayList();\n\n for (Iterator i = MappedPositions.iterator(); i.hasNext();) {\n MappedPosition mp = (MappedPosition) i.next();\n\n try {\n DirectPosition2D gridSource = new DirectPosition2D();\n DirectPosition2D gridTarget = new DirectPosition2D();\n trans.transform(mp.getSource(), gridSource);\n trans.transform(mp.getTarget(), gridTarget);\n gridmp.add(new MappedPosition(gridSource, gridTarget));\n } catch (MismatchedDimensionException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (TransformException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n return gridmp;\n }", "public BubbleGrid(int[][] grid) {\n this.grid = grid;\n }", "private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}", "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "private int matrixRowToGridCol(int i) \n {\n return (i % dimSquared) / gDim + 1;\n }", "public void getXpathFromGrid(){\n\t\tSystem.out.println(\"Monthly\");\n\t}", "private void recalculatePosition()\n {\n position.x = gridCoordinate.getCol()*(width+horizontal_spacing);\n position.y = gridCoordinate.getRow()*(heigh+vertical_spacing);\n }", "private void drawHorizontalGrid(Graphics2D g2) {\r\n double minorSpacing = majorY / getMinorCountY();\r\n double axisV = xPositionToPixel(originX);\r\n \r\n Stroke gridStroke = new BasicStroke(STROKE_GRID);\r\n Stroke axisStroke = new BasicStroke(STROKE_AXIS);\r\n \r\n Rectangle clip = g2.getClipBounds();\r\n \r\n int position;\r\n \r\n if (!isAxisPainted()) {\r\n position = (int) xPositionToPixel(originX);\r\n if (position >= clip.x && position <= clip.x + clip.width) {\r\n g2.setColor(getMajorGridColor());\r\n g2.drawLine(position, clip.y, position, clip.y + clip.height);\r\n }\r\n }\r\n\r\n// double startY = Math.floor((minY - originY) / majorY) * majorY;\r\n double startY = Math.floor(minY / majorY) * majorY;\r\n for (double y = startY; y < maxY + majorY; y += majorY) {\r\n g2.setStroke(gridStroke);\r\n g2.setColor(getMinorGridColor());\r\n for (int i = 0; i < getMinorCountY(); i++) {\r\n position = (int) yPositionToPixel(y - i * minorSpacing);\r\n if (position >= clip.y && position <= clip.y + clip.height) {\r\n g2.drawLine(clip.x, position, clip.x + clip.width, position); \r\n }\r\n }\r\n\r\n position = (int) yPositionToPixel(y);\r\n if (position >= clip.y && position <= clip.y + clip.height) {\r\n g2.setColor(getMajorGridColor());\r\n g2.drawLine(clip.x, position, clip.x + clip.width, position);\r\n\r\n if (isAxisPainted()) {\r\n g2.setStroke(axisStroke);\r\n g2.setColor(getAxisColor());\r\n g2.drawLine((int) axisV - 3, position, (int) axisV + 3, position);\r\n }\r\n }\r\n }\r\n }", "void printGrid() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public GameObject[][] getGrid(){\n\t\t\r\n\t\treturn this.grid;\r\n\t}", "public static void displayGrid(int grid[][])\n {\n for(int k = 0; k<10;k++)\n {\n System.out.print(k);\n }\n System.out.println();\n for (int i =0; i<10;i++)\n {\n for(int j = 0; j<10;j++)\n {\n if (grid[i][j]==1)\n System.out.print(\"#\");\n else \n System.out.print(\" \");\n }\n System.out.println(i);\n }\n }", "public static void explore(char[][] grid, int i, int j, int x, int y) {\n grid[i][j] = 'x';\n for (int d = 0; d < dx.length; d++) {\n if (i + dy[d] < x && i + dy[d] >= 0 && j + dx[d] < y && j + dx[d] >= 0\n && grid[i + dy[d]][j + dx[d]] == '1') {\n explore(grid, i + dy[d], j + dx[d], x, y);\n }\n }\n }", "public void updategrid(int[][] grid) {\n this.grid = grid;\n }", "@Override public List<String> gridRepresentation() {\n assert(checkRep());\n return representation;\n }", "public static void drawGridPart(Grid grid, String name, PreciseNumber x, PreciseNumber y, int scale) {\n\t\tBufferedImage img = new BufferedImage(10*SIZE+1,\n\t\t\t\t(int)Math.ceil(10*SIZE/grid.seqLen())+1, BufferedImage.TYPE_4BYTE_ABGR);\n\t\tGraphics g = img.createGraphics();\n\t\tg.setColor(Color.white);\n\t\t//g.fillRect(0, 0, 10*SIZE+1, (int)Math.ceil(10*SIZE/grid.seqLen())+1);\n\t\tgrid.drawGridPart(g, 10*SIZE, x, y, scale);\n\t\ttry {\n\t\t\tImageIO.write(img, \"jpg\", new File(name + \".jpg\"));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(name + \".jpg could not be written\");\n\t\t}\n\t}", "public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }", "private void paintGrid() {\n\n g2d.setColor(_BOARDCOLOR); //Set the color to specific color of the board.\n\n for(int i = 0; i < grids.size(); i++) { //Iterating the 16 grids while drawing each on JComponent.\n\n g2d.draw(grids.get(i));\n }\n }", "private void printSymbols(int x,int y,int row) {\n\t\tString field = \" \";\r\n\t\tfor (int i = x - 1; i < y; i++) {\r\n\t\t\tfield += \" \" + this.grid[row - 1][i].getSymbol() +\" \";\r\n\t\t}\r\n\t\tSystem.out.println(\" \" + field);\r\n\t}", "public String fixedNumbersToString(){\n\t\tint numDigits = size / 10 + 1;\n\t\tStringBuilder builder = new StringBuilder();\n\t\t// delimiter between size x size squares\n\t\tString delimiter = \"\";\n\t\tfor (int i = 0; i < (numDigits+1)*size*size+2*(size-1); i++){\n\t\t\tdelimiter += \"-\";\n\t\t}\n\t\tfor (int i = 0; i < size*size; i++){\n\t\t\tif (i != 0 && i % size == 0){\n\t\t\t\tbuilder.append(delimiter);\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int j = 0; j < size*size; j++){\n\t\t\t\tif (j != 0 && j % size == 0){\n\t\t\t\t\tbuilder.append(\"| \");\n\t\t\t\t}\n\t\t\t\tif (fixedNumbers[i][j])\n\t\t\t\t\tbuilder.append(\"x \");\n\t\t\t\telse\n\t\t\t\t\tbuilder.append(\"o \");\n\t\t\t}\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\treturn builder.toString();\n\t}", "public double[] getAbscissaGrid() {\n return xArr.clone();\n }", "public void drawGrid(Graphics2D g, int width, int height, double minX,\n double minY, double maxX, double maxY) {\n g.setColor(Color.BLACK);\n Color gridC; //= new Color(Color.white.getRGB() - BackgroundColor.getRGB());\n Color LightGridC;\n double lumin = BackgroundColor.getRed() * 0.2126 + BackgroundColor.getGreen() * 0.7152\n + BackgroundColor.getBlue() * 0.0722;\n if (lumin > 255 / 2d) {\n gridC = Color.black;\n LightGridC = Color.GRAY;\n } else {\n gridC = Color.white;\n LightGridC = Color.lightGray;\n }\n g.setColor(gridC);\n upperX = maxX;\n lowerX = minX;\n\n upperY = maxY;\n lowerY = minY;\n //debug, drawLine bounds\n// g.drawLine(XOffSet, YOffSet, width, YOffSet);\n// g.drawLine(XOffSet, height, width, height); //X\n//\n// g.drawLine(XOffSet, YOffSet, XOffSet, height);\n// g.drawLine(width, YOffSet, width, height); //Y\n // g.drawLine(30, YOffSet, 30, 0);\n //g.drawLine(XOffSet, 30, 0, 30);\n double Xscale = GetXScale(width);\n double Yscale = GetYScale(height);\n int centerX = getCenterX(width);\n int centerY = getCenterY(height);//-lowerY*Yscale);\n\n // drawLine axis\n g.drawLine(XOffSet, centerY, width, centerY); //X axis\n g.drawLine(centerX, YOffSet, centerX, height); //Y axis\n\n\n //draws grid, numbers and increment lines\n int fontSizeX = (width / (increments * 4));\n int fontSizeY = (height / increments);\n if (fontSizeX > 15) {\n fontSizeX = 15;\n }\n if (fontSizeY > 15) {\n fontSizeY = 15;\n }\n //x-axis\n int t = (int) ((width) * 0.01);\n g.setFont(new Font(\"MonoType\", Font.PLAIN, (fontSizeX)));\n FontMetrics font = g.getFontMetrics();\n for (double i = XOffSet; i <= width; i += ((width - XOffSet) / increments)) {\n if (t == 0) {\n t = 1;\n }\n if (showGrid && i != centerX) {\n g.setColor(LightGridC);\n g.drawLine((int) i, YOffSet, (int) i, height);\n g.setColor(gridC);\n }\n if (showScale) {\n g.drawLine((int) i, (centerY + t), (int) i, (centerY - t));\n }\n\n if (showNumbers) {\n double d = Math.round(100 * ((((width - XOffSet) / Xscale) / (upperX - lowerX)\n * (((i - XOffSet) / Xscale))) + lowerX));\n String o = Double.toString(\n d / 100);\n int textWidth = font.stringWidth(o);\n g.drawString(o, (int) i - textWidth / 2, (centerY + t + font.getHeight()));\n }\n }\n //y axis\n t = (int) (height * 0.01);\n g.setFont(new Font(\"MonoType\", Font.PLAIN, (fontSizeY)));\n font = g.getFontMetrics();\n for (double i = YOffSet; i <= height; i += ((height - YOffSet) / increments)) {\n if (t == 0) {\n t = 1;\n }\n if (showGrid && i != centerY) {\n g.setColor(LightGridC);\n g.drawLine(XOffSet, (int) i, width, (int) i);\n g.setColor(gridC);\n }\n if (showScale) {\n g.drawLine(centerX - t, (int) i, centerX + t, (int) i);\n }\n\n if (showNumbers) {\n double d = Math.round(100 * ((((upperY - lowerY) / ((height - YOffSet) / Yscale)\n * (height - (i)) / Yscale) + lowerY)));\n String o = Double.toString(\n d / 100);\n int textWidth = font.stringWidth(o);\n g.drawString(o, centerX - t - textWidth,\n (int) ((i + font.getHeight() / 2)));\n }\n }\n }", "@Override\n\tpublic String toString(){\n\t\t// return a string of the board representation following these rules:\n\t\t// - if printed, it shows the board in R rows and C cols\n\t\t// - every cell should be represented as a 5-character long right-aligned string\n\t\t// - there should be one space between columns\n\t\t// - use \"-\" for empty cells\n\t\t// - every row ends with a new line \"\\n\"\n\t\t\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tfor (int i=0; i<numRows; i++){\n\t\t\tfor (int j =0; j<numCols; j++){\n\t\t\t\tPosition pos = new Position(i,j);\n\t\t\t\t\n\t\t\t\t// use the hash table to get the symbol at Position(i,j)\n\t\t\t\tif (grid.contains(pos))\n\t\t\t\t\tsb.append(String.format(\"%5s \",this.get(pos)));\n\t\t\t\telse\n\t\t\t\t\tsb.append(String.format(\"%5s \",\"-\")); //empty cell\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\n\t}", "private int xyToOneD(int row, int col) {\n return ((row - 1) * grid.length) + (col - 1);\n }", "public int[] getCurrentPieceGridPosition() {\n\t\treturn currentPieceGridPosition; \n\t}", "private static void printGrid1(Vector<State> states) {\n\t\tint k = 0;\n\t\tfor (State s : states) {\n\t\t\tif (k == 3) {\n\t\t\t\tk = 0;\n\t\t\t\tSystem.out.print(\"\\n\\n\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\" \" + String.format(\"%.1f\", s.getqUval()) + \" \");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(String.format(\"%.1f\", s.getqLval()));\n\t\t\tSystem.out.print(\" \" + String.format(\"%.1f\", s.getqRval()) + \"\\t\");\n\t\t\tSystem.out.println();\n\n\t\t\tSystem.out.print(\" \" + String.format(\"%.1f\", s.getqDval()));\n\n\t\t}\n\n\t}", "private void addLine(int number, int x, int y, int z) {\n grid[x][y][z] = \"L\" + number;\n }" ]
[ "0.6451026", "0.63118786", "0.6279986", "0.61455697", "0.6108756", "0.60657126", "0.6031508", "0.60029054", "0.59993446", "0.5981523", "0.5962801", "0.5941021", "0.5926198", "0.58644634", "0.585865", "0.585192", "0.58495903", "0.5835163", "0.58286655", "0.5822887", "0.5820329", "0.58086246", "0.5730407", "0.5723554", "0.57139254", "0.56856275", "0.5663055", "0.56544584", "0.5622258", "0.5620373", "0.5615558", "0.5610144", "0.560389", "0.5586137", "0.55820745", "0.5580382", "0.5579793", "0.5571201", "0.5553726", "0.5547157", "0.5541721", "0.5536328", "0.55330896", "0.55235404", "0.5516083", "0.5499862", "0.5496946", "0.54934406", "0.5490446", "0.5487354", "0.5469219", "0.5466794", "0.5439681", "0.5428312", "0.5423209", "0.5419691", "0.5419691", "0.5412706", "0.5408517", "0.5403183", "0.5400586", "0.53963876", "0.5394441", "0.5391266", "0.53892154", "0.53866047", "0.5377232", "0.5373928", "0.5364939", "0.5350596", "0.534985", "0.53486145", "0.5347182", "0.5343486", "0.5343416", "0.5339415", "0.5336236", "0.5329798", "0.53259325", "0.5319393", "0.53155655", "0.5312009", "0.53118145", "0.53004843", "0.52987057", "0.52966833", "0.529114", "0.5289503", "0.5283293", "0.52823275", "0.52796745", "0.52730453", "0.52721715", "0.5270917", "0.5270675", "0.5268857", "0.5268222", "0.52603066", "0.52573186", "0.525004", "0.52298003" ]
0.0
-1
now going from grid notation to actual notation
public int getClassNotation(int x, int y){ if(x==0){ //first col if(y==0) return 29; else if(y==2) return 21; else if(y==4) return 13; else return 5; }else if(x==1){ //2nd col if(y==1) return 25; else if(y==3) return 17; else if(y==5) return 9; else return 1; }else if(x==2){ //3rd col if(y==0) return 30; else if(y==2) return 22; else if(y==4) return 14; else return 6; }else if(x==3){ //4th col if(y==1) return 26; else if(y==3) return 18; else if(y==5) return 10; else return 2; }else if(x==4){ //5th col if(y==0) return 31; else if(y==2) return 23; else if(y==4) return 15; else return 7; }else if(x==5){ //6th col if(y==1) return 27; else if(y==3) return 19; else if(y==5) return 11; else return 3; }else if(x==6){ //7th col if(y==0) return 32; else if(y==2) return 24; else if(y==4) return 16; else return 8; }else{ //8th col if(y==1) return 28; else if(y==3) return 20; else if(y==5) return 12; else return 4; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Cell[][] updateCellLocation(Cell[][] grid) {\n\n //Iterate through the grid\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n grid[x][y].setXCord(x); //Set the new X co-ordinate\n grid[x][y].setYCord(y); //Set the new Y co-ordinate\n }\n }\n\n return grid;\n }", "public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }", "private Grid(Grid oldGrid) {\n\n grid = new String[Main.Y_SIZE][Main.X_SIZE][Main.Z_SIZE];\n this.gateDatabase = oldGrid.gateDatabase;\n this.netDatabase = oldGrid.netDatabase;\n\n for (int i = 0; i < Main.Z_SIZE; i++) {\n for (int k = 0; k < Main.X_SIZE; k++) {\n for (int n = 0; n < Main.Y_SIZE; n++) {\n grid[n][k][i] = oldGrid.grid[n][k][i];\n }\n }\n }\n }", "public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }", "public String boardCellToString() {\n String str;\n Integer convertX, convertY;\n //adjusting the co'ordinates because the board starts at 1 not 0\n convertX=this.xCor + 1;\n convertY= this.yCor + 1;\n str = \"(\" + convertX.toString() + \",\" + convertY.toString() + \")\";\n return str;\n }", "public void printGrid(){\n\t\tfor(int i=0;i<getHeight();i++){\n\t\t\tfor(int j=0;j<getWidth();j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tSystem.out.print(\"- \");\n\t\t\t\telse if(getGrid(i,j).isPath())\n\t\t\t\t\tSystem.out.print(\"1 \");\n\t\t\t\telse if(getGrid(i,j).isScenery())\n\t\t\t\t\tSystem.out.print(\"0 \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\"? \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println();\n\t}", "public void printGrid(char[][] grid){\r\n\t\tSystem.out.println(grid[0][0] + \"|\" + grid[0][1] + \"|\" + grid[0][2] + \"|\" + grid[0][3] + \"|\" + grid[0][4] + \"|\" + grid[0][5] + \"|\" + grid[0][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[1][0] + \"|\" + grid[1][1] + \"|\" + grid[1][2] + \"|\" + grid[1][3] + \"|\" + grid[1][4] + \"|\" + grid[1][5] + \"|\" + grid[1][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[2][0] + \"|\" + grid[2][1] + \"|\" + grid[2][2] + \"|\" + grid[2][3] + \"|\" + grid[2][4] + \"|\" + grid[2][5] + \"|\" + grid[2][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[3][0] + \"|\" + grid[3][1] + \"|\" + grid[3][2] + \"|\" + grid[3][3] + \"|\" + grid[3][4] + \"|\" + grid[3][5] + \"|\" + grid[3][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[4][0] + \"|\" + grid[4][1] + \"|\" + grid[4][2] + \"|\" + grid[4][3] + \"|\" + grid[4][4] + \"|\" + grid[4][5] + \"|\" + grid[4][6]);\r\n\t\tSystem.out.println(\"-------------\");\r\n\t\tSystem.out.println(grid[5][0] + \"|\" + grid[5][1] + \"|\" + grid[5][2] + \"|\" + grid[5][3] + \"|\" + grid[5][4] + \"|\" + grid[5][5] + \"|\" + grid[5][6]);\r\n\t}", "default int gridToSlot(int x, int y) {\n return y * 9 + x;\n }", "@Override\n public void buildGrid(){\n for(int column=0; column<columns; column++){\n for(int row=0; row<rows; row++){\n grid[column][row] = \"[ ]\";\n }\n }\n }", "private void displayGrid() {\r\n System.out.print(this.grid);\r\n }", "@Override public List<String> gridRepresentation() {\n assert(checkRep());\n return representation;\n }", "private void updateGrid() {\n if (intersection != null) {\n colorizeGrid();\n for (int x = 0; x < field.length; x++) {\n for (int y = 0; y < field[0].length; y++) {\n field[x][y].setText(intersection.getLetterCode(x, y));\n }\n }\n }\n }", "@Override\n public void printGrid(){\n for(int row = 0; row < rows; row++){\n System.out.print(\"\\n\");\n if(row==0){\n char row_char='A';\n System.out.print(\" |\");\n for(int i=0; i<rows; i++){\n System.out.print(\"[\" + row_char + \"]\");\n row_char++;\n }\n System.out.print(\"\\n\");\n System.out.print(\"---|\");\n for(int i=0; i<rows;i++){\n System.out.print(\"---\");\n }\n System.out.print(\"\\n\");\n }\n\n for(int column = 0; column < columns; column++){\n if (column==0){System.out.print(\"[\"+row+\"]|\");}\n System.out.print(grid[row][column]);\n }\n }\n }", "private int xyTo1D(int row, int col)\n {\n validate(row, col);\n return (row-1) * gridSize + col-1;\n }", "@Override\n protected void drawGrid(Graphics2D g2, int startPos, int rightEdgePos, int bottomEdgePos, int start,\n int nrows1, int ncols1, int gridOffset) {}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}", "private static void flagCell(String[] grid, int i, int j) {\r\n\t\tif (j < 0 || j > 127 || i < 0 || i > 127 || grid[i].charAt(j) != '1') return; // boundary test + value test\r\n\t\tStringBuilder sb = new StringBuilder(grid[i]);\r\n\t\tsb.setCharAt(j, 'x');\r\n\t\tgrid[i] = sb.toString();\r\n\t\tflagCell(grid, i, j-1);// flag left cell\r\n\t\tflagCell(grid, i-1, j); // flag upper cell\r\n\t\tflagCell(grid, i, j+1);// flag right cell\r\n\t\tflagCell(grid, i+1, j);// flag bottom cell\r\n\t}", "public String printGrid() {\n String s = \"KEY: \\n- (sea) = no boat not shot\"\n + \"\\nM (miss) = no boat SHOT \"\n +\" \\nB (boat) = boat not shot\"\n + \"\\nH (hit) = boat SHOT\"\n + \"\\n***********************************************************\\n\";\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n s += decideLetter(grid[i][j]) + \"\\t\";\n }\n s += \"\\n\";\n }\n return s;\n }", "public void displayGrid()\n {\n\t\t\n\tfor (int y=0; y<cases.length; y++)\n\t{\n for (int x=0; x<cases[y].length; x++)\n {\n\t\tSystem.out.print(\"|\"+cases[y][x].getValue());\n }\n System.out.println(\"|\");\n\t}\n }", "@Override\n public void resetGrids() {\n view.clearGrid(false);\n\n // then remove non-given numbers\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n if (!grid.isGiven(row, col)) {\n grid.unsetNumber(row, col);\n }\n }\n }\n\n // finally, display the givens on the view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n }\n }\n }\n }", "public void updateGridX();", "public void displayGrid ()\n {\n for (int i = 0; i < getDimX(); i++) {\n System.out.print(\"[ \");\n for (int y = 0; y < getDimY(); y++) {\n System.out.print(m_grid[i][y]);\n System.out.print(\" \");\n }\n System.out.println(\"]\");\n }\n }", "public String toString ()\n\t{\n\t\tString s = \"Grid:\\n\";\n\t\tfor (int row=0; row<GRID_SIZE; row++)\n\t\t{\n\t\t\tfor (int col=0; col<GRID_SIZE; col++) {\n\t\t\t\ts = s + grid[col][row].value()+ \" \";\n\t\t\t}\n\t\t\ts += \"\\n\";\n\t\t}\n\t\treturn s;\n\t}", "private void updateGridWithPosition(Pair<Integer, Integer> position) {\n int x = position.getValue0();\n int y = position.getValue1();\n int ox = origin.getValue0();\n int oy = origin.getValue1();\n while (ox + Math.abs(x) >= grid[0].length || oy + Math.abs(y) >= grid.length) {\n reallocateGrid();\n }\n if (x >= 0 && y >= 0) {\n grid[oy + y][ox + x] = '#';\n } else if (x >= 0) {\n grid[oy - Math.abs(y)][ox + x] = '#';\n } else if (y >= 0) {\n grid[oy + y][ox - Math.abs(x)] = '#';\n } else {\n grid[oy - Math.abs(y)][ox - Math.abs(x)] = '#';\n }\n }", "private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }", "private int matrixRowToGridVal(int i) \n {\n return i % gDim + 1;\n }", "@Override\n\tpublic String toString(){\n\t\t// return a string of the board representation following these rules:\n\t\t// - if printed, it shows the board in R rows and C cols\n\t\t// - every cell should be represented as a 5-character long right-aligned string\n\t\t// - there should be one space between columns\n\t\t// - use \"-\" for empty cells\n\t\t// - every row ends with a new line \"\\n\"\n\t\t\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tfor (int i=0; i<numRows; i++){\n\t\t\tfor (int j =0; j<numCols; j++){\n\t\t\t\tPosition pos = new Position(i,j);\n\t\t\t\t\n\t\t\t\t// use the hash table to get the symbol at Position(i,j)\n\t\t\t\tif (grid.contains(pos))\n\t\t\t\t\tsb.append(String.format(\"%5s \",this.get(pos)));\n\t\t\t\telse\n\t\t\t\t\tsb.append(String.format(\"%5s \",\"-\")); //empty cell\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\n\t}", "GameBoard(){\r\n int i, j;\r\n char first = '0';\r\n grid = new char[yMax][xMax];\r\n\r\n grid[0][0] = ' ';\r\n\r\n //labels rows\r\n for(i = 1; i < yMax; i++){\r\n j = 0;\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n\r\n //labels columns\r\n first = '0';\r\n for(j = 1; j < xMax; j++){\r\n i = 0;\r\n if(j % 2 == 0) {\r\n grid[i][j] = first;\r\n first++;\r\n }\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n\r\n //separates squares with '|'\r\n for(i = 1; i < yMax; i++){\r\n for(j = 1; j < xMax; j++){\r\n if(j % 2 != 0)\r\n grid[i][j] = '|';\r\n else\r\n grid[i][j] = ' ';\r\n }\r\n }\r\n }", "public CharGrid(char[][] grid) {\n\t\tthis.grid = grid;\n\t}", "public String toString(){\n\t\tchar[][] boardRep = new char[yDim + 2][xDim + 2];\n\t\t\n\t\tfor(int i = 0; i < boardRep.length; i++){\n\t\t\tfor(int j = 0; j < boardRep[i].length; j++){\n\t\t\t\tboardRep[i][j] = ' ';\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < yDim + 2; i++){\n\t\t\tboardRep[i][0] = '.';\n\t\t\tboardRep[i][xDim + 1] = '.';\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < xDim + 2; i++){\n\t\t\tboardRep[0][i] = '.';\n\t\t\tboardRep[yDim + 1][i] = '.';\n\t\t}\n\t\t\n\t\tfor (Gadget g : gadgets){\n\t\t\tif(g instanceof SquareBumper){\n\t\t\t\tboardRep[g.getY() + 1][g.getX() + 1]= '#';\n\t\t\t}else if(g instanceof TriangularBumper){\n\t\t\t\tif(((TriangularBumper) g).getOrientation() % 2 == 0)\t\n\t\t\t\t\tboardRep[g.getY() + 1][g.getX() + 1]= '/';\n\t\t\t\tif(((TriangularBumper) g).getOrientation() % 2 == 1)\t\n\t\t\t\t\tboardRep[g.getY() + 1][g.getX() + 1]= '\\\\';\n\t\t\t}else if(g instanceof CircularBumper){\n\t\t\t\tboardRep[g.getY() + 1][g.getX() + 1]= 'O';\n\t\t\t}else if(g instanceof Absorber){\n\t\t\t\tfor(int i=g.getX(); i < g.getX() + g.getWidth(); i++){\n\t\t\t\t\tfor(int j=g.getY(); j < g.getY() + g.getHeight(); j++){\n\t\t\t\t\t\tboardRep[j + 1][i + 1] = '=';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else if(g instanceof Flipper){\n\t\t\t\tFlipper f = (Flipper) g;\n\t\t\t\tif (f.isLeft && f.orientation == 0){\n\t\t\t\t\tboardRep[f.getY()+1][f.getX()+1] = '|';\n\t\t\t\t\tboardRep[f.getY()+2][f.getX()+1] = '|';\n\t\t\t\t} else if(f.orientation == 0){\n\t\t\t\t\tboardRep[f.getY()+1][f.getX()+2] = '|';\n\t\t\t\t\tboardRep[f.getY()+2][f.getX()+2] = '|';\n\t\t\t\t} else{\n\t\t\t\t\tboardRep[f.getY()+1][f.getX()+1] = '-';\n\t\t\t\t\tboardRep[f.getY()+1][f.getX()+2] = '-';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(Ball b : balls){\n\t\t\tboardRep[(int) (b.getY() + 1)][(int) (b.getX() + 1)]= '*';\n\t\t}\n\t\t\n\t\tStringBuffer boardString = new StringBuffer();\n\t\tfor(char[] row : boardRep){\n\t\t\tfor(char c : row){\n\t\t\t\tboardString.append(c);\n\t\t\t}\n\t\t\tboardString.append('\\n');\n\t\t}\n\t\t\n\t\treturn boardString.toString();\n\t}", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" + gy + \")\");\n\t}\n }", "public void setGrid(int x ,int y,char newValue){\n\t\tGrid[x][y] = newValue;\n\t}", "static void printGrid (int[][] G){\n for(int i=1; i<G.length; i++){\n for (int j=1; j<G[i].length; j++){\n if (G[i][j]==0){\n System.out.print(\"- \");\n } else System.out.print(G[i][j]+\" \");\n if ( j==3) System.out.print(\" \");\n if ( j==6) System.out.print(\" \");\n if ( j==9) System.out.print(\"\\n\");\n }\n if ( i==3) System.out.print(\"\\n\");\n if ( i==6) System.out.print(\"\\n\");\n }\n }", "private Grid makeGrid()\n\t{\n\t\tGrid grid = Grid.grid().\n\t\t\t\tBus(\"1\").\n\t\t\t\tSlackSource(\"Slack\", BASE_VOLTAGE, 0, 0, 0).\n\t\t\t\tLine(\"1-2\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\tBus(\"2\").\n\t\t\t\t\t\tControllableDemand(\"S\").\n\t\t\t\t\t\tLine(\"2-3\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\t\tBus(\"3\").\n\t\t\t\t\t\t\t\tLoad(\"L\").\n\t\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tterminate().\n\t\t\t\t\t\tLine(\"2-4\", 1, 0.06*BASE_IMPEDANCE, 0.03*BASE_IMPEDANCE).\n\t\t\t\t\t\tBus(\"4\").\n\t\t\t\t\t\t\tDistributedSource(\"DG\").\n\t\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\t\tterminate().\n\t\t\t\tterminate().\n\t\t\tterminate().\n\t\tgrid();\n\t\t\n\t\t// x_0:\n\t\tLoad load = grid.getLoad(\"L\");\n\t\tControllableDemand storage = grid.getControllableDemand(\"S\");\n\t\tDistributedSource dg = grid.getDistributedSource(\"DG\");\n\t\tsetupUnits(load, storage, dg);\n\t\t\n\t\treturn grid;\n\t}", "public static void explore(char[][] grid, int i, int j, int x, int y) {\n grid[i][j] = 'x';\n for (int d = 0; d < dx.length; d++) {\n if (i + dy[d] < x && i + dy[d] >= 0 && j + dx[d] < y && j + dx[d] >= 0\n && grid[i + dy[d]][j + dx[d]] == '1') {\n explore(grid, i + dy[d], j + dx[d], x, y);\n }\n }\n }", "@Test\n\tpublic void testGetGridOffsetValues() {\n\t\tAssert.assertEquals(13.68, Geoid.getGridOffset(90.0, 0.0), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\n\t\t// random grid params from EGM.complete.txt.gz\n\t\t// 89.74 5.75 13.89\n\t\t// 86.5 217.25 11.76\n\t\t// 71.25 8.0 43.56\n\t\t// 54.0 182.25 2.35\n\t\t// 35.5 186.0 -12.91\n\t\t// 14.75 213.5 -8.07\n\t\t// -22.25 221.5 -10.18\n\t\t// -37.5 13.0 25.61\n\t\t// -51.75 157.25 -17.88\n\t\t// -70.5 346.0 5.18\n\t\t// -74.5 22.0 17.5\n\t\t// -84.5 306.25 -25.71\n\t\t// -86.75 328.75 -21.81\n\n\t\tAssert.assertEquals(13.89, Geoid.getGridOffset(89.74, 5.75), EPSILON); \n\t\tAssert.assertEquals(11.76, Geoid.getGridOffset(86.5, 217.25), EPSILON);\n\t\tAssert.assertEquals(43.56, Geoid.getGridOffset(71.25, 8.0), EPSILON);\n\t\tAssert.assertEquals(2.35, Geoid.getGridOffset(54.0, 182.25), EPSILON);\n\t\tAssert.assertEquals(-12.91, Geoid.getGridOffset(35.5, 186.0), EPSILON);\n\t\tAssert.assertEquals(-8.07, Geoid.getGridOffset(14.75, 213.5), EPSILON);\n\t\tAssert.assertEquals(-10.18, Geoid.getGridOffset(-22.25, 221.5), EPSILON);\n\t\tAssert.assertEquals(25.61, Geoid.getGridOffset(-37.5, 13.0), EPSILON);\n\t\tAssert.assertEquals(-17.88, Geoid.getGridOffset(-51.75, 157.25), EPSILON);\n\t\tAssert.assertEquals(5.18, Geoid.getGridOffset(-70.5, 346.0), EPSILON);\n\t\tAssert.assertEquals(17.5, Geoid.getGridOffset(-74.5, 22.0), EPSILON);\n\t\tAssert.assertEquals(-25.71, Geoid.getGridOffset(-84.5, 306.25), EPSILON);\n\t\tAssert.assertEquals(-21.81, Geoid.getGridOffset(-86.75, 328.75), EPSILON);\n\t\tAssert.assertEquals(-29.79, Geoid.getGridOffset(-90.0, 0.0), EPSILON);\n\t}", "public void printGrid(){\n\t\tfor (int i = 0; i < 8; i++){\n\t\t\tfor (int j = 0; j < 8; j++)\n\t\t\t\tSystem.out.print(Grid[i][j]+\" \"); \n\t\t\tSystem.out.println(); \n\t\t}\n\t}", "public void changeGrid(int sign, boolean up) {\n // If vertical, applies change to the numY. Else to the numX.\n if (up)\n numY += sign;\n else\n numX += sign;\n\n // Ensures that the num values do not point to a non-existent element of the grid.\n if (numX < 0)\n numX = 0;\n\n if (numX > 15)\n numX = 15;\n\n if (numY < 0)\n numY = 0;\n\n if (numY > 15)\n numY = 15;\n\n // Plays the sound that indicates the player moved the cursor.\n storage.sounds.get(\"click1\").play(1.0f);\n }", "static String[] cavityMap(String[] grid) {\r\n \tString[] ret = new String[grid.length];\r\n \t\r\n \tfor (int i = 0; i < grid.length; i++) {\r\n \t\tif (i == 0 || i == grid.length-1) { //first or last row\r\n \t\t\tret[i] = grid[i];\r\n \t\t} else {\r\n \t\t\tchar[] beforeRow = grid[i-1].toCharArray();\r\n \t\t\tchar[] actualRow = grid[i].toCharArray();\r\n \t\t\tchar[] nextRow = grid[i+1].toCharArray();\r\n \t\t\tfor (int j = 0; j < actualRow.length; j++) {\r\n \t\t\t\tif (j > 0 && j < actualRow.length -1) {\r\n \t\t\t\t\tint upper = Character.getNumericValue(beforeRow[j]);\r\n \t\t\t\t\tint lower = Character.getNumericValue(nextRow[j]);\r\n \t\t\t\t\tint left = Character.getNumericValue(actualRow[j-1]);\r\n \t\t\t\t\tint right = Character.getNumericValue(actualRow[j+1]);\r\n \t\t\t\t\tint actual = Character.getNumericValue(actualRow[j]);\r\n \t\t\t\t\tif (actual > upper && actual > lower && actual > left && actual > right) {\r\n \t\t\t\t\t\tactualRow[j] = 'X';\r\n \t\t\t\t\t}\r\n \t\t\t\t\t\r\n \t\t\t\t}\r\n \t\t\t\tif (ret[i] == null)\r\n \t\t\t\t\tret[i] = actualRow[j]+\"\";\r\n \t\t\t\telse\r\n \t\t\t\t\tret[i] = ret[i]+actualRow[j];\r\n \t\t\t}\r\n \t\t} \t\t\r\n \t}\r\n \t\r\n \treturn ret;\r\n }", "private int xyTo1D(int i, int j) {\n return (mGridSize * (i - 1) + j);\n }", "public char getGrid(int x ,int y){\n\t\treturn Grid[x][y] ;\n\t}", "public String toString(){\n\t\tString board = \"\";\n\t\tfor(int i = 0; i < rows; i++){\n\t\t\tfor(int j = 0; j < columns; j++){\n\t\t\t\tif(theGrid[i][j]){ //iterate through, if cell is alive, mark with *\n\t\t\t\t\tboard += \"*\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tboard += \" \"; //else, [space]\n\t\t\t\t}\n\t\t\t}\n\t\t\tboard += \"\\n\";//create a new line, to create the board\n\t\t}\n\t\treturn board; //return the board\n\t}", "public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }", "public String toString() {\n String result = \"\";\n result += \" \";\n // Column numbers\n for (int i = 0; i < numberOfColumns; i++) {\n result += (i % 10) + \" \";\n }\n result += \"\\n\";\n result += \" \";\n // Horizontal dividers\n for (int i = 0; i <= 2 * this.numberOfColumns - 2 ; i++) {\n result += HORI_DIVIDE;\n }\n result += \"\\n\";\n // Each horizontal line has the line number, a divider, and the safe data.\n for (int i = 0; i < numberOfRows; i++) {\n result += (i % 10);\n result += VERT_DIVIDE;\n for (int j = 0; j < numberOfColumns; j++) {\n result += grid[i][j];\n if (j != numberOfColumns - 1) {\n result += \" \";\n }\n }\n if (i != numberOfRows - 1) {\n result += \"\\n\";\n }\n }\n return result;\n }", "private static String[] rotateGrid(String[] grid) {\n\t\tString[] tmp = new String[grid.length];\n\t\tfor(int col = 0; col < grid.length; col++) {\n\t\t\ttmp[col] = \"\";\n\t\t\tfor(int row = grid.length-1; row >= 0; row--) {\n\t\t\t\ttmp[col] += grid[row].charAt(col);\n\t\t\t}\n\t\t}\n\t\treturn tmp;\n\t}", "public VisuCoordinateTranslator() {\r\n limitedDirections = new HashMap<String, Integer>();\r\n limitedCoordinates = new HashMap<String, Shape>();\r\n limitedGroundCoordinates = new HashMap<String, Float[]>();\r\n Float c[] = {22f, 2f, 8.5f, -1.7f, 0f};\r\n limitedDirections.put(\"Status_GWP01\", 0);\r\n ArrayList a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n StraightShape ss = new StraightShape(a);\r\n limitedCoordinates.put(\"0.1.0\", ss);\r\n\r\n\r\n c = new Float[]{-0.97f, 0.88f, 0f, -0.1f, 1f};\r\n limitedDirections.put(\"Status_ETKa1\", 1);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"1.1.0\", ss);\r\n\r\n limitedDirections.put(\"Status_ETKa2\", 1);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa1\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n c = new Float[]{0.07f, -0.74f, 0f, 0f, 1f};\r\n limitedDirections.put(\"LAM_ETKa2\", 2);\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n ss = new StraightShape(a);\r\n\r\n\r\n limitedCoordinates.put(\"2.1.0\", ss);\r\n\r\n ArrayList<ArrayList<Float>> arrayOval = new ArrayList<ArrayList<Float>>();\r\n c = new Float[]{6.3f, -2f, 7.3f, -14.38f, 0f};//straight_1\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, -4.8f, 7.3f, -14.38f, 0f};//straight_2\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.072f, 0.0695f, 2.826f, -5.424f, -17.2f, 7.3f, 1f};//circular_3\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-4.8f, -2f, 7.3f, -19.715f, 0f};//straight_4\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{-2f, 6.3f, 7.3f, -19.715f, 0f};//straight_5\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.038f, 0.1032f, 2.833f, 6.567f, -17.2f, 7.3f, 1f};//circular_6\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n c = new Float[]{3.1302f, 0.0114f, 2.8202f, -2.0298f, -17.2f, 7.3f, 1f};//circular_7\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n \r\n c = new Float[]{0.41f, 0.48f, 0.6f, 0.67f, 0.78f, 0.92f};//partitions\r\n a = new ArrayList<Float>();\r\n a.addAll(Arrays.asList(c));\r\n arrayOval.add(a);\r\n\r\n\r\n OvalShape os = new OvalShape(arrayOval);\r\n\r\n for (int i = 2; i < 11; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n limitedCoordinates.put(\"1.\" + i + \".\" + j, os);\r\n limitedCoordinates.put(\"2.\" + i + \".\" + j, ss);\r\n }\r\n }\r\n\r\n \r\n \r\n c = new Float[]{2.0785f, -1.8972f};\r\n limitedGroundCoordinates.put(\"0.1.0\", c);\r\n c = new Float[]{-6.3859f,-0.4682f};\r\n limitedGroundCoordinates.put(\"1.1.0\", c);\r\n }", "public void printGrid()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\t\telse System.out.print( grid[x][y] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.print( \"\\n\" );\n\t}", "public void coordinatesShipConverter( Coordinates startCoord, Coordinates endCoord) {\n\t\t\r\n\t\tif (startCoord.getNumber()>endCoord.getNumber()) {\r\n\t\t\tint interm = startCoord.getNumber();\r\n\t\t\tstartCoord.setNumber(endCoord.getNumber());\r\n\t\t\tendCoord.setNumber(interm);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (startCoord.getLetter()>endCoord.getLetter()) {\r\n\t\t\tchar interm = startCoord.getLetter();\r\n\t\t\tstartCoord.setLetter(endCoord.getLetter());\r\n\t\t\tendCoord.setLetter(interm);\r\n\t\t}\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString grid = \"\";\n\t\tfor (int i = 0; i < this.getNumRow(); i++) {\n\t\t\tgrid = grid + this.storage.get(i).toString() + \"\\n\";\n\t\t}\n\t\tSystem.out.println(grid);\n\t\treturn grid;\n\t}", "public Grid decode (File file) throws IOException\n {\n String currentLine;\n int width = 0, height = 0;\n Grid _grid = null;\n\n try (BufferedReader br = new BufferedReader(new FileReader(file)))\n {\n // skip all the lines that we are not using\n while ((currentLine = br.readLine()) != null) {\n if (currentLine.startsWith(\"#\")) { continue; }\n if (currentLine.startsWith(\"x = \"))\n {\n for (String s : currentLine.split(\",\"))\n {\n if (s.contains(\"x = \"))\n {\n width = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else if (s.contains(\"y = \"))\n {\n height = Integer.valueOf(s.replaceAll(\"\\\\D+\", \"\"));\n }\n else\n {\n break;\n }\n }\n break;\n }\n }\n _grid = new Grid(height, width, false);\n\n int currentY = 0;\n int currentX = 0;\n int startX = 0;\n int i = 0;\n\n String kNumber = \"\"; // The number of times block should be repeated.\n String board = \"\";\n\n // convert the board to a long string\n while ((currentLine = br.readLine()) != null)\n {\n board += currentLine;\n }\n\n for (char c : board.toCharArray())\n {\n if (c == DEAD)\n {\n currentX += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == LIVE)\n {\n int count = (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n for (int j = 0; j < count; j++)\n {\n if (currentY < height && currentX < width)\n {\n _grid.setCell(true, currentX, currentY);\n }\n currentX++;\n }\n kNumber = \"\";\n }\n else if (c == EOL)\n {\n currentX = startX;\n currentY += (kNumber.equals(\"\") ? 1 : Integer.parseInt(kNumber));\n kNumber = \"\";\n }\n else if (c == EOF)\n {\n break;\n }\n else\n {\n kNumber += Integer.parseInt(board.substring(i, i + 1));\n }\n i++;\n }\n\n }\n return _grid;\n }", "public void createGrid() {\n\t\tint[][] neighbours = getIo().getNeighbours();\n\t\tsetGrid(new GridAlg(neighbours, animals));\n\t\tgetGrid().setStep(getStep());\n\t}", "private void drawGrid() {\r\n\t\t// loops through the 2d array of the grid.\r\n\t\tfor (int i = 0; i < TetrisGame.PANEL_WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < TetrisGame.PANEL_HEIGHT; j++) {\r\n\t\t\t\t// checks to see if the piece isn't empty, and draws the piece at it's position.\r\n\t\t\t\tif (game.grid[i][j] != Piece.PieceShape.E) {\r\n\t\t\t\t\tdrawSquare(i, j, Piece.getColor(game.grid[i][j]));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void method0() {\nprivate double edgeCrossesIndicator = 0;\n/** counter for additions to the edgeCrossesIndicator\n\t\t */\nprivate int additions = 0;\n/** the vertical level where the cell wrapper is inserted\n\t\t */\nint level = 0;\n/** current position in the grid\n\t\t */\nint gridPosition = 0;\n/** priority for movements to the barycenter\n\t\t */\nint priority = 0;\n/** reference to the wrapped cell\n\t\t */\nVertexView vertexView = null;\n}", "public void printGrid() {\n\t\tfor (int row = 0; row < ROWS; row++) {\n\t\t\tif (row % 3 == 0 && row != 0)\n\t\t\t\tSystem.out.println(\" |\\n ------------------------\");\n\t\t\telse if (row % 3 == 0)\n\t\t\t\tSystem.out.println(\" -------------------------\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\" | \");\n\t\t\tfor (int col = 0; col < COLUMNS; col++) {\n\t\t\t\tif (col % 3 == 0)\n\t\t\t\t\tSystem.out.print(\" | \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(grid[row][col]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" |\\n -------------------------\");\n\t}", "private void setGrid() {\r\n maxRows = (FORM_HEIGHT - FORM_HEIGHT_ADJUST) / SQUARE_SIZE;\r\n maxColumns = (FORM_WIDTH - FORM_WIDTH_ADJUST) / SQUARE_SIZE; \r\n grid = new JLabel[maxRows][maxColumns];\r\n int y = (FORM_HEIGHT - (maxRows * SQUARE_SIZE)) / 2;\r\n for (int row = 0; row < maxRows; row++) {\r\n int x = (FORM_WIDTH - (maxColumns * SQUARE_SIZE)) / 2;\r\n for (int column = 0; column < maxColumns; column++) {\r\n createSquare(x,y,row,column);\r\n x += SQUARE_SIZE;\r\n }\r\n y += SQUARE_SIZE;\r\n } \r\n }", "void printGrid() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void splitBoard(Posn start, int currRows, int currCols) {\n int startRow = start.x;\n int startCol = start.y;\n if (currRows != 1 && currCols != 1) {\n // top left piece\n this.board.get(startCol).get(startRow).down = true; \n\n // top right piece\n this.board.get(startCol + currCols - 1).get(startRow).down = true; \n\n // bottom left right\n this.board.get(startCol).get(startRow + currRows - 1).right = true; \n this.board.get(startCol).get(startRow + currRows - 1).up = true; // bottom left up\n\n // bottom, right, left\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).left = true; \n // bottom, right, up\n this.board.get(startCol + currCols - 1).get(startRow + currRows - 1).up = true; \n\n // connect middle pieces on both sides of subgrid\n for (int i = startRow + 1; i < startRow + currRows - 1; i++) { \n this.board.get(startCol).get(i).up = true;\n this.board.get(startCol).get(i).down = true;\n this.board.get(startCol + currCols - 1).get(i).up = true;\n this.board.get(startCol + currCols - 1).get(i).down = true;\n }\n // connect middle pieces on bottom of subgrid\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) { \n this.board.get(i).get(startRow + currRows - 1).left = true;\n this.board.get(i).get(startRow + currRows - 1).right = true;\n }\n }\n\n // grid base cases\n if (this.height == 1) {\n for (ArrayList<GamePiece> p : this.board) {\n if (p.get(0).row == 0) {\n p.get(0).right = true;\n }\n else if (p.get(0).row == this.width - 1) {\n p.get(0).left = true;\n }\n else {\n p.get(0).right = true;\n p.get(0).left = true;\n }\n }\n }\n else if (this.width == 1) {\n for (GamePiece p : this.board.get(0)) {\n if (p.col == 0) {\n p.down = true;\n }\n else if (p.col == this.height - 1) {\n p.up = true;\n }\n else {\n p.down = true;\n p.up = true;\n }\n }\n }\n else if (currRows == 2) {\n for (int i = startCol + 1; i < startCol + currCols - 1; i++) {\n this.board.get(i).get(startRow).down = true;\n this.board.get(i).get(startRow + 1).up = true;\n }\n }\n else if (currRows == 3 && currCols == 3) { // base case for odd grid\n this.board.get(startCol).get(startRow + 1).right = true;\n this.board.get(startCol + 1).get(startRow + 1).left = true;\n this.board.get(startCol + 1).get(startRow + 1).up = true;\n this.board.get(startCol + 1).get(startRow).down = true;\n\n }\n // recur if the grid can be divided into 4 non-overlapping quadrants\n else if (currRows > 3 || currCols > 3) { \n this.splitBoard(new Posn(startRow, startCol), (int) Math.ceil(currRows / 2.0),\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0), startCol), currRows / 2,\n (int) Math.ceil(currCols / 2.0));\n this.splitBoard(new Posn(startRow + (int) Math.ceil(currRows / 2.0),\n startCol + (int) Math.ceil(currCols / 2.0)), currRows / 2, currCols / 2);\n this.splitBoard(new Posn(startRow, startCol + (int) Math.ceil(currCols / 2.0)),\n (int) Math.ceil(currRows / 2.0), currCols / 2);\n }\n }", "private int matrixRowToGridCol(int i) \n {\n return (i % dimSquared) / gDim + 1;\n }", "private void printGridLine(int line) {\n\t\tString textLine = \" \";\r\n\t\tswitch(line) {\r\n\t\t\tcase 1:\t\t\t\t\r\n\t\t\t\ttextLine += \" ╔ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╦ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ╗\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\ttextLine += \" ║ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╬ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ║\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\ttextLine += \" ╚ \";\r\n\t\t\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t\t\ttextLine += \" ╩ \";\r\n\t\t\t\t}\r\n\t\t\t\ttextLine += \" ╝\";\r\n\t\t\t\tSystem.out.println(textLine);\r\n\t\t}\r\n\t}", "public void getXpathFromGrid(){\n\t\tSystem.out.println(\"Monthly\");\n\t}", "private static void printGrid1(Vector<State> states) {\n\t\tint k = 0;\n\t\tfor (State s : states) {\n\t\t\tif (k == 3) {\n\t\t\t\tk = 0;\n\t\t\t\tSystem.out.print(\"\\n\\n\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\" \" + String.format(\"%.1f\", s.getqUval()) + \" \");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(String.format(\"%.1f\", s.getqLval()));\n\t\t\tSystem.out.print(\" \" + String.format(\"%.1f\", s.getqRval()) + \"\\t\");\n\t\t\tSystem.out.println();\n\n\t\t\tSystem.out.print(\" \" + String.format(\"%.1f\", s.getqDval()));\n\n\t\t}\n\n\t}", "public void updateGridY();", "public interface Grid {\n /**\n * @name getCell\n * @desc Ritorna la cella specificata dai parametri.\n * @param {int} x - Rappresenta la coordinata x della cella.\n * @param {int} y - Rappresenta la coordinata y della cella.\n * @returns {Client.Games.Battleship.Types.Cell}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public Cell getCell(int x, int y);\n /**\n * @name getHeigth\n * @desc Ritorna l'altezza della griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public int getHeight();\n /**\n * @name getLength\n * @desc Ritorna la lunghezza della griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public int getLength();\n /**\n * @name Equals\n * @desc Ritorna true se i grid sono uguali.\n * @returns {boolean}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public boolean equals(Grid grid);\n /**\n * @name getGrid\n * @desc Ritorna la la griglia del campo da gioco.\n * @returns {int}\n * @memberOf Client.Games.Battleship.Types.Grid\n */\n public Cell [][] getCells();\n}", "void setGridX(int i);", "public void printGridAsChild()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tSystem.out.print( \"\\t\" );\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\t\telse System.out.print( grid[x][y] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.print( \"\\n\" );\n\t}", "public void displayBoard(char[][] grid) {\n System.out.println();\n System.out.println(\" 0 1 2 3 4 5 6\");\n System.out.println(\"---------------\");\n for (int row = 0; row < grid.length; row++) {\n System.out.print(\"|\");\n for (int col = 0; col < grid[0].length; col++) {\n System.out.print(grid[row][col]);\n System.out.print(\"|\");\n }\n System.out.println();\n System.out.println(\"---------------\");\n }\n System.out.println(\" 0 1 2 3 4 5 6\");\n System.out.println();\n }", "public Grid getEntrance(){\n\t\treturn getpos((byte)2);\n\t}", "public void getXpathFromGrid(){\n\t\tSystem.out.println(\"Weekly\");\n\t}", "private void createFinalLine() {\n //Up\n if (orOpActive.row > origin.row) {\n for (int i = origin.row + 1; i <= orOpActive.row; i++) {\n game.gridMap.get(i).get(origin.column).setState(game.STATE_FINAL);\n //setState(gridMap.get(i).get(origin.column), STATE_FINAL);\n }\n }\n\n //Down\n if (orOpActive.row < origin.row) {\n for (int i = origin.row - 1; i >= orOpActive.row; i--) {\n game.gridMap.get(i).get(origin.column).setState(game.STATE_FINAL);\n //setState(gridMap.get(i).get(origin.column), STATE_FINAL);\n }\n }\n //Right\n if (orOpActive.column > origin.column) {\n for (int i = origin.column + 1; i <= orOpActive.column; i++) {\n game.gridMap.get(origin.row).get(i).setState(game.STATE_FINAL);\n //setState(gridMap.get(origin.row).get(i), STATE_FINAL);\n }\n }\n //Left\n if (orOpActive.column < origin.column) {\n for (int i = origin.column - 1; i >= orOpActive.column; i--) {\n game.gridMap.get(origin.row).get(i).setState(game.STATE_FINAL);\n //setState(gridMap.get(origin.row).get(i), STATE_FINAL);\n }\n }\n }", "public void printGrid(){\n System.out.println(\"printing the grid\");\n for(int i=0;i<row_size;i++){\n for(int j = 0;j<col_size;j++){\n System.out.println(grid[i][j]);\n }\n }\n }", "@Override\n public Grid compute(Grid grid) {\n int validatedCell, singletonValue;\n PairCoord currentPos;\n //int cmp =1;\n grid.setChangeWithAlg(false);\n do {\n validatedCell = 0;\n while ((currentPos = move.Next()) != null) {\n //On analyse case a case - si une case est un singleton, alors on update la case a la valeur de ce singleton\n // -> L'update dans la classe PossibilitiesGrid va alors modifier colonne, grille et subgrid.\n if ((singletonValue = grid.getSingleton(currentPos)) > 0)\n if (grid.setDigit(currentPos, singletonValue)) {\n grid.setChangeWithAlg(true);\n validatedCell++;\n }\n }\n move.toBegin();\n //System.out.println(\"Iteration \" + (cmp++) + \":\\n\" + grid);\n } while (validatedCell > 0);\n // Check if ok\n grid.checkComplete();\n //System.out.println(grid.toString());\n return grid;\n }", "public static void main(String[] args) {\n int indexMin = -3;\n int indexMax = 1;\n RangeArray squares = new RangeArray(indexMin, indexMax);\n\n for (int index = squares.getIndexMin() ; index <= squares.getIndexMax() ; index++)\n squares.set(index, index*index);\n\n for (int index = squares.getIndexMin() ; index <= squares.getIndexMax() ; index++)\n System.out.println(index + \" -> \" + squares.get(index));\n\n System.out.println(squares.rangeSize());\n\n // 2.\n RangeArray<String> habitations = new RangeArray<String>(3, 5);\n habitations.set(3, \"Maison\");\n habitations.set(4, \"Immeuble\");\n habitations.set(5, \"Hutte\");\n for (int index = habitations.getIndexMin() ; index <= habitations.getIndexMax() ; index++)\n System.out.print(habitations.get(index).length() + \" \");\n\n // 3.\n // TODO : Fonctionnel, mais chercher le fonctionnement précis de Iterable et changer le stream par un code plus propre\n for (String habitation : habitations)\n System.out.print(habitation + \" \");\n\n // Exercice 2 : Iterateur sur des grilles\n // 1.\n String[][] elements = {{\"A\",\"C\",\"E\",\"G\"},{\"B\",\"D\",\"F\",\"H\"}};\n Grid<String> grid = new Grid<>(elements);\n for (int line = 0 ; line < grid.nbLines() ; line++)\n for (int column = 0 ; column < grid.nbColumns() ; column++)\n {\n String element = grid.get(line, column);\n System.out.print(element + \" \");\n }\n System.out.println();\n\n // 2.\n // TODO : Methodes T next() et hasNext() de Iterator<T> pour rendre cette syntaxe fonctionnelle.\n for (String element : grid)\n System.out.print(element + \" \");\n System.out.println();\n }", "@Override\n public Tile[][] getGrid() { return grid; }", "private List transformMPToGrid(List MappedPositions, MathTransform trans) {\n List gridmp = new ArrayList();\n\n for (Iterator i = MappedPositions.iterator(); i.hasNext();) {\n MappedPosition mp = (MappedPosition) i.next();\n\n try {\n DirectPosition2D gridSource = new DirectPosition2D();\n DirectPosition2D gridTarget = new DirectPosition2D();\n trans.transform(mp.getSource(), gridSource);\n trans.transform(mp.getTarget(), gridTarget);\n gridmp.add(new MappedPosition(gridSource, gridTarget));\n } catch (MismatchedDimensionException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (TransformException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n\n return gridmp;\n }", "private void stage1_2() {\n\n\t\tString s = \"E $:( 3E0 , 3E0 ) ( $:( 3E0 , 3E0 ) \";\n\n//\t s = SymbolicString.makeConcolicString(s);\n\t\tStringReader sr = new StringReader(s);\n\t\tSystem.out.println(s);\n\t\tFormula formula = new Formula(s);\n\t\tMap<String, Decimal> actual = formula.getVariableValues();\n\t}", "public void updategrid(int[][] grid) {\n this.grid = grid;\n }", "@Override\n\tpublic String toString() {\n\t\tString countCell = \"\";\n\t\tfor ( int row = 0; row < gameGrid.length; row++){\n\t\t\tfor ( int column = 0; column < gameGrid[0].length; column++){\n\t\t\t\tif(gameGrid[row][column] == 1) //this represents a live cell or exist\n\t\t\t\t\tcountCell = countCell + \"0\"; \n\t\t\t\telse{\n\t\t\t\t\tcountCell = countCell + \".\";//this will create little dots if there is no live cell...\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcountCell = countCell + \"\\n\"; //creates a new line and moves down in the array\n\t\t}\n\n\t\treturn countCell;\n\t}", "public void drawTextualMap(){\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j] instanceof Room){\n\t\t\t\t\tif(((Room)grid[i][j]).getItems().size()>0)\n\t\t\t\t\t\tSystem.out.print(\" I \");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\" R \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"rows = \"+grid.length+\" cols = \"+grid[0].length);\n\t\tSystem.out.println(\"I = Room has Item, R = Room has no Item, '=' = Is a Hallway\");\n\n\t}", "public void snapToGrid(Player pl) {\n\t\t// Find the closest spot\n\t\t\n\t\tif(pl.getVelocity().x == 0 && pl.getLocation().x - 2 % 16 != 0)\n\t\t{\n\t\t\tfloat locationX = Math.round(pl.getLocation().x / 16f);\n\t\t\tfloat preferredX = (locationX * 16) + 2f;\n\t\t\t\n\t\t\tfloat move = preferredX - pl.getLocation().x;\n\t\t\tif(Math.abs(move) > 0.1f)\n\t\t\t\tmove = 0.1f * Math.signum(move);\n\t\t\tpl.getLocation().x += move;\n\t\t}\n\t\t\n\t\tif(pl.getVelocity().y == 0 && pl.getLocation().y - 2 % 16 != 0)\n\t\t{\n\t\t\tfloat locationY = Math.round(pl.getLocation().y / 16f);\n\t\t\tfloat preferredY = (locationY * 16) + 2f;\n\t\t\t\n\t\t\tfloat move = preferredY - pl.getLocation().y;\n\t\t\tif(Math.abs(move) > 0.1f)\n\t\t\t\tmove = 0.1f * Math.signum(move);\n\t\t\tpl.getLocation().y += move;\n\t\t}\n\t\t\n\t}", "public void display(Grid grid) {\n super.display(grid, \"C\");\n// super.displayPath(grid);\n }", "private static Object[] formatShapedGrid(Object[] itemStacksRaw, int width, int height) {\n int rawIndex = 0;\n Object[] itemStacks = new Object[9];\n for(int y = 0; y < height; y++) {\n for(int x = 0; x < width; x++) {\n itemStacks[y * 3 + x] = itemStacksRaw[rawIndex++];\n if(rawIndex >= itemStacksRaw.length) break;\n }\n if(rawIndex >= itemStacksRaw.length) break;\n }\n return itemStacks;\n }", "public void changeEdgeTypeOfGrid(String type) {\n if(type.equals(\"toroidal\")) {\n getCellGrid().setGridLimit(GridLimit.TOROIDAL);\n } else if(type.equals(\"finite\")) {\n getCellGrid().setGridLimit(GridLimit.FINITE);\n } else if(type.equals(\"infinite\")) {\n getCellGrid().setGridLimit(GridLimit.INFINITE);\n }\n }", "String getRawCellAt(Coord coord);", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n int cell = field[i][j];\n result.append(cell == 0 ? \"_\" : (cell == 1 ? \"X\" : \"O\")).append(\" \");\n }\n result.append(\"\\n\");\n }\n return result.toString();\n }", "private void recalculatePosition()\n {\n position.x = gridCoordinate.getCol()*(width+horizontal_spacing);\n position.y = gridCoordinate.getRow()*(heigh+vertical_spacing);\n }", "private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}", "protected void computeGridParameters() {\n float padding = 0.02f * overlay.getScalingValue();\n boolean flipX = x2 < x1;\n float xx1 = flipX ? (x1 + padding) : (x1 - padding);\n float xx2 = flipX ? (x2 - padding) : (x2 + padding);\n boolean flipY = y2 < y1;\n float yy1 = flipY ? (y1 + padding) : (y1 - padding);\n float yy2 = flipY ? (y2 - padding) : (y2 + padding);\n \n xGrid1 = xx1; yGrid1 = yy1;\n xGrid2 = xx2; yGrid2 = yy1;\n xGrid3 = xx1; yGrid3 = yy2;\n xGrid4 = xx2; yGrid4 = yy2;\n horizGridCount = 3; vertGridCount = 3;\n }", "public static void main(final String[] args) throws IOException {\r\n\t\tString str;\r\n\t\tfinal FileInputStream in = new FileInputStream(\"C:\\\\git\\\\AoC2018\\\\Dag17\\\\src\\\\dag17\\\\input1.txt\");\r\n\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\twhile ((str = br.readLine()) != null) {\r\n\t\t\tinput.add(str);\r\n\t\t}\r\n\t\tbr.close();\r\n\t\t// precalculated dimensions\r\n\t\tint tempX;\r\n\t\tint tempY;\r\n\t\tint tempX2;\r\n\t\tint tempY2;\r\n\t\tdimensionX = maxX - minX + 5;\r\n\t\tdimensionY = maxY + 1;\r\n\t\tg = new char[dimensionX][dimensionY];// maxx-minx+3,maxy+1\r\n\t\tint sourceX = 500 - minX + 1;// 500-minx+1\r\n\t\tfor (int j = 0; j < dimensionY; j++) {\r\n\t\t\tfor (int i = 0; i < dimensionX; i++) {\r\n\t\t\t\tg[i][j] = '.';\r\n\t\t\t}\r\n\t\t}\r\n\t\tg[sourceX][0] = '+';\r\n\t\tString inp[];\r\n\t\tfor (String s : input) {\r\n\t\t\tinp = s.split(\" \");\r\n\t\t\tif (s.substring(0, 2).equals(\"x=\")) {\r\n\t\t\t\ttempX = Integer.valueOf(inp[0].substring(2, inp[0].length() - 1));\r\n\t\t\t\tif (tempX > maxX) {\r\n\t\t\t\t\tmaxX = tempX;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempX < minX) {\r\n\t\t\t\t\tminX = tempX;\r\n\t\t\t\t}\r\n\t\t\t\tinp = inp[1].substring(2, inp[1].length()).split(\"[.]\");\r\n\t\t\t\ttempY = Integer.valueOf(inp[0]);\r\n\t\t\t\ttempY2 = Integer.valueOf(inp[2]);\r\n\t\t\t\tif (tempY2 > maxY) {\r\n\t\t\t\t\tmaxY = tempY2;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempY < minY) {\r\n\t\t\t\t\tminY = tempY;\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = tempY; i <= tempY2; i++) {\r\n\t\t\t\t\tg[tempX - minX + 2][i] = '#';\r\n\t\t\t\t}\r\n\t\t\t} else { // y\r\n\t\t\t\ttempY = Integer.valueOf(inp[0].substring(2, inp[0].length() - 1));\r\n\t\t\t\tif (tempY > maxY) {\r\n\t\t\t\t\tmaxY = tempY;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempY < minY) {\r\n\t\t\t\t\tminY = tempY;\r\n\t\t\t\t}\r\n\t\t\t\tinp = inp[1].substring(2, inp[1].length()).split(\"[.]\");\r\n\t\t\t\ttempX = Integer.valueOf(inp[0]);\r\n\t\t\t\ttempX2 = Integer.valueOf(inp[2]);\r\n\t\t\t\tif (tempX2 > maxX) {\r\n\t\t\t\t\tmaxX = tempX2;\r\n\t\t\t\t}\r\n\t\t\t\tif (tempX < minX) {\r\n\t\t\t\t\tminX = tempX;\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = tempX; i <= tempX2; i++) {\r\n\t\t\t\t\tg[i - minX + 2][tempY] = '#';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"maxX \" + maxX + \" maxY \" + maxY);\r\n\t\tSystem.out.println(\"minX \" + minX + \" minY \" + minY);\r\n\r\n\t\t// start: travel down from pointOfOrigin, mark with | until reach # or ~\r\n\t\t// first to reach maxY it ends\r\n\t\t// mark | both sides until hit # or get to freefall if beneath is (. or | ) then\r\n\t\t// call start\r\n\t\t// if enclosed by # mark all with ~\r\n\t\t// repeat until reach maxY\r\n\r\n\t\tint yolo = 0;\r\n\t\twhile (!fill(sourceX, 1)) {\r\n//\t\t\tif(yolo++ % 100 == 0) {\r\n//\t\t\t\tprint();\r\n//\t\t\t}\r\n\t\t}\r\n//\t\tprint();\r\n\t\tyolo = totalWaterTiles() - minY;\r\n//\t\tSystem.out.println(\"Wet tiles >31649 : \" + yolo);\r\n\t\tint oldYolo = 0;\r\n\t\twhile (oldYolo < yolo) {\r\n\t\t\toldYolo = yolo;\r\n\t\t\tSystem.out.println(\"YOLO!\");\r\n\t\t\tfill(sourceX, 1);\r\n\t\t\tyolo = totalWaterTiles() - minY;\r\n\t\t}\r\n\t\tprint();\r\n\t\tSystem.out.println(\"Wet tiles >31649 <32214: \" + yolo);\r\n\t\tSystem.out.println(\"Wet Still water tiles : \" + totalStillWaterTiles());\r\n\t}", "public static void updateGrid(int grid[][])\n {\n\n int tempGrid [][] = new int [10][10];\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n tempGrid[i][j] = grid[i][j];\n }\n }\n for (int i =1; i<9;i++)\n {\n for (int j = 1; j<9;j++)\n {\n //check neighbors\n int neighbors = grid[i-1][j-1]+grid[i-1][j]+grid[i-1][j+1]+grid[i][j-1]+grid[i][j+1]+grid[i+1][j-1]+grid[i+1][j]+grid[i+1][j+1];\n if (grid[i][j]==1 && ((neighbors>=4 || neighbors<=1))) // check rules\n {\n tempGrid[i][j] =0;\n }\n else if (grid[i][j]==0 && neighbors==3) //check rules\n {\n tempGrid[i][j] =1;\n }\n }\n }\n displayGrid(tempGrid); //display the grid\n for (int i =0; i<10;i++)\n {\n for (int j = 0; j<10;j++)\n {\n grid[i][j]=tempGrid[i][j]; //change the original grid\n }\n }\n \n }", "private HashMap<CastlePoint, BuildingType> convertGridData(TileBuilding[][] gd) {\n\t\t//HashMap<BuildingId, TreeSet<CastlePoint>> to filter same building IDs\n\t\tHashMap<Integer, TreeSet<CastlePoint>> structureMap = new HashMap<Integer, TreeSet<CastlePoint>>();\n\t\tfor (int i = 0; i < gridData.length; i++)\n\t\t\tfor (int j = 0; j < gridData[i].length; j++){\n\t\t\t\t//System.out.println(\"(\"+ i + \",\" + j + \")\" + (gridData[i][j] != null ? gridData[i][j].getBuildingType().name() + \" ID:\" + gridData[i][j].getBuildingId() : \"Empty spot\"));\n\t\t\t\tif (gridData[i][j] != null)\n\t\t\t\t\tif (gridData[i][j].getBuildingType() != BuildingType.KEEP){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!structureMap.containsKey(gridData[i][j].getBuildingId())){\n\t\t\t\t\t\t\tstructureMap.put(gridData[i][j].getBuildingId(), new TreeSet<CastlePoint>());\n\t\t\t\t\t\t\t//System.out.println(\"(\"+ i + \",\" + j + \")\" + (gridData[i][j] != null ? gridData[i][j].getBuildingType().name() + \" ID:\" + gridData[i][j].getBuildingId() : \"Empty spot\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tstructureMap.get(gridData[i][j].getBuildingId()).add(new CastlePoint(i, j));\n\t\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//take the top of each list so that we can get the bottom-right corner of each structure.\n\t\tHashMap<CastlePoint, BuildingType> clm = new HashMap<CastlePoint, BuildingType>();\n\t\tfor (Integer i : structureMap.keySet()){\n\t\t\t//simply take the first value in each entry\n\t\t\tclm.put(structureMap.get(i).first(), getBuildingId(structureMap.get(i).first()));\n\t\t}\n\t\treturn clm;\n\t}", "private static void printGrid(Vector<State> states) {\n\t\tSystem.out.println(\"State\\tUP\\tDOWN\\tLEFT\\tRIGHT\");\n\t\tSystem.out\n\t\t\t\t.println(\"---------------------------------------------------\");\n\t\tfor (State s : states) {\n\t\t\tSystem.out.print(s.getName());\n\t\t\tSystem.out.print(\"\\t\" + String.format(\"%.1f\", s.getqUval()));\n\t\t\tSystem.out.print(\"\\t\" + String.format(\"%.1f\", s.getqDval()));\n\t\t\tSystem.out.print(\" \\t\" + String.format(\"%.1f\", s.getqLval()));\n\t\t\tSystem.out.print(\"\\t\" + String.format(\"%.1f\", s.getqRval()));\n\t\t\tSystem.out.println();\n\n\t\t}\n\t}", "void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}", "public void printGrid()\n\t{\n\t\tfor(int i = 0; i < numRows; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < numColumns; j++)\n\t\t\t{\n\t\t\t\tif(grid[i][j] == null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"[ ]\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(grid[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\\n\\n\");\n\t}", "public static void robotInAGrid(int[][] grid) {\n\n }", "public ArrayList<ExpandGrid> createPossibleLines(ExpandGrid inputExpandGrid, int x2, int y2, int z2) {\n Grid inputGrid = inputExpandGrid.grid;\n int number = inputExpandGrid.number;\n int x = inputExpandGrid.x;\n int y = inputExpandGrid.y;\n int z = inputExpandGrid.z;\n int steps = inputExpandGrid.steps;\n\n ArrayList<ExpandGrid> list = new ArrayList<>();\n if (x + 1 > 0 && x + 1 < grid.length && grid[x + 1][y][z] == null) {\n list.add(addLine(inputGrid, number, x + 1, y, z, steps, x2, y2, z2));\n }\n if (x - 1 > 0 && x - 1 < grid.length && grid[x - 1][y][z] == null) {\n list.add(addLine(inputGrid, number, x - 1, y, z, steps, x2, y2, z2));\n }\n if (y + 1 > 0 && y + 1 < grid[0].length && grid[x][y + 1][z] == null) {\n list.add(addLine(inputGrid, number, x, y + 1, z, steps, x2, y2, z2));\n }\n if (y - 1 > 0 && y - 1 < grid[0].length && grid[x][y - 1][z] == null) {\n list.add(addLine(inputGrid, number, x, y - 1, z, steps, x2, y2, z2));\n }\n if (z + 1 >= 0 && z + 1 < grid[0][0].length && grid[x][y][z + 1] == null) {\n list.add(addLine(inputGrid, number, x, y, z + 1, steps, x2, y2, z2));\n }\n if (z - 1 >= 0 && z - 1 < grid[0][0].length && grid[x][y][z - 1] == null) {\n list.add(addLine(inputGrid, number, x, y, z - 1, steps, x2, y2, z2));\n }\n return list;\n }", "void printGrid() {\n GridHelper.printGrid(hiddenGrid);\n }", "private void printGrid(StateObservation stateObs) {\n\n ArrayList<Observation>[][] gameGrid = stateObs.getObservationGrid();\n System.out.println(\"rows \" + gameGrid.length + \" cols \" + gameGrid[0].length);\n\n System.out.println(\"------------------\");\n for (int i = 0; i < gameGrid[0].length; i++) { // cols\n for (int j = 0; j < gameGrid.length; j++) { // rows\n\n if (gameGrid[j][i].isEmpty()) {\n System.out.print(\". \");\n } else {\n for (Observation o : gameGrid[j][i]) {\n System.out.print(o.itype + \" \");\n }\n }\n }\n System.out.println();\n }\n System.out.println(\"------------------\");\n }", "com.ctrip.ferriswheel.proto.v1.Grid getGrid();", "private int matrixRowToGridRow(int i) \n {\n return i / dimSquared + 1;\n }", "public void printCells()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n System.out.println(\"Columns: \" + columns + \"Row: \" + rows + \" \" + cellGrid[columns][rows].isAlive());\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }" ]
[ "0.59029996", "0.5889558", "0.5873735", "0.5829151", "0.5815424", "0.5769135", "0.5727153", "0.56881344", "0.56812316", "0.56511265", "0.564887", "0.56084603", "0.56011224", "0.55816436", "0.5571623", "0.5496488", "0.5496488", "0.54940856", "0.5478135", "0.54761255", "0.5447085", "0.54455", "0.543719", "0.5431992", "0.5423962", "0.54124683", "0.53700715", "0.53697175", "0.5366913", "0.5364951", "0.536469", "0.5361383", "0.53552324", "0.5337448", "0.5333215", "0.5304747", "0.52826655", "0.52819824", "0.5281775", "0.52659726", "0.52603513", "0.5259228", "0.5255278", "0.5251361", "0.52497846", "0.52365404", "0.52263325", "0.52263147", "0.52245474", "0.52241147", "0.52214754", "0.5215702", "0.5208351", "0.5195433", "0.51837415", "0.5171408", "0.51689965", "0.51628137", "0.51589394", "0.5142841", "0.5136098", "0.51278216", "0.5121091", "0.51199627", "0.5118254", "0.5117478", "0.5116338", "0.51131773", "0.5111209", "0.5110945", "0.51107466", "0.5110421", "0.5108298", "0.5107759", "0.5106702", "0.51035464", "0.5096227", "0.50950956", "0.50918347", "0.5090894", "0.50730246", "0.50520986", "0.505184", "0.50511664", "0.5048208", "0.5043107", "0.5040134", "0.5037567", "0.5036119", "0.5027837", "0.5018956", "0.5012392", "0.50113624", "0.5007945", "0.50079024", "0.50074613", "0.5003328", "0.49966925", "0.49930948", "0.49930227", "0.49880603" ]
0.0
-1
get the size of the bitmap when it is fit to view display
public int[] getFitSize() { int[] fitSize = new int[2]; float ratio = originalImage.getWidth() / (float)originalImage.getHeight(); float viewRatio = viewWidth / (float)viewHeight; //width dominate, fit w if(ratio > viewRatio) { float factor = viewWidth / (float)originalImage.getWidth(); fitSize[0] = viewWidth; fitSize[1] = (int)(originalImage.getHeight() * factor); } else { //height dominate, fit h float factor = viewHeight / (float)originalImage.getHeight(); fitSize[0] = (int)(originalImage.getWidth() * factor); fitSize[1] = viewHeight; } return fitSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getBitmapSize(Bitmap bitmap){\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) {\n return bitmap.getByteCount();\n }\n // Pre HC-MR1\n return bitmap.getRowBytes() * bitmap.getHeight();\n\n }", "@TargetApi(12)\n public static int getBitmapSize(Bitmap bitmap) {\n if (ConfigUtil.hasV12()) {\n return bitmap.getByteCount();\n }\n // Pre HC-MR1\n return bitmap.getRowBytes() * bitmap.getHeight();\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n width = options.outWidth;\n height = options.outHeight;\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException ignored) {\n }\n }\n }\n }", "public static int getBitmapSize(Bitmap bitmap) {\n\t\t// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) {\n\t\t// return bitmap.getByteCount();\n\t\t// }\n\t\t// Pre HC-MR1\n\t\treturn bitmap.getRowBytes() * bitmap.getHeight();\n\t}", "@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = getBitmapSize(bitmap) / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }", "public float getPixelSize() {\n\n\t\tfloat pixelSize = 0;\n\t\tfloat zoom = getFloat(ADACDictionary.ZOOM);\n\n\t\t// Get calibration factor (CALB)\n\t\tString calString = extrasMap.get(ExtrasKvp.CALIB_KEY);\n\n\t\t// Some wholebody images have height > width. Typically 1024x512.\n\t\t// Crocodile eats the biggest.\n\t\tshort height = getHeight();\n\t\tshort width = getWidth();\n\t\tshort dim = height > width ? height : width;\n\n\t\tif (dim > 0 && calString != null) {\n\n\t\t\ttry {\n\n\t\t\t\tfloat cal = Float.parseFloat(calString);\n\n\t\t\t\t// Now calculate the pixel size\n\t\t\t\tpixelSize = (1024 * cal) / (dim * zoom);\n\n\t\t\t} catch (NumberFormatException e) {\n\n\t\t\t\tlogger.log(\"Unable to parse calibration factor\");\n\t\t\t\tpixelSize = getRoughPixelSize();\n\n\t\t\t}\n\t\t} else {\n\t\t\tpixelSize = getRoughPixelSize();\n\t\t}\n\n\t\treturn pixelSize;\n\n\t}", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1)\n @Override\n protected int sizeOf(String key, Bitmap bitmap) {\n final int bitmapSize = bitmap.getByteCount() / 1024;\n return bitmapSize == 0 ? 1 : bitmapSize;\n }", "short getFitHeight();", "@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }", "@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }", "@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }", "@Override\n protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount() / 1024;\n }", "@Override\r\n protected int sizeOf(String key, Bitmap b) {\n return b.getHeight() * b.getWidth() * 4;\r\n }", "@SuppressLint(\"NewApi\")\n\t\t\t\t@Override\n\t\t\t\tprotected int sizeOf(String key, Bitmap bitmap) {\n\t\t\t\t\treturn bitmap.getByteCount() / 1024;\n\t\t\t\t}", "@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : (bitmap.getRowBytes() * bitmap.getHeight());\n\t\t\t\t\t}", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public int getLargeur() {\n return getWidth();\n }", "static int m61449a(Bitmap bitmap) {\n return bitmap.getByteCount();\n }", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "@Override\n\t \tprotected int sizeOf(Object key, Object value) {\n\t\t\t\tBitmap bitmap = (Bitmap) value;\n\t return bitmap.getRowBytes() * bitmap.getHeight();\n\t \t}", "private Point getScreenDim() {\n \t\tDisplay display = this.getWindowManager().getDefaultDisplay();\n \n \t\t@SuppressWarnings( \"deprecation\" )\n \t\tPoint size = new Point( display.getWidth(), display.getHeight() );\n \t\treturn size;\n \t}", "@Override\n\t\t\tprotected int sizeOf(String key, Bitmap value) {\n\t\t\t\treturn value.getRowBytes()*value.getHeight();\n\t\t\t}", "private int caculateInSampleSize(BitmapFactory.Options options, int width, int height) {\r\n int outWidth = options.outWidth;\r\n int outHeight = options.outHeight;\r\n int inSampleSize=1;\r\n if (outWidth>width||outHeight>height){\r\n int widthRadio= Math.round(outWidth*1.0f/width);\r\n int heightRadio= Math.round(outHeight*1.0f/height);\r\n inSampleSize= Math.max(widthRadio,heightRadio);\r\n }\r\n\r\n return inSampleSize;\r\n }", "@TargetApi(12)\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : bitmap.getByteCount();\n\t\t\t\t\t}", "int getCurrentSize();", "int getTileSize();", "private void getScreenSize() {\n WindowManager wm = getWindowManager();\n Display disp = wm.getDefaultDisplay();\n Point size = new Point();\n disp.getSize(size);\n screenWidth = size.x;\n screenHeight = size.y;\n }", "protected int sizeOf(String key, Bitmap bitmap) {\n return bitmap.getByteCount();\n }", "public int getFrameSize();", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public Dimension2D getCanvasSize(\n )\n {\n return renderSize == null\n ? Dimension.get(getContentContext().getBox()) // Device-independent (user-space) area.\n : renderSize; // Device-dependent (device-space) area.\n }", "double getSize();", "public Point getScreenSize(Activity activity) {\n Display display = activity.getWindowManager().getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n return size;\n }", "Dimension getSize();", "Dimension getSize();", "public Dimension getCanvasSize() {\n return transformManager.getCanvasSize();\n }", "public XYPoint getMapSize();", "public int sHeight(){\n\t\t\n\t\tint Measuredheight = 0; \n\t\tPoint size = new Point();\n\t\tWindowManager w = activity.getWindowManager();\n\n\t\tif(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t\t w.getDefaultDisplay().getSize(size);\n\t\t Measuredheight = size.y; \n\t\t}else{\n\t\t Display d = w.getDefaultDisplay(); \n\t\t Measuredheight = d.getHeight(); \n\t\t}\n\t\t\n\t\treturn Measuredheight;\n\t}", "public native float kbGetMapXSize();", "public static long getBitmapResolution(String filename) {\n final BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(filename, options);\n final int height = options.outHeight;\n final int width = options.outWidth;\n return height * width;\n }", "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}", "public Point getSize() {\n\t\treturn p_screenSize;\n\t}", "private static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n Log.i(\"sampleImage\", \"Displaying img at \" + reqWidth + \"px x \" + reqHeight + \"px (\" + inSampleSize + \" SampleSize)\");\n\n return inSampleSize;\n }", "public static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n // Tamaño original del mapa de bits (width 3300 x height 1650).\n // Tamaño deseado (reqWidth 330 x reqHeight 200).\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and width\n final int heightRatio = Math.round((float) height / (float) reqHeight); // Res: 8\n final int widthRatio = Math.round((float) width / (float) reqWidth); // Res: 10.\n\n // Choose the smallest ratio as inSampleSize value, this will guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = Math.max(heightRatio, widthRatio);\n }\n return inSampleSize;\n }", "private void getWidthAndHeight() {\n DisplayMetrics displaymetrics = new DisplayMetrics();\n getActivity().getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);\n screenHeight = displaymetrics.heightPixels;\n screenWidth = displaymetrics.widthPixels;\n }", "int getAreaSize();", "public static int calculateInSampleSize( BitmapFactory.Options options, int reqWidth, int reqHeight) {\n int inSampleSize = 1;\t//Default subsampling size\n // See if image raw height and width is bigger than that of required view\n if (options.outHeight > reqHeight || options.outWidth > reqWidth) {\n //bigger\n final int halfHeight = options.outHeight / 2;\n final int halfWidth = options.outWidth / 2;\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "private int getSurfaceSizeIfFitting(GraphNode infoBitNode, Integer width, Integer height,\n boolean exact) {\n Resource imageRes = infoBitNode.getNode();\n if (imageRes instanceof UriRef) {\n String imageUri = ((UriRef)imageRes).getUnicodeString();\n if (!exact && imageUri.contains(AlternativeRepresentationGenerator.EXACT_APPENDIX)) {\n return -1;\n }\n } \n Iterator<Resource> exifWidths = infoBitNode.getObjects(EXIF.width);\n Iterator<Resource> exifHeights = infoBitNode.getObjects(EXIF.height);\n if (!exifWidths.hasNext() || !exifHeights.hasNext()) {\n log.warn(infoBitNode.getNode() + \" doesn't have exif:width and exif:height\");\n return -1;\n }\n int thumbnailWidth = LiteralFactory.getInstance().createObject(\n Integer.class, (TypedLiteral) exifWidths.next());\n int thumbnailHeight = LiteralFactory.getInstance().createObject(\n Integer.class, (TypedLiteral) exifHeights.next());\n if (exact) {\n if (thumbnailHeight == height && thumbnailWidth == width) {\n return 1;\n }\n } else {\n if (thumbnailHeight <= height && thumbnailWidth <= width) {\n return thumbnailWidth * thumbnailHeight;\n }\n }\n return -1;\n }", "public int getWidth() {\n return mySize.getWidth();\n }", "String getPreviewSizePref();", "public double getPixelSize() {\n\t\treturn 0;\n\t}", "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public String getSize() {\n return fullPhoto.getSize();\n }", "public int calculateInSampleSize(\r\n\r\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\r\n final int width = options.outWidth;\r\n int inSampleSize = 1;\r\n\r\n if (height > reqHeight || width > reqWidth) {\r\n if (width > height) {\r\n inSampleSize = Math.round((float)height / (float)reqHeight);\r\n } else {\r\n inSampleSize = Math.round((float)width / (float)reqWidth);\r\n }\r\n }\r\n\r\n return inSampleSize;\r\n }", "Dimension getCanvasDimension();", "public static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n}", "public int getSize() {\n\t\treturn width + length;\n\t}", "public static Point getDisplaySize(Context context) {\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n return size;\n }", "public int getScreenSize(){\n\t \n\t //get screen soe promatticaly so we can set the layout gallery view at runtome\n\t int screenSize = this.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK;\n\t \n\t switch(screenSize){\n\t \n\t case Configuration.SCREENLAYOUT_SIZE_XLARGE:\n\t\t return 1;\n\tcase Configuration.SCREENLAYOUT_SIZE_NORMAL:\n\t \t\treturn 2;\n\tcase Configuration.SCREENLAYOUT_SIZE_LARGE:\n\t\t//at east 480dp\n \t\treturn 3;\n\t\t \n\t \n\t \n\t }\n\t return 0;//if neither 1 or 2\n }", "float getSurfaceHeight();", "public static int totalSize_data() {\n return (480 / 8);\n }", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public Dimension getSize()\n\t{\n\t\treturn rect.getSize();\n\t}", "public float getSize() {\n return size;\n }", "public float getSize()\n {\n return size;\n }", "private void calcContentSize() {\n }", "public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}", "private static int calculateInSampleSize(BitmapFactory.Options options,\n int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n // Calculate ratios of height and width to requested height and\n // width\n final int heightRatio = Math.round((float) height\n / (float) reqHeight);\n final int widthRatio = Math.round((float) width / (float) reqWidth);\n\n // Choose the smallest ratio as inSampleSize value, this will\n // guarantee\n // a final image with both dimensions larger than or equal to the\n // requested height and width.\n inSampleSize = heightRatio < widthRatio ? widthRatio : heightRatio;\n }\n\n return inSampleSize;\n }", "@Override\r\n public void getSize(final SizeReadyCallback cb) {\n super.getSize(new SizeReadyCallback() {\r\n @Override\r\n public void onSizeReady(int width, int height) {\r\n cb.onSizeReady(displayWidth / 2, displayHeight / 2);\r\n }\r\n });\r\n }", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "private float getCurrentDisplayedWidth() {\n if (getDrawable() != null)\n return getDrawable().getIntrinsicWidth() * matrixValues[Matrix.MSCALE_X];\n else\n return 0;\n }", "private static Point getScreenSize(Context context) {\n WindowManager wm = (WindowManager) context\n .getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n Point size = new Point();\n display.getSize(size);\n\n // Make width <= height, regardless of the current screen orientation.\n if (size.x > size.y) {\n size.set(size.y, size.x);\n }\n\n return size;\n }", "public abstract int getDisplayHeight();", "short getPaperSize();", "public int height() \n {\n return this.picture.height();\n }", "public int getLocalSize();", "int getLocalSize();", "int getLostedSize();", "public int calculateInSampleSize(\n\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n if (width > height) {\n inSampleSize = Math.round((float)height / (float)reqHeight);\n } else {\n inSampleSize = Math.round((float)width / (float)reqWidth);\n }\n }\n\n return inSampleSize;\n }", "short getFitWidth();", "private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {\n\t\tfinal int height = options.outHeight;\r\n\t\tfinal int width = options.outWidth;\r\n\t\tint inSampleSize = 1;\r\n\r\n\t\tif (height > reqHeight || width > reqWidth) {\r\n\t\t\tfinal int halfHeight = height / 2;\r\n\t\t\tfinal int halfWidth = width / 2;\r\n\r\n\t\t\t// Calculate the largest inSampleSize value that is a power of 2 and\r\n\t\t\t// keeps both\r\n\t\t\t// height and width larger than the requested height and width.\r\n\t\t\twhile ((halfHeight / inSampleSize) > reqHeight && (halfWidth / inSampleSize) > reqWidth) {\r\n\t\t\t\tinSampleSize *= 2;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inSampleSize;\r\n\t}", "private int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n && (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n\n return inSampleSize;\n }", "static int calculateInSampleSize(\n BitmapFactory.Options options, int reqWidth, int reqHeight) {\n // Raw height and width of image\n final int height = options.outHeight;\n final int width = options.outWidth;\n int inSampleSize = 1;\n\n if (height > reqHeight || width > reqWidth) {\n\n final int halfHeight = height / 2;\n final int halfWidth = width / 2;\n\n // Calculate the largest inSampleSize value that is a power of 2 and keeps both\n // height and width larger than the requested height and width.\n while ((halfHeight / inSampleSize) > reqHeight\n || (halfWidth / inSampleSize) > reqWidth) {\n inSampleSize *= 2;\n }\n }\n return inSampleSize;\n }", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public float getSize() {\n\t\treturn size;\n\t}", "public long getSize() {\n\t\treturn Math.abs(getXSize() * getYSize() * getZSize());\n\t}", "public static int calculateInSampleSize(BitmapFactory.Options options, \n \t\t\tint reqWidth, int reqHeight) {\n \t\t// Raw height and width of image\n \t\tfinal int height = options.outHeight;\n \t\tfinal int width = options.outWidth;\n \t\tint inSampleSize = 1;\n \n \t\tif (height > reqHeight || width > reqWidth) {\n \t\t\tif (width > height) {\n \t\t\t\tinSampleSize = Math.round((float)height / (float)reqHeight); \n \t\t\t} else {\n \t\t\t\tinSampleSize = Math.round((float)width / (float)reqWidth); \n \t\t\t} \n \t\t}\n \n \t\treturn inSampleSize; \n \t}" ]
[ "0.7382458", "0.7098896", "0.70662093", "0.7001654", "0.69973755", "0.69911414", "0.6837436", "0.6836354", "0.682417", "0.6790686", "0.6765494", "0.6765494", "0.6765494", "0.67312944", "0.67190284", "0.66894937", "0.66780585", "0.66611147", "0.6615906", "0.6588195", "0.65729773", "0.65695906", "0.6534744", "0.6499991", "0.64744043", "0.6473649", "0.646226", "0.6454084", "0.64517236", "0.6447477", "0.6435628", "0.6419179", "0.6414941", "0.641293", "0.63978237", "0.63978237", "0.63642156", "0.6349055", "0.63341343", "0.63326526", "0.6318701", "0.63089687", "0.6279776", "0.62634283", "0.6240419", "0.6223865", "0.6212921", "0.62123007", "0.6212249", "0.6208343", "0.61791694", "0.6170815", "0.6168235", "0.6161658", "0.61579937", "0.6146382", "0.61350226", "0.61325973", "0.61288124", "0.61244416", "0.61215943", "0.6114101", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6112877", "0.6109202", "0.61039245", "0.6098211", "0.608873", "0.60803115", "0.6076222", "0.60721207", "0.6070885", "0.6066159", "0.6056134", "0.60508513", "0.60494566", "0.6046404", "0.6045401", "0.6040354", "0.60358524", "0.60351795", "0.60348266", "0.60346085", "0.6026388", "0.6025774", "0.602415", "0.6023313", "0.6018832", "0.6016079" ]
0.63259727
40
get actual size of the image
public int[] getActualSize() { int[] actualSize = new int[2]; actualSize[0] = originalImage.getWidth(); actualSize[1] = originalImage.getHeight(); return actualSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}", "public float getPixelSize() {\n\n\t\tfloat pixelSize = 0;\n\t\tfloat zoom = getFloat(ADACDictionary.ZOOM);\n\n\t\t// Get calibration factor (CALB)\n\t\tString calString = extrasMap.get(ExtrasKvp.CALIB_KEY);\n\n\t\t// Some wholebody images have height > width. Typically 1024x512.\n\t\t// Crocodile eats the biggest.\n\t\tshort height = getHeight();\n\t\tshort width = getWidth();\n\t\tshort dim = height > width ? height : width;\n\n\t\tif (dim > 0 && calString != null) {\n\n\t\t\ttry {\n\n\t\t\t\tfloat cal = Float.parseFloat(calString);\n\n\t\t\t\t// Now calculate the pixel size\n\t\t\t\tpixelSize = (1024 * cal) / (dim * zoom);\n\n\t\t\t} catch (NumberFormatException e) {\n\n\t\t\t\tlogger.log(\"Unable to parse calibration factor\");\n\t\t\t\tpixelSize = getRoughPixelSize();\n\n\t\t\t}\n\t\t} else {\n\t\t\tpixelSize = getRoughPixelSize();\n\t\t}\n\n\t\treturn pixelSize;\n\n\t}", "public String getSize() {\n return fullPhoto.getSize();\n }", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }", "public int getImageHeight()\n {\n \n int retVal = getImageHeight_0(nativeObj);\n \n return retVal;\n }", "public int getPixelSize() {\n\t\treturn pixelSize;\n\t}", "public Dimension getImageSize() {\n\t\treturn null;\n\t}", "public int height() {\n return picture.height();\n }", "private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "public int getImageWidth()\n {\n \n int retVal = getImageWidth_0(nativeObj);\n \n return retVal;\n }", "public int height() \n {\n return this.picture.height();\n }", "public int height() {\n return picture().height();\n }", "double getSize();", "public int getImageWidth()\n\t{\n\t\treturn imgWidth;\n\t}", "public int getImageHeight()\n\t{\n\t\treturn imgHeight;\n\t}", "public Size getPictureSize() {\n String pair = get(\"picture-size\");\n if (pair == null)\n return null;\n String[] dims = pair.split(\"x\");\n if (dims.length != 2)\n return null;\n\n return new Size(Integer.parseInt(dims[0]),\n Integer.parseInt(dims[1]));\n\n }", "public Point2D.Float getSize() {\r\n\t\treturn size;\r\n\t}", "public int getImageHeight() {\n\treturn height;\n }", "public int getImageWidth() {\n\t\treturn imgWidth;\n\t}", "public int getImageHeight() {\n\t\treturn imgHeight;\n\t}", "public int getImageWidth() {\n\treturn width;\n }", "public int width() {\n return picture.width();\n }", "public double getSize()\n\t{\n\t\treturn size;\n\t}", "public float getSize() {\n\t\treturn size;\n\t}", "Dimension getSize();", "Dimension getSize();", "public float getSize() {\n return size;\n }", "public RMSize getSize() { return new RMSize(getWidth(), getHeight()); }", "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public float getSize()\n {\n return size;\n }", "public int getPicWidth() {\r\n\t\treturn this.image.getIconWidth();\r\n\t}", "public double getSize() {\n return size_;\n }", "public int width() \n {\n return this.picture.width();\n }", "public double getSize() {\n return size_;\n }", "public int getHeight() {\n return fullPhoto.getHeight();\n }", "public int getSize() {\n\t\treturn width + length;\n\t}", "public int width() {\n return picture().width();\n }", "public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}", "public native int sizeBlob() throws MagickException;", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"100.0\", value = \"The size of the image in GB\")\n\n public BigDecimal getSize() {\n return size;\n }", "public double getSize() \n {\n return size;\n }", "@Override\n\tpublic double getSize() {\n\t\treturn Math.sqrt(getMySize())/2;\n\t}", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "int getSize();", "public long getSize();", "public Size getSize() {\n return size;\n }", "public Dimension getSize() {\r\n\t\treturn this.size;\r\n\t}", "public Dimension getSize() {\n\t\treturn size.getCopy();\n\t}", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public long getSize() {\n\t\treturn Math.abs(getXSize() * getYSize() * getZSize());\n\t}", "public int getWidth() {\n return mySize.getWidth();\n }", "public Dimension getSize()\n\t{\n\t\treturn rect.getSize();\n\t}", "public long getSize() {\n\t\treturn size;\n\t}", "public final long getSize() { return size; }", "public native int getWidth() throws MagickException;", "public int getWidth() {\n return fullPhoto.getWidth();\n }", "public long getSize() {\n return mSize;\n }", "int getSize ();", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public double getPixelSize() {\n\t\treturn 0;\n\t}", "public long getSize() {\r\n return size;\r\n }", "long getSize();", "public long getSize() {\n return size;\n }", "public Point getSize();", "public int getSizeY() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeY;\r\n}", "@VisibleForTesting\n public int getMaxImageWidth() {\n return this.mContext.getResources().getDimensionPixelSize(isLowRam() ? 17105367 : 17105366);\n }", "public final int getSize() {\n return size;\n }", "public int getLargeur() {\n return getWidth();\n }", "public int imHeight() {\n\t\treturn image.getHeight(this);\n\t}", "public double getSize() {\n return getElement().getSize();\n }", "public long getSize() {\n return size.get();\n }", "public static int getSIZE() {\n return SIZE;\n }", "public Vector2i getSize() {\n return new Vector2i(getWidth(), getHeight());\n }", "public int getSizeZ() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeZ;\r\n}", "public final Point getSize() {\r\n return new Point(config.width, config.height);\r\n }", "public int getSize() {\n\t\tif (type == Attribute.Type.Int) {\r\n\t\t\treturn INT_SIZE;\r\n\t\t} else if (type == Attribute.Type.Char) {\r\n\t\t\treturn CHAR_SIZE * length;\r\n\t\t} else if (type == Attribute.Type.Long) {\r\n\t\t\treturn LONG_SIZE;\r\n\t\t} else if (type == Attribute.Type.Float) {\r\n\t\t\treturn FLOAT_SIZE;\r\n\t\t} else if (type == Attribute.Type.Double) {\r\n\t\t\treturn DOUBLE_SIZE;\r\n\t\t} else if (type == Attribute.Type.DateTime){\r\n\t\t\treturn LONG_SIZE;\r\n\t\t}\r\n\t\t\r\n\t\treturn size;\r\n\t}", "public Dimension getSize ( )\r\n\t{\r\n\t\treturn new Dimension ( BORDER_X*2 + SQUARE_SIZE*size, BORDER_Y*2 + SQUARE_SIZE*size );\r\n\t}", "private int getSize() {\n\t\t\treturn size;\n\t\t}", "public int getSize() {\n return iSize;\n }", "public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}", "public int imWidth() {\n\t\treturn image.getWidth(this);\n\t}", "int getSize() {\n return size;\n }", "@VisibleForTesting\n public int getMaxImageHeight() {\n return this.mContext.getResources().getDimensionPixelSize(isLowRam() ? 17105365 : 17105364);\n }", "public static int totalSize_data() {\n return (480 / 8);\n }" ]
[ "0.81655395", "0.76247174", "0.76107645", "0.76025724", "0.75553346", "0.74163365", "0.738514", "0.7377488", "0.73633426", "0.7356766", "0.7295714", "0.72730637", "0.7223415", "0.72036207", "0.7195445", "0.7165817", "0.71574736", "0.7141656", "0.71349585", "0.7113776", "0.7073655", "0.70698476", "0.70641184", "0.70594954", "0.7020597", "0.7017836", "0.698355", "0.698355", "0.6970518", "0.69695103", "0.69597423", "0.6955974", "0.69448715", "0.6942988", "0.6938548", "0.69083375", "0.68970984", "0.68914604", "0.68522215", "0.6847374", "0.68372554", "0.6820634", "0.6810182", "0.6810015", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6804175", "0.6799996", "0.6797502", "0.679687", "0.679437", "0.6794214", "0.6785524", "0.6783868", "0.6783831", "0.67796075", "0.6763457", "0.6761017", "0.6754102", "0.6737926", "0.67321396", "0.6731052", "0.6731052", "0.6731052", "0.6731052", "0.6726058", "0.67257565", "0.6697578", "0.6693799", "0.6685085", "0.6677754", "0.6677092", "0.667451", "0.6666898", "0.665319", "0.6651636", "0.6642013", "0.66359085", "0.6634652", "0.6611674", "0.6601867", "0.6598584", "0.6594611", "0.65916806", "0.6583136", "0.65754", "0.65725183", "0.6572056", "0.655643", "0.6554917" ]
0.7173139
15
Recupera o valor de id.
@Id @Column(name="DataInicialCota", nullable=false) @Temporal(TemporalType.DATE) public Date getId() { if(dataInicialCota != null){ return new Date(dataInicialCota.getTime()); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }", "public Integer getId() {\n return (Integer) get(0);\n }", "public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public Integer getId() {\n return id.get();\n }", "public java.lang.Integer getId () {\r\n return id;\r\n }", "public java.lang.Integer getId() {\n return id;\n }", "java.lang.String getID();", "public java.lang.Integer getId()\r\n {\r\n return id;\r\n }", "public java.lang.Integer getId()\n {\n return id;\n }", "Integer getID();", "Integer getID();", "public String getID() {\n return (id);\n }", "public Integer getId() \r\n\t{\r\n\t\treturn id;\r\n\t}", "public java.lang.Integer getId() {\n return id;\n }", "Integer getId();", "Integer getId();", "Integer getId();", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public long getId() {\n\t\treturn(id);\n\t}", "public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}", "public java.lang.Integer getId() {\n return id;\n }", "public String get_id()\r\n\t{\r\n\t\treturn this.id;\r\n\t}", "public String get_id()\r\n\t{\r\n\t\treturn this.id;\r\n\t}", "public String get_id()\r\n\t{\r\n\t\treturn this.id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId () {\n return id;\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Long getId( )\n\t{\n\t\treturn id;\n\t}", "public Integer getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public java.lang.String getId() {\n return id;\n }", "public String getId() {\r\n \t\treturn id;\r\n \t}", "public Integer getId(){\n\t\treturn id;\n\t}", "public java.lang.String getId() {\r\n return id;\r\n }", "public java.lang.String getId() {\r\n return id;\r\n }", "public java.lang.String getId() {\r\n return id;\r\n }", "public final Integer getId() {\n\t\treturn this.id;\n\t}", "final protected int getId() {\n\t\treturn id;\n\t}", "public Object getId() {\n return id;\n }" ]
[ "0.79506737", "0.78403884", "0.77933925", "0.75750375", "0.7568649", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7567861", "0.7564635", "0.75525427", "0.7535059", "0.7525375", "0.7510705", "0.7500086", "0.7487694", "0.7487694", "0.74870306", "0.7486386", "0.74621606", "0.7458723", "0.7458723", "0.7458723", "0.74476606", "0.7446238", "0.74399275", "0.74374884", "0.7434199", "0.7434199", "0.7434199", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.74232846", "0.7421211", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.74178183", "0.7392344", "0.73841614", "0.7382334", "0.7382334", "0.7382334", "0.7375133", "0.73693526", "0.73674107", "0.73674107", "0.73674107", "0.7366936", "0.73626626", "0.73598" ]
0.0
-1
Define o valor de id.
public void setId(Date dataInicialCota) { if(dataInicialCota != null){ this.dataInicialCota = new Date(dataInicialCota.getTime()); } else{ this.dataInicialCota = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "private void setId(Integer id) { this.id = id; }", "public void setID(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(long value) {\r\n this.id = value;\r\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setId(Integer value) {\n this.id = value;\n }", "public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setId(java.lang.String value) {\n this.id = value;\n }", "public void setID(String idIn) {this.id = idIn;}", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(long value) {\n this.id = value;\n }", "public void setId(Long value) {\r\n this.id = value;\r\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "void setId(int val);", "public void setID(int value) {\r\n\t\tid = value;\r\n\t}", "public void setId(String value) {\n \tif (value==null)\n \t\tthis.id = \"\";\n \telse\n \t\tthis.id = value;\n }", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setId(int i) { id = i; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public void setId(Long value) {\n this.id = value;\n }", "@Override\n\tpublic void setId(Integer arg0) {\n\n\t}", "@SuppressWarnings(\"unused\")\n private void setId(Integer id) {\n this.id = id;\n }", "public void setId(java.lang.Integer value) {\n this.id = value;\n }", "public void setID(long value) {\n this.id = value;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "public void setId(int id){ this.id = id; }", "public void setId(long id) {\n id_ = id;\n }", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "public void defId(int id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "java.lang.String getID();", "@Override\n\tpublic Integer getId() {\n return id;\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }", "public void setId(Integer id) {\r\n this.id = id;\r\n }" ]
[ "0.8188003", "0.81590694", "0.79688317", "0.79688317", "0.79688317", "0.79688317", "0.79688317", "0.79688317", "0.79688317", "0.78282374", "0.77747685", "0.77741784", "0.7764564", "0.7733407", "0.7733407", "0.7733407", "0.7733407", "0.7733407", "0.7733407", "0.7733407", "0.7733407", "0.7733407", "0.7724575", "0.7692489", "0.7692489", "0.76739687", "0.76739687", "0.7664285", "0.7663051", "0.7663051", "0.7663051", "0.76462907", "0.7614081", "0.7614081", "0.7614081", "0.7614081", "0.7614081", "0.7614081", "0.7614081", "0.75668675", "0.75664526", "0.75661916", "0.7514951", "0.75122696", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502926", "0.7502373", "0.7497451", "0.749403", "0.749403", "0.74875295", "0.7449509", "0.743416", "0.74282897", "0.7420226", "0.74163103", "0.74163103", "0.7404417", "0.7398949", "0.73963785", "0.7391178", "0.7387481", "0.738493", "0.7376142", "0.7376142", "0.73655576", "0.73655576", "0.73564273", "0.73414236", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615", "0.73377615" ]
0.0
-1
Recupera o valor de dataCadastroCota.
@Column(name="DataCadastroCota") @Temporal(TemporalType.TIMESTAMP) public Date getDataCadastroCota() { DateTimeDB clone = null; if(this.dataCadastroCota != null){ clone = new DateTimeDB(this.dataCadastroCota.getTime()); } return clone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}", "public int getCadastro() {\r\n\t\treturn cadastro;\r\n\t}", "@JsonProperty(\"dataCadastro\")\n\tpublic Date getDataCadastro() {\n\t\treturn dataCadastro;\n\t}", "public java.lang.Double getValorCadastro() {\n return valorCadastro;\n }", "public void setDataCadastroCota(Date dataCadastroCota) {\n\t\tif(dataCadastroCota != null){\n\t\t\tthis.dataCadastroCota = new DateTimeDB(dataCadastroCota.getTime());\n\t\t} else{\n\t\t\tthis.dataCadastroCota = null;\t\n\t\t}\n\t}", "@Column(name=\"ValorCota\")\n\tpublic BigDecimal getValorCota() {\n\t\treturn valorCota;\n\t}", "public Date getCadastro() {\n\n\t\treturn this.cadastro;\n\t}", "public Timestamp getDeCriacao() {\n return dataDeCriacao;\n }", "public String getCadena() {\n return cadena;\n }", "public long getIdCadastroSelecionado(){\r\n \treturn idCadastroSelecionado;\r\n }", "public String getDataCandidatura(){\n return dataCandidatura;\n }", "public Date getDataConsegna() {\n\t\t\treturn dataConsegna;\n\t\t}", "public double getCapacidadeCarga() {\n return capacidadeCarga;\n }", "public String getCidade() {\n\t\treturn cidade;\n\t}", "public Date getDataCancellazione() {\n\t\treturn dataCancellazione;\n\t}", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "@JsonProperty(\"dataCancelamento\")\n\tpublic Date getDataCancelamento() {\n\t\treturn dataCancelamento;\n\t}", "public String getCordno() {\n return cordno;\n }", "public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}", "public CarroVO getFormCarro() {\n try {\n String placa = cadastroView.getTxtPlaca().getText().trim();\n String cor = (String) cadastroView.getCbCor().getSelectedItem();\n ModeloVO modelo = (ModeloVO) cadastroView.getCbModelo().getSelectedItem();\n MarcaVO marca = (MarcaVO) cadastroView.getCbMarca().getSelectedItem();\n modelo.setMarca(marca);\n return new CarroVO(placa, cor, modelo);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public int getCaixa() {\n\t\treturn controlador.getCaixa();\n\t}", "public abstract java.lang.String getAcma_valor();", "public Long getCodigo() {\n return codigo;\n }", "public java.lang.String getDsCidade() {\n return dsCidade;\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String getCuenta() {\r\n return cuenta;\r\n }", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public grupobbva.pe.com.EnlaceBBVA.Cabecera getCabecera() {\r\n return cabecera;\r\n }", "public int getCaixa() {\n\t\treturn caixa;\n\t}", "public int getCaixa() {\n\t\treturn caixa;\n\t}", "@Override\n\tpublic Object getAsObject(FacesContext context, UIComponent component, String value) {\n\t\tFabricante retorno = null;\n\t\tif (value != null) {\n\n\t\t\tretorno = this.fabricanteDAO.buscarPeloCodigo(new Long(value));\n\t\t}\n\n\t\treturn retorno;\n\t}", "public int getDato() {\r\n return dato;\r\n }", "String getDataNascimento();", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "public javax.swing.JComboBox getCbCidade() {\n return cbCidade;\n }", "public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}", "public static String getCuenta() {\r\n return cuenta;\r\n }", "public Date getDataPreventivo() {\n return dataPreventivo;\n }", "String getCidade();", "public String valorCromosoma() {\n\t return valueOf(getAltura(), getExtremidades(), getFuerza(), getTorax());\n\t }", "public java.lang.Double getValorComissao() {\n return valorComissao;\n }", "private void datos() {\n int row;\n row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n vista.txtNombre.setText(String.valueOf(vista.tblClientes.getValueAt(row, 1)));\n vista.txtApellido.setText(String.valueOf(vista.tblClientes.getValueAt(row, 2)));\n vista.txtDireccion.setText(String.valueOf(vista.tblClientes.getValueAt(row, 3)));\n vista.txtCorreo.setText(String.valueOf(vista.tblClientes.getValueAt(row, 4)));\n vista.txtClave.setText(String.valueOf(vista.tblClientes.getValueAt(row, 5)));\n }", "public char[] getCaras() {\n\t\ttry {\r\n\t\t\treturn juego.getCarasDados();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public String getCuenta() {\n\t\treturn cuenta;\n\t}", "public double getCena() {\r\n\t\treturn cena;\r\n\t}", "public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } else {\n cliente = new Cliente();\n\n }\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n\n }", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}", "public Cuenta getCuenta() {\r\n return cuenta;\r\n }", "public void setValorCota(BigDecimal valorCota) {\n\t\tthis.valorCota = valorCota;\n\t}", "public Date getDataCreazione() {\n\t\treturn dataCreazione;\n\t}", "public Integer getCboEspecialidad() {\n return cboEspecialidad;\n }", "public String controlaConfirmacaoCadastroDataNascimento(String dataNascimento) {\n this.telaFuncionario.exibeMenuConfirmacaoCadastroDataNascimento(dataNascimento);\n int opcao = this.telaFuncionario.pedeOpcao();\n switch (opcao) {\n case 1:\n return dataNascimento;\n case 2:\n dataNascimento = cadastraDataNascimento();\n break;\n default:\n this.telaFuncionario.opcaoInexistente();\n controlaConfirmacaoCadastroDataNascimento(dataNascimento);\n break;\n }\n return dataNascimento;\n }", "public double getValorCliente() {\r\n return valorCliente;\r\n }", "@Override\n\tpublic int compareTo(Acao o) {\n\t\treturn o.getDataCadastro().compareTo(this.getDataCadastro());\n\t}", "public int getSaldo() {\r\n return this.contaCorrente.getSaldo();\r\n }", "public String getComentario( )\n\t{\n\t\treturn comentario;\n\t}", "public String consultaEqCiudad() {\n\t\tString res = \"\";\n\t\tString query = \"SELECT E.NOMBRE, C.NOMBRE FROM EQUIPOS E, CIUDADES C WHERE E.COD_CIUDAD == C.CODIGO\";\n\n\t\tConnection con = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rslt = null;\n\n\t\ttry {\n\t\t\tcon = acceso.getConnection();\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\trslt = pstmt.executeQuery();\n\n\t\t\twhile (rslt.next()) {\n\t\t\t\tres = res + rslt.getString(1) + \" - \" + rslt.getString(2) + \"\\n\";\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (rslt != null)\n\t\t\t\t\trslt.close();\n\t\t\t\tif (pstmt != null)\n\t\t\t\t\tpstmt.close();\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }", "public void setValorCadastro(java.lang.Double valorCadastro) {\n this.valorCadastro = valorCadastro;\n }", "public String getCod_catedratico() {\n return cod_catedratico;\n }", "public String getCodigo() {\n return codigo;\n }", "public String getCodigo() {\n return codigo;\n }", "public long getCosto() {\n return costo;\n }", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public static void getdatacou() {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"select * from course \");\n\t\t\trs = ps.executeQuery();\n\t\t\tcounter = 0;\n\t\t\twhile(rs.next()){\n\t\t\t\tc_no[counter] = rs.getString(\"Cno\");\n\t\t\t\tc_name[counter] = rs.getString(\"Cname\");\n\t\t\t\tcredit[counter] = rs.getDouble(\"Ccredit\");\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t\t\n\t\t}catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public double getValorComercial() {\r\n return valorComercial;\r\n }", "public int getCadence() {\n return cadence;\n }", "public Cuenta obtenerCuentaConMasDinero(String codigo_cliente) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo_Cliente = ? order by Credito desc limit 1\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return cuenta;\n }", "public String getComentario () {\n return comentario;\n }", "public java.lang.String getValor();", "public long getIdCargaTienda();", "public int getDatossolicitudBftipoDeConvenio() {\n return datossolicitudBftipoDeConvenio;\n }", "public Integer getCodigo() {\n return codigo;\n }", "public DataTable getDtCuentaContable()\r\n/* 309: */ {\r\n/* 310:375 */ return this.dtCuentaContable;\r\n/* 311: */ }", "public long getCiudadOrigen() {\r\n\t\treturn ciudadOrigen;\r\n\t}", "public int getId_coodinador() {\n return id_coodinador;\n }", "public Cuenta obtenerCuenta(String codigo_cuenta) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cuenta);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return cuenta;\n }", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }", "public java.util.Calendar getDataPrimeiroVencimento() {\n return dataPrimeiroVencimento;\n }", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "@Override\n\tpublic Object[] obtenerDatos() {\n\t\tObject[] datos = new Object[2];\n\t\t\n\t\tdatos[0] = this.jComboBoxPeliculas.getSelectedItem();\n\t\tdatos[1] = this.jComboBoxValoraciones.getSelectedItem();\n\t\t\n\t\treturn datos;\n\t}", "@Override\n\tpublic DAOPrimeraLectura primeraCarga() {\n\t\treturn null;\n\t}", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "Object getValor();", "public BaseData[] getData()\n {\n return Cdata;\n }", "public String getCognome() {\r\n return cognome;\r\n }", "public abstract java.lang.Long getCod_actividad();", "public int getCodigo() {\r\n return Codigo;\r\n }", "public java.lang.String getCodigo() {\n return codigo;\n }", "Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public int getCodigo() {\n return codigo;\n }", "public String getCVCTG_CODIGO(){\n\t\treturn this.myCvctg_codigo;\n\t}", "@ManyToOne\r\n\t@JoinColumn(name=\"idcalidadmuestraareacabecera\")\r\n\tpublic CalidadMuestraAreaCabecera getCalidadMuestraAreaCabecera() {\r\n\t\treturn this.calidadMuestraAreaCabecera;\r\n\t}", "public int getConto() {\n return (Integer)this.getCampo(nomeConto).getValore();\n }", "public int getCodigo_producto() {\n return codigo_producto;\n }", "public int getDatossolicitudBfclasificacionConvenio() {\n return datossolicitudBfclasificacionConvenio;\n }" ]
[ "0.7083166", "0.6998094", "0.6870232", "0.671102", "0.66584456", "0.6612477", "0.6545952", "0.63670707", "0.6361342", "0.62470853", "0.609485", "0.60672987", "0.6040235", "0.60386276", "0.6031813", "0.5999642", "0.59452957", "0.5899899", "0.58980614", "0.5848536", "0.5819258", "0.58028346", "0.57872474", "0.5772249", "0.57624656", "0.57380754", "0.5736037", "0.5735971", "0.5727748", "0.5727748", "0.56874216", "0.5667184", "0.5664791", "0.56629777", "0.56491196", "0.5636459", "0.5633733", "0.56153727", "0.56060386", "0.56045705", "0.55970573", "0.5595984", "0.55940807", "0.5589396", "0.5519136", "0.550687", "0.5490043", "0.54749626", "0.5474472", "0.54632074", "0.5454744", "0.5445888", "0.5445728", "0.54338026", "0.54115", "0.5410399", "0.5409457", "0.53947896", "0.53925073", "0.5382665", "0.5382651", "0.5382651", "0.53825116", "0.538213", "0.5373865", "0.5369511", "0.5359671", "0.5355465", "0.53545094", "0.53331214", "0.53273916", "0.5326912", "0.53261495", "0.5325274", "0.5307753", "0.52922064", "0.52897006", "0.5287656", "0.5281969", "0.5280888", "0.5278262", "0.527752", "0.5272685", "0.5265823", "0.5256091", "0.5251521", "0.52462864", "0.5230417", "0.52277017", "0.5226224", "0.52248055", "0.52240354", "0.52240354", "0.52240354", "0.52240354", "0.5221023", "0.5218709", "0.52101266", "0.52017707", "0.5200731" ]
0.6914159
2
Define o valor de dataCadastroCota.
public void setDataCadastroCota(Date dataCadastroCota) { if(dataCadastroCota != null){ this.dataCadastroCota = new DateTimeDB(dataCadastroCota.getTime()); } else{ this.dataCadastroCota = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCadastro() {\r\n\t\treturn cadastro;\r\n\t}", "@JsonProperty(\"dataCadastro\")\n\tpublic Date getDataCadastro() {\n\t\treturn dataCadastro;\n\t}", "public Date getDataDeCadastro() {\n\t\treturn this.dataDeCadastro;\n\t}", "@Column(name=\"DataCadastroCota\")\n\t@Temporal(TemporalType.TIMESTAMP)\n\tpublic Date getDataCadastroCota() {\n\t\tDateTimeDB clone = null;\n\t\tif(this.dataCadastroCota != null){\n\t\t\tclone = new DateTimeDB(this.dataCadastroCota.getTime());\n\t\t}\n\t\treturn clone;\n\t}", "@Column(name=\"ValorCota\")\n\tpublic BigDecimal getValorCota() {\n\t\treturn valorCota;\n\t}", "public void setDataConsegna(Date dataConsegna) {\n\t\t\tthis.dataConsegna = dataConsegna;\n\t\t}", "public long getIdCadastroSelecionado(){\r\n \treturn idCadastroSelecionado;\r\n }", "public String getCadena() {\n return cadena;\n }", "public java.lang.Double getValorCadastro() {\n return valorCadastro;\n }", "public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } else {\n cliente = new Cliente();\n\n }\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n\n }", "Aluno(String dataNascimento) {\n this.dataNascimento = dataNascimento;\n }", "public void setComentario (String val) {\n this.comentario = val;\n }", "public void setValorCota(BigDecimal valorCota) {\n\t\tthis.valorCota = valorCota;\n\t}", "public Date getCadastro() {\n\n\t\treturn this.cadastro;\n\t}", "public void setCadena(String cadena) {\n this.cadena = cadena;\n }", "private void datos() {\n int row;\n row = vista.tblClientes.getSelectedRow();\n cvo.setId_cliente(Integer.parseInt(vista.tblClientes.getValueAt(row, 0).toString()));\n vista.txtNombre.setText(String.valueOf(vista.tblClientes.getValueAt(row, 1)));\n vista.txtApellido.setText(String.valueOf(vista.tblClientes.getValueAt(row, 2)));\n vista.txtDireccion.setText(String.valueOf(vista.tblClientes.getValueAt(row, 3)));\n vista.txtCorreo.setText(String.valueOf(vista.tblClientes.getValueAt(row, 4)));\n vista.txtClave.setText(String.valueOf(vista.tblClientes.getValueAt(row, 5)));\n }", "public Conta(String numero, String agencia, Double saldo) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = saldo;\n }", "public void setDataNascimento(Calendar dataNascimento) {\r\n\t\tthis.dataNascimento = dataNascimento;\r\n\t}", "public JFrmCadDeclaAcompanhante1() {\n initComponents();\n int diaSelecionado;\n }", "public Date getDataConsegna() {\n\t\t\treturn dataConsegna;\n\t\t}", "public FrmCadCentroCusto() {\r\n initComponents();\r\n carregarCombo();\r\n }", "public void setValorCadastro(java.lang.Double valorCadastro) {\n this.valorCadastro = valorCadastro;\n }", "public CadastroCompra() {\n initComponents();\n txtDescProduto.setEditable(false);\n txtValor.setEditable(false);\n txtQtdItens.setEditable(false);\n txtPrecoTotal.setEditable(false);\n txtFornecedor.setEditable(false);\n }", "public String controlaConfirmacaoCadastroDataNascimento(String dataNascimento) {\n this.telaFuncionario.exibeMenuConfirmacaoCadastroDataNascimento(dataNascimento);\n int opcao = this.telaFuncionario.pedeOpcao();\n switch (opcao) {\n case 1:\n return dataNascimento;\n case 2:\n dataNascimento = cadastraDataNascimento();\n break;\n default:\n this.telaFuncionario.opcaoInexistente();\n controlaConfirmacaoCadastroDataNascimento(dataNascimento);\n break;\n }\n return dataNascimento;\n }", "public CorteCaja() {\n initComponents();\n this.setResizable(false);\n fecha = fecha();\n consultaventas();\n consultacambios();\n CulsultaApartados();\n this.setResizable(false);\n LblSubTotal.setText(Double.toString(subtotal));\n LblParesVendidos.setText(Integer.toString(pares));\n LblCambiosRealizados.setText(Integer.toString(ii));\n LblEfectivo.setText(Double.toString(efectivo));\n LblApartados.setText(Double.toString(apartar));\n LblNumApartados.setText(Integer.toString(apartados));\n\n }", "public void setDataCancellazione(Date dataCancellazione) {\n\t\tthis.dataCancellazione = dataCancellazione;\n\t}", "public BitacoraCajaRecord(Integer idcaja, Timestamp fecha, BigDecimal valor, String empleado, String movimiento, String comentario) {\n super(BitacoraCaja.BITACORA_CAJA);\n\n set(0, idcaja);\n set(1, fecha);\n set(2, valor);\n set(3, empleado);\n set(4, movimiento);\n set(5, comentario);\n }", "public OrigemProduto(String cdOrigem, String nomeOrigem, String finalidade, String usuarioCadastro, String dataCadastro, String dataModificacao, String situacao){\n setCdOrigem(cdOrigem);\n setNomeOrigem(nomeOrigem);\n setFinalidade(finalidade);\n setUsuarioCadastro(usuarioCadastro);\n setDataCadastro(dataCadastro);\n setDataModificacao(dataModificacao);\n setSituacao(situacao);\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public Timestamp getDeCriacao() {\n return dataDeCriacao;\n }", "public void setCedula(int value) {\n this.cedula = value;\n }", "@JsonProperty(\"dataCancelamento\")\n\tpublic Date getDataCancelamento() {\n\t\treturn dataCancelamento;\n\t}", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "public String getCidade() {\n\t\treturn cidade;\n\t}", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "public int getCaixa() {\n\t\treturn caixa;\n\t}", "public int getCaixa() {\n\t\treturn caixa;\n\t}", "public double getCapacidadeCarga() {\n return capacidadeCarga;\n }", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "public String getDataCandidatura(){\n return dataCandidatura;\n }", "public void setDato(int dato) {\r\n this.dato = dato;\r\n }", "public int getDato() {\r\n return dato;\r\n }", "public java.lang.String getDsCidade() {\n return dsCidade;\n }", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "public void setCidade(String cidade) {// Altera o nome da cidade.\r\n\t\tthis.cidade = cidade;\r\n\t}", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public int getId_coodinador() {\n return id_coodinador;\n }", "public CarroVO getFormCarro() {\n try {\n String placa = cadastroView.getTxtPlaca().getText().trim();\n String cor = (String) cadastroView.getCbCor().getSelectedItem();\n ModeloVO modelo = (ModeloVO) cadastroView.getCbModelo().getSelectedItem();\n MarcaVO marca = (MarcaVO) cadastroView.getCbMarca().getSelectedItem();\n modelo.setMarca(marca);\n return new CarroVO(placa, cor, modelo);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "private void populaContato() {\n ClearMsgsEvent.fire(this);\n CadastroContatoView v = getView();\n if (contato == null) {\n contato = new ContatoDTO();\n }\n contato.setNome(v.nome().getValue());\n contato.setSobrenome(v.sobrenome().getValue());\n contato.setEmail(v.email().getValue());\n contato.setNumero(v.numero().getValue());\n contato.setDataNascimento(v.dataNascimento().getValue());\n }", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public Date getDataCancellazione() {\n\t\treturn dataCancellazione;\n\t}", "public abstract java.lang.String getAcma_valor();", "public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public void codigo(String cadena, String codigo,int codigos,Reserva2 reserva,JDateChooser dateFechaIda,JDateChooser dateFechaVuelta,JTextField DineroFaltante) {\n\t\tcadena=codigo.split(\",\")[1];\n\t\tubicacion=codigo.split(\",\")[5];\n\t\tnombre=codigo.split(\",\")[3];\n\t\tprecio=codigo.split(\",\")[8];\n\t\tcodigos=Integer.parseInt(cadena);\n\t\tSystem.out.println(\"hola\");\n\t\tSystem.out.println(Modelo1.contador);\n\t\t\n\t\tif(Modelo1.contador==1) {\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigohotel(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==2) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigocasa(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigocasa());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==3) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigoapatamento(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigoapatamento());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t}\n\t\t\n\t}", "public jInternalCobro(ControladorPrincipal miControlador, Alumno unAlumno, Cuota cuota) {\n Cuota otro = cuota;\n this.controlador = miControlador;\n elAlumno = unAlumno;\n initComponents();\n Locale locale = new Locale(\"es\", \"ES\");\n DatePickerSettings settings = new DatePickerSettings(locale);\n settings.setFormatForDatesCommonEra(\"dd/MM/yyyy\");\n settings.setFormatForDatesBeforeCommonEra(\"dd/MM/uuuu\");\n datePicker.setSettings(settings);\n datePicker.setDateToToday();\n this.txtNombreAlumno.setText(elAlumno.getNombrealumno() + \" \" + elAlumno.getApellidoalumno());\n if(otro == null) {\n try {\n cargarTablaCuotas(elAlumno);\n } catch (Notificaciones ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n } else {\n try {\n cargarTablaCuota(elAlumno, otro);\n } catch (Notificaciones ex) {\n ex.printStackTrace();\n }\n }\n }", "public int getCaixa() {\n\t\treturn controlador.getCaixa();\n\t}", "public void setDataAffidamento(Optional<LocalDate> dataAffidamento) {\n\t\tthis.dataAffidamento = dataAffidamento;\n\t}", "public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }", "public String getCordno() {\n return cordno;\n }", "private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }", "public void setIdCargaTienda(long idCargaTienda);", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public CadastroDeEmpresa() {\n initComponents();\n preencherTabela(\"select * from empresa order by id\");\n }", "public void setDataPreventivo(Date dataPreventivo) {\n this.dataPreventivo = dataPreventivo;\n }", "public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }", "public void setCodigo_venda(int pCodigoVenda){\n this.codigoVenda = pCodigoVenda;\n }", "public void setDataSituacao(DateTimeDB dataSituacao) {\n this.dataSituacao = dataSituacao;\n }", "public void atualizarCadastro(byte[] arquivo) throws IOException {\n\t\tByteArrayOutputStream bais = new ByteArrayOutputStream();\n\t\tbais.write(ATUALIZAR_CADASTRO);\n\t\tbais.write(arquivo);\n\n\t\tVector<Object> parametros = new Vector<Object>();\n\t\tparametros.addElement(bais.toByteArray());\n\t\tparametros.trimToSize();\n\n\t\tthis.enviar(parametros);\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Celda(int f, int c) {\n\t\tfila=f;\n\t\tcolumna=c;\n\t\tvalor=null;\n\t\tcuadrante=0;\n\t\tcumple=false;\n\t\tentidadGrafica = new EntidadGrafica();\n\t}", "public void setCodigometodoacrescimovalor( String codigometodoacrescimovalor ) {\n this.codigometodoacrescimovalor = codigometodoacrescimovalor;\n }", "public ModificarVenta() {\n initComponents();\n txt_boletas.setValue((long)0);\n txt_transbank.setValue((long)0);\n txt_total.setValue((long)0);\n \n }", "public void setDataNascimentoFromSQL(Date dataNascimento) {\r\n\r\n\t\t// montando a data atrav�s do Calendar\r\n\t\tCalendar data = Calendar.getInstance();\r\n\t\tdata.setTime(dataNascimento);\r\n\t\tthis.dataNascimento = data;\r\n\r\n\t}", "public void setDtCuentaContable(DataTable dtCuentaContable)\r\n/* 314: */ {\r\n/* 315:379 */ this.dtCuentaContable = dtCuentaContable;\r\n/* 316: */ }", "public Cliente ddCliente(String modo){\n ClienteDAO cd = new ClienteDAO();\n Cliente c = null;\n String rz = txtCliRz.getText()+\"\";\n String nFantasia = txtCliNFant.getText()+\"\";\n String DDDTel = txtCliDDD.getText()+\"\";\n String tel = txtCliTel.getText()+\"\";\n String DDDCel = txtCliDDDTel2.getText()+\"\";\n String cel = txtCliTel2.getText()+\"\";\n String rsp = txtCliResp.getText()+\"\"; \n String cnpj = txtCliCNPJ.getText()+\"\";\n c = new Cliente();\n \n if(modo.equalsIgnoreCase(\"a\")){ \n int cod = Integer.parseInt(txtCliCod.getText());\n c.setId(cod);\n } \n \n c.setCNPJ(cnpj);\n c.setRSocial(rz);\n c.setNFantasia(nFantasia);\n c.setDDDCel(DDDCel);\n c.setTel2(cel);\n c.setRsp(rsp);\n c.setDDDTel(DDDTel);\n c.setTel(tel);\n \n return c;\n }", "public javax.swing.JComboBox getCbCidade() {\n return cbCidade;\n }", "public void setDataCreazione(Date dataCreazione) {\n\t\tthis.dataCreazione = dataCreazione;\n\t}", "public Compra(String fechaCompra, int valor, int cantidad) {\r\n this.fechaCompra = fechaCompra;\r\n this.valor = valor;\r\n this.cantidad = cantidad;\r\n }", "public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}", "public String getCuenta() {\r\n return cuenta;\r\n }", "public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}", "public void setCuenta(Cuenta cuenta) {\r\n this.cuenta = cuenta;\r\n fireTableDataChanged();\r\n }", "private String prepararCaducidad() {\n this.getRequestBean1().setCasoNavegacionPostCaducidad(CASO_NAV_POST_CADUCIDAD);\n return CASO_NAV_CADUCIDAD;\n }", "private void carga_tabla_cobro(JTable tbl_cobro,String opc) {\n DefaultTableModel model =new DefaultTableModel();\n tbl_cobro.setModel(model);\n model.addColumn(\"Trans\");\n model.addColumn(\"Sub Trans\");\n model.addColumn(\"Entidad\");\n model.addColumn(\"Nro Valor\");\n model.addColumn(\"Nro Cuenta\");\n model.addColumn(\"Importe\");\n int[] anchos = {100,100,100,100,100,150};\n for (int i = 0; i < vistaForma_Pag.tbl_cobro.getColumnCount(); i++) {\n vistaForma_Pag.tbl_cobro.getColumnModel().getColumn(i).setPreferredWidth(anchos[i]);\n }\n }", "public void limpiarCamposCita() {\r\n try {\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }", "public void setCadastro() {\n jb_novo1.setEnabled(false);\n }", "public Fornecedor(int código, String nome, String data_cadastro, String n_documento) {\r\n super(código, nome, data_cadastro, n_documento);\r\n }", "public long getIdCargaTienda();", "void definirValorFuncaoCliente(String id, String nome) {\n tfdIdCliente.setText(id);\n tfdCliente.setText(nome);\n }", "public void setDataNascimentoString(String dataNascimento) {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tjava.util.Date date = new SimpleDateFormat(\"dd/MM/yyyy\").parse(dataNascimento);\r\n\t\t\tCalendar dataCalendar = Calendar.getInstance();\r\n\t\t\tdataCalendar.setTime(date);\r\n\t\t\t\r\n\t\t\tthis.dataNascimento = dataCalendar;\r\n\t\t\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public int getDatossolicitudBfclasificacionConvenio() {\n return datossolicitudBfclasificacionConvenio;\n }", "public String valorCromosoma() {\n\t return valueOf(getAltura(), getExtremidades(), getFuerza(), getTorax());\n\t }" ]
[ "0.6740119", "0.65727717", "0.6408392", "0.6337172", "0.6136705", "0.6069029", "0.6050737", "0.6022062", "0.599991", "0.5971256", "0.59398836", "0.5906909", "0.58988464", "0.58811754", "0.5852291", "0.58310205", "0.5815843", "0.5784093", "0.57798773", "0.57381636", "0.57338583", "0.5719509", "0.5708161", "0.5704398", "0.56876504", "0.56475043", "0.563142", "0.5631386", "0.56239784", "0.5613613", "0.5607968", "0.5591658", "0.558609", "0.5584528", "0.5582424", "0.5581158", "0.555359", "0.555359", "0.55417866", "0.55413157", "0.55344003", "0.5521199", "0.55142003", "0.55117166", "0.5503423", "0.548608", "0.5475209", "0.54750293", "0.5474927", "0.5474654", "0.54687136", "0.5466589", "0.54640716", "0.54486495", "0.54476804", "0.54452646", "0.5438751", "0.5421955", "0.5420821", "0.5420462", "0.54131925", "0.5410759", "0.5408089", "0.54068726", "0.5406242", "0.5404154", "0.5400836", "0.5397788", "0.5390824", "0.5388962", "0.5381559", "0.5376409", "0.5367231", "0.53626233", "0.53364563", "0.5331702", "0.5329065", "0.5328664", "0.53273827", "0.5323595", "0.53082776", "0.5303649", "0.53012687", "0.530053", "0.5295499", "0.52858573", "0.52854306", "0.52739114", "0.5268954", "0.5264538", "0.5260566", "0.525593", "0.5254496", "0.524101", "0.5239774", "0.52352816", "0.52324504", "0.5231173", "0.52283734", "0.52259636" ]
0.75542945
0
Recupera o valor de valorCota.
@Column(name="ValorCota") public BigDecimal getValorCota() { return valorCota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String valorCromosoma() {\n\t return valueOf(getAltura(), getExtremidades(), getFuerza(), getTorax());\n\t }", "public final T getValor() {\r\n return valor;\r\n }", "public int getValor() {\n return Valor;\n }", "public java.lang.String getValor();", "public int getValor() {\r\n return valor;\r\n }", "Object getValor();", "public String getValor() {\n return valor;\n }", "public int getValor() {\n return valor;\n }", "public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}", "public void setValorCota(BigDecimal valorCota) {\n\t\tthis.valorCota = valorCota;\n\t}", "public java.lang.Double getValorComissao() {\n return valorComissao;\n }", "public V valor() {\n return value;\n }", "public abstract java.lang.String getAcma_valor();", "public int getValor() {\n\t\treturn valor;\n\t}", "public double getValorComercial() {\r\n return valorComercial;\r\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public int getValore() {\n return valore;\n }", "public int getValor() {\n\t\treturn this.valor;\n\t}", "public double getCuota() {\n return cuota;\n }", "public V getCValue();", "public int getValeurCourante() {\n\t\treturn this.valC;\n\t}", "public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}", "public Celda(final T valorN) {\r\n valor = valorN;\r\n }", "public int dameValor(C carta)\n\t{\n\t\tint n= carta.getNumero();\n\t\tif(n>=2 && n<=9)//el 10 no se usa\n\t\t\treturn n;\n\t\telse\n\t\t\treturn 10;\n\t\t\n\t}", "public java.lang.Double getValorCadastro() {\n return valorCadastro;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public static double verificaValorCarro(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n default:\n break;\n\n }\n return valor;\n }", "public HTMLInputElement getElementValor() { return this.$element_Valor; }", "public double getCapacidadeCarga() {\n return capacidadeCarga;\n }", "public void setValor(int Valor) {\n this.Valor = Valor;\n }", "public ValoreA getValore() {\r\n\t\treturn valore;\r\n\t}", "public String getCordno() {\n return cordno;\n }", "public Valore getValore() {\n\t\treturn valore;\n\t}", "public Double getValor() {\n return valor;\n }", "@Override\r\n\tpublic int operar() {\n\t\treturn this.valor;\r\n\t}", "public void setComentario (String val) {\n this.comentario = val;\n }", "public int getDataint(String clave, int valor){\r\n return sharedPreferences.getInt(clave, valor);\r\n }", "public ArrayList<Integer> getValue() {\n return this.diccionario.valor;\n }", "public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }", "public Double getPotencia(){\n return this.valor;\n }", "public HTMLElement getElementValorEd() { return this.$element_ValorEd; }", "public double getValorCliente() {\r\n return valorCliente;\r\n }", "public int obtenerDatos() {\n codigo =Integer.parseInt(modelo.getValueAt(fila,0).toString());\n return codigo;\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public void setCodigometodoacrescimovalor( String codigometodoacrescimovalor ) {\n this.codigometodoacrescimovalor = codigometodoacrescimovalor;\n }", "public int getCadastro() {\r\n\t\treturn cadastro;\r\n\t}", "public double obtValor() {\r\n\t\treturn v;\r\n\t}", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "public double getCena() {\r\n\t\treturn cena;\r\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public static ValorCelda getValorFromEdicion( String texto, TablaDatos tabla ) {\n\t\tNumero ret = new Numero( 0.0 );\n\t\tboolean ok = ret.actualizaTexto( texto );\n\t\tif (!ok) ret = null; \n\t\treturn ret;\n\t}", "public String getValue() {\r\n\t\tAllowedKey tp = this.getAllowedKey();\r\n\t\tKeyMask km = this.getKeyMask();\r\n\r\n\t\tif (tp == TextFieldExt.AllowedKey.AK_SOLO_NUMEROS) {\r\n\t\t\tif (km == TextFieldExt.KeyMask.KM_Moneda)\r\n\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\telse {\r\n\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Numero)\r\n\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\telse\r\n\t\t\t\t\treturn this.getText().trim();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (tp == TextFieldExt.AllowedKey.AK_NUMEROS_CON_FRACCION) {\r\n\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Moneda)\r\n\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Numero)\r\n\t\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn this.getText().trim();\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t\treturn this.getText().trim();\r\n\t\t}\r\n\t}", "public void setValor(int valor) {\n this.valor = valor;\n }", "public void setValoracionDelCurso(int value) {\n this.valoracionDelCurso = value;\n }", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public Valor(Integer id_valor, String valor){\n\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_valor = id_valor ;\n this.valor = valor ;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public long getCosto() {\n return costo;\n }", "public static String getCuenta() {\r\n return cuenta;\r\n }", "public String getCuenta() {\r\n return cuenta;\r\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "@Override\r\n public Object getValueAt(int row, int col) {\r\n Object obj = null;\r\n Venta venta = cuenta.getVentas().get(row);\r\n switch (col) {\r\n case 0:\r\n obj = venta.getCantidad();\r\n break;\r\n case 1:\r\n obj = venta.getProducto().getNombre();\r\n break;\r\n case 2:\r\n obj = venta.getProducto().getPrecioMasIva();\r\n break;\r\n case 3:\r\n obj = venta.getTotal();\r\n }\r\n return obj;\r\n }", "@Override\n\tpublic Object getAsObject(FacesContext context, UIComponent component, String value) {\n\t\tFabricante retorno = null;\n\t\tif (value != null) {\n\n\t\t\tretorno = this.fabricanteDAO.buscarPeloCodigo(new Long(value));\n\t\t}\n\n\t\treturn retorno;\n\t}", "private int getQuantiCoperti(int codMenu) {\n /* variabili e costanti locali di lavoro */\n int totCoperti = 0;\n Number numero;\n Modulo modRMT = RMTModulo.get();\n Filtro filtro;\n\n try { // prova ad eseguire il codice\n filtro = FiltroFactory.crea(modRMT.getCampo(RMT.Cam.menu), codMenu);\n numero = modRMT.query().somma(modRMT.getCampo(RMT.Cam.coperti), filtro);\n totCoperti = Libreria.getInt(numero);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return totCoperti;\n }", "public static float mostrarCredito(){\n JOptionPane.showMessageDialog(null,\"Actualmente hay \"+Monedero.getCredito());\n return Monedero.getCredito();\n }", "public static double verificaValorQuarto(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n case 3:\n return valor + 570;\n case 4:\n return valor + 620;\n case 5:\n return valor + 360;\n case 6:\n return valor + 385;\n case 7:\n return valor + 440;\n default:\n break;\n }\n return valor;\n }", "public String consultaValorRevenda() {\n\t\treturn \"[REVENDA] Celular #\" + this.modelo + \": R$ \" + this.valorRevenda;\n\t}", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tIDISFICHA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tNOTAS=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tANOTACIONES=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tNOTAS_EJERCICIOS=valor;\n\t\t}\n\t}", "public double darCosto(){\n return costo;\n }", "public Long getCodigo() {\n return codigo;\n }", "public CarroVO getFormCarro() {\n try {\n String placa = cadastroView.getTxtPlaca().getText().trim();\n String cor = (String) cadastroView.getCbCor().getSelectedItem();\n ModeloVO modelo = (ModeloVO) cadastroView.getCbModelo().getSelectedItem();\n MarcaVO marca = (MarcaVO) cadastroView.getCbMarca().getSelectedItem();\n modelo.setMarca(marca);\n return new CarroVO(placa, cor, modelo);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public double getValorCertificado() { return this.valorCertificado; }", "public String getCuenta() {\n\t\treturn cuenta;\n\t}", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public void showValor() {\n String out = new String();\n this.setText(Integer.toString(valor));\n }", "public int obtenerCostoInt() {\n return Integer.parseInt(costo);\n }", "public final String toString() {\r\n return valor.toString();\r\n }", "public String getDataString(String clave, String valor){\r\n return sharedPreferences.getString(clave, valor);\r\n }", "public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }", "public double getResultado() {\n\t\treturn resultado;\n\t}", "public int getConto() {\n return (Integer)this.getCampo(nomeConto).getValore();\n }", "public Integer getCboEspecialidad() {\n return cboEspecialidad;\n }", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public double getValorProduto() {\n return valorProduto;\n }", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "@Override\n public int getValue() {\n return Integer.parseInt(gValue.getText());\n }", "public Integer getCodigo() {\n return codigo;\n }", "@Override\n public Object getValueAt(int f, int c) {\n csFilaTabla obj = this.filas.get(f);\n switch(c){\n case 0: return obj.getSemilla();\n case 1: return obj.getOperacion();\n case 2: return obj.getRandom();\n }\n return null;\n }", "int leerCodigoIngreso(){\n\t\treturn Integer.parseInt(cboCodigoIngreso.getSelectedItem().toString());\n\t}", "public String obtenerValorCampo(String nombreCampo) {\n return columnas.get(nombreCampo);\n }", "public int getCodigoSelecionado() {\n return codigoSelecionado;\n }", "public String getCadena() {\n return cadena;\n }", "public Object getValueAt(int row, int column) {\n Preso cli = lista.get(row);\n /*if (column == Id) {\n return cli.getId();\n } else*/ if (column == Nome) {\n return cli.getNome();\n } if (column == Tempo) {\n return cli.getTempo();\n } else\n\n return \"\"; //Nunca deve ocorrer \n }", "public int getValeur() {\r\n return valeur;\r\n }", "Money getItemValue();", "private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }", "public void setValorCadastro(java.lang.Double valorCadastro) {\n this.valorCadastro = valorCadastro;\n }" ]
[ "0.68281645", "0.663765", "0.65927064", "0.6579918", "0.6503454", "0.64779603", "0.6451059", "0.64432836", "0.64187396", "0.63933045", "0.63342035", "0.63120395", "0.6304751", "0.6291449", "0.6276582", "0.6221697", "0.62145275", "0.61964375", "0.61860764", "0.616186", "0.6101572", "0.60873246", "0.6076352", "0.606874", "0.6062759", "0.6050891", "0.6038601", "0.6002948", "0.59996325", "0.5995478", "0.59782785", "0.594749", "0.59381926", "0.5934205", "0.5933986", "0.5931184", "0.5929876", "0.5918582", "0.5917528", "0.5913724", "0.5908618", "0.5897812", "0.5896893", "0.5893659", "0.5858647", "0.58503914", "0.5840162", "0.5833482", "0.5827283", "0.58238655", "0.58189386", "0.5813879", "0.5807745", "0.5800562", "0.57704365", "0.5766063", "0.57652783", "0.5755314", "0.5753528", "0.57497495", "0.57387716", "0.573479", "0.5732214", "0.5714608", "0.56988937", "0.5697488", "0.56905943", "0.5688454", "0.5679155", "0.5664122", "0.56433946", "0.56266963", "0.5622502", "0.5621445", "0.5607797", "0.55852073", "0.558089", "0.55777913", "0.5568103", "0.55678767", "0.55632234", "0.5547764", "0.55468947", "0.55452204", "0.55430216", "0.5539323", "0.55240005", "0.55175513", "0.5516437", "0.5500264", "0.54986346", "0.54959095", "0.5489085", "0.54875594", "0.5481102", "0.54702044", "0.546962", "0.5466859", "0.5465063", "0.54643136" ]
0.71563375
0
Define o valor de valorCota.
public void setValorCota(BigDecimal valorCota) { this.valorCota = valorCota; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "public void setValor(int Valor) {\n this.Valor = Valor;\n }", "public Celda(final T valorN) {\r\n valor = valorN;\r\n }", "@Column(name=\"ValorCota\")\n\tpublic BigDecimal getValorCota() {\n\t\treturn valorCota;\n\t}", "public void setValor(int valor) {\n this.valor = valor;\n }", "public void setComentario (String val) {\n this.comentario = val;\n }", "public void setValoracionDelCurso(int value) {\n this.valoracionDelCurso = value;\n }", "public void setCuota(double cuota) {\n this.cuota = cuota;\n }", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tIDISFICHA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tNOTAS=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tANOTACIONES=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tNOTAS_EJERCICIOS=valor;\n\t\t}\n\t}", "public String valorCromosoma() {\n\t return valueOf(getAltura(), getExtremidades(), getFuerza(), getTorax());\n\t }", "public Valor(Integer id_valor, String valor){\n\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_valor = id_valor ;\n this.valor = valor ;\n }", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tISHORARIO_IDISHORARIO=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tISAULA_IDISAULA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tISCURSO_IDISCURSO=valor;\n\t\t}\n\t\t\n\t}", "public Comida(String nombre, double valor){\n super(nombre, valor);\n this.calorias = 10;\n }", "public int getValor() {\n return Valor;\n }", "public int getValor() {\r\n return valor;\r\n }", "public void setValor(java.lang.String valor);", "public void setValorCliente(double valorCliente) {\r\n this.valorCliente = valorCliente;\r\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public int dameValor(C carta)\n\t{\n\t\tint n= carta.getNumero();\n\t\tif(n>=2 && n<=9)//el 10 no se usa\n\t\t\treturn n;\n\t\telse\n\t\t\treturn 10;\n\t\t\n\t}", "public void cambiaRitmo(int valor){\r\n\t\t\r\n\t}", "public void setCedula(int value) {\n this.cedula = value;\n }", "public int getValor() {\n return valor;\n }", "public void saveDataInt(String clave, int valor){\r\n editor.putInt(clave, valor);\r\n editor.commit();\r\n }", "public void setValorComercial(double valorComercial) {\r\n this.valorComercial = valorComercial;\r\n }", "public double getCuota() {\n return cuota;\n }", "public void setCantidad(int value) {\n this.cantidad = value;\n }", "public void setCodigometodoacrescimovalor( String codigometodoacrescimovalor ) {\n this.codigometodoacrescimovalor = codigometodoacrescimovalor;\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setOcena(int value) {\n this.ocena = value;\n }", "public Compra(String fechaCompra, int valor, int cantidad) {\r\n this.fechaCompra = fechaCompra;\r\n this.valor = valor;\r\n this.cantidad = cantidad;\r\n }", "public void setComuneResidenzaCod(int value) {\r\n this.comuneResidenzaCod = value;\r\n }", "public final void setValor(final T valorN) {\r\n valor = valorN;\r\n }", "public void setCValue(V value);", "public String getValor() {\n return valor;\n }", "public void setCena(double cena) {\r\n\t\tthis.cena = cena;\r\n\t}", "public void setValor(Double valor) {\n this.valor = valor;\n }", "public static double verificaValorCarro(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n default:\n break;\n\n }\n return valor;\n }", "public double getValorComercial() {\r\n return valorComercial;\r\n }", "public void valor(V v) {\n value = v;\n }", "public void setDeci(int c){\n this.deci = c;\n }", "public int getValore() {\n return valore;\n }", "public void creditar(int valor){\r\n this.contaCorrente.creditar(valor);\r\n }", "public java.lang.String getValor();", "public abstract java.lang.String getAcma_valor();", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public ModificarVenta() {\n initComponents();\n txt_boletas.setValue((long)0);\n txt_transbank.setValue((long)0);\n txt_total.setValue((long)0);\n \n }", "public final T getValor() {\r\n return valor;\r\n }", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public int getValor() {\n\t\treturn valor;\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "Object getValor();", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public void setValorCadastro(java.lang.Double valorCadastro) {\n this.valorCadastro = valorCadastro;\n }", "public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}", "public void setValorComissao(java.lang.Double valorComissao) {\n this.valorComissao = valorComissao;\n }", "public Conta(String numero, String agencia, Double saldo) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = saldo;\n }", "public int getDataint(String clave, int valor){\r\n return sharedPreferences.getInt(clave, valor);\r\n }", "public BotonMoneda(VentanaCobrar ventanaCobrar,int valor) {\n this.ventanaCobrar = ventanaCobrar;\n this.valor = valor;\n this.boton = new JButton(String.format(\"%.2f\",(double) valor/100)+\"€\");\n this.boton.addActionListener(e-> this.ventanaCobrar.anyade(valor));\n disenyaBoton();\n }", "public int getValeurCourante() {\n\t\treturn this.valC;\n\t}", "public void setCuenta(String cuenta) {\r\n this.cuenta = cuenta;\r\n }", "public Veiculo(String marca, String modelo, int ano, double valorParaLocacao) { // Criando os construtores\n this.marca = marca;\n this.modelo = modelo;\n this.ano = ano;\n this.valorParaLocacao = valorParaLocacao;\n\n }", "public void setNumCopertiCena(int quanti) {\n campoCena.setValore(quanti);\n this.syncNumCopertiTotali(); \n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public void colocarenlacelda(int fila, int columna, int valor){\n\t\tgetvectorjardin()[fila][columna].setcelda(valor);\r\n\t}", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "private int getQuantiCoperti(int codMenu) {\n /* variabili e costanti locali di lavoro */\n int totCoperti = 0;\n Number numero;\n Modulo modRMT = RMTModulo.get();\n Filtro filtro;\n\n try { // prova ad eseguire il codice\n filtro = FiltroFactory.crea(modRMT.getCampo(RMT.Cam.menu), codMenu);\n numero = modRMT.query().somma(modRMT.getCampo(RMT.Cam.coperti), filtro);\n totCoperti = Libreria.getInt(numero);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return totCoperti;\n }", "public void setPorcentajeCuotaContado(Long porcentajeCuotaContado) {\n this.porcentajeCuotaContado = porcentajeCuotaContado;\n }", "private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }", "public void setOcupacion(long value) {\n this.ocupacion = value;\n }", "public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}", "public void valorConexao() throws Exception {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"=== Valor Conexao === \");\n\t\t}\n\n\t\tURL = config.getString(\"url\");\n\t\tSENHA = config.getString(\"password\");\n\t\tUSUARIO = config.getString(\"user\");\n\t\tDRIVE = config.getString(\"driverClass\");\n\n\t}", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public void setValore(ValoreA valore) {\r\n\t\tthis.valore = valore;\r\n\t}", "public Celda(int f, int c) {\n\t\tfila=f;\n\t\tcolumna=c;\n\t\tvalor=null;\n\t\tcuadrante=0;\n\t\tcumple=false;\n\t\tentidadGrafica = new EntidadGrafica();\n\t}", "public void setValor_servicio(java.lang.Integer valor_servicio) {\n this.valor_servicio = valor_servicio;\n }", "public CadastroCompra() {\n initComponents();\n txtDescProduto.setEditable(false);\n txtValor.setEditable(false);\n txtQtdItens.setEditable(false);\n txtPrecoTotal.setEditable(false);\n txtFornecedor.setEditable(false);\n }", "public Boleto(double valor) {\n precio = valor;\n }", "public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }", "Campana(String suono, int volte){\n this.suono = suono;\n this.volte = volte;\n }", "private void AtulizaBanco(String cod, int matricula, double valor, int qte) {\n try {\n venda.Atualizar(cod, matricula, valor);\n Produto.ProdAtualizarQte(cod, qte);\n } catch (Exception ex) {\n Logger.getLogger(ViewCaixa.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void pedirCantidadProducto(String codBarra){\n this.productoSeleccionado = codBarra;\n }", "public double getCapacidadeCarga() {\n return capacidadeCarga;\n }", "public void obtenerValorDePiezaEnDolaresADolares() {\r\n\t\tPieza pieza = new Pieza(\"\",10,Moneda.DOLAR);\t\t\r\n\t\tdouble precio = pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}", "public int getValor() {\n\t\treturn this.valor;\n\t}", "public void setDataCadastroCota(Date dataCadastroCota) {\n\t\tif(dataCadastroCota != null){\n\t\t\tthis.dataCadastroCota = new DateTimeDB(dataCadastroCota.getTime());\n\t\t} else{\n\t\t\tthis.dataCadastroCota = null;\t\n\t\t}\n\t}", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "public java.lang.Double getValorComissao() {\n return valorComissao;\n }", "public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }", "public V getCValue();", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public JECM_Cuadrado(double a) {\r\n this.a = a;\r\n }", "public void setCodigo(Integer codigo) { this.codigo = codigo; }", "public Cilindro(int idCilindro, int idCombustible, double longitud, double radio, String codigo, String combustible, double volumenFijo) {\r\n this.idCilindro = idCilindro;\r\n this.idCombustible = idCombustible;\r\n this.longitud = longitud;\r\n this.radio = radio;\r\n this.codigo = codigo;\r\n this.combustible = combustible;\r\n this.volumenFijo = volumenFijo;\r\n }", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "private EnumEstadoLeyMercado(String codigoValor, Integer codigoTipo) {\n\t\tthis.codigoValor = codigoValor;\n\t\tthis.codigoTipo = codigoTipo;\n\t}" ]
[ "0.6740837", "0.67366153", "0.6697", "0.6658126", "0.6601703", "0.6598859", "0.6562701", "0.640039", "0.6391652", "0.63896954", "0.63457906", "0.6195723", "0.61770695", "0.60951734", "0.60277677", "0.60211426", "0.60132515", "0.60096544", "0.5999", "0.5996607", "0.5996584", "0.5977919", "0.59767497", "0.5955858", "0.5951697", "0.5950635", "0.59355086", "0.592854", "0.5907711", "0.58645415", "0.58405083", "0.5835207", "0.58295053", "0.5825361", "0.5823582", "0.58118093", "0.5804691", "0.5790261", "0.5788117", "0.5786835", "0.57761616", "0.5772666", "0.5767789", "0.5764099", "0.5763155", "0.5757236", "0.57435113", "0.5730903", "0.5723101", "0.5720916", "0.57169855", "0.5714726", "0.5701208", "0.5698255", "0.56873894", "0.5663475", "0.56559765", "0.5650629", "0.564667", "0.5646059", "0.56406134", "0.56392676", "0.56392455", "0.562921", "0.56277984", "0.5626447", "0.56194067", "0.5616811", "0.56043065", "0.5592994", "0.5577593", "0.5576913", "0.5576395", "0.55599487", "0.55531585", "0.55505234", "0.55461764", "0.5545767", "0.5543705", "0.5539434", "0.55310476", "0.55301577", "0.5528895", "0.5527299", "0.5519259", "0.5514737", "0.55103475", "0.54972094", "0.5496302", "0.5494507", "0.54921293", "0.5490119", "0.54709756", "0.5470838", "0.5463077", "0.54630214", "0.5462167", "0.5460004", "0.5452398", "0.54472184" ]
0.6777485
0
Recupera o valor de numMinCotasInteg.
@Column(name="NumMinCotasInteg") public Integer getNumMinCotasInteg() { return numMinCotasInteg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNumMinCotasInteg(Integer numMinCotasInteg) {\n\t\tthis.numMinCotasInteg = numMinCotasInteg;\n\t}", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "public int getMinInteger() {\n\t\treturn this.minInteger;\n\t}", "public int getMinIntValue();", "public int getGradoMinimo() {\n\t\treturn grMin;\n\t}", "public int getMin(){\n\t\treturn min;\n\t}", "public int getMinimum() {\r\n return min;\r\n }", "int getMin( int min );", "public int getMin()\n\t{\n\t\treturn min;\n\t}", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "protected final int getMin() {\n\treturn(this.min);\n }", "public int getMin() {\n\t\treturn min;\n\t}", "public Integer getNumeroMinimimoApoyos() {\r\n\t\treturn numMinApoyos;\r\n\t}", "public int setOxygenMin(Integer oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public static int getInt(Scanner scnr, String prompt, int min, int max) {\n\t\tboolean isValid = false;\n\t\tint number;\n\t\tdo {\n\t\t\tnumber = getInt(scnr, prompt);\n\t\t\t\n\t\t\tif (number < min) {\n\t\t\t\tisValid = false;\n\t\t\t\tSystem.out.println(\"The number must be at least \" + min);\n\t\t\t} else if (number > max) {\n\t\t\t\tisValid = false;\n\t\t\t\tSystem.out.println(\"The number must less than or equal to \" + max);\n\t\t\t} else {\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t\t\n\t\t} while (!isValid);\n\t\treturn number;\n\t}", "public int getxMin() {\n\t\treturn xMin;\n\t}", "public int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "int min() {\n return min;\r\n }", "public Number getMinimumNumber() {\n/* 167 */ if (this.minObject == null) {\n/* 168 */ this.minObject = new Long(this.min);\n/* */ }\n/* 170 */ return this.minObject;\n/* */ }", "public int getMinAmount() {\n return _min;\n }", "public static int getValidInteger(int min) {\n\n int userInput = getValidInteger();\n\n while (userInput < min) {\n System.out.printf(\"Please enter a number greater than %d!\\n\", min);\n userInput = getValidInteger();\n }\n\n return userInput;\n }", "public int findMin() {\r\n\t\treturn this.min.value;\r\n\t}", "public float getMinAlturaCM();", "public void setMinInteger(final int minInteger) {\n\t\tthis.minInteger = minInteger;\n\t}", "public int GetMinVal();", "public int cariMinimum(int[] min) {\n\t\tint minimum = min[0];\n\t\tint jumlah = min.length;\n\t\tfor (int i = 0; i < jumlah; i++) {\n\t\t\tif (min[i] < minimum) {\n\t\t\t\tminimum = min[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(pesoActual<18.75){\r\n \t\t\treturn DELGADO;\r\n \t\t}else{\r\n \t\t\treturn SOBREPESO;\r\n \t\t}\r\n \t}", "public int obtenerMinuto() { return minuto; }", "private Integer getMines(Integer xOpen, Integer yOpen){\n int counter=0;\r\n // System.out.println(\"getMines() [\"+xOpen+\"][\"+yOpen+\"]\");\r\n for(int i=xOpen-1; i<=(xOpen+1) ; i++){\r\n for(int j=yOpen-1; j<=(yOpen+1) ; j++){\r\n if(isValidCell(i,j) && grid[i][j].isMine()){ //split y && le quite uno\r\n counter++; //solo un operador and \r\n }\r\n }\r\n }\r\n// System.out.println(\" getMines().result = \"+counter);\r\n return counter; //contador de minas, el mismo no puede ser una mina \r\n }", "private int getNumberOfIterations() throws NumberFormatException {\n\t\tfinal String USER_INPUT = numberOfIterations.getText();\n\t\tint temp = 0;\n\t\ttry {\n\t\t\ttemp = Integer.parseInt(USER_INPUT);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString errorMessage = \"Number of Iterations is expected to be an Integer value, but you input '\";\n\t\t\terrorMessage += USER_INPUT;\n\t\t\terrorMessage += \"'. Please fix this before moving on.\";\n\t\t\tJOptionPane.showMessageDialog(this, errorMessage,\n\t\t\t\t\"Number of Iterations must be a positive Interger!\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\tthrow new NumberFormatException(errorMessage);\n\t\t}\n\t\treturn temp;\n\t}", "public int getNumeroMontoni() {\n\t\treturn numMontoni;\n\t}", "public int getMinRange() {\r\n return fMinRange;\r\n }", "int getMines() {return mines;}", "public int getEleMinTimeOut(){\r\n\t\t String temp=rb.getProperty(\"eleMinTimeOut\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}", "int askForTempMin();", "public int getMinimum() {\n \tcheckWidget();\n \treturn minimum;\n }", "public int getMinValue() {\n return minValue;\n }", "public int setTemperatureMin(Integer temperatureMin) {\n try {\n setTemperatureMin(temperatureMin.floatValue());\n } catch (Exception e) {\n setTemperatureMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return temperatureMinError;\n }", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int getInterdigitInterval();", "public Integer getMin() { \n\t\treturn getMinElement().getValue();\n\t}", "public int getIntegerValue()\n {\n// if (val != Math.round(val))\n// System.err.println(\"IntegerYoVariable: returning a different value than what it used to be.\");\n return val;\n }", "public int getAdc_min ()\n {\n return adc_min_;\n }", "public int setNitrateMin(Float nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public int getMinValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getminvalue\",\n\t\t\t\tgetRefId());\n\t}", "public Integer getMin() {\n\t\tif (this.Minimum==null)\n\t\t{\n\t\t\tcalcMinMax();\n\t\t}\n\t\treturn this.Minimum;\n\t}", "public int setOxygenMin(Float oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public void testGetSetMinNTrials() {\n exp = new Experiment(\"10\");\n exp.setMinNTrials(5);\n assertEquals(\"get/setMinNTrials does not work\", 5, (int)exp.getMinNTrials());\n }", "public int setNitrateMin(String nitrateMin) {\n try {\n setNitrateMin(new Float(nitrateMin).floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public int setChlorophyllMin(Integer chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "public float getNitrateMin() {\n return nitrateMin;\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "public int getMinTrials() {\n return minTrials;\n }", "public int getIncrementoInteligencia() {\n\t\treturn incrementoInteligencia;\n\t}", "public Integer minNumberOfCores() {\n return this.minNumberOfCores;\n }", "public Integer min() {\n return this.min;\n }", "public void setMinum(int minum) {\r\n this.minum = minum;\r\n }", "double getMin();", "double getMin();", "public void SetMinVal(int min_val);", "public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }", "public int getNumero() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNumero() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNumero() - end\");\n\t\t}\n\t\treturn numero;\n\t}", "public int getMines()\n {\n return mines;\n }", "public abstract int getMinimumValue();", "public int setOxygenMin(String oxygenMin) {\n try {\n setOxygenMin(new Float(oxygenMin).floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "public int findMinII(int[] nums) {\n return helper(nums, 0, nums.length - 1);\n }", "public int getMinAmount() {\n return minAmount;\n }", "public long getMinimum() {\n\t\treturn this._min;\n\t}", "public boolean verificarMinerosComodin() {\r\n int oro = 0;\r\n int plata = 0;\r\n int bronce = 0;\r\n int comodin = 0;\r\n\r\n for (int i = 0; i < listadeMineros.size(); i++) {\r\n if (\"ORO\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n oro++;\r\n }\r\n if (\"PLATA\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n plata++;\r\n }\r\n if (\"BRONCE\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n bronce++;\r\n }\r\n if (\"COMODIN\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n comodin++;\r\n }\r\n }\r\n if (!listadeMineros.isEmpty()) {\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) <= 10) {\r\n return true;\r\n }\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) > 10) {\r\n return false;\r\n }\r\n }\r\n\r\n return false;\r\n }", "private static int getInRangeInt(Scanner scan, int min, int max) {\n int value = -9999;\n while (value < min || value > max) {\n System.out.println(\"Must be a integer between \" + min + \" and \" + max + \" : \");\n while (!scan.hasNextInt()) {\n System.out.println(\"Must be a integer between \" + min + \" and \" + max + \" : \");\n scan.next();\n }\n value = scan.nextInt();\n }\n return value;\n }", "public int numMines() {\n\t /*return the total number of mines in the field*/\n return numMines; \n }", "public void setMin(int min) {\n this.min = min;\n }", "public void setMin(int min) {\n this.min = min;\n }", "public int setPhosphateMin(Integer phosphateMin) {\n try {\n setPhosphateMin(phosphateMin.floatValue());\n } catch (Exception e) {\n setPhosphateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMinError;\n }", "public int inputIntValueWithScanner(Scanner sc, String enterConstant, int maxBarrier) {\r\n int res = 0;\r\n view.printMessage(enterConstant);\r\n\r\n while (true) {\r\n // check int - value\r\n while (!sc.hasNextInt()) {\r\n view.printMessage(View.WRONG_INPUT_INT_DATA\r\n + enterConstant);\r\n sc.next();\r\n }\r\n // check value in range\r\n if ((res = sc.nextInt()) < GlobalConstants.PRIMARY_MIN_BARRIER ||\r\n res > maxBarrier) {\r\n view.printMessage(View.WRONG_INPUT_INT_DATA\r\n + enterConstant);\r\n continue;\r\n }\r\n break;\r\n }\r\n return res;\r\n }", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "public double calcularAlvoMinima() {\r\n\t\treturn calcularFrequenciaMaxima()*0.5;\r\n\t}", "public static int getInt(int min, int max) throws Exception {\n return getInt(min, max, null);\n }", "public static int getInt() {\n while (!consoleScanner.hasNextInt()) {\n consoleScanner.next();\n }\n return consoleScanner.nextInt();\n }", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int getMinionCount() {\r\n\t\treturn this.minions;\r\n\t}", "@Test\n\tpublic void testMinimumNumber() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble tmpResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue( (tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue((tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) \n\t\t\t|| (-0.123456789 == ac.minimumNumber(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.min(zero, zero);\n\t\t\t//System.out.println(inpResult + \" ############\");\n\t\t\tassertTrue( (inpResult == ac.minimumNumber(zero, zero)) );\n\t\t}\n\t\t\n\t}", "public int getConvertirHoraMinutosStamina(){\n return totalMinutosStamina;\n }", "@NonNull\n public Integer getMinTemp() {\n return minTemp;\n }", "@Test\n public void min() {\n assertEquals(2103, SuggestionUtil.min(2103, 2103, 2103));\n\n // EP: two numbers same and one different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2103));\n\n // EP: all three numbers different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2105));\n }", "public double min() {\n double resultat = Double.MAX_VALUE;\n double tmp = 0;\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.min(tab.get(i));\n if (tmp < resultat) {\n resultat = tmp;\n }\n }\n\n System.out.println(\"Min colonne:\" + resultat);\n return resultat;\n }", "public int getNumMines() {\n return numMines;\n }", "public int setSalinityMin(Integer salinityMin) {\n try {\n setSalinityMin(salinityMin.floatValue());\n } catch (Exception e) {\n setSalinityMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return salinityMinError;\n }", "private int min(int profondeur)\n\t{\n\t\tif(profondeur == 0 || grille.fin())\n\t\t{\n\t\t\treturn eval();\n\t\t}\n\t\tint min_val = 1000;\n\t\tfor(int y = 0; y < grille.getTaille(); y++)\n\t\t{\n\t\t\tfor(int x = 0; x < grille.getTaille(); x++)\n\t\t\t{\n\t\t\t\tCoordonnee test = new Coordonnee(x, y);\n\t\t\t\tif(grille.getCase(test).getContenu() == grille.getCaseVide())\n\t\t\t\t{\n\t\t\t\t\tgrille.jouer(test, '?');\n\t\t\t\t\tint val = max(profondeur-1);\n\t\t\t\t\t//System.out.println(\" = \" + val);\n\t\t\t\t\t//grille.afficher();\n\t\t\t\t\tif(val < min_val)\n\t\t\t\t\t{\n\t\t\t\t\t\tmin_val = val;\n\t\t\t\t\t}\n\t\t\t\t\tannuler(test);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn min_val;\n\t}", "public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }", "public int getTotalminions() {\n\t\treturn totalminions;\n\t}", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int minNum = 1000000000;\n\n for(int i = 0; i <= 5; i +=1) {\n System.out.println(\"Enter a number: \");\n int num = scan.nextInt();\n\n if (num < minNum) {\n minNum = num;\n }\n\n }\n\n System.out.println(\"Your minimum number is: \"+minNum);\n\n\n\n\n\n }", "private double getMinNumber(ArrayList<Double> provinceValues)\n {\n Double min = 999999999.0;\n\n for (Double type : provinceValues)\n {\n if (type < min)\n {\n min = type;\n }\n }\n return min;\n }", "public void setMinAmount(int min) {\n _min = min;\n }", "@Override\n\tpublic long getMinnum() {\n\t\treturn _esfTournament.getMinnum();\n\t}", "private static int getInt()\n\t{\n\t\tScanner kb;\n\t\tint Val;\n\t\tkb = new Scanner(System.in);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\n\t\twhile (!kb.hasNextInt())\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\tkb = new Scanner(System.in);\n\t\t}\n\t\t\n\t\tVal = kb.nextInt();\n\t\t\n\t\twhile (Val < 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Fail. Try harder!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\t\n\t\t\twhile (!kb.hasNextInt())\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\t\tkb = new Scanner(System.in);\n\t\t\t}\n\t\t\tVal = kb.nextInt();\n\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t\treturn Val;\n\t\t\n\t}" ]
[ "0.8038867", "0.64172", "0.6384489", "0.6276109", "0.5941681", "0.5937221", "0.58929217", "0.58881885", "0.5872553", "0.58609736", "0.58609736", "0.58609736", "0.58432215", "0.58354056", "0.5827044", "0.58266073", "0.5813057", "0.58060265", "0.5794946", "0.5781281", "0.5729654", "0.5727068", "0.57261884", "0.57212526", "0.5702425", "0.56914294", "0.5684692", "0.5682514", "0.56761193", "0.5656441", "0.5627741", "0.56230754", "0.561765", "0.56123275", "0.55959404", "0.5580511", "0.557091", "0.55337554", "0.5533507", "0.55295914", "0.55276644", "0.5520934", "0.55193293", "0.55100375", "0.5507408", "0.55040234", "0.55024153", "0.5481219", "0.5469544", "0.5448714", "0.54371345", "0.54284847", "0.5423023", "0.5409966", "0.5395958", "0.53893834", "0.53872293", "0.53809893", "0.537855", "0.53728235", "0.53613424", "0.53613424", "0.53564054", "0.53539926", "0.5327969", "0.5319414", "0.5316275", "0.53093106", "0.530433", "0.53023267", "0.5297813", "0.5296402", "0.52803004", "0.5252838", "0.524278", "0.5241903", "0.5241903", "0.52383375", "0.52321625", "0.5225665", "0.5222773", "0.5217762", "0.52169454", "0.52156943", "0.5209714", "0.52090317", "0.5191325", "0.5189999", "0.5186711", "0.51803756", "0.5179573", "0.51785946", "0.5175721", "0.51716495", "0.5166441", "0.51617956", "0.51569515", "0.5151068", "0.5142979", "0.51418936" ]
0.73995006
1
Define o valor de numMinCotasInteg.
public void setNumMinCotasInteg(Integer numMinCotasInteg) { this.numMinCotasInteg = numMinCotasInteg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Column(name=\"NumMinCotasInteg\")\n\tpublic Integer getNumMinCotasInteg() {\n\t\treturn numMinCotasInteg;\n\t}", "public int setOxygenMin(Integer oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public void setMinInteger(final int minInteger) {\n\t\tthis.minInteger = minInteger;\n\t}", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "public void setMinum(int minum) {\r\n this.minum = minum;\r\n }", "public int getMinInteger() {\n\t\treturn this.minInteger;\n\t}", "public void SetMinVal(int min_val);", "public int getMinIntValue();", "public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }", "public int setNitrateMin(Float nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public int getGradoMinimo() {\n\t\treturn grMin;\n\t}", "public int setOxygenMin(Float oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public void testGetSetMinNTrials() {\n exp = new Experiment(\"10\");\n exp.setMinNTrials(5);\n assertEquals(\"get/setMinNTrials does not work\", 5, (int)exp.getMinNTrials());\n }", "public void setMin(int min) {\n this.min = min;\n }", "public void setMin(int min) {\n this.min = min;\n }", "public Integer getNumeroMinimimoApoyos() {\r\n\t\treturn numMinApoyos;\r\n\t}", "public int setChlorophyllMin(Integer chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "private void setConfigNumMinBgJobs(int value) {\n this.bitField0_ |= 4;\n this.configNumMinBgJobs_ = value;\n }", "public int setNitrateMin(String nitrateMin) {\n try {\n setNitrateMin(new Float(nitrateMin).floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int setOxygenMin(String oxygenMin) {\n try {\n setOxygenMin(new Float(oxygenMin).floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public void setNUMCOPIAS(int value) {\n this.numcopias = value;\n }", "public int setTemperatureMin(Integer temperatureMin) {\n try {\n setTemperatureMin(temperatureMin.floatValue());\n } catch (Exception e) {\n setTemperatureMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return temperatureMinError;\n }", "int getMines() {return mines;}", "public int getNumeroMontoni() {\n\t\treturn numMontoni;\n\t}", "public int getMin(){\n\t\treturn min;\n\t}", "private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }", "public void setMinNoEmp(Integer minNoEmp) {\n this.minNoEmp = minNoEmp;\n }", "private int getNumberOfIterations() throws NumberFormatException {\n\t\tfinal String USER_INPUT = numberOfIterations.getText();\n\t\tint temp = 0;\n\t\ttry {\n\t\t\ttemp = Integer.parseInt(USER_INPUT);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString errorMessage = \"Number of Iterations is expected to be an Integer value, but you input '\";\n\t\t\terrorMessage += USER_INPUT;\n\t\t\terrorMessage += \"'. Please fix this before moving on.\";\n\t\t\tJOptionPane.showMessageDialog(this, errorMessage,\n\t\t\t\t\"Number of Iterations must be a positive Interger!\",\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\tthrow new NumberFormatException(errorMessage);\n\t\t}\n\t\treturn temp;\n\t}", "public int setSalinityMin(Integer salinityMin) {\n try {\n setSalinityMin(salinityMin.floatValue());\n } catch (Exception e) {\n setSalinityMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return salinityMinError;\n }", "public static int getInt(Scanner scnr, String prompt, int min, int max) {\n\t\tboolean isValid = false;\n\t\tint number;\n\t\tdo {\n\t\t\tnumber = getInt(scnr, prompt);\n\t\t\t\n\t\t\tif (number < min) {\n\t\t\t\tisValid = false;\n\t\t\t\tSystem.out.println(\"The number must be at least \" + min);\n\t\t\t} else if (number > max) {\n\t\t\t\tisValid = false;\n\t\t\t\tSystem.out.println(\"The number must less than or equal to \" + max);\n\t\t\t} else {\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t\t\n\t\t} while (!isValid);\n\t\treturn number;\n\t}", "public float getMinAlturaCM();", "public void setMinAmount(int min) {\n _min = min;\n }", "public void setMinimum(Number min) {\n this.min = min;\n }", "public int setPhosphateMin(Integer phosphateMin) {\n try {\n setPhosphateMin(phosphateMin.floatValue());\n } catch (Exception e) {\n setPhosphateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMinError;\n }", "public int getxMin() {\n\t\treturn xMin;\n\t}", "public int getInterdigitInterval();", "int getMin( int min );", "public void setMinAlturaCM(float max);", "int min() {\n return min;\r\n }", "public void setMines(int mines)\n {\n this.mines = mines;\n }", "public int cariMinimum(int[] min) {\n\t\tint minimum = min[0];\n\t\tint jumlah = min.length;\n\t\tfor (int i = 0; i < jumlah; i++) {\n\t\t\tif (min[i] < minimum) {\n\t\t\t\tminimum = min[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}", "public int getMinimum() {\r\n return min;\r\n }", "public void setMinTrials(int minTrials) {\n this.minTrials = minTrials;\n }", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public void setMin(int min)\n\t{\n\t\tif (min < 0)\n\t\t\tthrow new IllegalArgumentException(\"min < 0\");\n\t\tthis.min = min;\n\t}", "private void setNitrateMinError (float nitrateMin, Exception e, int error) {\n this.nitrateMin = nitrateMin;\n nitrateMinErrorMessage = e.toString();\n nitrateMinError = error;\n }", "public int getMin() {\n\t\treturn min;\n\t}", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int getMin()\n\t{\n\t\treturn min;\n\t}", "public int obtenerMinuto() { return minuto; }", "private Integer getMines(Integer xOpen, Integer yOpen){\n int counter=0;\r\n // System.out.println(\"getMines() [\"+xOpen+\"][\"+yOpen+\"]\");\r\n for(int i=xOpen-1; i<=(xOpen+1) ; i++){\r\n for(int j=yOpen-1; j<=(yOpen+1) ; j++){\r\n if(isValidCell(i,j) && grid[i][j].isMine()){ //split y && le quite uno\r\n counter++; //solo un operador and \r\n }\r\n }\r\n }\r\n// System.out.println(\" getMines().result = \"+counter);\r\n return counter; //contador de minas, el mismo no puede ser una mina \r\n }", "public void setAdc_min (int min)\n {\n adc_min_ = min;\n }", "public int GetMinVal();", "public int getMinRange() {\r\n return fMinRange;\r\n }", "public void setNUMSEC(int value) {\n this.numsec = value;\n }", "public void setNUMSEC(int value) {\n this.numsec = value;\n }", "public void setNUMSEC(int value) {\n this.numsec = value;\n }", "public static int getValidInteger(int min) {\n\n int userInput = getValidInteger();\n\n while (userInput < min) {\n System.out.printf(\"Please enter a number greater than %d!\\n\", min);\n userInput = getValidInteger();\n }\n\n return userInput;\n }", "@Override\n\tpublic void setMinnum(long minnum) {\n\t\t_esfTournament.setMinnum(minnum);\n\t}", "public IntegerValidator(int minimalValue, int maximalValue) {\r\n this.minimalValue = minimalValue;\r\n this.maximalValue = maximalValue;\r\n }", "public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(pesoActual<18.75){\r\n \t\t\treturn DELGADO;\r\n \t\t}else{\r\n \t\t\treturn SOBREPESO;\r\n \t\t}\r\n \t}", "public int getMinAmount() {\n return _min;\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n int minNum = 1000000000;\n\n for(int i = 0; i <= 5; i +=1) {\n System.out.println(\"Enter a number: \");\n int num = scan.nextInt();\n\n if (num < minNum) {\n minNum = num;\n }\n\n }\n\n System.out.println(\"Your minimum number is: \"+minNum);\n\n\n\n\n\n }", "public int numMines() {\n\t /*return the total number of mines in the field*/\n return numMines; \n }", "public void setNUMSECFO(int value) {\n this.numsecfo = value;\n }", "public void setMinValue(int x) {\r\n\t\tminValue = x;\r\n\t}", "public int setChlorophyllMin(Float chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "static public int getDefaultInt () {\n return defaultInt;\n }", "public void setPercMinIntegralizacao(BigDecimal percMinIntegralizacao) {\n\t\tthis.percMinIntegralizacao = percMinIntegralizacao;\n\t}", "public int setSilicateMin(String silicateMin) {\n try {\n setSilicateMin(new Float(silicateMin).floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int getMinValue() {\n return minValue;\n }", "public void setMinTemp(@NonNull Integer minTemp) {\n this.minTemp = minTemp;\n }", "int askForTempMin();", "protected final int getMin() {\n\treturn(this.min);\n }", "public Number getMinimumNumber() {\n/* 167 */ if (this.minObject == null) {\n/* 168 */ this.minObject = new Long(this.min);\n/* */ }\n/* 170 */ return this.minObject;\n/* */ }", "private int min(int profondeur)\n\t{\n\t\tif(profondeur == 0 || grille.fin())\n\t\t{\n\t\t\treturn eval();\n\t\t}\n\t\tint min_val = 1000;\n\t\tfor(int y = 0; y < grille.getTaille(); y++)\n\t\t{\n\t\t\tfor(int x = 0; x < grille.getTaille(); x++)\n\t\t\t{\n\t\t\t\tCoordonnee test = new Coordonnee(x, y);\n\t\t\t\tif(grille.getCase(test).getContenu() == grille.getCaseVide())\n\t\t\t\t{\n\t\t\t\t\tgrille.jouer(test, '?');\n\t\t\t\t\tint val = max(profondeur-1);\n\t\t\t\t\t//System.out.println(\" = \" + val);\n\t\t\t\t\t//grille.afficher();\n\t\t\t\t\tif(val < min_val)\n\t\t\t\t\t{\n\t\t\t\t\t\tmin_val = val;\n\t\t\t\t\t}\n\t\t\t\t\tannuler(test);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn min_val;\n\t}", "public void setMin(int min) throws MinuteInputException{\n\t\tif (min < 0)\n\t\t\tthrow new MinuteInputException(\"Invalid minute\");\n\t\tthis.min = min;\n\t}", "@Test\n\tpublic void testMinimumNumber() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble tmpRndVal2 = 0.0;\n\t\tdouble tmpResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\ttmpRndVal2 = doubleRandomNegativeNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue( (tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) );\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers();\n\t\t\ttmpRndVal2 = doubleRandomPositiveNumbers();\n\t\t\ttmpResult = Math.min(tmpRndVal, tmpRndVal2);\n\t\t\tassertTrue((tmpResult == ac.minimumNumber(tmpRndVal, tmpRndVal2))\n\t\t\t|| (0.0 == ac.minimumNumber(tmpRndVal, tmpRndVal2)) \n\t\t\t|| (-0.123456789 == ac.minimumNumber(tmpRndVal, tmpRndVal2)));\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\tdouble inpResult = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tinpResult = Math.min(zero, zero);\n\t\t\t//System.out.println(inpResult + \" ############\");\n\t\t\tassertTrue( (inpResult == ac.minimumNumber(zero, zero)) );\n\t\t}\n\t\t\n\t}", "public int getNumMines() {\n return numMines;\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "public void setMinValue(int minValue) {\n this.minValue = minValue;\n }", "public int getEleMinTimeOut(){\r\n\t\t String temp=rb.getProperty(\"eleMinTimeOut\");\r\n\t\t return Integer.parseInt(temp);\r\n\t}", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "public int getMinTrials() {\n return minTrials;\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "@Test\n public void min() {\n assertEquals(2103, SuggestionUtil.min(2103, 2103, 2103));\n\n // EP: two numbers same and one different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2103));\n\n // EP: all three numbers different\n assertEquals(2103, SuggestionUtil.min(2103, 2104, 2105));\n }", "private void setNumberMines(int setNumberMines)\n\t{\n\t\tif(setNumberMines <= 0) myNumberMines = 1;\n\t\telse if(setNumberMines > ((mySizeX * mySizeY)-9))\n\t\t\tmyNumberMines = (mySizeX * mySizeY) - 9;\n\t\telse myNumberMines = setNumberMines;\n\t}", "public static int estraiIntero(int minimo, int massimo) {\n int range = massimo + 1 - minimo;\n int casual = rand.nextInt(range);\n\n return casual + minimo;\n }", "private int saisiePersoInt(String typeChoice, int min, int max) { \n\t\tint persoInt; \n\t\ttry {\n\t\t\tSystem.out.println(\"choisissez \"+ typeChoice+\" entre \"+min+\" et \"+max); \n\t\t\tpersoInt=sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tif(persoInt<min || persoInt>max) {\n\t\t\t\tsaisiePersoInt(typeChoice, min, max);\n\t\t\t}; \n\t\t\treturn persoInt; \n\t\t} catch (InputMismatchException e) { \n\t\t\tSystem.out.println(\"vous n'avez pas rentré un monbre entier\"); \n\t\t\tsc.nextLine();\n\t\t\treturn saisiePersoInt(typeChoice, min, max); \n\t\t} catch (NoSuchElementException e) {\n\t\t\tSystem.out.println(\"vous n'avez rien rentré\"); \n\t\t\tsc.nextLine();\n\t\t\treturn saisiePersoInt(typeChoice, min, max);\n\t\t}\n\t}", "public int getIncrementoInteligencia() {\n\t\treturn incrementoInteligencia;\n\t}", "public boolean verificarMinerosComodin() {\r\n int oro = 0;\r\n int plata = 0;\r\n int bronce = 0;\r\n int comodin = 0;\r\n\r\n for (int i = 0; i < listadeMineros.size(); i++) {\r\n if (\"ORO\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n oro++;\r\n }\r\n if (\"PLATA\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n plata++;\r\n }\r\n if (\"BRONCE\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n bronce++;\r\n }\r\n if (\"COMODIN\".equals(listadeMineros.get(i).getEspecialidadDelMinero())) {\r\n comodin++;\r\n }\r\n }\r\n if (!listadeMineros.isEmpty()) {\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) <= 10) {\r\n return true;\r\n }\r\n if ((((comodin + 1) / (oro + plata + bronce)) * 100) > 10) {\r\n return false;\r\n }\r\n }\r\n\r\n return false;\r\n }", "private void setOxygenMinError (float oxygenMin, Exception e, int error) {\n this.oxygenMin = oxygenMin;\n oxygenMinErrorMessage = e.toString();\n oxygenMinError = error;\n }", "private static int getInRangeInt(Scanner scan, int min, int max) {\n int value = -9999;\n while (value < min || value > max) {\n System.out.println(\"Must be a integer between \" + min + \" and \" + max + \" : \");\n while (!scan.hasNextInt()) {\n System.out.println(\"Must be a integer between \" + min + \" and \" + max + \" : \");\n scan.next();\n }\n value = scan.nextInt();\n }\n return value;\n }", "public int getMinionCount() {\r\n\t\treturn this.minions;\r\n\t}", "public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }", "public int setTemperatureMin(Float temperatureMin) {\n try {\n setTemperatureMin(temperatureMin.floatValue());\n } catch (Exception e) {\n setTemperatureMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return temperatureMinError;\n }" ]
[ "0.713494", "0.60482705", "0.59578377", "0.59369165", "0.58420306", "0.57615185", "0.5748272", "0.5743746", "0.5736274", "0.5713326", "0.5661771", "0.56577444", "0.5649334", "0.5613113", "0.56098914", "0.56098914", "0.56049", "0.5558253", "0.55574745", "0.5541937", "0.5491306", "0.54806286", "0.54472387", "0.54454976", "0.54205567", "0.54006636", "0.5395712", "0.53919154", "0.5386481", "0.53664166", "0.5355947", "0.5355638", "0.5314883", "0.5299955", "0.5298826", "0.5292532", "0.52893025", "0.5283592", "0.5277349", "0.5264886", "0.5254505", "0.52485657", "0.5246172", "0.52245456", "0.5223923", "0.5212288", "0.5212288", "0.5212288", "0.52079743", "0.5207496", "0.52069426", "0.5187873", "0.51816934", "0.5178972", "0.5166321", "0.51626104", "0.5150348", "0.5139065", "0.5132285", "0.5132285", "0.5132285", "0.51320195", "0.5122681", "0.5118506", "0.5109199", "0.51088095", "0.5107855", "0.5107087", "0.5101169", "0.50874", "0.5079985", "0.5077945", "0.507553", "0.50731224", "0.50708055", "0.50694543", "0.5058446", "0.50538063", "0.5047782", "0.5046526", "0.5042061", "0.5040351", "0.50377953", "0.50333595", "0.5028276", "0.5026108", "0.5025684", "0.50154185", "0.50134915", "0.50117195", "0.5005319", "0.5004695", "0.49994838", "0.49981925", "0.49908245", "0.49895126", "0.49868724", "0.49858466", "0.4985039", "0.49826187" ]
0.8446711
0
Recupera o valor de percMinIntegralizacao.
@Column(name="PercMinIntegralizacao") public BigDecimal getPercMinIntegralizacao() { return percMinIntegralizacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPercMinIntegralizacao(BigDecimal percMinIntegralizacao) {\n\t\tthis.percMinIntegralizacao = percMinIntegralizacao;\n\t}", "@Column(name=\"ValorLimiteIntegralMinimo\")\n\tpublic BigDecimal getValorLimiteIntegralMinimo() {\n\t\treturn valorLimiteIntegralMinimo;\n\t}", "public float getMinAlturaCM();", "double getMin() {\n\t\t\treturn value_min;\n\t\t}", "public int getMinAmount() {\n return _min;\n }", "public int getAdc_min ()\n {\n return adc_min_;\n }", "public double calcularAlvoMinima() {\r\n\t\treturn calcularFrequenciaMaxima()*0.5;\r\n\t}", "public double getMinimum() {\n return (min);\n }", "public int getMinAmount() {\n return minAmount;\n }", "public double getMinCharge() {\r\n return minCharge;\r\n }", "public int GetMinVal();", "private double getMin() {\n return min;\n }", "public double getMinimumValue() { return this.minimumValue; }", "double getMin();", "double getMin();", "Double getMinimumValue();", "public final double getMin() {\r\n\t\treturn this.m_min;\r\n\t}", "public float getNitrateMin() {\n return nitrateMin;\n }", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "public double getApproxEmin() {\n try {\n return computeE(getTmin());\n }\n catch (Exception e) {\n return 0x0.0p0;\n }\n }", "public Integer getMin() {\n\t\tif (this.Minimum==null)\n\t\t{\n\t\t\tcalcMinMax();\n\t\t}\n\t\treturn this.Minimum;\n\t}", "protected final int getMin() {\n\treturn(this.min);\n }", "public float _getMin()\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n return (getMinimum() / max);\r\n } else\r\n {\r\n return getMinimum();\r\n }\r\n }", "public abstract int getMinimumValue();", "public double getMinimumValue()\n {\n this.minimumValue = getMinNumber(allValues);\n this.maximumValue = getMaxNumber(allValues);\n return minimumValue;\n }", "public float getSilicateMin() {\n return silicateMin;\n }", "public int getMinimum() {\r\n return min;\r\n }", "public Integer getMin() { \n\t\treturn getMinElement().getValue();\n\t}", "public BigDecimal getMinQuantity() {\n return _minQuantity;\n }", "public int getxMin() {\n\t\treturn xMin;\n\t}", "public int getMin(){\n\t\treturn min;\n\t}", "public float getMinConf () {\r\n return min_conf; }", "public Integer min() {\n return this.min;\n }", "public float getMinimumFloat() {\n/* 212 */ return (float)this.min;\n/* */ }", "private double getMin() {\n return Collections.min(values.values());\n }", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "public Double getMinimumValue () {\r\n\t\treturn (minValue);\r\n\t}", "@JSProperty(\"softMin\")\n double getSoftMin();", "java.math.BigDecimal getWagerMinimum();", "org.apache.xmlbeans.XmlDecimal xgetFractionalMinimum();", "private synchronized double getVlrBonusMinuto(int idCodigoNacional)\n\t{\n\t\tHashMap bonusPulaPula = null;\n\t\t\n\t\tfor(int i = 0; i < listaBonusPulaPula.size(); i++)\n\t\t{\n\t\t\tbonusPulaPula = (HashMap)listaBonusPulaPula.get(i);\n\t\t\tif(((Integer)bonusPulaPula.get(\"ID_CODIGO_NACIONAL\")).intValue() == idCodigoNacional)\n\t\t\t{\n\t\t\t\treturn ((Double)bonusPulaPula.get(\"VLR_BONUS_MINUTO\")).doubleValue();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1;\n\t}", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public double getMinimumX () {\n return minimumX;\n }", "public final double getMinConvexCoefficient()\n {\n return minConvexCoefficient;\n }", "@Override\n public int getBasicValue() {\n return minBonus;\n }", "public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }", "private float getRsiPotential() {\r\n\t\treturn 1F - (float)(stochRsiCalculator.getCurrentValue()/50.0);\r\n\t}", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "public int getMin()\n\t{\n\t\treturn min;\n\t}", "public double getMinS() {\n return u[0];\n }", "public int getMin() {\n\t\treturn min;\n\t}", "public double getMinDoubleValue();", "public int getMinimumValue() {\n return -s.getMaximumValue();\n }", "public double min() {\n\t\tif (count() > 0) {\n\t\t\treturn _min.get();\n\t\t}\n\t\treturn 0.0;\n\t}", "org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();", "@Column(name=\"ValorLimiteIntegralMaximo\")\n\tpublic BigDecimal getValorLimiteIntegralMaximo() {\n\t\treturn valorLimiteIntegralMaximo;\n\t}", "int min() {\n return min;\r\n }", "int getMPValue();", "public double min() {\n return min(0.0);\n }", "public float getChlorophyllMin() {\n return chlorophyllMin;\n }", "public float getMinRatio();", "java.math.BigDecimal getSingleBetMinimum();", "float xMin();", "public double getMinimumDouble() {\n/* 201 */ return this.min;\n/* */ }", "public java.math.BigInteger getCantidadFaltanteAnunciado(){\n return localCantidadFaltanteAnunciado;\n }", "E minVal();", "public Double getMinimum() {\n\t\treturn minimum;\n\t}", "public float getPercentileMin() {\n return _clips.getPercentileMin();\n }", "public float getMin()\n {\n parse_text(); \n return min;\n }", "public double getPercepcion(){\n return localPercepcion;\n }", "public float getMinFloat() {\n\t\treturn this.minFloat;\n\t}", "public Quantity<Q> getMin() {\n return min;\n }", "public int getGradoMinimo() {\n\t\treturn grMin;\n\t}", "public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) {\n\t\tthis.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo;\n\t}", "public int getMinRange() {\r\n return fMinRange;\r\n }", "@NonNull\n public Integer getMinTemp() {\n return minTemp;\n }", "java.math.BigDecimal getFractionalMinimum();", "public float getminP() {\n Reading minPressureReading = null;\n float minPressure = 0;\n if (readings.size() >= 1) {\n minPressure = readings.get(0).pressure;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).pressure < minPressure) {\n minPressure = readings.get(i).pressure;\n }\n }\n } else {\n minPressure = 0;\n }\n return minPressure;\n }", "public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(pesoActual<18.75){\r\n \t\t\treturn DELGADO;\r\n \t\t}else{\r\n \t\t\treturn SOBREPESO;\r\n \t\t}\r\n \t}", "public double getMinRange() {\n return minRange;\n }", "public double min() {\n double resultat = Double.MAX_VALUE;\n double tmp = 0;\n for (int i = 0; i < tab.size(); i++) {\n tmp = CalculatorArray.min(tab.get(i));\n if (tmp < resultat) {\n resultat = tmp;\n }\n }\n\n System.out.println(\"Min colonne:\" + resultat);\n return resultat;\n }", "public int getMinimum() {\n \tcheckWidget();\n \treturn minimum;\n }", "public double obterXmin() {\n\t\treturn xmin;\n\t}", "public int minQ(inValues input) {\n float qValue = (2 * input.orderCost * input.demandsArray[0][0] * (input.invCost + input.saleLossCost) * 360 / (input.invCost * input.saleLossCost));\n qValue = Math.round(Math.sqrt(qValue));\n return (int) qValue;\n }", "public BigDecimal getXpeQtyMin() {\n return (BigDecimal) getAttributeInternal(XPEQTYMIN);\n }", "public double getMinX() {\n\treturn minX;\n }", "org.apache.xmlbeans.XmlDecimal xgetSingleBetMinimum();", "int minNoteValue();", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "public int getMinIntValue();", "public double minValue() {\n return 0;\r\n }", "public int getMinValue() {\n return minValue;\n }", "public double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}", "public byte get_min() {\n return (byte)getSIntBEElement(offsetBits_min(), 8);\n }", "@JSProperty(\"min\")\n double getMin();", "public float getClipMin() {\n return _clips.getClipMin();\n }", "public double getTotalMini() {\n return this.totalMini;\n }" ]
[ "0.71907806", "0.69314605", "0.689921", "0.6649433", "0.658716", "0.6582106", "0.6542586", "0.6425022", "0.6413284", "0.6394564", "0.6351679", "0.6340293", "0.63240266", "0.6291455", "0.6291455", "0.6284539", "0.6277678", "0.6255139", "0.62426555", "0.6237974", "0.6213829", "0.62004185", "0.61893", "0.61861676", "0.6170002", "0.6166732", "0.6153622", "0.61402804", "0.61400056", "0.61143434", "0.6109838", "0.6108316", "0.6104649", "0.6101878", "0.60932493", "0.6084689", "0.60696155", "0.6064983", "0.6064711", "0.606429", "0.6062378", "0.60609263", "0.6055963", "0.6055963", "0.6055963", "0.60458034", "0.6027582", "0.6014993", "0.60116524", "0.6001346", "0.5976183", "0.597105", "0.5960748", "0.59522605", "0.5947482", "0.5946911", "0.59304214", "0.5924579", "0.5915531", "0.591509", "0.59061086", "0.5903632", "0.58952075", "0.5893683", "0.5892758", "0.5892166", "0.5885725", "0.5885215", "0.5884001", "0.5883709", "0.5878927", "0.5876386", "0.58736867", "0.5868647", "0.5853773", "0.5850129", "0.584888", "0.5839126", "0.5832919", "0.5831916", "0.58282804", "0.58215517", "0.5819185", "0.58136046", "0.58009315", "0.5794643", "0.57870114", "0.57763714", "0.5774243", "0.5773263", "0.5773121", "0.57624316", "0.57610315", "0.5753033", "0.57385457", "0.57373947", "0.5733779", "0.57318383", "0.5731134", "0.5730685" ]
0.75255096
0
Define o valor de percMinIntegralizacao.
public void setPercMinIntegralizacao(BigDecimal percMinIntegralizacao) { this.percMinIntegralizacao = percMinIntegralizacao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Column(name=\"PercMinIntegralizacao\")\n\tpublic BigDecimal getPercMinIntegralizacao() {\n\t\treturn percMinIntegralizacao;\n\t}", "public float getMinAlturaCM();", "@Column(name=\"ValorLimiteIntegralMinimo\")\n\tpublic BigDecimal getValorLimiteIntegralMinimo() {\n\t\treturn valorLimiteIntegralMinimo;\n\t}", "public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) {\n\t\tthis.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo;\n\t}", "public void SetMinVal(int min_val);", "public int setOxygenMin(Integer oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public double calcularAlvoMinima() {\r\n\t\treturn calcularFrequenciaMaxima()*0.5;\r\n\t}", "public void setAdc_min (int min)\n {\n adc_min_ = min;\n }", "@JSProperty(\"softMin\")\n void setSoftMin(double value);", "public int setPhosphateMin(Integer phosphateMin) {\n try {\n setPhosphateMin(phosphateMin.floatValue());\n } catch (Exception e) {\n setPhosphateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMinError;\n }", "public void setMinAmount(int min) {\n _min = min;\n }", "public int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public int getAdc_min ()\n {\n return adc_min_;\n }", "public float getMinConf () {\r\n return min_conf; }", "public int GetMinVal();", "public int setOxygenMin(Float oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public int setChlorophyllMin(Integer chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "public int getMinAmount() {\n return _min;\n }", "double getMin() {\n\t\t\treturn value_min;\n\t\t}", "public int setNitrateMin(Float nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public void _setMin(float min)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMinimum((int) (min * 100));\r\n } else\r\n {\r\n setMinimum((int) min);\r\n }\r\n }", "public void setMinConf (float value) {\r\n min_conf = value; }", "float xMin();", "void setWagerMinimum(java.math.BigDecimal wagerMinimum);", "private double getMin() {\n return min;\n }", "public int setPhosphateMin(Float phosphateMin) {\n try {\n setPhosphateMin(phosphateMin.floatValue());\n } catch (Exception e) {\n setPhosphateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMinError;\n }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "@JSProperty(\"softMin\")\n double getSoftMin();", "public abstract int getMinimumValue();", "public double getMinimumValue() { return this.minimumValue; }", "public int getMinAmount() {\n return minAmount;\n }", "public int setChlorophyllMin(Float chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "@JSProperty(\"min\")\n void setMin(double value);", "public double getMinCharge() {\r\n return minCharge;\r\n }", "double getMin();", "double getMin();", "void xsetWagerMinimum(org.apache.xmlbeans.XmlDecimal wagerMinimum);", "public float getNitrateMin() {\n return nitrateMin;\n }", "Double getMinimumValue();", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public float getMinimumFloat() {\n/* 212 */ return (float)this.min;\n/* */ }", "public int setOxygenMin(String oxygenMin) {\n try {\n setOxygenMin(new Float(oxygenMin).floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public void setMinAlturaCM(float max);", "public int setSalinityMin(Integer salinityMin) {\n try {\n setSalinityMin(salinityMin.floatValue());\n } catch (Exception e) {\n setSalinityMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return salinityMinError;\n }", "@JSProperty(\"minRange\")\n void setMinRange(double value);", "public float getMinRatio();", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int getxMin() {\n\t\treturn xMin;\n\t}", "public int setNitrateMin(String nitrateMin) {\n try {\n setNitrateMin(new Float(nitrateMin).floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public double getMinimum() {\n return (min);\n }", "public int minQ(inValues input) {\n float qValue = (2 * input.orderCost * input.demandsArray[0][0] * (input.invCost + input.saleLossCost) * 360 / (input.invCost * input.saleLossCost));\n qValue = Math.round(Math.sqrt(qValue));\n return (int) qValue;\n }", "void setNilFractionalMinimum();", "public int getMin(){\n\t\treturn min;\n\t}", "public void setMin(int min) {\n this.min = min;\n }", "public void setMin(int min) {\n this.min = min;\n }", "public void setMin( float min )\n {\n this.min = min;\n show_text();\n }", "int min() {\n return min;\r\n }", "public int getGradoMinimo() {\n\t\treturn grMin;\n\t}", "E minVal();", "void setFractionalMinimum(java.math.BigDecimal fractionalMinimum);", "public int setSalinityMin(Float salinityMin) {\n try {\n setSalinityMin(salinityMin.floatValue());\n } catch (Exception e) {\n setSalinityMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return salinityMinError;\n }", "public void setMinimum(Number min) {\n this.min = min;\n }", "@Override\n public int getBasicValue() {\n return minBonus;\n }", "public float getChlorophyllMin() {\n return chlorophyllMin;\n }", "void xsetFractionalMinimum(org.apache.xmlbeans.XmlDecimal fractionalMinimum);", "public TipoOperacaoParcialUpdate valorMinimo(BigDecimal valorMinimo) {\n this.valorMinimo = valorMinimo;\n return this;\n }", "public BigDecimal getMinQuantity() {\n return _minQuantity;\n }", "public int setPhosphateMin(String phosphateMin) {\n try {\n setPhosphateMin(new Float(phosphateMin).floatValue());\n } catch (Exception e) {\n setPhosphateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMinError;\n }", "public int setChlorophyllMin(String chlorophyllMin) {\n try {\n setChlorophyllMin(new Float(chlorophyllMin).floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "public int setTemperatureMin(Integer temperatureMin) {\n try {\n setTemperatureMin(temperatureMin.floatValue());\n } catch (Exception e) {\n setTemperatureMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return temperatureMinError;\n }", "public void setMinum(int minum) {\r\n this.minum = minum;\r\n }", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "public float _getMin()\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n return (getMinimum() / max);\r\n } else\r\n {\r\n return getMinimum();\r\n }\r\n }", "public int getMinimum() {\r\n return min;\r\n }", "public int setSilicateMin(String silicateMin) {\n try {\n setSilicateMin(new Float(silicateMin).floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public M csmiStatusMin(Object min){this.put(\"csmiStatusMin\", min);return this;}", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public double getMinimumX () {\n return minimumX;\n }", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "int minNoteValue();", "public void setCantidadFaltanteAnunciado(java.math.BigInteger param){\n \n this.localCantidadFaltanteAnunciado=param;\n \n\n }", "org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();", "protected final int getMin() {\n\treturn(this.min);\n }", "public double obterXmin() {\n\t\treturn xmin;\n\t}", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public int getMin() {\n return min;\n }", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "org.apache.xmlbeans.XmlDecimal xgetFractionalMinimum();", "public void setMinCharge(double minCharge) {\r\n if (minCharge < 0 || Double.isNaN(minCharge)){\r\n throw new IllegalArgumentException();\r\n }\r\n this.minCharge = minCharge;\r\n }", "public double getApproxEmin() {\n try {\n return computeE(getTmin());\n }\n catch (Exception e) {\n return 0x0.0p0;\n }\n }", "private float getRsiPotential() {\r\n\t\treturn 1F - (float)(stochRsiCalculator.getCurrentValue()/50.0);\r\n\t}", "public float getSilicateMin() {\n return silicateMin;\n }", "private void setChlorophyllMinError (float chlorophyllMin, Exception e, int error) {\n this.chlorophyllMin = chlorophyllMin;\n chlorophyllMinErrorMessage = e.toString();\n chlorophyllMinError = error;\n }", "java.math.BigDecimal getWagerMinimum();", "public Double getMinimumValue () {\r\n\t\treturn (minValue);\r\n\t}", "public void setNumMinCotasInteg(Integer numMinCotasInteg) {\n\t\tthis.numMinCotasInteg = numMinCotasInteg;\n\t}", "public int setTemperatureMin(Float temperatureMin) {\n try {\n setTemperatureMin(temperatureMin.floatValue());\n } catch (Exception e) {\n setTemperatureMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return temperatureMinError;\n }", "public float impuestoAplicado();", "public Double getMinParallacticAngle(boolean includeSetup) {\n initCircumstances();\n return getMin(continuousPa((includeSetup ? circV : circS).get(Circumstance.PARALLACTIC_ANGLE)));\n }" ]
[ "0.7005367", "0.6497826", "0.63674057", "0.6277331", "0.6151839", "0.6109694", "0.61041117", "0.6097568", "0.607162", "0.6046203", "0.60387605", "0.60343", "0.6032915", "0.6012544", "0.59957236", "0.59864587", "0.5961147", "0.59508765", "0.59047306", "0.58947104", "0.5879666", "0.5872678", "0.5871995", "0.58582133", "0.5839581", "0.5829631", "0.58198786", "0.5816531", "0.5804169", "0.57948786", "0.57929665", "0.57823837", "0.5774643", "0.57725227", "0.5771134", "0.5771134", "0.5761844", "0.5754872", "0.57400453", "0.57332164", "0.57180446", "0.5709456", "0.5709372", "0.5701968", "0.56984085", "0.56960875", "0.5681286", "0.56780785", "0.56674767", "0.56519806", "0.5649949", "0.5649673", "0.5637524", "0.5635246", "0.5635246", "0.5614576", "0.56049645", "0.5597698", "0.55957323", "0.5582926", "0.55788904", "0.55785894", "0.5571229", "0.5569997", "0.55676985", "0.5565713", "0.55532986", "0.55424416", "0.55382156", "0.5536857", "0.55341285", "0.5528644", "0.55246973", "0.5518485", "0.55138826", "0.5509758", "0.5508183", "0.5502569", "0.5501291", "0.5495907", "0.5481196", "0.5481009", "0.5460365", "0.54563195", "0.5451191", "0.5451191", "0.5451191", "0.54484487", "0.54451936", "0.54428506", "0.54364896", "0.5433905", "0.5429347", "0.5413414", "0.5407871", "0.5393972", "0.5392589", "0.53908056", "0.537932", "0.5374775" ]
0.78880143
0
Recupera o valor de valorSalarioBase.
@Column(name="ValorSalarioBase") public BigDecimal getValorSalarioBase() { return valorSalarioBase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValorSalarioBase(BigDecimal valorSalarioBase) {\n\t\tthis.valorSalarioBase = valorSalarioBase;\n\t}", "public float getSalario() {\r\n return salario;\r\n }", "public double getSalario() {\n\t\treturn salario;\n\t}", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "@Override\r\n\tpublic void salarioNovo(double salario) {\n\t\tthis.valor=salario;\r\n\r\n\t\t\r\n\t}", "public void setSueldoBase(int salarioBase) throws Throwable {\n\n\t\tint ayuda;\n\t\t\n\t\tif (salarioBase <= 300) {\n\t\t\t\n\t\t\tayuda = JOptionPane.showOptionDialog(null, \"Ayuda governal\", \"Tiene ayuda governal?\",\n\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[] { \"No\", \"Sí\" },\n\t\t\t\t\t\"Sí\");\n\t\t\t\n\t\t\tthis.sueldoBase = ayuda > 0 ? salarioBase : 0;\t\t\t\t\n\t\t} \n\t\telse {\n\t\t\tthrow new Exception();\n\n\t\t}\n\t}", "public double getSalario() {\r\n\t\treturn super.getSalario()-10000;\r\n\t}", "public double getSubidaSalarial() {\n\t\tdouble sueldoActual = super.getRetribucion();\n\t\tif(super.getAntigüedad() >= 5) {\n\t\t\treturn (sueldoActual*2/100);\n\t\t}\n\t\telse {\n\t\t\treturn (sueldoActual * 0.015);\n\t\t}\n\t}", "double getSalario();", "public static double verificaValorQuarto(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n case 3:\n return valor + 570;\n case 4:\n return valor + 620;\n case 5:\n return valor + 360;\n case 6:\n return valor + 385;\n case 7:\n return valor + 440;\n default:\n break;\n }\n return valor;\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "Object getValor();", "public int getSueldoBase() {\n return sueldoBase;\n }", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}", "@Override\n\tpublic double calcularSalario() {\n\n\t\tdouble salario = 0;\n\n\t\tdouble porcentajeAnios = calcularPorcentajePorAntiguedad();\n\t\tporcentajeAnios = this.sueldoBasico* (porcentajeAnios / 100);\n\t\tsalario = this.sueldoBasico + porcentajeAnios;\n\t\treturn salario;\n\t}", "void setSalario(double salario);", "public static double verificaValorCarro(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n default:\n break;\n\n }\n return valor;\n }", "public java.lang.String getValor();", "public final T getValor() {\r\n return valor;\r\n }", "public String getBaseDatos() {\n return baseDatos;\n }", "private void sumarTropa(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.BARBARO:\n cantActual = Integer.parseInt(jTextFieldBarbaro.getText());\n jTextFieldBarbaro.setText(String.valueOf(cantActual+1));\n break;\n case vg.ARQUERA:\n cantActual = Integer.parseInt(jTextFieldArquera.getText());\n jTextFieldArquera.setText(String.valueOf(cantActual+1));\n break;\n case vg.GIGANTE:\n cantActual = Integer.parseInt(jTextFieldGigante.getText());\n jTextFieldGigante.setText(String.valueOf(cantActual+1));\n break;\n case vg.DUENDE:\n cantActual = Integer.parseInt(jTextFieldDuende.getText());\n jTextFieldDuende.setText(String.valueOf(cantActual+1));\n break;\n }\n }", "public String getValor() {\n return valor;\n }", "@Override\r\n\tpublic void salarioAtual() {\n\t\tSystem.out.print(\"VALOR ATUAL\"+this.valor);\r\n\t\t\r\n\t}", "@Override\n\tpublic double totalSalario() {\n\t\treturn this.precio;\n\t}", "public String balar() {\r\n return this.SONIDO;\r\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "public Double getValor() {\n return valor;\n }", "public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }", "public abstract java.lang.String getAcma_valor();", "public int getValor() {\n return Valor;\n }", "public java.lang.Double getValorCadastro() {\n return valorCadastro;\n }", "public int getValor() {\r\n return valor;\r\n }", "public int getValor() {\n return valor;\n }", "public Volunteer(int salarioBase) {\n\n\t\tsuper();\n\t\tthis.setCoeficiente(this.COEFICIENTE);\n\n\t\ttry {\n\t\t\tthis.setSueldoBase(salarioBase);\n\t\t} \n\t\tcatch (Throwable e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Volunteer no puede tener salario\");\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void xsetSalario(org.apache.xmlbeans.XmlDouble salario);", "@Digits(integer=5,fraction=2)\n\t@Override\n\tpublic BigDecimal getSal() {\n\t\treturn super.getSal();\n\t}", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "public abstract void instalar(SistemaOperativo SO);", "public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public V valor() {\n return value;\n }", "public double getValorComercial() {\r\n return valorComercial;\r\n }", "public Number getIdbultoOri()\n {\n return (Number)getAttributeInternal(IDBULTOORI);\n }", "private String getAlertaPorValor(Evento ultimoEvento)\n\t{\n\t\t// O alerta padrao sera o status OK, dependendo do valor do atraso esse alerta pode ser modificado\n\t\tString alerta = Alarme.ALARME_OK;\n\n\t\t// Verifica se o contador classifica como alerta\n\t\tdouble valor = ultimoEvento.getValorContador();\n\t\t// Verifica se o contador classifica como alerta pelo valor minimo ou maximo\n\t\tif ( valor > alarme.getValorMinFalha() && valor < alarme.getValorMinAlerta() )\n\t\t{\n\t\t\talerta = Alarme.ALARME_ALERTA;\n\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MIN);\n\t\t}\n\t\telse if ( valor > alarme.getValorMaxAlerta() && valor < alarme.getValorMaxFalha() )\n\t\t\t{\n\t\t\t\talerta = Alarme.ALARME_ALERTA;\n\t\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MAX);\n\t\t\t}\n\n\t\t// Verifica se o contador classifica como falha. Devido a hierarquia de erro\n\t\t// o teste para falha e feito posterior pois logicamente tem uma gravidade superior\n\t\tif ( valor < alarme.getValorMinFalha() )\n\t\t{\n\t\t\talerta = Alarme.ALARME_FALHA;\n\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MIN);\n\t\t}\n\t\telse if ( valor > alarme.getValorMaxFalha() )\n\t\t\t{\n\t\t\t\talerta = Alarme.ALARME_FALHA;\n\t\t\t\talarme.setMotivoAlarme(Alarme.MOTIVO_VALOR_MAX);\n\t\t\t}\n\n\t\tlogger.debug(alarme.getIdAlarme()+\" - Contador:\"+valor);\n\t\treturn alerta;\n\t}", "public java.lang.Integer getValor_servicio() {\n return valor_servicio;\n }", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public ch.ivyteam.ivy.rule.engine.api.IRuleBase getSalaryRuleBase()\n {\n return salaryRuleBase;\n }", "public Object getBaseValue() {\r\n return Long.valueOf(0);\r\n }", "public double getRisultato() {\r\n return risultato;\r\n }", "public double insalubridadeDez(double salario) {\n\t\tsalario = salario * 0.1;\r\n\t\t// atribui o valor de 10% ao salario e somando eles.\r\n\t\t// salarioTotal += salario;\r\n\t\treturn salario; // so atribuir esse valor ao salario\r\n\t}", "private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}", "private void sumarEdificio(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.CHOZA:\n cantActual = Integer.parseInt(jTextFieldChoza.getText());\n jTextFieldChoza.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAMPAMENTO:\n cantActual = Integer.parseInt(jTextFieldCampamento.getText());\n jTextFieldCampamento.setText(String.valueOf(cantActual+1));\n break;\n case vg.CUARTEL:\n cantActual = Integer.parseInt(jTextFieldCuartel.getText());\n jTextFieldCuartel.setText(String.valueOf(cantActual+1));\n break;\n case vg.MINA:\n cantActual = Integer.parseInt(jTextFieldMina.getText());\n jTextFieldMina.setText(String.valueOf(cantActual+1));\n break;\n case vg.RECOLECTOR:\n cantActual = Integer.parseInt(jTextFieldRecolector.getText());\n jTextFieldRecolector.setText(String.valueOf(cantActual+1));\n break;\n case vg.TORRE:\n cantActual = Integer.parseInt(jTextFieldTorre.getText());\n jTextFieldTorre.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAÑON:\n cantActual = Integer.parseInt(jTextFieldCañon.getText());\n jTextFieldCañon.setText(String.valueOf(cantActual+1));\n break;\n case vg.MORTERO:\n cantActual = Integer.parseInt(jTextFieldMortero.getText());\n jTextFieldMortero.setText(String.valueOf(cantActual+1));\n break;\n default:\n break;\n }\n }", "public double dblSueldoLider(){\n dblSueldoLider = super.getDblSalario() + ((super.getDblSalario() * 0.10) * intNum);\n return dblSueldoLider;\n }", "@Override\n public int getSalida() {\n return 0;\n }", "public HTMLInputElement getElementValor() { return this.$element_Valor; }", "public java.lang.Double getValorComissao() {\n return valorComissao;\n }", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "@Override\n\tpublic String getSaludo() {\n\t\tString saludo = equipoService.saludoEquipo();\n\t\treturn saludo;\n\t}", "public Valor(Integer id_valor, String valor){\n\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_valor = id_valor ;\n this.valor = valor ;\n }", "public Object getAsObject(FacesContext facesContext, UIComponent component, String valor) {\n\t\ttry {\r\n\t\t\tLong codigo = Long.parseLong(valor);\r\n\t\t\tEnsinoDao ensinoDao = new EnsinoDao();\r\n\t\t\tEnsino ensino = ensinoDao.buscarPorCodigo(codigo);\r\n\r\n\t\t\treturn ensino;\r\n\t\t\t\r\n\t\t}catch(RuntimeException er) {\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "org.apache.xmlbeans.XmlDouble xgetSalario();", "@Override\n public int getPeso(){\n return(super.getPeso());\n }", "public int getSaldo() {\r\n return this.contaCorrente.getSaldo();\r\n }", "public final String toString() {\r\n return valor.toString();\r\n }", "public double getValorInvalido() {\n\t\treturn valorInvalido;\n\t}", "public java.lang.Double getValorCalculadoIof() {\n return valorCalculadoIof;\n }", "public ArrayList<Integer> getValue() {\n return this.diccionario.valor;\n }", "public static ValorCelda getValorFromEdicion( String texto, TablaDatos tabla ) {\n\t\tNumero ret = new Numero( 0.0 );\n\t\tboolean ok = ret.actualizaTexto( texto );\n\t\tif (!ok) ret = null; \n\t\treturn ret;\n\t}", "Integer getBusinessValue();", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public DocumentoBase getDocumentoBase()\r\n/* 130: */ {\r\n/* 131:154 */ return this.documentoBase;\r\n/* 132: */ }", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Object getValue();", "public abstract Value getValue();", "public ValoreA getValore() {\r\n\t\treturn valore;\r\n\t}", "public java.lang.Double getValorFinanciado() {\n return valorFinanciado;\n }", "public String getTipo(){\r\n return tipo;\r\n }", "public double periculosidade(double salario) {\n\t\t\tsalario = salario * 0.3;\r\n\t\t\t// atribui o valor de 30% ao salario e somando eles.\r\n\t\t\t// salarioTotal = salario + salarioTotal;\r\n\r\n\t\t\treturn salario; // So atribuir esse valor no salario\r\n\t\t\r\n\t}", "Double somaValoresPorTransactionType(TransactionType transactionType, Integer mes);", "public Object findBySalarie(Salarie salarie) {\n Query query = em.createQuery(\"from IntentionCriminelle ic where ic.salarie = :salarie\");\n query.setParameter(\"salarie\", salarie);\n List<IntentionCriminelle> intentionCriminelle = query.getResultList();\n return getSingle(intentionCriminelle);\n }", "@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}", "public Valore getValore() {\n\t\treturn valore;\n\t}", "public String getTipo(){\n return tipo;\n }", "public double estado() {\r\n return getSaldo();\r\n }", "public abstract String getValue();", "public abstract String getValue();", "public abstract String getValue();", "private EnumEstadoLeyMercado(String codigoValor, Integer codigoTipo) {\n\t\tthis.codigoValor = codigoValor;\n\t\tthis.codigoTipo = codigoTipo;\n\t}", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "public String getTipo(){\r\n return Tipo;\r\n }", "public Object getRawValue();", "public String actualizarValorRetencionIVAListener()\r\n/* 571: */ {\r\n/* 572:605 */ DetalleFacturaProveedorSRI detalleFacturaProveedorSRI = (DetalleFacturaProveedorSRI)this.dtDetalleIVAFacturaProveedorSRI.getRowData();\r\n/* 573:606 */ this.servicioFacturaProveedorSRI.actualizarValorRetencion(detalleFacturaProveedorSRI);\r\n/* 574:607 */ return \"\";\r\n/* 575: */ }", "public abstract void sacar( Double valor);", "public int getTipo() {\r\n return tipo;\r\n }", "public String getCodigoValor() {\n\t\treturn codigoValor;\n\t}", "public int getValoracionDelCurso() {\n return valoracionDelCurso;\n }", "public double getSaldoBank() {\n return this.saldoBank;\n }", "@Override\r\n public Integer getValue() {\n return (Integer) this.spinner.getValue();\r\n }" ]
[ "0.71105945", "0.6332043", "0.6216714", "0.61199486", "0.6073482", "0.58142173", "0.58099246", "0.57957923", "0.574864", "0.57190263", "0.5701908", "0.56982905", "0.5658565", "0.5635927", "0.56227267", "0.55459243", "0.5519816", "0.5382581", "0.53788567", "0.5352085", "0.53304106", "0.532202", "0.53039336", "0.5276723", "0.5223051", "0.52156407", "0.5193826", "0.516023", "0.51527715", "0.5147911", "0.51441675", "0.51311255", "0.51198906", "0.5119546", "0.5108966", "0.5090773", "0.50675845", "0.5059761", "0.5043048", "0.5032133", "0.50250566", "0.50214595", "0.5009685", "0.50096774", "0.50037724", "0.500057", "0.49989867", "0.4991554", "0.49835894", "0.49774754", "0.49728924", "0.49686617", "0.49633867", "0.49505982", "0.4947865", "0.49163374", "0.49158528", "0.4909536", "0.4904027", "0.4893147", "0.4881757", "0.48748657", "0.4862613", "0.4862601", "0.4862262", "0.4855063", "0.4853687", "0.48475412", "0.48464704", "0.48363194", "0.48319316", "0.48276025", "0.48266584", "0.48266584", "0.48266584", "0.48254853", "0.48251483", "0.4824483", "0.48213097", "0.48208675", "0.48205265", "0.4819515", "0.4816478", "0.4808307", "0.4804898", "0.48037642", "0.48036605", "0.48036605", "0.48036605", "0.4803547", "0.48021007", "0.47978482", "0.4794057", "0.47826463", "0.47668093", "0.47662517", "0.47630835", "0.47596952", "0.47553685", "0.4755271" ]
0.74751496
0
Define o valor de valorSalarioBase.
public void setValorSalarioBase(BigDecimal valorSalarioBase) { this.valorSalarioBase = valorSalarioBase; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Column(name=\"ValorSalarioBase\")\n\tpublic BigDecimal getValorSalarioBase() {\n\t\treturn valorSalarioBase;\n\t}", "public void setSueldoBase(int salarioBase) throws Throwable {\n\n\t\tint ayuda;\n\t\t\n\t\tif (salarioBase <= 300) {\n\t\t\t\n\t\t\tayuda = JOptionPane.showOptionDialog(null, \"Ayuda governal\", \"Tiene ayuda governal?\",\n\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new Object[] { \"No\", \"Sí\" },\n\t\t\t\t\t\"Sí\");\n\t\t\t\n\t\t\tthis.sueldoBase = ayuda > 0 ? salarioBase : 0;\t\t\t\t\n\t\t} \n\t\telse {\n\t\t\tthrow new Exception();\n\n\t\t}\n\t}", "@Override\r\n\tpublic void salarioNovo(double salario) {\n\t\tthis.valor=salario;\r\n\r\n\t\t\r\n\t}", "void setSalario(double salario);", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public Volunteer(int salarioBase) {\n\n\t\tsuper();\n\t\tthis.setCoeficiente(this.COEFICIENTE);\n\n\t\ttry {\n\t\t\tthis.setSueldoBase(salarioBase);\n\t\t} \n\t\tcatch (Throwable e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Volunteer no puede tener salario\");\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public float getSalario() {\r\n return salario;\r\n }", "public int getSueldoBase() {\n return sueldoBase;\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "@Override\r\n\tpublic void salarioAtual() {\n\t\tSystem.out.print(\"VALOR ATUAL\"+this.valor);\r\n\t\t\r\n\t}", "void xsetSalario(org.apache.xmlbeans.XmlDouble salario);", "public double getSalario() {\n\t\treturn salario;\n\t}", "public double getSubidaSalarial() {\n\t\tdouble sueldoActual = super.getRetribucion();\n\t\tif(super.getAntigüedad() >= 5) {\n\t\t\treturn (sueldoActual*2/100);\n\t\t}\n\t\telse {\n\t\t\treturn (sueldoActual * 0.015);\n\t\t}\n\t}", "public abstract void instalar(SistemaOperativo SO);", "@Override\n\tpublic double calcularSalario() {\n\n\t\tdouble salario = 0;\n\n\t\tdouble porcentajeAnios = calcularPorcentajePorAntiguedad();\n\t\tporcentajeAnios = this.sueldoBasico* (porcentajeAnios / 100);\n\t\tsalario = this.sueldoBasico + porcentajeAnios;\n\t\treturn salario;\n\t}", "public void calcularSalario(){\n // 1% do lucro mensal\n double percentagemLucro = 0.01 * lucroMensal;\n // valor fixo igual ao dobro do dos empregados sem especialização, acrescido\n //de um prémio que corresponde a 1% do lucro mensal nas lojas da região.\n setSalario(1600 + percentagemLucro);\n\n }", "private void setSALIR(int opcionSalida){\n\t\tthis.opcionSalida = opcionSalida;\n\t}", "public double getSalario() {\r\n\t\treturn super.getSalario()-10000;\r\n\t}", "private void sumarTropa(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.BARBARO:\n cantActual = Integer.parseInt(jTextFieldBarbaro.getText());\n jTextFieldBarbaro.setText(String.valueOf(cantActual+1));\n break;\n case vg.ARQUERA:\n cantActual = Integer.parseInt(jTextFieldArquera.getText());\n jTextFieldArquera.setText(String.valueOf(cantActual+1));\n break;\n case vg.GIGANTE:\n cantActual = Integer.parseInt(jTextFieldGigante.getText());\n jTextFieldGigante.setText(String.valueOf(cantActual+1));\n break;\n case vg.DUENDE:\n cantActual = Integer.parseInt(jTextFieldDuende.getText());\n jTextFieldDuende.setText(String.valueOf(cantActual+1));\n break;\n }\n }", "public Valor(Integer id_valor, String valor){\n\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_valor = id_valor ;\n this.valor = valor ;\n }", "public static double verificaValorQuarto(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n case 3:\n return valor + 570;\n case 4:\n return valor + 620;\n case 5:\n return valor + 360;\n case 6:\n return valor + 385;\n case 7:\n return valor + 440;\n default:\n break;\n }\n return valor;\n }", "public Supervisor(double salario) {\r\n super(salario);\r\n }", "@objid (\"f604cc17-9920-4a0a-a7d0-2659ddf966f4\")\n void setOBase(Operation value);", "double getSalario();", "public static double verificaValorCarro(int tipo) {\n double valor = 0;\n switch (tipo) {\n case 1:\n return valor + 1200;\n case 2:\n return valor + 520;\n default:\n break;\n\n }\n return valor;\n }", "private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}", "public void setDocumentoBase(DocumentoBase documentoBase)\r\n/* 135: */ {\r\n/* 136:158 */ this.documentoBase = documentoBase;\r\n/* 137: */ }", "private void setWheelBaseSliderSettings() {\n wheelBaseSlider.setValueFactory(new Callback<JFXSlider, StringBinding>() {\n @Override\n public StringBinding call(JFXSlider arg0) {\n return Bindings.createStringBinding(new java.util.concurrent.Callable<String>(){\n @Override\n public String call() {\n DecimalFormat df = new DecimalFormat(\"#.0\");\n return df.format(wheelBaseSlider.getValue());\n }\n }, wheelBaseSlider.valueProperty());\n }\n });\n }", "public Comida(String nombre, double valor){\n super(nombre, valor);\n this.calorias = 10;\n }", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "private void setValoresDefault()\n\t{\n\t\t// seta valores default dos campos\n\t\tlmResumo.clear();\n\n\t\tlmResumo.addElement(\"10000000\");\n\t\tlmResumo.addElement(\"20000000\");\n\t\tlmResumo.addElement(\"30000000\");\n\t\tlmResumo.addElement(\"40000000\");\n\t\tlmResumo.addElement(\"50000000\");\n\n\t\tjTFQTdRegistroBD.setText(null);\n\n\t\tjCBSmall.setSelected(true);\n\t\tjCBLarge.setSelected(true);\n\t\tjCBExtra.setSelected(true);\n\n\t\tjTFSlaps.setText(\"5\");\n\n\t\tatualizarGraficos(new TreeMap<Long, List<ResultadoVO>>());\n\n\t}", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tISHORARIO_IDISHORARIO=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tISAULA_IDISAULA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tISCURSO_IDISCURSO=valor;\n\t\t}\n\t\t\n\t}", "public String getBaseDatos() {\n return baseDatos;\n }", "public ValorVariavel() {\r\n }", "protected void incrementarSalario(){\n this.setSalario(getSalario() * 1.5);\n\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_HAS_ISHORARIO_IDISHORARIO))\n\t\t{\n\t\t\tc=ISHORARIO_IDISHORARIO;\n\t\t}\n\t\telse if (campo.equals(Constantes.ID_HAS_ISAULA_IDISAULA))\n\t\t{\n\t\t\tc=ISAULA_IDISAULA;\n\t\t}\n\t\telse if (campo.equals(Constantes.ISHORARIO_HAS_ISAULA_ISCURSO_IDISCURSO))\n\t\t{\n\t\t\tc=ISCURSO_IDISCURSO;\n\t\t}\n\t\t\n\t\treturn c;\n\t}", "private EnumEstadoLeyMercado(String codigoValor, Integer codigoTipo) {\n\t\tthis.codigoValor = codigoValor;\n\t\tthis.codigoTipo = codigoTipo;\n\t}", "public void setTipoAnexoSRI(String tipoAnexoSRI)\r\n/* 618: */ {\r\n/* 619:687 */ this.tipoAnexoSRI = tipoAnexoSRI;\r\n/* 620: */ }", "private void sumarEdificio(int tipo){\n int cantActual;\n //Buscar tipo\n switch(tipo){\n case vg.CHOZA:\n cantActual = Integer.parseInt(jTextFieldChoza.getText());\n jTextFieldChoza.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAMPAMENTO:\n cantActual = Integer.parseInt(jTextFieldCampamento.getText());\n jTextFieldCampamento.setText(String.valueOf(cantActual+1));\n break;\n case vg.CUARTEL:\n cantActual = Integer.parseInt(jTextFieldCuartel.getText());\n jTextFieldCuartel.setText(String.valueOf(cantActual+1));\n break;\n case vg.MINA:\n cantActual = Integer.parseInt(jTextFieldMina.getText());\n jTextFieldMina.setText(String.valueOf(cantActual+1));\n break;\n case vg.RECOLECTOR:\n cantActual = Integer.parseInt(jTextFieldRecolector.getText());\n jTextFieldRecolector.setText(String.valueOf(cantActual+1));\n break;\n case vg.TORRE:\n cantActual = Integer.parseInt(jTextFieldTorre.getText());\n jTextFieldTorre.setText(String.valueOf(cantActual+1));\n break;\n case vg.CAÑON:\n cantActual = Integer.parseInt(jTextFieldCañon.getText());\n jTextFieldCañon.setText(String.valueOf(cantActual+1));\n break;\n case vg.MORTERO:\n cantActual = Integer.parseInt(jTextFieldMortero.getText());\n jTextFieldMortero.setText(String.valueOf(cantActual+1));\n break;\n default:\n break;\n }\n }", "public BaseDatos() {\r\n super();\r\n listaNumeros.add(6.0f);\r\n }", "@objid (\"332a71dc-5b01-4699-b13d-7978d6dfd6de\")\n void setBase(GeneralClass value);", "public void setTipo(String x){\r\n tipo = x;\r\n }", "public double insalubridadeDez(double salario) {\n\t\tsalario = salario * 0.1;\r\n\t\t// atribui o valor de 10% ao salario e somando eles.\r\n\t\t// salarioTotal += salario;\r\n\t\treturn salario; // so atribuir esse valor ao salario\r\n\t}", "public abstract void sacar( Double valor);", "@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }", "public void setValor_servicio(java.lang.Integer valor_servicio) {\n this.valor_servicio = valor_servicio;\n }", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public void setStd_Base (String Std_Base);", "public void cambiaValor(String campo, String valor) {\n\t\t// TODO Auto-generated method stub\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tIDISFICHA=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tNOTAS=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tANOTACIONES=valor;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tNOTAS_EJERCICIOS=valor;\n\t\t}\n\t}", "public void setLBR_TaxBaseOwnOperation (BigDecimal LBR_TaxBaseOwnOperation);", "public void setLBR_TaxBase (BigDecimal LBR_TaxBase);", "public void setValorCalculadoIof(java.lang.Double valorCalculadoIof) {\n this.valorCalculadoIof = valorCalculadoIof;\n }", "public void setValoracionDelCurso(int value) {\n this.valoracionDelCurso = value;\n }", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "Object getValor();", "public void setSalaryRuleBase(ch.ivyteam.ivy.rule.engine.api.IRuleBase _salaryRuleBase)\n {\n salaryRuleBase = _salaryRuleBase;\n }", "public double periculosidade(double salario) {\n\t\t\tsalario = salario * 0.3;\r\n\t\t\t// atribui o valor de 30% ao salario e somando eles.\r\n\t\t\t// salarioTotal = salario + salarioTotal;\r\n\r\n\t\t\treturn salario; // So atribuir esse valor no salario\r\n\t\t\r\n\t}", "public void setLBR_ICMSST_TaxBaseType (String LBR_ICMSST_TaxBaseType);", "public void setValor(int Valor) {\n this.Valor = Valor;\n }", "public void setLBR_ICMSST_TaxBase (BigDecimal LBR_ICMSST_TaxBase);", "public interface EntidadBase extends EntidadOrdenada {\n enum tipo {\n seccion, informacion\n }\n\n SeccionBase getSeccionBase();\n\n void setSeccionBase(SeccionBase seccionBase);\n\n tipo getTipoEntidad();\n}", "public void setValor(int valor) {\n this.valor = valor;\n }", "public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }", "public void setValorIof(java.lang.Double valorIof) {\n this.valorIof = valorIof;\n }", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}", "public DynamicValue(int baseValue) {\n\t\tthis.baseValue = baseValue;\n\t\tthis.currentValue = baseValue;\n\t}", "SiacDSistemaEsternoEnum(String codice, SistemaEsterno sistemaEsterno){\n\t\tthis.codice = codice;\n\t\tthis.sistemaEsterno = sistemaEsterno;\n\t}", "public void setLBR_ICMS_TaxBaseType (String LBR_ICMS_TaxBaseType);", "public void setValor(Double valor) {\n this.valor = valor;\n }", "public void setTableBase(Double tableBase) {\r\n this.tableBase = tableBase;\r\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void setPrecioBase(double precioBase) {\r\n this.precioBase = precioBase;\r\n }", "@Override\n public int getSalida() {\n return 0;\n }", "@Override\n\tpublic double totalSalario() {\n\t\treturn this.precio;\n\t}", "public String getValor() {\n return valor;\n }", "public void setTipo(int value) {\n this.tipo = value;\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setBasicSalaryRuleBase(ch.ivyteam.ivy.rule.engine.api.IRuleBase _basicSalaryRuleBase)\n {\n basicSalaryRuleBase = _basicSalaryRuleBase;\n }", "public void setBase(boolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public Sistema() {\n initComponents();\n //Codigo de Configuracion\n _radio = new ArrayList();\n _radio.add(RadioButtonDollar);\n _radio.add(RadioButtonSol);\n _radio.add(RadioButtonPeso);\n \n }", "public void iniciarValores(){\r\n //Numero de campos da linha, do arquivo de saida filtrado\r\n this.NUM_CAMPOS = 106;\r\n this.ID = 0; //numero da ficha\r\n this.NUM_ARQUIVOS = 2070;\r\n\r\n this.MIN_INDICE = 1; //indice do cadastro inicial\r\n this.MAX_INDICE = 90; //indice do cadastro final\r\n this.NUM_INDICES = 90; //quantidade de cadastros lidos em cada arquivo\r\n }", "public DialogoStatistiche() {\n /* rimanda al costruttore della superclasse */\n super();\n\n try { // prova ad eseguire il codice\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public ValorPorUnidadLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess = new ValorPorUnidadDataAccess();\r\n\t\t\t\r\n\t\t\tthis.valorporunidads= new ArrayList<ValorPorUnidad>();\r\n\t\t\tthis.valorporunidad= new ValorPorUnidad();\r\n\t\t\t\r\n\t\t\tthis.valorporunidadObject=new Object();\r\n\t\t\tthis.valorporunidadsObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.valorporunidadDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "public void setTipoInmueble(Valor tipoInmueble) {\n this.tipoInmueble = tipoInmueble;\n }", "public java.lang.Integer getValor_servicio() {\n return valor_servicio;\n }", "public void setInsertarSaldo() {\r\n\t\tSystem.out.println(\"Insertar saldo:\");\r\n\t\tScanner scanner = new Scanner (System.in);\r\n\t\tsaldo = scanner.nextDouble();\r\n\t}", "public Valvula(){}", "public PanelValorar(EventListener controlador) {\n initComponents();\n this.fijarControlador(controlador);\n }", "public abstract java.lang.String getAcma_valor();", "public ch.ivyteam.ivy.rule.engine.api.IRuleBase getSalaryRuleBase()\n {\n return salaryRuleBase;\n }", "public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tISHORARIO_IDISHORARIO=\"\";\n\t\tISAULA_IDISAULA=\"\";\n\t\tISCURSO_IDISCURSO=\"\";\n\t\t\n\t}", "public void setValor(java.lang.String valor);", "public java.lang.String getValor();", "public int getValor() {\r\n return valor;\r\n }", "public int getValor() {\n return valor;\n }", "public void setBASE_UOM(java.lang.String BASE_UOM) {\r\n this.BASE_UOM = BASE_UOM;\r\n }", "public DuploQuantidadeFaturacao(){\r\n faturacao = 0;\r\n quantidade = 0;\r\n }", "@Override\n public int getPeso(){\n return(super.getPeso());\n }" ]
[ "0.7148937", "0.6826877", "0.64280856", "0.6406176", "0.59979355", "0.5796977", "0.57719743", "0.57431024", "0.57217294", "0.56725866", "0.561486", "0.5549076", "0.55014324", "0.54777724", "0.53884", "0.5373862", "0.5370746", "0.5359523", "0.53337085", "0.52669567", "0.52530587", "0.5238021", "0.5217671", "0.51761305", "0.5159116", "0.5151023", "0.51443905", "0.51415265", "0.5141379", "0.5130736", "0.512337", "0.511945", "0.5066604", "0.5058465", "0.50513244", "0.5039588", "0.5006776", "0.50025344", "0.4996677", "0.49935734", "0.49525598", "0.49506566", "0.4932305", "0.49250144", "0.4913599", "0.49088636", "0.4907861", "0.49075383", "0.48909584", "0.488932", "0.48716477", "0.4861176", "0.4859851", "0.48572493", "0.48519388", "0.4849078", "0.48408124", "0.48406366", "0.48330343", "0.48240978", "0.48182532", "0.4814723", "0.4814205", "0.48082137", "0.48033547", "0.4794323", "0.4793774", "0.47923166", "0.4789593", "0.4777675", "0.47741914", "0.47724295", "0.47668377", "0.47605613", "0.4757944", "0.47471884", "0.4746156", "0.47414353", "0.47386384", "0.4736819", "0.4724698", "0.47198185", "0.47181666", "0.47169888", "0.47097692", "0.47038808", "0.47029057", "0.46957412", "0.46879882", "0.46852422", "0.4667906", "0.4664665", "0.46567848", "0.46521005", "0.46499008", "0.4640218", "0.46381488", "0.46357447", "0.46327284", "0.4631" ]
0.75295424
0
Recupera o valor de bolLimIntegralCapConsignado.
@Column(name="BolLimIntegralCapConsignado") public Boolean getBolLimIntegralCapConsignado() { return bolLimIntegralCapConsignado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBolLimIntegralCapConsignado(Boolean bolLimIntegralCapConsignado) {\n\t\tthis.bolLimIntegralCapConsignado = bolLimIntegralCapConsignado;\n\t}", "@Column(name=\"ValorLimiteIntegralMinimo\")\n\tpublic BigDecimal getValorLimiteIntegralMinimo() {\n\t\treturn valorLimiteIntegralMinimo;\n\t}", "public static int getBinCap() //Obtains Bin Capacity\r\n {\r\n int binCap = -1;\r\n\r\n try {\r\n binCap = Integer.parseInt((JOptionPane.showInputDialog(\"Please enter (POSITIVE) INTEGER for BIN CAPACITY: \")));\r\n if (binCap <= 0) {\r\n throw new NumberFormatException();\r\n }\r\n } catch (Exception NumberFormatException) {\r\n JOptionPane.showMessageDialog(null, \"ERROR!!!\\n\" + \"-BIN CAPACITY MUST BE A (POSITIVE) INTEGER-\\n\" + \"Please try again!\", null, JOptionPane.ERROR_MESSAGE);\r\n binCap = getBinCap();\r\n //recursion\r\n }\r\n return binCap;\r\n }", "int getCap();", "int calculateCap();", "public BigDecimal getBSCA_ProfitPriceLimitEntered();", "public BigDecimal getLBR_DIFAL_RateICMSInterPart();", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public YangUInt8 getGUVectorLimitValue() throws JNCException {\n YangUInt8 gUVectorLimit = (YangUInt8)getValue(\"g-u-vector-limit\");\n if (gUVectorLimit == null) {\n gUVectorLimit = new YangUInt8(\"1\"); // default\n }\n return gUVectorLimit;\n }", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "@Column(name=\"ValorLimiteIntegralMaximo\")\n\tpublic BigDecimal getValorLimiteIntegralMaximo() {\n\t\treturn valorLimiteIntegralMaximo;\n\t}", "public String getCap() {\n return cap;\n }", "public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) {\n\t\tthis.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo;\n\t}", "public BigDecimal getBSCA_ProfitPriceLimit();", "public LimiteDisponibilidadeResponse limiteConsignado(BigDecimal limiteConsignado) {\n this.limiteConsignado = limiteConsignado;\n return this;\n }", "public void setValorLimiteIntegralMaximo(BigDecimal valorLimiteIntegralMaximo) {\n\t\tthis.valorLimiteIntegralMaximo = valorLimiteIntegralMaximo;\n\t}", "public java.math.BigDecimal getLen_cable() throws java.rmi.RemoteException;", "public YangUInt8 getAirVectorLimitValue() throws JNCException {\n YangUInt8 airVectorLimit = (YangUInt8)getValue(\"air-vector-limit\");\n if (airVectorLimit == null) {\n airVectorLimit = new YangUInt8(\"1\"); // default\n }\n return airVectorLimit;\n }", "public Integer getCapacidad() {\n return capacidad;\n }", "public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(pesoActual<18.75){\r\n \t\t\treturn DELGADO;\r\n \t\t}else{\r\n \t\t\treturn SOBREPESO;\r\n \t\t}\r\n \t}", "public BigDecimal getRepairLim() {\n\t\treturn repairLim;\n\t}", "MultipleCurrencyAmount presentValue(CapFloorIbor cap, SABRCapProviderInterface sabr);", "public double getCapHeight() {\n return capHeight;\n }", "public Float getBhIhosucr() {\r\n return bhIhosucr;\r\n }", "public BigDecimal getConcentracionmolecula() {\n return concentracionmolecula;\n }", "public BigDecimal getIstrue() {\n return istrue;\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public String getCapStatus() {\n return capStatus;\n }", "public float getMinAlturaCM();", "public double getCapacidadeCarga() {\n return capacidadeCarga;\n }", "BigDecimal getOriginalQuantity();", "public double getCreditLimit(){\n return creditLine;\n }", "public BigDecimal getACC_BR() {\r\n return ACC_BR;\r\n }", "public BigDecimal getsBlkr() {\n return sBlkr;\n }", "public Integer getGiveIntegral() {\n return giveIntegral;\n }", "BigDecimal getQuantity();", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "public double getCreditLimit() \r\n\t{\r\n\t\t\r\n\t\treturn creditLimit;\r\n\t\t\r\n\t}", "public Integer getHoldscale() {\r\n return holdscale;\r\n }", "@Override\n public double getCONSUMPTION() {\n if (status && brightValue != 0) {\n this.consumption = (super.DEFAULTCONSUMPTION + 2) + (brightValue / 100);\n } else if (status) {\n this.consumption = super.DEFAULTCONSUMPTION + 2;\n } else if (status != true) {\n this.consumption = super.DEFAULTCONSUMPTION;\n }\n\n return consumption;\n }", "public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }", "public String getCapCode() {\n return capCode;\n }", "public BigDecimal getConvertedShrinkQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedShrinkQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}", "public double getLimiteCorrente () {\r\n\t\treturn limiteCorrente;\r\n\t}", "java.math.BigDecimal getWBMaximum();", "public int capLevel() {\n\t\treturn 500 * this.niveau;\n\t}", "public double getBCM(){\r\n\t\treturn bcm;\r\n\t}", "public int getConcealedValue() { return getValue(CONCEALED); }", "public java.math.BigDecimal getQtyPeriod8() \r\n {\r\n return get_ValueAsBigDecimal(\"QtyPeriod8\");\r\n \r\n }", "public BigDecimal getValorInt() {\n\t\treturn valorInt;\n\t}", "public BigDecimal getCAPITAL_AMT_LIMIT() {\r\n return CAPITAL_AMT_LIMIT;\r\n }", "public BigDecimal getShrinkQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ShrinkQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}", "public Float getIhosucr() {\r\n return ihosucr;\r\n }", "synchronized byte getCurrentValueLo()\n {\n return (byte)getCurrentValue();\n }", "BigInteger getPower_consumption();", "public double getImag() {\n\t\treturn imag;\n\t}", "public double getC() {\n return c;\n }", "public BigDecimal getACC_CIF() {\r\n return ACC_CIF;\r\n }", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public int getConversionPenalty() {\n/* 277 */ return getConversionPenalty(null).getValue();\n/* */ }", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public Double getCtr() {\r\n return ctr;\r\n }", "BigDecimal getValue();", "public BigDecimal getConvertedSplitQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedSplitQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}", "int getChargerCurrentRaw();", "@Override\n public int getBasicValue() {\n return minBonus;\n }", "public java.math.BigDecimal getPwrval() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.math.BigDecimal) __getCache(\"pwrval\")));\n }", "public java.math.BigInteger getGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GI$22, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "public BigDecimal getMaxQuantity() {\n return _maxQuantity;\n }", "public float getMaxAlturaCM();", "public Number getBlncInch() {\n return (Number)getAttributeInternal(BLNCINCH);\n }", "BigDecimal getDisplayQuantity();", "public java.math.BigDecimal getOctroi () {\n\t\treturn octroi;\n\t}", "public BigDecimal getPorcentajeDiscapacidad()\r\n/* 234: */ {\r\n/* 235:429 */ return this.porcentajeDiscapacidad;\r\n/* 236: */ }", "public Integer getCodiceBiglietto() {\n return codiceBiglietto;\n }", "public com.google.protobuf.Int32Value getLimit() {\n return instance.getLimit();\n }", "public String getInt() {\n this.polyInt();\n return this.integral;\n }", "public YangUInt8 getCriticalAbateValue() throws JNCException {\n YangUInt8 criticalAbate = (YangUInt8)getValue(\"critical-abate\");\n if (criticalAbate == null) {\n criticalAbate = new YangUInt8(\"85\"); // default\n }\n return criticalAbate;\n }", "@Override\n public int getSpecialValue() {\n return maxBonus;\n }", "public BigDecimal getSpCb() {\r\n return spCb;\r\n }", "public BigDecimal getPriceLimitEntered();", "public java.math.BigInteger getLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "public BigDecimal getLBR_LatePaymentPenaltyAP();", "public BigDecimal getCmPaid() {\n return cmPaid;\n }", "BigDecimal getCommission( String officeCode );", "public BigDecimal getManageLyRate() {\n return manageLyRate;\n }", "public int getValueOfBonus() {\n return valueOfBonus;\n }", "public int IMMBYTE() {\n int reg = ROP_ARG(konami.pc);\n konami.pc = konami.pc + 1 & 0xFFFF;\n return reg & 0xFF;//insure it returns a 8bit value\n }", "public Float getIhosucc() {\r\n return ihosucc;\r\n }", "public Bandwidth requestBwValue() {\n return requestBwValue;\n }", "public double calculateCap() {\n\n double sumOfGradePoints = 0;\n double sumOfModularCredits = 0;\n\n for (NusModule module: modules) {\n if (module.getGrade().isPresent() && !module.getGrade().get().isSued()) {\n sumOfModularCredits += module.modularCredit;\n sumOfGradePoints += module.modularCredit * module.getGradePoint();\n }\n }\n\n if (sumOfModularCredits == 0.0) {\n return 0;\n }\n\n return sumOfGradePoints / sumOfModularCredits;\n }", "public void setCapacidad(Integer capacidad) {\n this.capacidad = capacidad;\n }", "private synchronized double getLimiteCreditoPromocao(int idPromocao) throws ParseException\n\t{\n\t\tHashMap promocao = null;\n\t\t\n\t\tfor(int i = 0; i < listaPromocoes.size(); i++)\n\t\t{\n\t\t\tpromocao = (HashMap)listaPromocoes.get(i);\n\t\t\tif (((Integer)promocao.get(\"IDT_PROMOCAO\")).intValue() == idPromocao)\n\t\t\t{\n\t\t\t\treturn ((Double)promocao.get(\"VLR_MAX_CREDITO_BONUS\")).doubleValue();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public BigDecimal getSplitQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"SplitQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}", "int getMoneyValue();", "int getMoneyValue();", "public double getCurrentValue()\r\n\t{\r\n\t\tcurrentValue=(2*border+24)/2;\r\n\t\treturn currentValue;\r\n\t}", "public BigDecimal getCommission() {\n return commission;\n }", "public BigDecimal getCommission() {\n return commission;\n }", "public BigDecimal getCOVERING_ACC_BR() {\r\n return COVERING_ACC_BR;\r\n }" ]
[ "0.7184188", "0.6050755", "0.59974396", "0.59422344", "0.5938804", "0.592513", "0.58912283", "0.58809733", "0.58500963", "0.5846665", "0.58458686", "0.5831833", "0.58226454", "0.57505053", "0.5693972", "0.5667854", "0.5665682", "0.56553215", "0.5648816", "0.5640505", "0.5580469", "0.556543", "0.5533658", "0.55104953", "0.5509461", "0.54821044", "0.54766476", "0.54669696", "0.5459209", "0.5450482", "0.54492205", "0.54097855", "0.54048777", "0.5389514", "0.5382639", "0.5372977", "0.53703064", "0.53520906", "0.53219885", "0.5314925", "0.530541", "0.5300707", "0.528901", "0.52704996", "0.5261168", "0.5246385", "0.52366155", "0.52330405", "0.5230648", "0.52255905", "0.522066", "0.5215524", "0.5210771", "0.52064204", "0.5190528", "0.51877046", "0.5184733", "0.51806945", "0.5179094", "0.5178937", "0.5177684", "0.51770556", "0.5175659", "0.5175548", "0.5173702", "0.51721984", "0.51678926", "0.51606315", "0.5157623", "0.5156109", "0.51555806", "0.5148515", "0.51361614", "0.5136109", "0.5130808", "0.51233304", "0.51173306", "0.5112545", "0.51098293", "0.51081777", "0.5105983", "0.5100629", "0.51001847", "0.5098773", "0.5094496", "0.5089875", "0.50792646", "0.5076718", "0.50688136", "0.50647783", "0.5063795", "0.50635105", "0.5062775", "0.50617707", "0.5057456", "0.5057456", "0.5057378", "0.50568163", "0.50568163", "0.5052875" ]
0.64743996
1
Define o valor de bolLimIntegralCapConsignado.
public void setBolLimIntegralCapConsignado(Boolean bolLimIntegralCapConsignado) { this.bolLimIntegralCapConsignado = bolLimIntegralCapConsignado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) {\n\t\tthis.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo;\n\t}", "@Column(name=\"BolLimIntegralCapConsignado\")\n\tpublic Boolean getBolLimIntegralCapConsignado() {\n\t\treturn bolLimIntegralCapConsignado;\n\t}", "public void setValorLimiteIntegralMaximo(BigDecimal valorLimiteIntegralMaximo) {\n\t\tthis.valorLimiteIntegralMaximo = valorLimiteIntegralMaximo;\n\t}", "public LimiteDisponibilidadeResponse limiteConsignado(BigDecimal limiteConsignado) {\n this.limiteConsignado = limiteConsignado;\n return this;\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "@Column(name=\"ValorLimiteIntegralMinimo\")\n\tpublic BigDecimal getValorLimiteIntegralMinimo() {\n\t\treturn valorLimiteIntegralMinimo;\n\t}", "void setCap(int cap);", "int calculateCap();", "public YangUInt8 getGUVectorLimitValue() throws JNCException {\n YangUInt8 gUVectorLimit = (YangUInt8)getValue(\"g-u-vector-limit\");\n if (gUVectorLimit == null) {\n gUVectorLimit = new YangUInt8(\"1\"); // default\n }\n return gUVectorLimit;\n }", "public void setCapAmount(int capAmount){\r\n\t\t//saves the variable in capAmount\r\n\t\tthis.capAmount=capAmount;\r\n\t}", "@Column(name=\"ValorLimiteIntegralMaximo\")\n\tpublic BigDecimal getValorLimiteIntegralMaximo() {\n\t\treturn valorLimiteIntegralMaximo;\n\t}", "public void setCapacidad(Integer capacidad) {\n this.capacidad = capacidad;\n }", "public BigDecimal getBSCA_ProfitPriceLimit();", "int getCap();", "public static int getBinCap() //Obtains Bin Capacity\r\n {\r\n int binCap = -1;\r\n\r\n try {\r\n binCap = Integer.parseInt((JOptionPane.showInputDialog(\"Please enter (POSITIVE) INTEGER for BIN CAPACITY: \")));\r\n if (binCap <= 0) {\r\n throw new NumberFormatException();\r\n }\r\n } catch (Exception NumberFormatException) {\r\n JOptionPane.showMessageDialog(null, \"ERROR!!!\\n\" + \"-BIN CAPACITY MUST BE A (POSITIVE) INTEGER-\\n\" + \"Please try again!\", null, JOptionPane.ERROR_MESSAGE);\r\n binCap = getBinCap();\r\n //recursion\r\n }\r\n return binCap;\r\n }", "public BigDecimal getBSCA_ProfitPriceLimitEntered();", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "public void setRepairLim(BigDecimal repairLim) {\n\t\tthis.repairLim = repairLim;\n\t}", "public void setBSCA_ProfitPriceLimitEntered (BigDecimal BSCA_ProfitPriceLimitEntered);", "public void setMinAlturaCM(float max);", "public BigDecimal getLBR_DIFAL_RateICMSInterPart();", "public float getMinAlturaCM();", "public void setMaxAlturaCM(float max);", "public void setBSCA_ProfitPriceLimit (BigDecimal BSCA_ProfitPriceLimit);", "public Crate(int cap){\r\n capacity = cap;\r\n }", "Currencies(final int lowerLimit, final int upperLimit) {\n this.min = lowerLimit;\n this.max = upperLimit;\n }", "public String getCap() {\n return cap;\n }", "public void setImag(double imag) {this.imag = imag;}", "public int capLevel() {\n\t\treturn 500 * this.niveau;\n\t}", "MultipleCurrencyAmount presentValue(CapFloorIbor cap, SABRCapProviderInterface sabr);", "public BigDecimal getRepairLim() {\n\t\treturn repairLim;\n\t}", "public YangUInt8 getAirVectorLimitValue() throws JNCException {\n YangUInt8 airVectorLimit = (YangUInt8)getValue(\"air-vector-limit\");\n if (airVectorLimit == null) {\n airVectorLimit = new YangUInt8(\"1\"); // default\n }\n return airVectorLimit;\n }", "public void setLBR_DIFAL_RateICMSInterPart (BigDecimal LBR_DIFAL_RateICMSInterPart);", "public BigDecimal getCAPITAL_AMT_LIMIT() {\r\n return CAPITAL_AMT_LIMIT;\r\n }", "public void setConc(double c) {\t\t\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) quantity[i][j][k] = c*boxVolume;\r\n\t}", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "public void setPriceLimit (BigDecimal PriceLimit);", "public LimiteDisponibilidadeResponse limiteCompra(BigDecimal limiteCompra) {\n this.limiteCompra = limiteCompra;\n return this;\n }", "public void setCAPITAL_AMT_LIMIT(BigDecimal CAPITAL_AMT_LIMIT) {\r\n this.CAPITAL_AMT_LIMIT = CAPITAL_AMT_LIMIT;\r\n }", "public LimiteDisponibilidadeResponse limiteInternacionalCompra(BigDecimal limiteInternacionalCompra) {\n this.limiteInternacionalCompra = limiteInternacionalCompra;\n return this;\n }", "@Test\n public void testSetLimite() {\n \n assertEquals(0.0,soin3.getLimite(),0.01);\n soin3.setLimite(56.0);\n assertEquals(56.0,soin3.getLimite(),0.01);\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public double getLimiteCorrente () {\r\n\t\treturn limiteCorrente;\r\n\t}", "@Override\n public double getCONSUMPTION() {\n if (status && brightValue != 0) {\n this.consumption = (super.DEFAULTCONSUMPTION + 2) + (brightValue / 100);\n } else if (status) {\n this.consumption = super.DEFAULTCONSUMPTION + 2;\n } else if (status != true) {\n this.consumption = super.DEFAULTCONSUMPTION;\n }\n\n return consumption;\n }", "double generate(double i_load, double cap, GridTime gt) {\n \r\n double max_boundary = cap * Math.min(1., prev_load_perc + rampperc); //These in MW\r\n double min_boundary = cap * Math.max(0., prev_load_perc - rampperc);\r\n \r\n \r\n //Determine load to ramp generator to\r\n if (i_load >= max_boundary) {\r\n prev_load_perc = Math.min(1., prev_load_perc + rampperc);\r\n i_load -= max_boundary;\r\n }\r\n else if (i_load <= min_boundary) {\r\n prev_load_perc = Math.max(0., prev_load_perc - rampperc);\r\n i_load -= min_boundary;\r\n }\r\n else {\r\n prev_load_perc = Math.max(0., Math.min(1., i_load / cap));\r\n i_load = 0.;\r\n }\r\n \r\n return i_load;\r\n }", "public int calcularIMC(){\r\n\t\t//Calculamos el peso de la persona\r\n\t\tdouble pesoActual=peso/(Math.pow(altura, 2));\r\n\t\t//Segun el peso, devuelve un codigo\r\n\t\tif (pesoActual>=18.75 && pesoActual<=24.9){\r\n\t\t\treturn NORMAL;\r\n\t\t}else if(pesoActual<18.75){\r\n \t\t\treturn DELGADO;\r\n \t\t}else{\r\n \t\t\treturn SOBREPESO;\r\n \t\t}\r\n \t}", "public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }", "public void setGBInterval_to(java.math.BigInteger param){\n localGBInterval_toTracker = param != null;\n \n this.localGBInterval_to=param;\n \n\n }", "public Integer getCapacidad() {\n return capacidad;\n }", "void setIVA(float iva);", "public double getCapHeight() {\n return capHeight;\n }", "public float getMaxAlturaCM();", "void setWBMaximum(java.math.BigDecimal wbMaximum);", "public LimiteDisponibilidadeResponse limiteInternacionalSaqueGlobal(BigDecimal limiteInternacionalSaqueGlobal) {\n this.limiteInternacionalSaqueGlobal = limiteInternacionalSaqueGlobal;\n return this;\n }", "public void setPriceLimitEntered (BigDecimal PriceLimitEntered);", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public void setPercMinIntegralizacao(BigDecimal percMinIntegralizacao) {\n\t\tthis.percMinIntegralizacao = percMinIntegralizacao;\n\t}", "public Integer getHoldscale() {\r\n return holdscale;\r\n }", "public LimiteDisponibilidadeResponse limiteInternacionalParcelado(BigDecimal limiteInternacionalParcelado) {\n this.limiteInternacionalParcelado = limiteInternacionalParcelado;\n return this;\n }", "public Boleto(double valor) {\n precio = valor;\n }", "public double getCreditLimit() \r\n\t{\r\n\t\t\r\n\t\treturn creditLimit;\r\n\t\t\r\n\t}", "private void asignarCapacidades ()\n\t{\n\t\tif(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_ECONOMICO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_60;\n\t\t}\n\t\t\n\t\telse if(tipoVehiculo.equalsIgnoreCase(TIPO_VEHICULO_MEDIO))\n\t\t{\n\t\t\tcapacidadKilometrosPorGalon = CAPACIDAD_45;\n\t\t}\n\t\t\n\t\telse capacidadKilometrosPorGalon = CAPACIDAD_30;\n\t}", "private float caculateAmount(float amountIn) {\n float amount = amountIn;\n if (1 == OppoBrightUtils.mBrightnessBitsConfig) {\n OppoBrightUtils oppoBrightUtils = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils2 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && amountIn < 1.0f) {\n amount = 1.0f;\n }\n }\n } else if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n OppoBrightUtils oppoBrightUtils3 = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils4 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && this.mTargetValue < this.mCurrentValue && this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST) {\n amount = 0.5f;\n if (OppoBrightUtils.mScreenGlobalHBMSupport && this.mAnimatedValue > ((float) OppoBrightUtils.mMaxBrightness) && ((double) 0.5f) < 4.0d) {\n amount = 4.0f;\n }\n }\n }\n } else if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n OppoBrightUtils oppoBrightUtils5 = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils6 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && this.mTargetValue < this.mCurrentValue && this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST) {\n amount = 0.3f;\n }\n }\n } else {\n OppoBrightUtils oppoBrightUtils7 = this.mOppoBrightUtils;\n if (OppoBrightUtils.mUseAutoBrightness && this.mAnimatedValue <= ((float) mSlowAnimtionBrightnessVaule)) {\n OppoBrightUtils oppoBrightUtils8 = this.mOppoBrightUtils;\n if (!OppoBrightUtils.mUseWindowBrightness && this.mTargetValue < this.mCurrentValue && this.mRate != OppoBrightUtils.BRIGHTNESS_RAMP_RATE_FAST) {\n amount = 0.1f;\n }\n }\n }\n if (!DisplayPowerController.mScreenDimQuicklyDark) {\n return amount;\n }\n if (4 == OppoBrightUtils.mBrightnessBitsConfig) {\n return 30.0f;\n }\n if (3 == OppoBrightUtils.mBrightnessBitsConfig) {\n return 20.0f;\n }\n if (2 == OppoBrightUtils.mBrightnessBitsConfig) {\n return 10.0f;\n }\n return 2.0f;\n }", "float limit(float powerValue, double currentPos, double lowerLimit, double upperLimit)\n {\n if (currentPos > upperLimit)\n {\n if (powerValue > 0)\n {\n powerValue = 0;\n }\n }\n\n if (currentPos < lowerLimit)\n {\n if (powerValue < 0)\n {\n powerValue = 0;\n }\n }\n\n return powerValue;\n }", "public double getCreditLimit(){\n return creditLine;\n }", "public void setLimit_Base (String Limit_Base);", "public float impuestoAplicado();", "BigDecimal getOriginalQuantity();", "@Override\r\n\tpublic Double precio() {\n\t\treturn this.combo.precio() + 50;\r\n\t}", "@Override\n public int getSpecialValue() {\n return maxBonus;\n }", "public void setFiCoQuanCap(String fiCoQuanCap) {\n this.fiCoQuanCap = fiCoQuanCap;\n }", "public void CobrarImpuestosAmpliado(){\n\t\tif(sueldoBruto>=IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MAX);\n\t\t\ttipoImpuesto=\"Ha pagado el 30% de impuestos\";\n\t\t}\n\t}", "public void setCantidadFaltanteAnunciado(java.math.BigInteger param){\n \n this.localCantidadFaltanteAnunciado=param;\n \n\n }", "public void set_constant(double cutoff)\r\n\t{\r\n\t\tthis.switchValue = (int)cutoff;\t\r\n\t}", "public void setIhosucr(Float ihosucr) {\r\n this.ihosucr = ihosucr;\r\n }", "public void setPriceLimitWTax (BigDecimal PriceLimitWTax);", "public BigDecimal getConcentracionmolecula() {\n return concentracionmolecula;\n }", "void setDisplayQuantity(BigDecimal inDisplayQuantity);", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public void setBhIhosucr(Float bhIhosucr) {\r\n this.bhIhosucr = bhIhosucr;\r\n }", "public void setPriceLimitOld (BigDecimal PriceLimitOld);", "public void setPorcentajeDiscapacidad(BigDecimal porcentajeDiscapacidad)\r\n/* 239: */ {\r\n/* 240:439 */ this.porcentajeDiscapacidad = porcentajeDiscapacidad;\r\n/* 241: */ }", "public void setGiveIntegral(Integer giveIntegral) {\n this.giveIntegral = giveIntegral;\n }", "public void setGBInterval_from(java.math.BigInteger param){\n localGBInterval_fromTracker = param != null;\n \n this.localGBInterval_from=param;\n \n\n }", "public void setIstrue(BigDecimal istrue) {\n this.istrue = istrue;\n }", "public BigDecimal getPriceLimit();", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public double getLimit() {return limit;}", "public LimiteDisponibilidadeResponse limiteMaximo(BigDecimal limiteMaximo) {\n this.limiteMaximo = limiteMaximo;\n return this;\n }", "public java.math.BigInteger getGBInterval_to(){\n return localGBInterval_to;\n }", "public Float getBhIhosucr() {\r\n return bhIhosucr;\r\n }", "@Override\n public int getBasicValue() {\n return minBonus;\n }", "public static double getDefaultCreditLimit() \r\n\t{\r\n\t\t\r\n\t\treturn DEFAULT_CREDIT_LIMIT;\r\n\t\t\r\n\t}", "BigDecimal getQuantity();", "public void setDrawingCap(CAP cap);", "public BigDecimal getACC_BR() {\r\n return ACC_BR;\r\n }", "public LimiteDisponibilidadeResponse limiteSaqueGlobal(BigDecimal limiteSaqueGlobal) {\n this.limiteSaqueGlobal = limiteSaqueGlobal;\n return this;\n }", "public void setACC_BR(BigDecimal ACC_BR) {\r\n this.ACC_BR = ACC_BR;\r\n }", "BigInteger getPower_consumption();", "public Cafetera(int maximo, int actual) {\n\t\tsuper();\n\t\tthis._capacidadMaxima=maximo;\n\t\tthis.cantidadActual=actual;\n\t}" ]
[ "0.64013815", "0.6296842", "0.6154937", "0.59102136", "0.58478445", "0.57661897", "0.57218236", "0.5600281", "0.5573986", "0.5561323", "0.5527397", "0.5515021", "0.55054224", "0.5477215", "0.54490316", "0.54395264", "0.5415306", "0.5404069", "0.53624904", "0.53556544", "0.5342068", "0.53268385", "0.5326737", "0.53242385", "0.5316697", "0.53038836", "0.5300999", "0.5300062", "0.5289448", "0.5284291", "0.52563816", "0.5252525", "0.5252026", "0.5238499", "0.51960963", "0.51922125", "0.5176692", "0.51691705", "0.51686984", "0.51669383", "0.51461434", "0.5137062", "0.5135681", "0.5115676", "0.5113439", "0.5106722", "0.50871897", "0.50845224", "0.50812477", "0.5073893", "0.50731605", "0.5070808", "0.50682783", "0.5051111", "0.5039654", "0.50394857", "0.5035032", "0.5010282", "0.5007491", "0.5007068", "0.5005959", "0.49922517", "0.49921826", "0.49817562", "0.49798602", "0.49713635", "0.49708113", "0.4954112", "0.4950468", "0.49482188", "0.49480927", "0.49410516", "0.49404684", "0.49395218", "0.4935862", "0.49354988", "0.49298623", "0.49213758", "0.49187598", "0.49151367", "0.49124593", "0.4908121", "0.4905048", "0.4894962", "0.48914775", "0.48909667", "0.48851654", "0.48757255", "0.487435", "0.48706022", "0.48653612", "0.48579073", "0.48532465", "0.48457378", "0.48409352", "0.48377013", "0.4834999", "0.48323208", "0.48303783", "0.48293075" ]
0.77398545
0
Recupera o valor de valorLimiteIntegralMinimo.
@Column(name="ValorLimiteIntegralMinimo") public BigDecimal getValorLimiteIntegralMinimo() { return valorLimiteIntegralMinimo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) {\n\t\tthis.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo;\n\t}", "public void setValorLimiteIntegralMaximo(BigDecimal valorLimiteIntegralMaximo) {\n\t\tthis.valorLimiteIntegralMaximo = valorLimiteIntegralMaximo;\n\t}", "@Column(name=\"ValorLimiteIntegralMaximo\")\n\tpublic BigDecimal getValorLimiteIntegralMaximo() {\n\t\treturn valorLimiteIntegralMaximo;\n\t}", "public double calcularAlvoMinima() {\r\n\t\treturn calcularFrequenciaMaxima()*0.5;\r\n\t}", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "public double getNumericalLimit() {\n\treturn NUMERICAL_LIMIT;\n }", "Double getMinimumValue();", "public BigDecimal getRepairLim() {\n\t\treturn repairLim;\n\t}", "Double getMaximumValue();", "public double getLimiteCorrente () {\r\n\t\treturn limiteCorrente;\r\n\t}", "public BigInteger[] getLimite() {\r\n return this.limite;\r\n }", "public int GetMinVal();", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public abstract int getMinimumValue();", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "public float getMaxValue();", "public double getMinimumValue() { return this.minimumValue; }", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "static public double lim(double x,double min,double max) {\r\n\t\t if(x<min) return min;\r\n\t\t if(x>max) return max;\r\n\t\t return x;\r\n\t}", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "double getMin();", "double getMin();", "public float getMinAlturaCM();", "public java.math.BigInteger getLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "public abstract float getMaxValue();", "public double maxValue() {\n return 1;\r\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineMiterLimit() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineMiterLimit());\n }", "public int getMinimumValue() {\n return -s.getMaximumValue();\n }", "private BigDecimal calculateVolumeRangeValue(BigDecimal lowCloseMinValue, BigDecimal highCloseMaxValue, int currentIndex) {\n if (highCloseMaxValue.subtract(lowCloseMinValue).compareTo(BigDecimal.ZERO) == 0) {\n return BigDecimal.ZERO;\n }\n BigDecimal range = calculateRange(lowCloseMinValue, highCloseMaxValue, currentIndex);\n return range.multiply(originalData[currentIndex].getBaseVolume());\n }", "public double getCurrentClampValue() {\r\n return currentClampValue;\r\n }", "public int getMinIntValue();", "public LimiteDisponibilidadeResponse limiteMaximo(BigDecimal limiteMaximo) {\n this.limiteMaximo = limiteMaximo;\n return this;\n }", "public Double getLimit() {\n return limit;\n }", "double getMin() {\n\t\t\treturn value_min;\n\t\t}", "public int getMinRange() {\r\n return fMinRange;\r\n }", "public double getMinDoubleValue();", "public void setPercMinIntegralizacao(BigDecimal percMinIntegralizacao) {\n\t\tthis.percMinIntegralizacao = percMinIntegralizacao;\n\t}", "public double getMiterLimit(\n )\n {return miterLimit;}", "float limit(float powerValue, double currentPos, double lowerLimit, double upperLimit)\n {\n if (currentPos > upperLimit)\n {\n if (powerValue > 0)\n {\n powerValue = 0;\n }\n }\n\n if (currentPos < lowerLimit)\n {\n if (powerValue < 0)\n {\n powerValue = 0;\n }\n }\n\n return powerValue;\n }", "public int getGradoMinimo() {\n\t\treturn grMin;\n\t}", "public Double getMinimumValue () {\r\n\t\treturn (minValue);\r\n\t}", "public double getMinimumValue()\n {\n this.minimumValue = getMinNumber(allValues);\n this.maximumValue = getMaxNumber(allValues);\n return minimumValue;\n }", "public YangUInt8 getGUVectorLimitValue() throws JNCException {\n YangUInt8 gUVectorLimit = (YangUInt8)getValue(\"g-u-vector-limit\");\n if (gUVectorLimit == null) {\n gUVectorLimit = new YangUInt8(\"1\"); // default\n }\n return gUVectorLimit;\n }", "public YangUInt8 getAirVectorLimitValue() throws JNCException {\n YangUInt8 airVectorLimit = (YangUInt8)getValue(\"air-vector-limit\");\n if (airVectorLimit == null) {\n airVectorLimit = new YangUInt8(\"1\"); // default\n }\n return airVectorLimit;\n }", "public int getMinAmount() {\n return _min;\n }", "java.math.BigDecimal getWagerMinimum();", "public abstract int getMaximumValue();", "public com.google.protobuf.Int32Value getLimit() {\n return instance.getLimit();\n }", "public int getMin() {\n\t\treturn getMin(0.0f);\n\t}", "@Accessor(qualifier = \"redemptionQuantityLimit\", type = Accessor.Type.GETTER)\n\tpublic Integer getRedemptionQuantityLimit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(REDEMPTIONQUANTITYLIMIT);\n\t}", "public float getSilicateMin() {\n return silicateMin;\n }", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public final Double getMile() {\n return mile;\n }", "public double getLimit() {return limit;}", "public int setChlorophyllMin(Integer chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "public float getMinimumFloat() {\n/* 212 */ return (float)this.min;\n/* */ }", "public float getLimit() {\n return limit;\n }", "public Integer getMin() { \n\t\treturn getMinElement().getValue();\n\t}", "public int getPuntajeMaximo() {\n\t\ttry {\r\n\t\t\treturn juego.getPuntajeMaximo();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public double getMinScale() {\n return minScale;\n }", "private double getMin() {\n return min;\n }", "public static double limitRange( double val )\n {\n if( val > 1.0 )//If number is greater than 1.0, it becomes 1.0.\n {\n val = 1.0; \n }\n else if( val < -1.0 )//Else if number is less than -1.0, it becomes -1.0.\n {\n val = -1.0;\n }\n \n //Returns the limited number\n return val;\n }", "public double getMaxVal() {\n return maxVal;\n }", "public double getMinimum() {\n return (min);\n }", "public double getMinimumScale() {\n\t\treturn 0;\n\t}", "public double getLimitingMag ( ) {\r\n\t\treturn limiting_mag;\r\n\t}", "public Number getMinimumNumber() {\n/* 167 */ if (this.minObject == null) {\n/* 168 */ this.minObject = new Long(this.min);\n/* */ }\n/* 170 */ return this.minObject;\n/* */ }", "public float getMinValue();", "public Integer getMin() {\n\t\tif (this.Minimum==null)\n\t\t{\n\t\t\tcalcMinMax();\n\t\t}\n\t\treturn this.Minimum;\n\t}", "public Long getMinValue() {\n return minValue;\n }", "public int setOxygenMin(Integer oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "@Test\n public void testSetLimite() {\n \n assertEquals(0.0,soin3.getLimite(),0.01);\n soin3.setLimite(56.0);\n assertEquals(56.0,soin3.getLimite(),0.01);\n }", "float getXStepMax();", "public void SetMinVal(int min_val);", "double getMax() {\n\t\t\treturn value_max;\n\t\t}", "public double getMinRange() {\n return minRange;\n }", "public BigDecimal getMinQuantity() {\n return _minQuantity;\n }", "public double getMinValue() {\r\n\t\treturn minValue;\r\n\t}", "public double getMaxValue() {\r\n\t\treturn maxValue;\r\n\t}", "public Integer getNumeroMinimimoApoyos() {\r\n\t\treturn numMinApoyos;\r\n\t}", "public double minValue() {\n return 0;\r\n }", "public static double limitRange( double val , double max , double min )\n {\n //If number is greater than maximum, it becomes the maximum.\n if( val > max )\n {\n val = max; \n }\n else if( val < min )//Else if the number is less than minimum, it becomes the minimum.\n {\n val = min;\n }\n \n //Returns the limited number.\n return val;\n }", "public float _getMin()\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n return (getMinimum() / max);\r\n } else\r\n {\r\n return getMinimum();\r\n }\r\n }", "protected void calcMinMax() {\n }", "public int getMinValue() {\n return minValue;\n }", "org.apache.xmlbeans.XmlDecimal xgetWagerMinimum();", "E minVal();", "public double getMaximumValue() { return this.maximumValue; }", "public final double getMin() {\r\n\t\treturn this.m_min;\r\n\t}", "protected double asRelativeValue(final int generalization, final int max) {\n if (model != null && model.getResult() != null && model.getResult().getLattice() != null &&\n model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) {\n return ((double) generalization / (double) max) * 100d;\n } else {\n return 0;\n }\n }", "public void setMinAlturaCM(float max);", "public float getMaxAlturaCM();", "@Column(name=\"PercMinIntegralizacao\")\n\tpublic BigDecimal getPercMinIntegralizacao() {\n\t\treturn percMinIntegralizacao;\n\t}", "private double getMMI() {\n\t\tdouble pgv, pga;\n\t\tString S = \".getMMI()\";\n\n\t\t// get PGA\n\t\tcoeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(PGA_Param.NAME);\n\t\tcoeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(PGA_Param.NAME);\n\t\tdouble b_pga = getRockMean();\n\t\tpga = b_pga + Math.log(getAmpFactor(PGA_Param.NAME));\n\t\t// Convert to linear domain\n\t\tpga = Math.exp(pga);\n\n\t\tif (D) {\n\t\t\tSystem.out.println(C + S + \" pga = \" + (float) pga);\n\t\t}\n\n\t\t// get PGV\n\t\tcoeffBJF = (BJF_1997_AttenRelCoefficients) coefficientsBJF.get(PGV_Param.NAME);\n\t\tcoeffSM = (BJF_1997_AttenRelCoefficients) coefficientsSM.get(PGV_Param.NAME);\n\t\tdouble b_pgv = getRockMean();\n\t\tpgv = b_pgv + Math.log(getAmpFactor(PGV_Param.NAME));\n\t\t// Convert to linear domain (what's needed below)\n\t\tpgv = Math.exp(pgv);\n\n\t\tif (D) {\n\t\t\tSystem.out.println(\" pgv = \" + (float) pgv);\n\t\t}\n\n\t\treturn Wald_MMI_Calc.getMMI(pga, pgv);\n\n\t}", "public float getLimit_lin_x_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 24);\n\t\t}\n\t}", "public int getMinimum() {\r\n return min;\r\n }", "public int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public int getMinInteger() {\n\t\treturn this.minInteger;\n\t}", "double getMax();" ]
[ "0.7811161", "0.72836924", "0.70903873", "0.61993533", "0.5921112", "0.59205395", "0.589074", "0.5875244", "0.58151937", "0.57947695", "0.5792857", "0.5753313", "0.5719715", "0.56977206", "0.56865", "0.5677279", "0.5644989", "0.5616333", "0.5609202", "0.5594057", "0.55797905", "0.55797905", "0.5577691", "0.5556793", "0.555429", "0.5551533", "0.5545957", "0.5543596", "0.5542177", "0.55313194", "0.55308354", "0.55260164", "0.551715", "0.5514224", "0.55019456", "0.55003834", "0.54914707", "0.5487023", "0.5485555", "0.5478943", "0.5471906", "0.5467464", "0.5455657", "0.5452122", "0.5444894", "0.54437244", "0.54347265", "0.5420866", "0.5412262", "0.54121053", "0.53933144", "0.5387501", "0.5381521", "0.53746647", "0.53706115", "0.53688246", "0.53653395", "0.5360917", "0.535522", "0.5353547", "0.5348391", "0.5344149", "0.5343871", "0.5336659", "0.53335536", "0.5332868", "0.5331957", "0.53313416", "0.5321482", "0.5319331", "0.5317459", "0.53124624", "0.53092194", "0.5303642", "0.530022", "0.52970994", "0.5296868", "0.5295877", "0.5295689", "0.5294436", "0.5289153", "0.5283677", "0.5283487", "0.52818274", "0.528056", "0.5276481", "0.52712137", "0.52669406", "0.5262329", "0.52604985", "0.52569747", "0.52449304", "0.5244813", "0.52369785", "0.5232487", "0.52254736", "0.52242875", "0.5223816", "0.5218942", "0.521741" ]
0.7628049
1
Define o valor de valorLimiteIntegralMinimo.
public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) { this.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValorLimiteIntegralMaximo(BigDecimal valorLimiteIntegralMaximo) {\n\t\tthis.valorLimiteIntegralMaximo = valorLimiteIntegralMaximo;\n\t}", "@Column(name=\"ValorLimiteIntegralMinimo\")\n\tpublic BigDecimal getValorLimiteIntegralMinimo() {\n\t\treturn valorLimiteIntegralMinimo;\n\t}", "@Column(name=\"ValorLimiteIntegralMaximo\")\n\tpublic BigDecimal getValorLimiteIntegralMaximo() {\n\t\treturn valorLimiteIntegralMaximo;\n\t}", "@Test\n public void testSetLimite() {\n \n assertEquals(0.0,soin3.getLimite(),0.01);\n soin3.setLimite(56.0);\n assertEquals(56.0,soin3.getLimite(),0.01);\n }", "public void SetMinVal(int min_val);", "public int setSilicateMin(Integer silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public double calcularAlvoMinima() {\r\n\t\treturn calcularFrequenciaMaxima()*0.5;\r\n\t}", "public void setPercMinIntegralizacao(BigDecimal percMinIntegralizacao) {\n\t\tthis.percMinIntegralizacao = percMinIntegralizacao;\n\t}", "public int setOxygenMin(Integer oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public void setMinAlturaCM(float max);", "public void setNumericalLimit(double value) {\n\tif (value < 0) {\n\t String msg = errorMsg(\"lessThanZero\", value);\n\t throw new IllegalArgumentException(msg);\n\t}\n\tNUMERICAL_LIMIT = value;\n }", "public int setChlorophyllMin(Integer chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "public int setSilicateMin(Float silicateMin) {\n try {\n setSilicateMin(silicateMin.floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public int setNitrateMin(Integer nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "public LimiteDisponibilidadeResponse limiteMaximo(BigDecimal limiteMaximo) {\n this.limiteMaximo = limiteMaximo;\n return this;\n }", "@Accessor(qualifier = \"redemptionQuantityLimit\", type = Accessor.Type.SETTER)\n\tpublic void setRedemptionQuantityLimit(final Integer value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(REDEMPTIONQUANTITYLIMIT, value);\n\t}", "public BigInteger[] getLimite() {\r\n return this.limite;\r\n }", "public double getNumericalLimit() {\n\treturn NUMERICAL_LIMIT;\n }", "public int setOxygenMin(Float oxygenMin) {\n try {\n setOxygenMin(oxygenMin.floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "@JSProperty(\"softMin\")\n void setSoftMin(double value);", "@JSProperty(\"minRange\")\n void setMinRange(double value);", "public int setSilicateMin(String silicateMin) {\n try {\n setSilicateMin(new Float(silicateMin).floatValue());\n } catch (Exception e) {\n setSilicateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMinError;\n }", "public double getLimiteCorrente () {\r\n\t\treturn limiteCorrente;\r\n\t}", "public void setMiterLimit(float limit);", "float limit(float powerValue, double currentPos, double lowerLimit, double upperLimit)\n {\n if (currentPos > upperLimit)\n {\n if (powerValue > 0)\n {\n powerValue = 0;\n }\n }\n\n if (currentPos < lowerLimit)\n {\n if (powerValue < 0)\n {\n powerValue = 0;\n }\n }\n\n return powerValue;\n }", "public int setSalinityMin(Integer salinityMin) {\n try {\n setSalinityMin(salinityMin.floatValue());\n } catch (Exception e) {\n setSalinityMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return salinityMinError;\n }", "public void setValorIof(java.lang.Double valorIof) {\n this.valorIof = valorIof;\n }", "public int GetMinVal();", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public TipoOperacaoParcialUpdate valorMinimo(BigDecimal valorMinimo) {\n this.valorMinimo = valorMinimo;\n return this;\n }", "public YangUInt8 getGUVectorLimitValue() throws JNCException {\n YangUInt8 gUVectorLimit = (YangUInt8)getValue(\"g-u-vector-limit\");\n if (gUVectorLimit == null) {\n gUVectorLimit = new YangUInt8(\"1\"); // default\n }\n return gUVectorLimit;\n }", "static public double lim(double x,double min,double max) {\r\n\t\t if(x<min) return min;\r\n\t\t if(x>max) return max;\r\n\t\t return x;\r\n\t}", "public int setSilicateMax(Integer silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "public static double limitRange( double val )\n {\n if( val > 1.0 )//If number is greater than 1.0, it becomes 1.0.\n {\n val = 1.0; \n }\n else if( val < -1.0 )//Else if number is less than -1.0, it becomes -1.0.\n {\n val = -1.0;\n }\n \n //Returns the limited number\n return val;\n }", "public void setValoracionMedia(int valoracionMedia){\n if(valoracionMedia < 0 || valoracionMedia > 5){\n throw new IllegalArgumentException(\"Valoracion media fuera del rango [0, 5]. Valoracion media recibida = \"+valoracionMedia);\n }\n this.valoracionMedia = valoracionMedia;\n }", "public void setKredietLimiet(double kredietlimiet) {\n // method body omitted\n this.kredietlimiet = kredietlimiet;\n }", "@JSProperty(\"maxRange\")\n void setMaxRange(double value);", "public void setMaxAlturaCM(float max);", "void setNilFractionalMinimum();", "public int getGradoMinimo() {\n\t\treturn grMin;\n\t}", "@Test\n\tpublic void testSetLimitX() {\n\t\tPlateauImpl.setPlateau(\"5 5\");\n\t\tassertEquals(5, PlateauImpl.getLimitX());\n\t\tPlateauImpl.setLimitX(3);\n\t\tassertEquals(3, PlateauImpl.getLimitX());\n\t}", "public double getMiterLimit(\n )\n {return miterLimit;}", "public float getMinAlturaCM();", "@JSProperty(\"min\")\n void setMin(double value);", "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "@JSProperty(\"max\")\n void setMax(double value);", "public void setMinValue(int x) {\r\n\t\tminValue = x;\r\n\t}", "public int setNitrateMin(Float nitrateMin) {\n try {\n setNitrateMin(nitrateMin.floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "Double getMinimumValue();", "public float getMaxValue();", "public void setValor(Integer valor) {\n\t\tif (valor!=null && valor < this.getCantElementos()) {\n\t\t\tthis.valor = valor;\n\t\t\tthis.entidadGrafica.actualizarImagen(this.valor);\n\t\t}else {\n\t\t\tthis.valor = null;\n\t\t}\n\t}", "public void setMinValue(double x) {\r\n\t\tminValue = x;\r\n\t}", "public abstract int getMinimumValue();", "public BigDecimal getRepairLim() {\n\t\treturn repairLim;\n\t}", "public int setChlorophyllMin(Float chlorophyllMin) {\n try {\n setChlorophyllMin(chlorophyllMin.floatValue());\n } catch (Exception e) {\n setChlorophyllMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMinError;\n }", "public YangUInt8 getAirVectorLimitValue() throws JNCException {\n YangUInt8 airVectorLimit = (YangUInt8)getValue(\"air-vector-limit\");\n if (airVectorLimit == null) {\n airVectorLimit = new YangUInt8(\"1\"); // default\n }\n return airVectorLimit;\n }", "@Test\n public void testGetLimite() {\n \n assertEquals(50.0, soin1.getLimite(),0.01);\n assertEquals(80.0, soin2.getLimite(),0.01);\n }", "public int getMinimumValue() {\n/* 276 */ return -this.s.getMaximumValue();\n/* */ }", "public static double limitRange( double val , double max , double min )\n {\n //If number is greater than maximum, it becomes the maximum.\n if( val > max )\n {\n val = max; \n }\n else if( val < min )//Else if the number is less than minimum, it becomes the minimum.\n {\n val = min;\n }\n \n //Returns the limited number.\n return val;\n }", "@Override\r\n\tpublic double getIMC() throws Exception{\r\n\t\tdouble imc = getAnamnese().getPesoUsual()\r\n\t\t/ (anamnese.getAltura() * anamnese.getAltura());\r\n\t\tif(imc <=0 ){\r\n\t\t\tthrow new Exception(\"valor invalido\");\r\n\t\t}\r\n\t\r\n\t\treturn imc;\r\n\t}", "public abstract float getMaxValue();", "public void setCantidadCUVErrado(java.math.BigInteger param){\n \n this.localCantidadCUVErrado=param;\n \n\n }", "public int setPhosphateMin(Integer phosphateMin) {\n try {\n setPhosphateMin(phosphateMin.floatValue());\n } catch (Exception e) {\n setPhosphateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMinError;\n }", "public double getLimit() {return limit;}", "public int setOxygenMin(String oxygenMin) {\n try {\n setOxygenMin(new Float(oxygenMin).floatValue());\n } catch (Exception e) {\n setOxygenMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMinError;\n }", "public void setRepairLim(BigDecimal repairLim) {\n\t\tthis.repairLim = repairLim;\n\t}", "private void setLimit(com.google.protobuf.Int32Value value) {\n if (value == null) {\n throw new NullPointerException();\n }\n limit_ = value;\n \n }", "protected void calcMinMax() {\n }", "public Double getLimit() {\n return limit;\n }", "@Accessor(qualifier = \"redemptionQuantityLimitPerUser\", type = Accessor.Type.SETTER)\n\tpublic void setRedemptionQuantityLimitPerUser(final Integer value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(REDEMPTIONQUANTITYLIMITPERUSER, value);\n\t}", "void setMaxValue();", "public void setMaxValue(double x) {\r\n\t\tmaxValue = x;\r\n\t}", "void setWagerMinimum(java.math.BigDecimal wagerMinimum);", "public void setCantidadFaltanteAnunciado(java.math.BigInteger param){\n \n this.localCantidadFaltanteAnunciado=param;\n \n\n }", "public void SetMaxVal(int max_val);", "public void changeRangeX(double limiteInitial, double limiteFinal, double space){\n //rango eje x\n xAxis = (NumberAxis) plot.getDomainAxis();\n xAxis.setRange(limiteInitial, limiteFinal);//agrego el rango en el eje de las x\n xAxis.setTickUnit(new NumberTickUnit(space));//agrego el espacio entre cada rango\n }", "public int setSilicateMax(Float silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "public void setMinAmount(int min) {\n _min = min;\n }", "private BigDecimal calculateVolumeRangeValue(BigDecimal lowCloseMinValue, BigDecimal highCloseMaxValue, int currentIndex) {\n if (highCloseMaxValue.subtract(lowCloseMinValue).compareTo(BigDecimal.ZERO) == 0) {\n return BigDecimal.ZERO;\n }\n BigDecimal range = calculateRange(lowCloseMinValue, highCloseMaxValue, currentIndex);\n return range.multiply(originalData[currentIndex].getBaseVolume());\n }", "public float getLimit() {\n return limit;\n }", "public void _setMin(float min)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMinimum((int) (min * 100));\r\n } else\r\n {\r\n setMinimum((int) min);\r\n }\r\n }", "public double maxValue() {\n return 1;\r\n }", "public LimiteDisponibilidadeResponse limiteParcelado(BigDecimal limiteParcelado) {\n this.limiteParcelado = limiteParcelado;\n return this;\n }", "@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineMiterLimit() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineMiterLimit());\n }", "void xsetWagerMinimum(org.apache.xmlbeans.XmlDecimal wagerMinimum);", "public int setChlorophyllMax(Integer chlorophyllMax) {\n try {\n setChlorophyllMax(chlorophyllMax.floatValue());\n } catch (Exception e) {\n setChlorophyllMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMaxError;\n }", "public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }", "public int setNitrateMax(Integer nitrateMax) {\n try {\n setNitrateMax(nitrateMax.floatValue());\n } catch (Exception e) {\n setNitrateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMaxError;\n }", "public double getMinimumValue() { return this.minimumValue; }", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "public void setBolLimIntegralCapConsignado(Boolean bolLimIntegralCapConsignado) {\n\t\tthis.bolLimIntegralCapConsignado = bolLimIntegralCapConsignado;\n\t}", "public void setMinimumValue (double min) {\r\n\t\tminValue = new Double(min);\r\n\t\tvalidateMin = (minValue.compareTo(DOUBLE_ZERO) != 1);\r\n\t}", "public void setLimit(float value) {\n this.limit = value;\n }", "private void initLimits() {\n lowerLimit1 = quarterHolderWidth;\n lowerLimit2 = (2 * quarterHolderWidth);\n lowerLimit3 = (3 * quarterHolderWidth);\n lowerLimit4 = holderWidth;\n }", "public int setNitrateMin(String nitrateMin) {\n try {\n setNitrateMin(new Float(nitrateMin).floatValue());\n } catch (Exception e) {\n setNitrateMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMinError;\n }", "@Override\r\n public void setMinMax(Double min, Double max) {\r\n this.minIn = min;\r\n this.maxIn = max;\r\n }", "void setMinValue();", "public int setSalinityMin(Float salinityMin) {\n try {\n setSalinityMin(salinityMin.floatValue());\n } catch (Exception e) {\n setSalinityMinError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return salinityMinError;\n }", "public int setSilicateMax(String silicateMax) {\n try {\n setSilicateMax(new Float(silicateMax).floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "private void setSilicateMinError (float silicateMin, Exception e, int error) {\n this.silicateMin = silicateMin;\n silicateMinErrorMessage = e.toString();\n silicateMinError = error;\n }" ]
[ "0.75405735", "0.7284978", "0.67104095", "0.6239059", "0.5848846", "0.5825776", "0.58024746", "0.57918173", "0.576439", "0.5741555", "0.5650052", "0.56283367", "0.55884117", "0.5569016", "0.55202645", "0.55194694", "0.54727584", "0.547171", "0.5466698", "0.5456277", "0.5434392", "0.54148334", "0.5397226", "0.5393313", "0.53799695", "0.5376768", "0.53450024", "0.53431", "0.5335577", "0.53334785", "0.53251565", "0.5323614", "0.5320233", "0.531777", "0.5315887", "0.5311287", "0.5298216", "0.52878326", "0.52854663", "0.5284089", "0.5282994", "0.5271736", "0.5270987", "0.52656704", "0.5263468", "0.525544", "0.5253491", "0.52383983", "0.5237763", "0.52363634", "0.5235067", "0.52341366", "0.5233842", "0.5233808", "0.5233567", "0.52314466", "0.5228329", "0.5222141", "0.521285", "0.5207827", "0.51976734", "0.519579", "0.51926357", "0.5190372", "0.5178956", "0.51786554", "0.5178504", "0.51765716", "0.5168327", "0.51648223", "0.5160576", "0.5157256", "0.5140725", "0.51355743", "0.5135475", "0.5131279", "0.5119614", "0.5116958", "0.51094085", "0.5109323", "0.5108017", "0.5101915", "0.5100223", "0.5099707", "0.5097282", "0.50953853", "0.5090015", "0.5083107", "0.5076153", "0.50709677", "0.50674003", "0.5062822", "0.5062056", "0.5058426", "0.5055858", "0.5049281", "0.5046983", "0.5043977", "0.5037987", "0.5037701" ]
0.8160291
0
Recupera o valor de valorLimiteIntegralMaximo.
@Column(name="ValorLimiteIntegralMaximo") public BigDecimal getValorLimiteIntegralMaximo() { return valorLimiteIntegralMaximo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValorLimiteIntegralMaximo(BigDecimal valorLimiteIntegralMaximo) {\n\t\tthis.valorLimiteIntegralMaximo = valorLimiteIntegralMaximo;\n\t}", "public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) {\n\t\tthis.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo;\n\t}", "@Column(name=\"ValorLimiteIntegralMinimo\")\n\tpublic BigDecimal getValorLimiteIntegralMinimo() {\n\t\treturn valorLimiteIntegralMinimo;\n\t}", "Double getMaximumValue();", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public float getMaxValue();", "public double getMaxVal() {\n return maxVal;\n }", "public abstract int getMaximumValue();", "public double getMaximumValue() { return this.maximumValue; }", "public abstract float getMaxValue();", "public double getMaxValue() {\r\n\t\treturn maxValue;\r\n\t}", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "double getMax() {\n\t\t\treturn value_max;\n\t\t}", "public Long getMaxValue() {\n return maxValue;\n }", "public double getMaximumDouble() {\n/* 255 */ return this.max;\n/* */ }", "public int getMaxValue() {\n return maxValue;\n }", "public LimiteDisponibilidadeResponse limiteMaximo(BigDecimal limiteMaximo) {\n this.limiteMaximo = limiteMaximo;\n return this;\n }", "public Double getMaximumValue () {\r\n\t\treturn (maxValue);\r\n\t}", "public int getMaxValue(){\n\t\treturn maxValue;\n\t}", "public double maxValue() {\n return 1;\r\n }", "public double getNumericalLimit() {\n\treturn NUMERICAL_LIMIT;\n }", "public double getMaximum() {\n return (max);\n }", "public float getMaximumFloat() {\n/* 266 */ return (float)this.max;\n/* */ }", "public int getMaximumInteger() {\n/* 244 */ return (int)this.max;\n/* */ }", "public long maxValue() {\n return 0;\n }", "public float _getMax()\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n return (getMaximum() / max);\r\n } else\r\n {\r\n return getMaximum();\r\n }\r\n }", "public int getPuntajeMaximo() {\n\t\ttry {\r\n\t\t\treturn juego.getPuntajeMaximo();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public double getMaximumValue()\n {\n this.minimumValue = getMinNumber(allValues);\n this.maximumValue = getMaxNumber(allValues);\n return maximumValue;\n }", "java.math.BigDecimal getWBMaximum();", "public BigInteger[] getLimite() {\r\n return this.limite;\r\n }", "public float getMaxAlturaCM();", "double getMax();", "double getMax();", "public int getMax() {\n\t\treturn getMax(0.0f);\n\t}", "int getMaximum();", "public float getSilicateMax() {\n return silicateMax;\n }", "public final double getMax() {\r\n\t\treturn this.m_max;\r\n\t}", "public void setMaxVal(double maxVal) {\n this.maxVal = maxVal;\n }", "public java.math.BigInteger getLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "public Object getMaxValue() {\n\t\treturn null;\n\t}", "public double getMaxDoubleValue();", "public int getMaximum() {\n return this.iMaximum;\n }", "public void SetMaxVal(int max_val);", "public double getMaxRange() {\n return maxRange;\n }", "java.math.BigDecimal getMaximum();", "public int getMaxIntValue();", "public YangUInt8 getGUVectorLimitValue() throws JNCException {\n YangUInt8 gUVectorLimit = (YangUInt8)getValue(\"g-u-vector-limit\");\n if (gUVectorLimit == null) {\n gUVectorLimit = new YangUInt8(\"1\"); // default\n }\n return gUVectorLimit;\n }", "int getMaxScale();", "public Number getMaximumNumber() {\n/* 221 */ if (this.maxObject == null) {\n/* 222 */ this.maxObject = new Long(this.max);\n/* */ }\n/* 224 */ return this.maxObject;\n/* */ }", "public Double getMaximum() {\n\t\treturn maximum;\n\t}", "@JSProperty(\"max\")\n void setMax(double value);", "double getMaxAmountl() {\n\t\treturn MAX_AMOUNT;\n\t}", "E maxVal();", "public double calcularAlvoMinima() {\r\n\t\treturn calcularFrequenciaMaxima()*0.5;\r\n\t}", "public Double getLimit() {\n return limit;\n }", "org.apache.xmlbeans.XmlDecimal xgetWBMaximum();", "public int getMaxValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getmaxvalue\",\n\t\t\t\tgetRefId());\n\t}", "public double getLimiteCorrente () {\r\n\t\treturn limiteCorrente;\r\n\t}", "public YangUInt8 getAirVectorLimitValue() throws JNCException {\n YangUInt8 airVectorLimit = (YangUInt8)getValue(\"air-vector-limit\");\n if (airVectorLimit == null) {\n airVectorLimit = new YangUInt8(\"1\"); // default\n }\n return airVectorLimit;\n }", "public double getMaxValue() {\n\t\tdouble max = Double.NEGATIVE_INFINITY;\n\t\tfor (int i = 0; i < dataSheet.getDesignCount(); i++) {\n\t\t\tdouble value = dataSheet.getDesign(i).getDoubleValue(this);\n\t\t\tif (value > max)\n\t\t\t\tmax = value;\n\t\t}\n\t\treturn max;\n\t}", "public int setSilicateMax(Integer silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "public void setMaxAlturaCM(float max);", "public BigDecimal getMaxQuantity() {\n return _maxQuantity;\n }", "public int getMaximum() {\n \tcheckWidget();\n \treturn maximum;\n }", "public double getMaximumScale() {\n\t\treturn 0;\n\t}", "public double max() {\n/* 323 */ Preconditions.checkState((this.count != 0L));\n/* 324 */ return this.max;\n/* */ }", "org.apache.xmlbeans.XmlDecimal xgetMaximum();", "@JSProperty(\"maxRange\")\n double getMaxRange();", "public String getMaxValue () {\n return maxValue;\n }", "public Integer getMaxQuota() {\n return (Integer) getAttributeInternal(MAXQUOTA);\n }", "public BigDecimal getRepairLim() {\n\t\treturn repairLim;\n\t}", "protected final int getMax() {\n\treturn(this.max);\n }", "public int GetMaxVal();", "public double getMaxValue() {\n double max = Double.NEGATIVE_INFINITY;\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (data[i][j] > max)\n max = data[i][j];\n }\n }\n return max;\n }", "public int getMaximum() {\r\n return max;\r\n }", "private double getMax() {\n return Collections.max(values.values());\n }", "public int getMaximumValue() {\n return Math.min(Short.MAX_VALUE, c.getMaximumSize().width);\n }", "public com.google.protobuf.Int32Value getLimit() {\n return instance.getLimit();\n }", "float xMax();", "@JSProperty(\"maxRange\")\n void setMaxRange(double value);", "private long getAbsMax() {\n return Math.max(Math.abs(Visualizer.getLowerBound().get()),\n Visualizer.getUpperBound().get());\n }", "public double getMaxScale() {\n return maxScale;\n }", "public int getMaxAmount() {\n return _max;\n }", "public float getNitrateMax() {\n return nitrateMax;\n }", "public Integer getMax() {\n\t\t\tif (hotMinMax) {\n\t\t\t\tConfigValue rawMinMax = new ConfigValue();\n\t\t\t\ttry {\n\t\t\t\t\trawSrv.getCfgMinMax(name, rawMinMax);\n\t\t\t\t\t// TODO: FIX HERE\n\t\t\t\t\treturn 100;\n\t\t\t\t} catch (TVMException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn new Integer(max);\n\t\t\t}\n\t\t\t// ....\n\t\t\treturn 100;\n\t\t}", "public long getPropertyVolumeMax();", "protected final void setMax() {\n\n\tint prevmax = this.max;\n\n\tint i1 = this.high;\n\tint i2 = left.max;\n\tint i3 = right.max;\n\n\tif ((i1 >= i2) && (i1 >= i3)) {\n\t this.max = i1;\n\t} else if ((i2 >= i1) && (i2 >= i3)) {\n\t this.max = i2;\n\t} else {\n\t this.max = i3;\n\t}\n\t\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmax != this.max)) {\n \t p.setMax();\n\t}\n }", "private String getCriterionMaxValueValue()\n {\n return getConvertedValue(myCriterionMaxValue.get());\n }", "public float getUpperBound()\n {\n return fUpperBound;\n }", "public double getLimitingMag ( ) {\r\n\t\treturn limiting_mag;\r\n\t}", "public void setMaximumValue (Double max) {\r\n\t\tmaxValue = max;\r\n\t}", "public abstract T getMaxValue();", "public int setSilicateMax(Float silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "@In Integer max();", "@In Integer max();", "Object getMaximumValue(Object elementID) throws Exception;", "int maxNoteValue();", "public Number getMaximumAccessibleValue() {\n return Integer.valueOf(0);\n }", "@JSProperty(\"max\")\n double getMax();", "@Override\n public Integer max() {\n return findSpecialValue(Integer.MIN_VALUE, new MaxComparator());\n }" ]
[ "0.80601984", "0.7347412", "0.72649205", "0.68676543", "0.6845159", "0.674305", "0.658079", "0.65641665", "0.6557369", "0.6549601", "0.6537751", "0.649988", "0.64998394", "0.6454429", "0.6422809", "0.64189756", "0.6416415", "0.63650256", "0.6360181", "0.6331307", "0.6319294", "0.62452173", "0.62355417", "0.619312", "0.61881983", "0.6176103", "0.6171228", "0.6134597", "0.61192185", "0.6101532", "0.6090823", "0.6090428", "0.6090428", "0.6078428", "0.6076388", "0.60751325", "0.6065807", "0.605317", "0.6042639", "0.6041626", "0.6030516", "0.6028168", "0.60158885", "0.60031915", "0.600131", "0.60004306", "0.599813", "0.5995009", "0.59923434", "0.5986199", "0.5980372", "0.59735054", "0.5948693", "0.59482896", "0.59445703", "0.59413743", "0.5931784", "0.5925233", "0.59233046", "0.5915517", "0.5914", "0.5911141", "0.590716", "0.5903811", "0.59035", "0.5891693", "0.58910424", "0.5886774", "0.5883094", "0.58773834", "0.5875662", "0.5873665", "0.5872472", "0.5866629", "0.58630437", "0.58612907", "0.5860804", "0.5853932", "0.5847255", "0.58462113", "0.58412796", "0.58353275", "0.5834147", "0.5824539", "0.581894", "0.5817615", "0.5814256", "0.58099294", "0.58074486", "0.580732", "0.58072984", "0.5806473", "0.58046436", "0.5802876", "0.5802876", "0.58023906", "0.5799069", "0.57977194", "0.5795223", "0.5792111" ]
0.77323735
1
Define o valor de valorLimiteIntegralMaximo.
public void setValorLimiteIntegralMaximo(BigDecimal valorLimiteIntegralMaximo) { this.valorLimiteIntegralMaximo = valorLimiteIntegralMaximo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValorLimiteIntegralMinimo(BigDecimal valorLimiteIntegralMinimo) {\n\t\tthis.valorLimiteIntegralMinimo = valorLimiteIntegralMinimo;\n\t}", "@Column(name=\"ValorLimiteIntegralMaximo\")\n\tpublic BigDecimal getValorLimiteIntegralMaximo() {\n\t\treturn valorLimiteIntegralMaximo;\n\t}", "@Column(name=\"ValorLimiteIntegralMinimo\")\n\tpublic BigDecimal getValorLimiteIntegralMinimo() {\n\t\treturn valorLimiteIntegralMinimo;\n\t}", "public void SetMaxVal(int max_val);", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public LimiteDisponibilidadeResponse limiteMaximo(BigDecimal limiteMaximo) {\n this.limiteMaximo = limiteMaximo;\n return this;\n }", "public void setMaxAlturaCM(float max);", "public float getMaxValue();", "@JSProperty(\"max\")\n void setMax(double value);", "public void setMaxVal(double maxVal) {\n this.maxVal = maxVal;\n }", "@JSProperty(\"maxRange\")\n void setMaxRange(double value);", "public abstract float getMaxValue();", "public void setMinAlturaCM(float max);", "void setMaxValue();", "@Test\n public void testSetLimite() {\n \n assertEquals(0.0,soin3.getLimite(),0.01);\n soin3.setLimite(56.0);\n assertEquals(56.0,soin3.getLimite(),0.01);\n }", "public int setSilicateMax(Integer silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "public void setMaxValue(double x) {\r\n\t\tmaxValue = x;\r\n\t}", "public void setMaxValue(int x) {\r\n\t\tmaxValue = x;\r\n\t}", "public int getMaxValue(){\n\t\treturn maxValue;\n\t}", "public int getMaxValue() {\n return maxValue;\n }", "Double getMaximumValue();", "public Long getMaxValue() {\n return maxValue;\n }", "protected final void setMax() {\n\n\tint prevmax = this.max;\n\n\tint i1 = this.high;\n\tint i2 = left.max;\n\tint i3 = right.max;\n\n\tif ((i1 >= i2) && (i1 >= i3)) {\n\t this.max = i1;\n\t} else if ((i2 >= i1) && (i2 >= i3)) {\n\t this.max = i2;\n\t} else {\n\t this.max = i3;\n\t}\n\t\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmax != this.max)) {\n \t p.setMax();\n\t}\n }", "public int setNitrateMax(Integer nitrateMax) {\n try {\n setNitrateMax(nitrateMax.floatValue());\n } catch (Exception e) {\n setNitrateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMaxError;\n }", "public abstract int getMaximumValue();", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "public int setSilicateMax(Float silicateMax) {\n try {\n setSilicateMax(silicateMax.floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "void setMaximum(int max);", "public double getMaxValue() {\r\n\t\treturn maxValue;\r\n\t}", "public void setMaximumValue (Double max) {\r\n\t\tmaxValue = max;\r\n\t}", "public double maxValue() {\n return 1;\r\n }", "public double getMaximumValue() { return this.maximumValue; }", "public double getNumericalLimit() {\n\treturn NUMERICAL_LIMIT;\n }", "public void setMaximum() {\n getReel().setMaxValue(getVerticalScrollBar().getMaximum());\n }", "public YangUInt8 getGUVectorLimitValue() throws JNCException {\n YangUInt8 gUVectorLimit = (YangUInt8)getValue(\"g-u-vector-limit\");\n if (gUVectorLimit == null) {\n gUVectorLimit = new YangUInt8(\"1\"); // default\n }\n return gUVectorLimit;\n }", "public int setChlorophyllMax(Integer chlorophyllMax) {\n try {\n setChlorophyllMax(chlorophyllMax.floatValue());\n } catch (Exception e) {\n setChlorophyllMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMaxError;\n }", "public int setOxygenMax(Integer oxygenMax) {\n try {\n setOxygenMax(oxygenMax.floatValue());\n } catch (Exception e) {\n setOxygenMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMaxError;\n }", "public double getMaxVal() {\n return maxVal;\n }", "public void setNumericalLimit(double value) {\n\tif (value < 0) {\n\t String msg = errorMsg(\"lessThanZero\", value);\n\t throw new IllegalArgumentException(msg);\n\t}\n\tNUMERICAL_LIMIT = value;\n }", "public int setPhosphateMax(Integer phosphateMax) {\n try {\n setPhosphateMax(phosphateMax.floatValue());\n } catch (Exception e) {\n setPhosphateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMaxError;\n }", "public BigInteger[] getLimite() {\r\n return this.limite;\r\n }", "public void setMaximumValue (double max) {\r\n\t\tmaxValue = new Double(max);\r\n\t}", "void xsetMaximum(org.apache.xmlbeans.XmlDecimal maximum);", "public void setMax_liquidado(java.lang.String max_liquidado) {\n this.max_liquidado = max_liquidado;\n }", "public void setMaxValue(int maxValue) {\n this.maxValue = maxValue;\n }", "void setMaxScale(int value);", "public float getMaxAlturaCM();", "public double getMaximumDouble() {\n/* 255 */ return this.max;\n/* */ }", "public int setNitrateMax(Float nitrateMax) {\n try {\n setNitrateMax(nitrateMax.floatValue());\n } catch (Exception e) {\n setNitrateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMaxError;\n }", "public int setSilicateMax(String silicateMax) {\n try {\n setSilicateMax(new Float(silicateMax).floatValue());\n } catch (Exception e) {\n setSilicateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return silicateMaxError;\n }", "public int setSalinityMax(Integer salinityMax) {\n try {\n setSalinityMax(salinityMax.floatValue());\n } catch (Exception e) {\n setSalinityMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return salinityMaxError;\n }", "public void setMaximum( final double max )\n\t{\n\t\tthis.max = max;\n\t\tthis.oneOverMax = 1d / this.max;\n\t}", "double getMax() {\n\t\t\treturn value_max;\n\t\t}", "public float getMaximumFloat() {\n/* 266 */ return (float)this.max;\n/* */ }", "public void setMax_noliquidado(java.lang.String max_noliquidado) {\n this.max_noliquidado = max_noliquidado;\n }", "public int getPuntajeMaximo() {\n\t\ttry {\r\n\t\t\treturn juego.getPuntajeMaximo();\r\n\t\t} catch (RemoteException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public void _setMax(float max)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMaximum((int) (max * 100));\r\n } else\r\n {\r\n setMaximum((int) max);\r\n }\r\n }", "public TipoOperacaoParcialUpdate valorMaximo(BigDecimal valorMaximo) {\n this.valorMaximo = valorMaximo;\n return this;\n }", "public YangUInt8 getAirVectorLimitValue() throws JNCException {\n YangUInt8 airVectorLimit = (YangUInt8)getValue(\"air-vector-limit\");\n if (airVectorLimit == null) {\n airVectorLimit = new YangUInt8(\"1\"); // default\n }\n return airVectorLimit;\n }", "public int setOxygenMax(Float oxygenMax) {\n try {\n setOxygenMax(oxygenMax.floatValue());\n } catch (Exception e) {\n setOxygenMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return oxygenMaxError;\n }", "@JSProperty(\"softMax\")\n void setSoftMax(double value);", "public double calcularAlvoMinima() {\r\n\t\treturn calcularFrequenciaMaxima()*0.5;\r\n\t}", "public static void setMaxAu(int max) {\n\t\tmaxAu = max;\n\t}", "public long maxValue() {\n return 0;\n }", "public int setNitrateMax(String nitrateMax) {\n try {\n setNitrateMax(new Float(nitrateMax).floatValue());\n } catch (Exception e) {\n setNitrateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMaxError;\n }", "public void setMaximumValue(double maximumValue)\n {\n this.maximumValue = maximumValue;\n }", "public void setMaxUnit(int max) {\n maxUnit = max;\n }", "float limit(float powerValue, double currentPos, double lowerLimit, double upperLimit)\n {\n if (currentPos > upperLimit)\n {\n if (powerValue > 0)\n {\n powerValue = 0;\n }\n }\n\n if (currentPos < lowerLimit)\n {\n if (powerValue < 0)\n {\n powerValue = 0;\n }\n }\n\n return powerValue;\n }", "ReadOnlyDoubleProperty maximumProperty();", "ReadOnlyDoubleProperty displayMaximumProperty();", "public double getLimit() {return limit;}", "public int setChlorophyllMax(Float chlorophyllMax) {\n try {\n setChlorophyllMax(chlorophyllMax.floatValue());\n } catch (Exception e) {\n setChlorophyllMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return chlorophyllMaxError;\n }", "public Double getLimit() {\n return limit;\n }", "public int getMaximumInteger() {\n/* 244 */ return (int)this.max;\n/* */ }", "public double getLimiteCorrente () {\r\n\t\treturn limiteCorrente;\r\n\t}", "public Object getMaxValue() {\n\t\treturn null;\n\t}", "public void setMaximum(Number max) {\n this.max = max;\n }", "@JSProperty(\"maxRange\")\n double getMaxRange();", "public void setMAX_ITERACOES(int MAX_ITERACOES) \r\n {\r\n if(MAX_ITERACOES > 0)\r\n this.MAX_ITERACOES = MAX_ITERACOES;\r\n }", "public float getSilicateMax() {\n return silicateMax;\n }", "public void setMaxPrelevabile(float max) {\n\t\tbuttonMax.setText(String.valueOf(max));\n\t\tbutton50.setEnabled((max >= 50));\n\t\tbutton100.setEnabled((max >= 100));\n\t\tbutton150.setEnabled((max >= 150));\n\t\tbutton250.setEnabled((max >= 250));\n\t\tbutton500.setEnabled((max >= 500));\n\t}", "public void setVarimaxMaximumIterations(int max){\n this.nVarimaxMax = max;\n }", "public void setMax( float max )\n { \n this.max = max;\n show_text();\n }", "private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }", "public static double limitRange( double val )\n {\n if( val > 1.0 )//If number is greater than 1.0, it becomes 1.0.\n {\n val = 1.0; \n }\n else if( val < -1.0 )//Else if number is less than -1.0, it becomes -1.0.\n {\n val = -1.0;\n }\n \n //Returns the limited number\n return val;\n }", "public String getMaxValue () {\n return maxValue;\n }", "public void setMiterLimit(float limit);", "public int setPhosphateMax(Float phosphateMax) {\n try {\n setPhosphateMax(phosphateMax.floatValue());\n } catch (Exception e) {\n setPhosphateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return phosphateMaxError;\n }", "float xMax();", "private void setNitrateMaxError (float nitrateMax, Exception e, int error) {\n this.nitrateMax = nitrateMax;\n nitrateMaxErrorMessage = e.toString();\n nitrateMaxError = error;\n }", "public Double getMaximumValue () {\r\n\t\treturn (maxValue);\r\n\t}", "public void setMaxRange(double maxRange) {\n this.maxRange = maxRange;\n }", "private void setSilicateMaxError (float silicateMax, Exception e, int error) {\n this.silicateMax = silicateMax;\n silicateMaxErrorMessage = e.toString();\n silicateMaxError = error;\n }", "public float getLimit() {\n return limit;\n }", "int getMaxScale();", "public java.math.BigInteger getLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "@In Integer max();", "@In Integer max();", "public long getPropertyVolumeMax();", "E maxVal();" ]
[ "0.7726424", "0.7317916", "0.69802386", "0.6428719", "0.63742197", "0.6355864", "0.62988436", "0.62473524", "0.62228185", "0.6201624", "0.61493516", "0.61371785", "0.61229455", "0.6120714", "0.6088678", "0.6071996", "0.60703295", "0.60513794", "0.60309875", "0.6024295", "0.60203326", "0.601513", "0.599645", "0.5983001", "0.5976302", "0.59700596", "0.593098", "0.59102166", "0.59046847", "0.5878986", "0.58530736", "0.58484507", "0.5847577", "0.5842236", "0.58333236", "0.58329237", "0.5829979", "0.5816439", "0.5787549", "0.5787348", "0.5783359", "0.57773244", "0.5775127", "0.57608587", "0.57493615", "0.5739509", "0.57245725", "0.57182175", "0.5710054", "0.5707733", "0.5707177", "0.5705147", "0.5702265", "0.56880236", "0.5686561", "0.5684351", "0.56794214", "0.56776696", "0.56681967", "0.56551737", "0.56279355", "0.56122077", "0.5611425", "0.56054384", "0.55958754", "0.55909836", "0.5589092", "0.55860615", "0.5579302", "0.55739504", "0.55729216", "0.55727774", "0.55684125", "0.55571985", "0.55513537", "0.5551082", "0.55458033", "0.5541954", "0.5533435", "0.55331516", "0.55120784", "0.5510994", "0.5509474", "0.55058134", "0.5502362", "0.54929245", "0.5489507", "0.5482724", "0.5481967", "0.54785967", "0.54730076", "0.5470967", "0.5470871", "0.54669124", "0.5464513", "0.5464497", "0.54618835", "0.54618835", "0.54589057", "0.5454272" ]
0.82397676
0
Recupera o valor de idInstituicao.
@Transient /** * @return the idInstituicao */ public Integer getIdInstituicao() { return idInstituicao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getIdInstituicao() {\n\t\treturn idInstituicao;\n\t}", "public String getInstId() {\r\n return instId;\r\n }", "public String getInoId();", "public void setIdInstituicao(Integer idInstituicao) {\n\t\tthis.idInstituicao = idInstituicao;\n\t}", "public Integer getId_inventario() {\r\n return id_inventario;\r\n }", "public Integer getId() {\n return aao.getId();\n }", "public int getIdentificador() {\r\n\t\treturn identificador;\r\n\t}", "@Transient\r\n\tpublic static Long getIdActivida() {\r\n\t\treturn idActivida;\r\n\t}", "public String getIdentificacao() {\n\t\treturn identificacao;\n\t}", "public int getCampoIdentificacao() {\r\n return campoIdentificacao;\r\n }", "public int getcodigoIdentificador() {\r\n\t\treturn codigoIdentificador;\r\n\t}", "public int getId()\r\n/* 75: */ {\r\n/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;\r\n/* 77: */ }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public Integer getInstNo() {\n\t\treturn instNo;\n\t}", "public int getId() {\n return instance.getId();\n }", "public int getId()\r\n/* 208: */ {\r\n/* 209:381 */ return this.idCargaEmpleado;\r\n/* 210: */ }", "public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}", "public java.lang.Long getUsua_id();", "@Override\n\tpublic Integer getId() {\n\t\treturn ofertaOpexId;\n\t}", "public int getId() {\n return instance.getId();\n }", "public int getiid(){\r\n return Iid;\r\n }", "public java.lang.Long getIdentificador()\r\n {\r\n return this.identificador;\r\n }", "public int getId()\r\n/* 69: */ {\r\n/* 70:103 */ return this.idAutorizacionEmpresaSRI;\r\n/* 71: */ }", "public Integer getId() {\n return id.get();\n }", "Integer getId();", "Integer getId();", "Integer getId();", "public int getIdentifiant() {\r\n return identifiant;\r\n }", "int getIdInstance();", "public java.lang.Long getId_tecnico();", "public Integer getId(){\n\t\treturn id;\n\t}", "public long getIdCadastroSelecionado(){\r\n \treturn idCadastroSelecionado;\r\n }", "public Integer getIdUsuario() {\n return idUsuario;\n }", "Integer getID();", "Integer getID();", "java.lang.String getAoisId();", "public static int getAisId() {\n return aisId;\n }", "public Integer getInsid() {\n return insid;\n }", "public Integer getId() {\r\n return this.id;\r\n }", "public Integer getIdLocacion();", "private Integer getId() { return this.id; }", "public Long getIdVieSociale() {\r\n\t\treturn idVieSociale.get();\r\n\t}", "public Integer getId() { return this.id; }", "public Integer getaId() {\r\n return aId;\r\n }", "public int getIdenti() {\r\n return identi;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() {\r\n return id;\r\n }", "public Integer getId() \r\n\t{\r\n\t\treturn id;\r\n\t}", "public Integer getId() {\n return (Integer) get(0);\n }", "public Integer getId()\n\t{\n\t\treturn this.id; \n\t}", "public abstract long getSdiId();", "public Integer getId() {\n return (Integer) get(\"id\");\n }", "public BigDecimal getIdImpuesto() {\n return idImpuesto;\n }", "public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }", "public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }", "public Integer getsId() {\n return sId;\n }", "public Object getID()\n {\n return data.siObjectID;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId() {\n return this.id;\n }", "public Integer getId () {\n return id;\n }", "int getID()\n throws RemoteException;" ]
[ "0.8501832", "0.7172866", "0.7116168", "0.69970375", "0.6880455", "0.6782101", "0.67784935", "0.6731005", "0.66801596", "0.6671332", "0.6670825", "0.66292846", "0.64715487", "0.6461721", "0.6461721", "0.6461721", "0.6461721", "0.6461721", "0.6461721", "0.6461721", "0.64588", "0.64115715", "0.6402898", "0.6382626", "0.63756585", "0.6375627", "0.6374545", "0.63694626", "0.6344197", "0.6292283", "0.62917584", "0.6278382", "0.6278382", "0.6278382", "0.6268741", "0.6257692", "0.62549746", "0.6241147", "0.62347883", "0.621379", "0.6209399", "0.6209399", "0.6204667", "0.6201209", "0.6197837", "0.61812013", "0.6180558", "0.6161246", "0.61503386", "0.61502755", "0.6140994", "0.6139817", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.6139764", "0.61394244", "0.61369556", "0.612989", "0.612708", "0.61269605", "0.6120065", "0.6119096", "0.61167705", "0.6113051", "0.61118776", "0.6110008", "0.6110008", "0.6110008", "0.6110008", "0.6105714", "0.6105714", "0.60994637", "0.60985404" ]
0.785436
1
TODO return your MyListItem from cursor.
public static MyListItem fromCursor(Cursor cursor) { MyListItem myListItem=new MyListItem(); myListItem._id=cursor.getInt(0); myListItem.amount=cursor.getString(1); myListItem.dateTime=cursor.getString(2); myListItem.type=cursor.getShort(3); return myListItem; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static MyListItem fromCursor(Cursor cursor) {\n MyListItem m = new MyListItem();\n return m;\n }", "ListItem createListItem();", "public List<Item> getItemList();", "@Override\n public Object getItem(int arg0) {\n return list.get(arg0);\n }", "public abstract String getListItem (Object obj, int i, String itemProp) \n throws SAFSException;", "ICpItem getCpItem();", "@Override\r\n\tpublic Object getItem(int posstion) {\n\t\treturn list.get(posstion);\r\n\t}", "@Override\r\n public Object getItem(int position) {\n return list.get(position);\r\n }", "@Override\n public MyItem getItem(int position){\n return mItems.get(position);\n }", "Object get()\n\t{\n\t\tif (length == 0 ) \n\t\t{\t\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on empty List\");\n\t\t}\n\t\tif (cursor == null\t) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on cursor that is off the list\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn cursor.data;\n\t\t}\n\t}", "public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}", "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn myList.get(position);\n\t}", "public Item getItem() { \n return myItem;\n }", "@Override\n public ListViewItem getItem(int position) {\n return list.get(position);\n }", "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "@Override\n public Object getItem(int position) {\n return list.get(position);\n }", "@Override\n public IDataCursor getCursor() {\n return new CaseInsensitiveElementListIDataCursor();\n }", "@Override\n\t\t\tpublic Object getItem(int position){\n\t\t\t\treturn list.get(position);\n\t\t\t}", "@Override\n public Object getItem(int position) {\n return mList.get(position);\n }", "@Override\n public Object getItem(int item) {\n return dataList.get(item);\n }", "@Override\r\n\t\tpublic Search_contact_listview_item getItem(int position) {\n\t\t\treturn listItems.get(position);\r\n\t\t}", "@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn mList.get(arg0);\r\n\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}", "CodeableConcept getItem();", "@Override\r\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\r\n\t\t}", "@Override\n\tpublic Object getItem(final int pos) {\n\t\treturn list.get(pos);\n\t}", "@Override\n public Object getItem(final int position) {\n return getItemCursor(position);\n }", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn mList.get(position);\n\t\t}", "ArrayList<IItem> getItems(Position position);", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn list.get(arg0);\n\t}", "@Override\n\t\tpublic Object getItem(int arg0) {\n\t\t\treturn listadapter.get(arg0);\n\t\t}", "public BSPageinationListItem getListItem()\n {\n return (BSPageinationListItem) getParent();\n }", "@Override\n public Object getItem(int position) {\n return itemList.get(position);\n }", "@Override\n public Object getItem(int index) {\n return internalList.get(index);\n }", "@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn lists.get(arg0);\r\n\t}", "@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn BaseData.list.get(position);\n\t\t}", "@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent) {\n View view = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.main_list_item, parent, false);\n ViewHolder viewHolder = new ViewHolder(view);\n view.setTag(viewHolder);\n return view;\n }", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn recordletinlist.get(position);\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}", "@Override\n public Object getItem(int position) {\n return listInfoList.get(position);\n }", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn mList.get(position);\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn mList.get(position);\r\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn listitem.get(position);\n\t}", "Identifiable item();", "@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn listab.get(arg0);\r\n\t}", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn listItems.get(position);\r\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn litigantList.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn ArrayList.get(position);\n\t}", "@Override\n\tpublic Results getItem(int position) {\n\t\treturn objects.get(position);\n\t}", "java.util.List<java.lang.Integer> getItemList();", "@Override\n public Iterator<Item> iterator(){return new ListIterator();}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn mList.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn mList.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn mList.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn mList.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position)\n\t{\n\t\treturn list.get(position);\n\t}", "@Override\n public ChatListItem getItem(int position) {\n return mChatListItems.get(position);\n }", "java.util.List<com.rpg.framework.database.Protocol.Item> \n getItemsList();", "java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> \n getItemList();", "@Override\n\t\t\tpublic Object getItem(int position) {\n\t\t\t\tif (list!=null) {\n\t\t\t\t\treturn list.get(position);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n public Object getItem(int position) {\n return result.get(position);\n }", "@VTID(41)\n com.exceljava.com4j.excel.ListObject getListObject();", "@Override\n public Cursor getItemCursor(final int position) {\n return BaseSimpleCursorSupportAdapter.getItemCursor(position, mCursor);\n }", "@Override\n public NewsArticleObject getItem(int i) {\n return newsArticleList.get(i);\n }", "public UserItem getUserItemByIds(UserItem ui);", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn this.list.get(position);\n\t}", "@Override\n\tpublic Object getItem(int position) {\n\t\treturn this.list.get(position);\n\t}", "@Override\n public Object getItem(int position)\n {\n return mItemList.get(position);\n }", "@Override\n public Object getItem(int position)\n {\n return mItemList.get(position);\n }", "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn listmore.get(position);\r\n\t}", "Cursor getList(DBHelper db) {\r\n sdb = db.getReadableDatabase();\r\n String[] columns = {\"list_name\"};\r\n cursor = sdb.query(table_name_1, columns, null, null, null, null, null);\r\n return cursor;\r\n }", "public Object getItem(int position) {\n return list.get(position);\n }" ]
[ "0.78657246", "0.643764", "0.6390429", "0.6310492", "0.6227194", "0.6202488", "0.6201607", "0.6173646", "0.6160503", "0.61184216", "0.60986197", "0.60979044", "0.60879755", "0.608702", "0.6074039", "0.6066558", "0.6066558", "0.6066558", "0.6066558", "0.6066558", "0.6066558", "0.6049584", "0.60484475", "0.6047049", "0.60407364", "0.60131764", "0.6012285", "0.5968153", "0.5968153", "0.5968153", "0.59527373", "0.59424126", "0.59419996", "0.5941208", "0.59396213", "0.59293014", "0.592082", "0.592082", "0.592082", "0.592082", "0.59116447", "0.5899565", "0.5889889", "0.58799064", "0.5869375", "0.5869331", "0.58404243", "0.58339226", "0.58265156", "0.58265156", "0.58265156", "0.5819574", "0.5793263", "0.5793263", "0.5766543", "0.57620776", "0.57587606", "0.57579213", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5754093", "0.5751797", "0.5746627", "0.57358754", "0.5729342", "0.5725804", "0.5720975", "0.5720975", "0.5720975", "0.5720975", "0.57207286", "0.5714129", "0.5698004", "0.5687994", "0.56877756", "0.56865305", "0.56757426", "0.5672172", "0.5665594", "0.56536895", "0.56520885", "0.56520885", "0.5649825", "0.5649825", "0.56396365", "0.5635422", "0.5634639" ]
0.7666468
1
change view in linearlayout
@Override public void onClick(View v) { content.removeAllViews(); final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null); final View colour = view.findViewById(R.id.colour_preview); TextView colourName = (TextView) view.findViewById(R.id.colour_id); colour.setBackgroundColor(Color.rgb(primaryColour.red(), primaryColour.green(), primaryColour.blue())); colourName.setText(R.string.primary); TextView cancel, save; cancel = (TextView) view.findViewById(R.id.cancel_button); save = (TextView) view.findViewById(R.id.save_button); // Change Seekbars to reflect chosen colour final SeekBar redBar, greenBar, blueBar; redBar = (SeekBar) view.findViewById(R.id.red_bar); greenBar = (SeekBar) view.findViewById(R.id.green_bar); blueBar = (SeekBar) view.findViewById(R.id.blue_bar); redBar.setProgress(primaryColour.red()); greenBar.setProgress(primaryColour.green()); blueBar.setProgress(primaryColour.blue()); // show hex value EditText hex = (EditText) view.findViewById(R.id.hex_code); hex.setText(String.format("#%s", primaryColour.asHex())); // show rgb numbers final EditText red, blue, green; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); red.setText(String.valueOf(primaryColour.red())); green.setText(String.valueOf(primaryColour.green())); blue.setText(String.valueOf(primaryColour.blue())); class SeekChanged implements SeekBar.OnSeekBarChangeListener { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if(fromUser) { red.setText(String.valueOf(redBar.getProgress())); green.setText(String.valueOf(greenBar.getProgress())); blue.setText(String.valueOf(blueBar.getProgress())); } colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress())); } @Override public void onStartTrackingTouch(SeekBar seekBar) {} @Override public void onStopTrackingTouch(SeekBar seekBar) {} } redBar.setOnSeekBarChangeListener(new SeekChanged()); greenBar.setOnSeekBarChangeListener(new SeekChanged()); blueBar.setOnSeekBarChangeListener(new SeekChanged()); cancel.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { content.removeAllViews(); content.addView(settings); } }); save.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // save colour as ColourPack and add to Theme Settings.Section section; section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_PRIMARY); EditText red, green, blue; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); String r, g, b; r = red.getText().toString(); g = green.getText().toString(); b = blue.getText().toString(); section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r)); section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g)); section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b)); MainActivity.instance.themeSettings.save(); // go back to theme settings content.removeAllViews(); content.addView(settings); } }); content.addView(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }", "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "void setView(View v);", "public void setView(View view);", "@Override\r\n\tprotected void setLayout() {\n\t\tsetContentView(R.layout.edit_trace_info_activity);\r\n\t}", "public void SetActivityLayout(View lv) {\n\t\tcontainer.removeAllViews();\n\t\tcontainer.addView(lv);\n\n\t}", "@Override\n public void onClick(View v) {\n //If the view is the switch layout button\n if(v.getId() == R.id.switchLayouts)\n {\n //If the button is checked/toggled\n if(changeViewSwitch.isChecked())\n {\n //Set the text to grid\n currentView.setText(R.string.gridView);\n //Set the layout manager to staggered grid view\n this.layoutManager = new StaggeredGridLayoutManager(3, LinearLayoutManager.HORIZONTAL);\n //this.layoutManager = new GridLayoutManager(this, 2);\n //Set the layoutmanager of the recycler view to the layout manager object\n this.recyclerView.setLayoutManager(layoutManager);\n }\n else\n {\n //Set the text to list\n currentView.setText(R.string.listView);\n //Set the layout manager to staggered grid view\n this.layoutManager = new LinearLayoutManager(this);\n //Set the layoutmanager of the recycler view to the layout manager object\n this.recyclerView.setLayoutManager(layoutManager);\n }\n }\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n view_top.layout((int) mDrange + dip2px(getContext(), 20) - view_top.getMeasuredWidth() / 2, t, (int) mDrange + view_top.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight());\n view_mid.layout((int) mDrange + dip2px(getContext(), 20) - view_mid.getMeasuredWidth() / 2, view_top.getMeasuredHeight(), (int) mDrange + view_mid.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight());\n pb.layout(dip2px(getContext(), 20) + l, view_top.getMeasuredHeight() + view_mid.getMeasuredHeight(), r - dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight() + pb.getMeasuredHeight());\n }", "private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}", "public void mo51862e(LinearLayout linearLayout, Activity activity) {\n linearLayout.addView(super.mo51863a(jh.f39467b, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39476k, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39474i, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39473h, activity, this.f39360a), linearLayout.getChildCount());\n }", "@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t((LinearLayout) getParent()).addView(LogisticTaskFareGroupView.this.clone());\n\n\t\t\t}", "private void setCorrectView(){\n\n if(lisCompanies.size() > 0) {\n // if companies, display them\n //Toast.makeText(lsv.getContext(), \"There are companies! #\" + lisCompanies.size(), Toast.LENGTH_LONG).show();\n lsv.setVisibility(View.VISIBLE);\n llv.setVisibility(View.GONE);\n }\n else {\n // if no companies, display \"+ Add Company\" w image\n lsv.setVisibility(View.GONE);\n llv.setVisibility(View.VISIBLE);\n }\n }", "private void initView() {\n\n main_ll_rl = (LinearLayout) findViewById(R.id.main_ll_rili);\n main_ll_xw = (LinearLayout) findViewById(R.id.main_ll_xw);\n main_ll_wode = (LinearLayout) findViewById(R.id.main_ll_wd);\n main_ll_self = (LinearLayout) findViewById(R.id.main_ll_self);\n main_ll_hq = (LinearLayout) findViewById(R.id.main_ll_hq);\n main_zt_color = (LinearLayout) findViewById(R.id.main_zt_color);\n\n main_zt_color.setBackgroundColor(Color.parseColor(\"#e9e9ea\"));\n\n imgrl = (ImageView) findViewById(R.id.imgrili);\n imgxw = (ImageView) findViewById(R.id.imgxw);\n imgwd = (ImageView) findViewById(R.id.imgwd);\n imggr = (ImageView) findViewById(R.id.imgself);\n imghq = (ImageView) findViewById(R.id.imghq);\n\n main_rl_tv = (TextView) findViewById(R.id.main_rl_tv);\n main_xw_tv = (TextView) findViewById(R.id.main_xw_tv);\n main_wd_tv = (TextView) findViewById(R.id.main_wd_tv);\n main_gr_tv = (TextView) findViewById(R.id.main_self_tv);\n main_hq_tv = (TextView) findViewById(R.id.main_hq_tv);\n\n main_ll_rl.setOnClickListener(this);\n main_ll_xw.setOnClickListener(this);\n main_ll_wode.setOnClickListener(this);\n main_ll_hq.setOnClickListener(this);\n main_ll_self.setOnClickListener(this);\n }", "@Override\n\tpublic void setView(View view) {\n\n\t}", "@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n LinearLayout ll =(LinearLayout)arg0.findViewById(R.id.linearLayout22);\n task =(Task) getChild(groupPosition,childPosition);\n Log.d(\"CHILD\", task.toString());\n\t\t\t\tif(ll.getVisibility()==View.VISIBLE){\n ll.setVisibility(View.GONE);\n\t\t\t\t}else{\n linearLayout=(LinearLayout)arg0.findViewById(R.id.linearLayoutText);\n ll.setVisibility(View.VISIBLE);\n if(previosLL!=null&&previosLL.getVisibility()==View.VISIBLE&&previosLL!=ll){\n previosLL.setVisibility(View.GONE);\n }//if(previosLL!=lr)previosLL=ll;\n previosLL=ll;\n\t\t\t\t}\n\t\t\t//lr.getVisibility()=View.VISIBLE ? lr.setVisibility(Viev.GONE):lr.setVisibility(View.VISIBLE)\n\t\t\t}", "@Override\r\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tLog.v(\"MyView01>layout\",\"f-1\");\r\n\t\t\tsuper.layout(l, t, r, b);\r\n\t\t\tLog.v(\"MyView01>layout\",\"f-2\");\r\n\t\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tsuper.onLayout(changed, l, t, r, b);\n\t\tif(changed){\n\t\t\tthis.scrollTo(0, 0);\n\t\t}\n\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b)\n\t{\n\n\t\tDisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n\t\tint screenWidth = displayMetrics.widthPixels;\n\t\t//int screenHeight = displayMetrics.heightPixels;\n\t\tint childTop = 30;\n\t\tint childLeft = 20;\n\t\tint cameraPicWidth = screenWidth / 5;\n\t\tint cameraPicHeight = 2 * cameraPicWidth;\n\t\tint space = 20;\n\t\tint column = 0;\n\n\t\tfinal int count = getChildCount();\n\t\tfor (int i = 0; i < count; i++)\n\t\t{\n\t\t\tfinal View child = getChildAt(i);\n\t\t\tif (child.getVisibility() != View.GONE)\n\t\t\t{\n\t\t\t\tchild.setVisibility(View.VISIBLE);\n\t\t\t\t//child.measure(r - l, b - t);\n\t\t\t\tchild.layout(childLeft + space, childTop, childLeft + cameraPicWidth + space, childTop + cameraPicHeight + space);\n\t\t\t\tcolumn++;\n\t\t\t\tif (childLeft < screenWidth - 2 * (space + cameraPicWidth))\n\t\t\t\t{\n\t\t\t\t\tchildLeft += cameraPicWidth + space;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t\tchildLeft = 20;\n\t\t\t\t\tchildTop += cameraPicHeight;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setCustomView(View view, LayoutParams layoutParams) {\n\t\t\n\t}", "private LinearLayout updateLayout(View view, int layoutId) {\r\n LinearLayout layout = (LinearLayout) view.findViewById(layoutId);\r\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) layout.getLayoutParams();\r\n int marginInPx = SkyControlUtils.dpToPixel(4);\r\n params.setMargins(marginInPx, marginInPx, marginInPx, marginInPx);\r\n layout.setLayoutParams(params);\r\n layout.setClickable(true);\r\n layout.setBackgroundResource(R.drawable.view_clickable_background);\r\n\r\n return layout;\r\n }", "@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}", "void setScoreView(View v);", "private View modifyView(TextView view, int position) {\n MeshId item = this.getItem(position);\n if (item != null) {\n String text; // Text for the item in the list.\n int colour; // Colour for the text in the list.\n\n if (item.equals(deviceId)) {\n // Change text colour if is the current device's Id.\n text = \"This Device\";\n colour = R.color.blue;\n } else {\n // Otherwise, simply make the MeshId more readable and use the theme default colour.\n text = MeshHelper.getInstance().shortenMeshId(item);\n colour = android.R.color.primary_text_light;\n }\n view.setText(text);\n view.setTextColor(ContextCompat.getColor(getContext(), colour));\n }\n return view;\n }", "public void switchView(View view) {\r\n\t\tthis.currentView = view;\r\n\t\trenderView();\r\n\t}", "private void setViews() {\n\n }", "@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }", "protected void onLoadLayout(View view) {\n }", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "@Override\n\tprotected int getViewId() {\n\t\treturn R.layout.layout_square_live;\n\t}", "public LinearLayout getLinearLayout(String line){\n Resources r = getResources();\n String name = getPackageName();\n LinearLayout L=(LinearLayout)findViewById(r.getIdentifier(line,\"id\",name));\n L.removeAllViews();\n return L;\n }", "void updateView();", "void updateView();", "public void addView(View view) {\n view.setLayoutParams(new LinearLayout.LayoutParams(\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 1f));\n mLinearLayout.addView(view);\n }", "private void milestonesLayoutHandler() {\n layoutMilestones = (LinearLayout) findViewById(R.id.layoutMilestones);\n txtViewMilestonesCountToday = (AutoResizeTextView) findViewById(R.id.txtViewMilestonesCountToday);\n txtMilestonesYesterdayValue = (TextView) findViewById(R.id.txtMilestonesYesterdayValue);\n\n layoutMilestones.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"Coming soon\", Toast.LENGTH_SHORT).show();\n }\n });\n\n txtViewMilestonesCountToday.setText(String.valueOf(userSharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0)));\n txtMilestonesYesterdayValue.setText(\"-\");\n }", "private void viewChange() {\n currentView = (TextView) findViewById(R.id.currView);\n currentView.setText(counters.get(counterPosition).toString());\n }", "protected abstract void iniciarLayout();", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "@Override\r\n\t\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\t\tint bottom) {\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-1\");\r\n\t\t\tsuper.onLayout(changed, left, top, right, bottom);\r\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-2\");\r\n\t\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n if (flag) {\n //进行一些初始化的操作\n/* if ((mOvalHeight == -1) || (mOvalWidth == -1)) {\n if (mWidth > mHeight) {\n mOvalHeight = (mHeight - 100) / 2;\n mOvalWidth = mOvalHeight + 100;\n } else {\n mOvalWidth = (mWidth - 100) / 2;\n mOvalHeight = mOvalWidth + 100;\n }\n }else {\n mOvalWidth /= 2;\n mOvalHeight /= 2;\n }*/\n\n if (mOvalHeightMargin != -1) {\n mOvalHeight = (mHeight - mOvalHeightMargin * 2) / 2;\n } else if (mOvalHeight == -1) {\n mOvalHeight = mHeight / 2;\n }\n if (mOvalWidthMargin != -1) {\n mOvalWidth = (mWidth - mOvalWidthMargin * 2) / 2;\n } else if (mOvalWidth == -1) {\n mOvalWidth = mWidth / 2;\n }\n\n\n if ((mChildWidth == -1) && (mChildHeight == -1)) {\n mChildWidth = 50;\n mChildHeight = 50;\n }\n\n //下面是获取所有的子view,给子view分配初始位置,默认第一个是270度,相当于y轴负半轴。\n mChildCount = getChildCount();\n mChildrenView = new View[mChildCount];\n mAngles = new double[mChildCount];\n mAngles[0] = 270;\n double j = 360 / mChildCount;\n for (int i = 0; i < mChildCount; i++) {\n mChildrenView[i] = getChildAt(i);\n final int finalI = i;\n mChildrenView[i].setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n if (itemClickListener == null)\n Log.e(TAG, \"你点击了的position = \" + finalI + \",但是itemClickListener == null\");\n else {\n itemClickListener.onItemClick(v, finalI, true);\n }\n }\n });\n if (i > 0) {\n if ((mAngles[i] + j) <= 360) {\n mAngles[i] = mAngles[i - 1] + j;\n } else {\n mAngles[i] = mAngles[i - 1] + j - 360;\n }\n }\n int x = (int) (mOvalWidth * Math.cos(mAngles[i] * Math.PI / 180));\n int y = (int) (mOvalHeight * Math.sin(mAngles[i] * Math.PI / 180));\n mChildrenView[i].layout(mWidth / 2 - x - mChildWidth / 2, mHeight / 2 - y - mChildHeight / 2, mWidth / 2 - x + mChildWidth / 2, mHeight / 2 - y + mChildHeight / 2);\n }\n flag = false;\n }\n }", "private void setViews() {\n lv.setAdapter(adapter);\n\n dialog2 = new MiddleDialog2(INSTANCE, getResources().getString(R.string.title), getResources().getString(R.string.value), new MiddleDialog2.onBottonListener() {\n @Override\n public void onOk() {\n\n finish();\n }\n },R.style.registDialog);\n }", "private void setupView(JLabel view, int w, int h, int x, int y) {\n\n view.setSize(w,h);\n view.setLocation(x,y);\n\n add(view);\n\n }", "private void switchToPickLayout()\n {\n this.fragmentActivity.findViewById(R.id.transferImagesLayout).setVisibility(View.GONE);\n this.fragmentActivity.findViewById(R.id.pickImagesLayout).setVisibility(View.VISIBLE);\n }", "@Override\r\n\tprotected void layout() {\n\t\tsetContentView(R.layout.activity_change_password);\r\n\t\tsetBackButton();\r\n\t\tfindViewById(R.id.regist_sure).setOnClickListener(this);\r\n\t}", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "private void addViews() {\n\t}", "@Override\n\tprotected int initView() {\n\t\treturn R.layout.activity_zhusu_detail;\n\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tl = 0;\n\t\tt = 0;\n\t\tr = getWidth();\n\t\tb = getHeight();\n\n\t\tif (header != null) {\n\t\t\theader.layout(l, t, r, header.getMeasuredHeight());\n\t\t\titem.layout(l, header.getMeasuredHeight(), r, b);\n\t\t} else if (divider != null) {\n\t\t\tdivider.setBounds(l, t, r, dividerHeight);\n\t\t\titem.layout(l, dividerHeight, r, b);\n\t\t} else {\n\t\t\titem.layout(l, t, r, b);\n\t\t}\n\t}", "@Override\n\tpublic void setCustomView(View view) {\n\t\t\n\t}", "public void switchLayout(int i) {\n this.mCurrentLayout = i;\n LayoutItem layoutItem = (LayoutItem) this.mLayoutItems.get(this.mCurrentLayout);\n this.mLayoutAdapter.switchLayout(layoutItem);\n this.mImageView.setLayoutItem(layoutItem);\n }", "private void initView() {\n\t\trl_edit = (RelativeLayout) findViewById(R.id.rl_edit);\n\t\ttv_all=(TextView) findViewById(R.id.tv_all);\n\t\ttv_dle=(TextView) findViewById(R.id.tv_dle);\n\t\ttv_all.setOnClickListener(this);\n\t\ttv_dle.setOnClickListener(this);\n\t\trl_wd = (RelativeLayout) findViewById(R.id.main_rl_my);\n\t\trl_wd.setOnClickListener(this);\n\t\tmain_rl_gwc = (RelativeLayout) findViewById(R.id.main_rl_gwc);\n\t\tmain_rl_gwc.setOnClickListener(this);\n\t\trl_sy = (RelativeLayout) findViewById(R.id.main_rl_sy);\n\t\trl_sy.setOnClickListener(this);\n\n\t\tnext_sure = (TextView) findViewById(R.id.next_sure);\n\t\tnext_sure.setVisibility(View.VISIBLE);\n\t\tnext_sure.setText(\"确认\");\n\t\tnew TitleMenuUtil(MyMessage.this, \"我的消息\").show();\n\t\tmyAdapter = new MessageAdapter(MyMessage.this, myList);\n\t\teva_nodata = (LinearLayout) findViewById(R.id.eva_nodata);\n\t\tXlistview = (XListView) findViewById(R.id.x_listview);\n\t\t// refund_listview.getmFooterView().getmHintView().setText(\"�Ѿ�û�������\");\n\t\tXlistview.setPullLoadEnable(true);\n\t\tXlistview.setXListViewListener(this);\n\t\tXlistview.setDivider(null);\n\n\t\tXlistview.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t Intent i = new Intent(MyMessage.this, MymsgDetail.class);\n\t\t\t\t i.putExtra(\"id\", myList.get(position-1).getId()+\"\");\n\t\t\t\t startActivity(i);\n\t\t\t}\n\t\t});\n\t\tXlistview.setAdapter(myAdapter);\n\n\t\tnext_sure.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (MyApplication.getIsSelect()) {\n\t\t\t\t\t// ��������ɾ�����\n\t\t\t\t\tnext_sure.setText(\"取消\");\n\t\t\t\t\tMyApplication.setIsSelect(false);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\trl_editno.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_edit.setVisibility(View.GONE);\n\t\t \n\t\t\t\t} else {\n\t\t\t\t\tnext_sure.setText(\"删除\");\n\t\t\t\t\tMyApplication.setIsSelect(true);\n\t\t\t\t\trl_edit.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_editno.setVisibility(View.GONE);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void showLayout(String layout) {\n studentList.setVisibility(View.GONE);\n addTable.setVisibility(View.GONE);\n editTable.setVisibility(View.GONE);\n\n switch(layout) {\n case \"studentList\":\n Student.this.recreate();\n// startActivity(getIntent());\n// studentList.setVisibility(View.VISIBLE);\n// adapter.notifyDataSetChanged();\n break;\n case \"addTable\":\n addTable.setVisibility(View.VISIBLE);\n break;\n case \"editTable\":\n editTable.setVisibility(View.VISIBLE);\n break;\n default:\n Toast.makeText(this, \"Warning: showLayout() layout do not match.\", Toast.LENGTH_SHORT).show();\n break;\n }\n\n\n }", "private void setLayoutsFromMood() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n int mPosition = historicList.get(i).getPosition();\n if (mPosition > 4) {\n mPosition = 4;\n } else if (mPosition < 0) {\n mPosition = 0;\n }\n layout.setBackgroundColor(ContextCompat.getColor(this, historyListMood.get(mPosition).getBackgroundColor()));\n layout.setVisibility(View.VISIBLE);\n\n }\n\n\n }", "protected void init(Glk glk, Window oldw, Window neww, int method, int size) {\n \t\tmWaitingForLayout = false;\n \t\t_glk = glk;\n \t\tLinearLayout l = _view = new _View(glk.getContext());\n \t\tfinal PairWindow parent = oldw.getParent();\n \t\tsetParent(parent);\n \t\tif (parent != null)\n \t\t\tparent.mChildren[parent.mChildren[0] == oldw ? 0 : 1] = this;\n \n \t\tint dir = (int) method & Window.WINMETHOD_DIRMASK; \n \t\t\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tl.setOrientation(LinearLayout.VERTICAL);\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tdefault:\n \t\t\tl.setOrientation(LinearLayout.HORIZONTAL);\n \t\t}\n \n \t\tView oldv = oldw.getView();\n \t\tWindow first, second;\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tfirst = oldw;\n \t\t\tsecond = neww;\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tdefault:\n \t\t\tfirst = neww;\n \t\t\tsecond = oldw;\n \t\t}\n \t\t\n \t\t// transfer layout params of the split window to the pair\n \t\tl.setLayoutParams(oldv.getLayoutParams());\n \t\toldv.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT, 0));\n \n \t\tViewGroup oldParent = (ViewGroup) oldv.getParent();\n \t\tassert(oldParent != null);\n \t\t\n \t\t// swap the pair in\n \t\tint parentIndex = (oldParent.getChildAt(0) == oldv) ? 0 : 1;\n \t\toldParent.removeView(oldv);\n \t\toldParent.addView(l, parentIndex);\n \t\t\n \t\toldw.setParent(this);\n \t\tneww.setParent(this);\n \t\tmChildren = new Window[] { first, second };\n \t\t\n \t\tl.addView(first.getView());\n \t\tl.addView(second.getView());\n \t\t\n \t\tdoSetArrangement(method, size, neww);\n \t}", "public abstract int presentViewLayout();", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int titleHeight = this.titleIconContainer.getMeasuredHeight();\n View view = this.titleIconContainer;\n view.layout(0, 0, view.getMeasuredWidth(), titleHeight);\n int containerWidth = getMeasuredWidth();\n int messageTop = ((ViewGroup.MarginLayoutParams) this.message.getLayoutParams()).topMargin + titleHeight;\n int messageWidth = this.message.getMeasuredWidth();\n int messageHeight = this.message.getMeasuredHeight();\n if (getLayoutDirection() == 1) {\n this.message.layout(containerWidth - messageWidth, messageTop, containerWidth, messageTop + messageHeight);\n } else {\n this.message.layout(0, messageTop, messageWidth, messageTop + messageHeight);\n }\n }", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tint childTop = 0;\n\t\tint childLeft = 0;\n\t\tint childWidth = 0;\n\t\tint childHeight = 0;\n\t\tint count = getChildCount();\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tView child = this.getChildAt(i);\n\t\t\tif (child.getVisibility() == View.GONE)\n\t\t\t\tcontinue;\n\t\t\tif (child instanceof RankImageView) {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = (int) (original_width * scale);\n\t\t\t\tchildHeight = (int) (original_height * scale);\n\t\t\t} else if (child instanceof TextView) {\n\t\t\t\tTextView tv = (TextView) child;\n\t\t\t\tchildTop = (int) (original_height * scale + name_spacing);\n\t\t\t\tchildLeft = (int) bp.getStrokeWidth();\n\t\t\t\tchildWidth = (int) (original_width * scale - 2 * bp.getStrokeWidth());\n\t\t\t\tchildHeight = (int) this.getFontHeight(tv.getPaint());\n\t\t\t} else {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = 0;\n\t\t\t\tchildHeight = 0;\n\t\t\t}\n\t\t\tchild.measure(childWidth, childHeight);\n\t\t\tchild.layout(childLeft, childTop, childLeft + childWidth, childTop\n\t\t\t\t\t+ childHeight);\n\t\t}\n\t}", "@Override\n public void setView(@NonNull final View view) {\n mNextView = view;\n }", "@Override\r\n\tpublic void addView(View v) {\r\n\t\tview = v;\r\n\t}", "public void setView(FruitView newView){\n\t\tthis.view = newView;\n\t}", "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 }", "@Override\n\n public void onClick(View v) {\n if (tl.getVisibility() == View.VISIBLE) {\n tl.setVisibility(View.GONE);\n } else {\n tl.setVisibility(View.VISIBLE);\n }\n\n }", "private void addStep(String step) {\n stepView = View.inflate(NewRecipe.this, R.layout.new_step_layout, null);\n\n txtInstruction = stepView.findViewById(R.id.txtInstruction);\n\n //count current item\n int count = stepListLayout.getChildCount();\n LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n param.setMargins(0, 10, 0, 10);\n stepView.setLayoutParams(param);\n stepView.setTag(\"step\" + count);\n\n stepListLayout.setBackgroundColor(Color.TRANSPARENT);\n stepListLayout.addView(stepView);\n\n //// set value after adding new row\n count = stepListLayout.getChildCount();\n stepText = stepView.findViewById(R.id.step);\n\n for (int i = 0; i < count; i++) {\n itemView = stepListLayout.getChildAt(i);\n if (itemView instanceof LinearLayout) {\n\n ImageButton imgDel = stepView.findViewById(R.id.imgDel);\n imgDel.setTag(stepView);\n imgDel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n removeView((View) v.getTag());\n }\n });\n stepText.setText((i + 1) + \":\");\n txtInstruction.setTag(\"Instruction\" + (i + 1));\n if (!step.equals(\"\")) {\n txtInstruction.setText(step);\n }\n }\n }\n\n }", "private void bindToLayout() {\n binding= DataBindingUtil.setContentView(this, R.layout.activity_app_guide);\n }", "@Override\n\tprotected void initView() {\n\t\tsuper.initView();\n mLnSelectLanguage = (LinearLayout) findViewById(R.id.lnSelectLanguage);\n mBtnContinue = (Button) findViewById(R.id.btnContinue);\n mEdtPhoneNumber = (EditText) findViewById(R.id.edtPhoneNumber);\n mTvNationNameView = (TextView) findViewById(R.id.tvNationNameView);\n mChkAccept = (CheckBox) findViewById(R.id.chkAccept);\n mTvDieuKhoan = (TextView) findViewById(R.id.tvDieuKhoan);\n mTvNotifi1 = (TextView) findViewById(R.id.tvNotifi1);\n Utils.setTextViewHtml(mTvDieuKhoan,getString(R.string.dieukhoan));\n mLnSelectLanguage.setOnClickListener(this);\n mBtnContinue.setOnClickListener(this);\n mTvDieuKhoan.setOnClickListener(this);\n\n\t}", "@Override\n\tprotected void initView() {\n\t\tsetContentView(R.layout.activity_money_manage);\n\t\t\n\t\tfindViewById(R.id.bt_title_left).setOnClickListener(this);\n\t\tfindViewById(R.id.bt_ok).setOnClickListener(this);\n\t}", "private void showNewCoursesLayoutOnClick(){\n newCourses.setVisibility(View.VISIBLE);\n\n }", "@Override\n\tpublic void setContentView(int layoutResID) {\n\t\tView yourlayout = getLayoutInflater().inflate(layoutResID, null);\n\t\tRelativeLayout titlebar = (RelativeLayout) (getLayoutInflater()\n\t\t\t\t.inflate(R.layout.title_bar, null));\n\t\ttitleView = (TextView) titlebar.findViewById(R.id.title_textview);\n\t\tbutton = (Button) titlebar.findViewById(R.id.titlebar_rightbutton);\n\t\tRelativeLayout layout = (RelativeLayout) titlebar\n\t\t\t\t.findViewById(R.id.yourlayout);\n\t\tlayout.addView(yourlayout);\n\t\tsetContentView(titlebar);\n\t\tRelativeLayout youlayout = (RelativeLayout) findViewById(R.id.yourlayout);\n\t\tyoulayout.addOnLayoutChangeListener(new OnLayoutChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onLayoutChange(View v, int left, int top, int right,\n\t\t\t\t\tint bottom, int oldLeft, int oldTop, int oldRight,\n\t\t\t\t\tint oldBottom) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tif (bottom > oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = false;\n\t\t\t\telse if (bottom < oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = true;\n\n\t\t\t}\n\t\t});\n\t}", "public void createSetUI(final LinearLayout linearLayout, final int setNum, Set set){\n final RelativeLayout relativeLayout=new RelativeLayout(this);\n RelativeLayout.LayoutParams params=new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams edittxtWeightParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n params.setMargins(0,5,0,0);\n relativeLayout.setLayoutParams(params);\n RelativeLayout.LayoutParams edittxtRepParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblxParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblSetsParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams btndelParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n\n EditText editTextWeight=new EditText(this);\n editTextWeight.setId(View.generateViewId());\n weightsIds.add(editTextWeight.getId());\n editTextWeight.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n EditText editTextRep=new EditText(this);\n editTextRep.setId(View.generateViewId());\n editTextRep.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n repsids.add(editTextRep.getId());\n TextView xdivider=new TextView(this);\n xdivider.setId(View.generateViewId());\n TextView setNumlbl=new TextView(this);\n setNumlbl.setId(View.generateViewId());\n Button btnDelSet=new Button(this);\n btnDelSet.setId(View.generateViewId());\n btnDelSet.setText(\"x\");\n btnDelSet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) { delSet(v); }});\n btnDelSet.setTextColor(Color.RED);\n btnDelSet.setHeight(80);\n btnDelSet.setWidth(80);\n btnDelSet.setBackgroundColor(Color.TRANSPARENT);\n editTextWeight.setHint(\"Weight\");\n editTextWeight.setHeight(125);\n editTextWeight.setWidth(350);\n editTextRep.setWidth(350);\n editTextRep.setHeight(125);\n setNumlbl.setTextSize(20);\n\n Typeface bold=Typeface.defaultFromStyle(Typeface.BOLD);\n setNumlbl.setTypeface(bold);\n editTextRep.setHint(\"Rep\");\n xdivider.setText(\"X\");\n setNumlbl.setText(\"Set \"+setNum);\n\n edittxtWeightParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtWeightParams.addRule(RelativeLayout.LEFT_OF, xdivider.getId());\n lblSetsParams.setMargins(10, 10, 10, 10);\n edittxtWeightParams.setMargins(10, 0, 10, 10);\n edittxtRepParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtRepParams.addRule(RelativeLayout.RIGHT_OF, xdivider.getId());\n edittxtRepParams.setMargins(10, 0, 10, 10);\n lblxParams.setMargins(10, 0, 10, 10);\n btndelParams.setMargins(5, 5,10,10);\n btndelParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n btndelParams.addRule(RelativeLayout.ALIGN_BASELINE, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n lblxParams.addRule(RelativeLayout.ALIGN_BASELINE, editTextRep.getId());\n editTextWeight.setLayoutParams(edittxtWeightParams);\n editTextRep.setLayoutParams(edittxtRepParams);\n setNumlbl.setLayoutParams(lblSetsParams);\n xdivider.setLayoutParams(lblxParams);\n btnDelSet.setLayoutParams(btndelParams);\n if (set!=null){\n editTextWeight.setText(set.getWeight()+\"\");\n editTextRep.setText(set.getReps()+\"\");\n }\n relativeLayout.addView(editTextWeight, edittxtWeightParams);\n relativeLayout.addView(editTextRep, edittxtRepParams);\n relativeLayout.addView(xdivider, lblxParams);\n relativeLayout.addView(setNumlbl, lblSetsParams);\n relativeLayout.addView(btnDelSet, btndelParams);\n\n View divider=new View(this);\n divider.setLayoutParams(new LinearLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, 1));\n divider.setBackgroundColor(Color.parseColor(\"#B3B3B3\"));\n linearLayout.addView(relativeLayout, params);\n linearLayout.addView(divider);\n setsViewList.add(relativeLayout);\n }", "@Override\r\n\t\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\t\t\t LayoutInflater inflater = LayoutInflater.from(arg2.getContext());\r\n\t\t\t View retView = inflater.inflate(R.layout.report_listitems, arg2, false);\r\n\t\t\t int j=i%2;\r\n\t\t\t retView.setBackgroundColor(colors[j]);\r\n\t\t\t i++;\r\n\t\t\t bindView(retView,arg0,arg1);\r\n\t\t\t return retView;\r\n\t\t\t \r\n\t\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int count = getChildCount();\n int parentWidth = getMeasuredWidth();\n\n //get the available size of child view\n int childLeft = this.getPaddingLeft();\n int childTop = this.getPaddingTop();\n\n //walk through each child, and arrange it from left to right\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n LayoutUtils.layoutChild(child, childLeft, childTop);\n childTop += child.getMeasuredHeight();\n }\n }\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n this.mDrawArea.left = 0;\n this.mDrawArea.top = 0;\n this.mDrawArea.right = r - l;\n this.mDrawArea.bottom = b - t;\n this.mZoomView.layout(this.mDrawArea.left, this.mDrawArea.top, this.mDrawArea.right, this.mDrawArea.bottom);\n if (!inZoomView() || changed) {\n resetZoomView();\n layoutViewItems(changed);\n }\n }", "@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n// int childLeft = getPaddingLeft();\n// int childRight = right - left - getPaddingRight();\n// int childTop = getPaddingTop();\n// int childBottom = bottom - top - getPaddingBottom();\n//\n// int tempLeftBottom = childTop + leftLabel.getMeasuredHeight();\n// leftLabel.item_personal_center_prefix(childLeft, childTop, childRight, tempLeftBottom);\n// childTop += leftLabel.getMeasuredHeight();\n//\n// int tempRightTop = childBottom - rightLebel.getMeasuredHeight();\n// rightLebel.item_personal_center_prefix(childLeft, tempRightTop, childRight, childBottom);\n// childBottom -= rightLebel.getMeasuredHeight();\n//\n//\n// inputEdit.item_personal_center_prefix(childLeft, childTop, childRight, childBottom);\n int childLeft = getPaddingLeft();\n int childTop = getPaddingTop();\n int childBottom = leftLabel.getMeasuredHeight();\n int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n leftLabel.measure(w, h);\n inputEdit.measure(w, h);\n rightLebel.measure(w, h);\n divider.measure(w, h);\n\n int childRight = leftLabel.getMeasuredWidth();\n leftLabel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft += leftLabel.getMeasuredWidth();\n childRight = right - getPaddingRight() - rightLebel.getMeasuredWidth();\n childBottom = inputEdit.getMeasuredHeight();\n inputEdit.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = right - rightLebel.getMeasuredWidth() - getPaddingRight();\n childRight = right - getPaddingRight();\n childBottom = rightLebel.getMeasuredHeight();\n rightLebel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = getPaddingLeft();\n childRight= right - getPaddingRight();\n childTop = getPaddingTop() + inputEdit.getMeasuredHeight();\n childBottom = childTop + 1;\n divider.layout(childLeft, childTop + dividerPadding, childRight, childBottom);\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.head_rl:\n\n\t\t\tmenu_mine.setVisibility(View.VISIBLE);\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "private void init() {\n left = (TextView) findViewById(R.id.tv_left);\n left.setOnClickListener(this);\n title = (TextView) findViewById(R.id.tv_mid);\n title.setText(\"车贴任务\");\n right = (TextView) findViewById(R.id.tv_right);\n right.setVisibility(View.VISIBLE);\n right.setText(\"任务说明\");\n right.setOnClickListener(this);\n lv_chetielist = (ListView) findViewById(R.id.lv_chetielist);\n lv_chetielist.setOnItemClickListener(this);\n rela_chetie_state1 = (RelativeLayout) findViewById(R.id.rela_chetie_state1);\n rela_chetie_state2 = (RelativeLayout) findViewById(R.id.rela_chetie_state2);\n rela_chetie_state3 = (RelativeLayout) findViewById(R.id.rela_chetie_state3);\n rela_chetie_state1.setOnClickListener(this);\n rela_chetie_state2.setOnClickListener(this);\n rela_chetie_state3.setOnClickListener(this);\n tv_chetie_state1 = (TextView) findViewById(R.id.tv_chetie_state1);\n tv_chetie_state2 = (TextView) findViewById(R.id.tv_chetie_state2);\n tv_chetie_state3 = (TextView) findViewById(R.id.tv_chetie_state3);\n line_chetie_state = (LinearLayout) findViewById(R.id.line_chetie_state);\n view_chetieview = findViewById(R.id.view_chetieview);\n SetColor();\n tv_chetie_state1.setTextColor(getResources().getColor(R.color.color_red));\n GetCheTieList(\"Y\");\n }", "protected void au() {\n View view = this.ln.get();\n if (view == null) {\n return;\n }\n ViewTreeObserver viewTreeObserver = this.lm.get();\n if ((view = view.getViewTreeObserver()) == viewTreeObserver) return;\n this.lm = new WeakReference<View>(view);\n view.addOnScrollChangedListener((ViewTreeObserver.OnScrollChangedListener)this);\n view.addOnGlobalLayoutListener((ViewTreeObserver.OnGlobalLayoutListener)this);\n }", "@Override\n\tpublic void updateView( View view ) {\n\t\t\n\t\tif ( mStyleBackground != null ) {\n\t\t\tview.setBackgroundColor( mStyleBackground.mBackground );\n\t\t}\n\t\t\n\t\tObject object = view.getTag();\n\t\tif ( object instanceof ViewHolder ) {\n\t\t\tViewHolder holder = (ViewHolder)object;\n\t\t\tlayoutImageView( view, R.id.imageViewCancelButton, mStyleCancelButton, android.R.drawable.ic_menu_close_clear_cancel );\n\t\t\tlayoutImageView( holder.mLeftIcon, mStyleImageLeft, mDataImageLeft );\n\t\t\tlayoutImageView( holder.mRightIcon, mStyleImageRight, mDataImageRight );\n\t\t\tlayoutTextView( holder.mMajorTextLeft, mStyleTextMajor, mDataTextMajor );\n\t\t\tlayoutTextView( holder.mMinorTextLeft, mStyleTextMinor, mDataTextMinor );\n\t\t\tlayoutTextView( holder.mMajorTextRight, mStyleTextMajorRight, mDataTextMajorRight );\n\t\t\tlayoutTextView( holder.mMinorTextRight, mStyleTextMinorRight, mDataTextMinorRight );\t\n\t\t\tif ( holder.mViewType != getViewType() ) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\tmButtonPanelBar = new ThreeButtonPanelBar(view);\n\t\t\tif ( mButtonPanelBar != null ) {\n\t\t\t\tmButtonPanelBar.SetBackgroundColor( 0x00000000 ); // TODO read from style\n\t\t\t\tmButtonPanelBar.RemoveAllButtons();\n\t\t\t\tfor ( int i=0; i<mButtons.size(); i++ ) {\n\t\t\t\t\tmButtonPanelBar.AddButton( mButtons.get(i) );\n\t\t\t\t}\t\t\t\t\n\t\t\t\tmButtonPanelBar.updateUI();\n\t\t\t} else {\n\t\t\t\tLogger.e( TAG, \"updateView() - NPE button panel bar\" );\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.e( TAG, \"updateView() - object mismatch\" ); \n\t\t}\n\t\t\t\n\t\tview.forceLayout();\n\t\tview.invalidate();\n\t}", "private void bindViews() {\n mMenu1 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu1);\n mMenu2 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu2);\n mMenu3 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu3);\n mMenu4 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu4);\n mMenu5 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu5);\n\n mMenu1.setOnClickListener(this);\n mMenu2.setOnClickListener(this);\n mMenu3.setOnClickListener(this);\n mMenu4.setOnClickListener(this);\n mMenu5.setOnClickListener(this);\n }", "@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }", "@Override\n\tprotected void setView() {\n\t\tsetContentView(R.layout.activity_main);\n\t}", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "private void initView() {\n\n lv_functions= (ListView) findViewById(R.id.lv_functions);\n MultLayoutAdapter multLayoutAdapter=new MultLayoutAdapter(this,R.layout.function_list_item0,functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// swingBottomInAnimationAdapter.setListView(lv_functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingLeftInAnimationAdapter swingLeftInAnimationAdapter = new SwingLeftInAnimationAdapter(multLayoutAdapter);\n// swingLeftInAnimationAdapter.setListView(lv_functions);\n // swingRightInAnimationAdapter.setListView(lv_functions);\n lv_functions.setAdapter(multLayoutAdapter);\n\n }", "public void configure(T aView) { aView.setText(\"Label\"); }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_1, container, false);\n btnColor = view.findViewById(R.id.btnColor);\n ll1 = view.findViewById(R.id.ll1);\n ll1.setBackgroundColor(Color.GRAY);\n btnColor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if ( i==0) {\n ll1.setBackgroundColor(Color.YELLOW);\n i = 1;\n }else {\n ll1.setBackgroundColor(Color.GRAY);\n i = 0;\n }\n }\n });\n\n return view;\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 }", "@Override\n\tpublic int setLayout() {\n\t\treturn R.layout.activity_main;\n\t}", "public void setAsPollUserWasGiven() {\n LinearLayout linearLayout = (LinearLayout)findViewById(R.id.poll_object_main_layout);\n linearLayout.setBackgroundResource(R.drawable.poll_border);\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n super.onLayout(changed, l, t, r, b);\n C0312e eVar = this.f1126a;\n if (eVar != null) {\n eVar.mo4671a(this, l, t, r, b);\n }\n }", "@Override\n public void onClick(View v) {\n l1.setBackgroundColor(getResources().getColor(R.color.white));\n l2.setBackgroundColor(getResources().getColor(R.color.white));\n l3.setBackgroundColor(getResources().getColor(R.color.white));\n l4.setBackgroundColor(getResources().getColor(R.color.teal_200));\n l5.setBackgroundColor(getResources().getColor(R.color.white));\n fragment = new HukumFragment();\n openFragment(fragment);\n }", "@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}", "private void initView(View subview) {\n\t\tlay_one = (ImageView) subview.findViewById(R.id.green);\n\t\tlay_four = (ImageView) subview.findViewById(R.id.yelow);\n\t\tlay_two = (ImageView) subview.findViewById(R.id.good);\n\t\tlay_five = (ImageView) subview.findViewById(R.id.red_smiley);\n\t\tlay_three = (ImageView) subview.findViewById(R.id.average);\n\t\tlay_one.setOnClickListener(this);\n\t\tlay_three.setOnClickListener(this);\n\t\tlay_two.setOnClickListener(this);\n\t\tlay_five.setOnClickListener(this);\n\t\tlay_four.setOnClickListener(this);\n\t\t}", "private void switchToTransferLayout()\n {\n this.fragmentActivity.findViewById(R.id.pickImagesLayout).setVisibility(View.GONE);\n this.fragmentActivity.findViewById(R.id.transferImagesLayout).setVisibility(View.VISIBLE);\n }", "@Override\n public void setContentView(int layoutResID){\n }", "public void updateConicalView();", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int childLeft = 0;\n int count = getChildCount();\n if (this.mSelectMaxItem <= 0) {\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n int childWidth = child.getMeasuredWidth();\n int childHeight = child.getMeasuredHeight();\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n int childLeft2 = childLeft + lp.leftMargin;\n child.layout(childLeft2, 0, childWidth + childLeft2, childHeight + 0);\n childLeft = childLeft2 + lp.rightMargin + childWidth;\n }\n this.mMaxWid = childLeft;\n } else {\n float pace = (1.0f / ((float) this.mSelectMaxItem)) * ((float) (r - l));\n for (int i2 = 0; i2 < count; i2++) {\n View child2 = getChildAt(i2);\n int childHeight2 = child2.getMeasuredHeight();\n LayoutParams lp2 = (LayoutParams) child2.getLayoutParams();\n child2.layout(((int) (((float) i2) * pace)) + 0 + lp2.leftMargin, 0, (((int) (((float) (i2 + 1)) * pace)) + 0) - lp2.rightMargin, childHeight2 + 0);\n }\n this.mMaxWid = Math.max(getWidth(), (int) (((float) count) * pace));\n }\n this.maxScrollX = this.mMaxWid - getWidth();\n this.maxScrollX = this.maxScrollX > 0 ? this.maxScrollX : 0;\n calculationRect(true);\n }", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "public void configure(T aView) { aView.setText(\"RadioButton\"); }", "@Override\n\t\tpublic void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop,\n\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\n\t\t\tSystem.out.println(\"*\" + index +\"-\"+(right-left));\n\t\t\tcolWidth[index]=right-left;\n\t\t\n\t\t\tsetMyWidth();\n\t\t}" ]
[ "0.6263531", "0.625032", "0.61999875", "0.6195249", "0.61630756", "0.6128324", "0.61136925", "0.6087491", "0.60823977", "0.606822", "0.6055554", "0.6034567", "0.60173136", "0.5940116", "0.5933596", "0.5933093", "0.59329", "0.59198046", "0.5907009", "0.58812344", "0.58778554", "0.58500457", "0.58379817", "0.58316386", "0.58191323", "0.58190864", "0.57981855", "0.5781794", "0.577788", "0.5746583", "0.57379466", "0.57346547", "0.57341766", "0.57216185", "0.57216185", "0.5699208", "0.56946635", "0.56875783", "0.5683006", "0.5662748", "0.5659413", "0.5654738", "0.5645681", "0.5642252", "0.562733", "0.5624944", "0.5615928", "0.56148404", "0.56059563", "0.55919737", "0.5591131", "0.55874884", "0.5586619", "0.5584168", "0.5581348", "0.55686533", "0.55612165", "0.5550633", "0.5548239", "0.55402213", "0.55340916", "0.5527756", "0.55276644", "0.55264187", "0.55059475", "0.550379", "0.55010194", "0.5499051", "0.54943347", "0.54811877", "0.5479422", "0.5477652", "0.54775554", "0.5471554", "0.5464283", "0.5463787", "0.54584336", "0.5457278", "0.5457242", "0.5456684", "0.5456167", "0.54494774", "0.54457027", "0.5437367", "0.54373294", "0.54298466", "0.5429116", "0.5420619", "0.54183507", "0.54091936", "0.5408468", "0.5396285", "0.5389232", "0.5387714", "0.5384377", "0.53833103", "0.5378942", "0.5377066", "0.5375269", "0.5367986", "0.53656244" ]
0.0
-1
save colour as ColourPack and add to Theme
@Override public void onClick(View v) { Settings.Section section; section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_PRIMARY); EditText red, green, blue; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); String r, g, b; r = red.getText().toString(); g = green.getText().toString(); b = blue.getText().toString(); section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r)); section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g)); section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b)); MainActivity.instance.themeSettings.save(); // go back to theme settings content.removeAllViews(); content.addView(settings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void packUp() {\n news.themeColour = (String) colourChooser.getSelectedItem(); //gets the currently selected colour\n news.write(); //writes high scores and selected colour to file\n }", "public void saveColor()\r\n\t{\r\n\t\tsavedColor = g.getColor();\r\n\t}", "public void saveColorAndFont()\r\n\t{\r\n\t\tsaveColor();\r\n\t\tsaveFont();\r\n\t}", "public void saveValues() {\n bluej.setExtensionPropertyString(PROFILE_LABEL, color.getText());\r\n }", "public void setColour(Colour colour);", "private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }", "private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n saveBtn.setEnabled(true);\n }", "private JButton createApplyButton() {\r\n apply = new JButton();\r\n apply.setBounds(5, 260, 100, 25);\r\n\r\n add(new SComponent(apply,\r\n new String[] {\"Anpassen\", \"Apply\"},\r\n new String[] {\"Speichert die Farbeinstellungen.\",\r\n \"Saves the color settings.\"}));\r\n\r\n apply.addActionListener(new ActionListener() {\r\n\r\n /** Zeichnet den Graphen mit den ausgewählten\r\n * Frabeinstellungen\r\n *\r\n * @param e ActionEvent\r\n */\r\n public void actionPerformed(final ActionEvent e) {\r\n Color[] col = new Color[8];\r\n for (int i = 0; i < 8; i++) {\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n col[i] = chooser[COLOR_EDGE_FLOW]\r\n .getColorSelected();\r\n break;\r\n case COLOR_EDGE_TWO:\r\n col[i] = chooser[COLOR_EDGE_CAP]\r\n .getColorSelected();\r\n break;\r\n case COLOR_EDGE_TOP:\r\n col[i] = chooser[COLOR_EDGE_RTOP]\r\n .getColorSelected();\r\n break;\r\n default: col[i] = chooser[i].getColorSelected();\r\n }\r\n } else {\r\n col[i] = chooser[i].getColorSelected();\r\n }\r\n }\r\n drawer.setColorSettings(col);\r\n\r\n /*GAModel gam = mainclass.getModel();\r\n if (gam.getGraphComponentState()\r\n == GAModel.COMPONENT_VALID) {\r\n gam.setGraphComponentState(GAModel.COMPONENT_OUTDATED);\r\n }*/\r\n mainclass.repaint();\r\n }\r\n });\r\n\r\n return apply;\r\n }", "public void setColour(String colour) {\n this.colour = colour;\n }", "public void addPalette(Palette palette);", "@Override\n\tpublic String addcolor() {\n\t\treturn \"Green color is applied\";\n\t}", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "protected void setColors(String key, RGB foreground, RGB background,\n String filePath) {\n ColorInfoMap colorInfoMap = this.getColorInfoMap();\n if (colorInfoMap == null) {\n colorInfoMap = new ColorInfoMap();\n this.setColorInfoMap(colorInfoMap);\n }\n Map<String, ColorInfo> colors = colorInfoMap.getColors();\n if (colors == null) {\n colorInfoMap.setColors(new HashMap<String, ColorInfo>());\n colors = colorInfoMap.getColors();\n }\n\n ColorInfo colorInfo = colors.get(key);\n if (colorInfo != null) {\n colorInfo.setColors(foreground, background);\n } else {\n ColorInfo newColorInfo = new ColorInfo();\n newColorInfo.setColors(foreground, background);\n colors.put(key, newColorInfo);\n }\n\n IPathManager pathMgr = PathManagerFactory.getPathManager();\n LocalizationContext lContext = pathMgr.getContext(\n LocalizationType.CAVE_STATIC, LocalizationLevel.USER);\n LocalizationFile file = pathMgr.getLocalizationFile(lContext, filePath);\n try {\n jaxb.marshalToXmlFile(colorInfoMap, file.getFile().getPath());\n file.save();\n } catch (Exception e) {\n Activator.statusHandler.error(\n \"Unable to write color information to file: \"\n + file.getName() + \" in context \" + lContext, e);\n }\n }", "public void saveAccentWallpaper() {\n Theme.ThemeAccent themeAccent = this.accent;\n if (themeAccent != null && !TextUtils.isEmpty(themeAccent.patternSlug)) {\n try {\n File pathToWallpaper = this.accent.getPathToWallpaper();\n Drawable background = this.backgroundImage.getBackground();\n Bitmap bitmap = this.backgroundImage.getImageReceiver().getBitmap();\n FileOutputStream fileOutputStream = new FileOutputStream(pathToWallpaper);\n bitmap.compress(background instanceof MotionBackgroundDrawable ? Bitmap.CompressFormat.PNG : Bitmap.CompressFormat.JPEG, 87, fileOutputStream);\n fileOutputStream.close();\n } catch (Throwable th) {\n FileLog.e(th);\n }\n }\n }", "public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }", "void setCurrentFillColour(Color colour) {\n int colourIndex = shapes.size();\n fillColours.set(colourIndex, colour);\n currentFillColour = colour;\n writeFile.writeFill(colour);\n }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "public Piece.color getColor() { return color; }", "public void addColor(String color) {\n fullPhoto.addColor(color);\n }", "public Preferences(BlueJ bluej) {\r\n this.bluej = bluej;\r\n myPanel = new JPanel();\r\n myPanel.add(new JLabel(\"Favorite Colour\"));\r\n color = new JTextField(40);\r\n myPanel.add(color);\r\n // Load the default value\r\n loadValues();\r\n }", "public void setColour(String c)\n\t{\n\t\tcolour = c;\n\t}", "public void setColor(DyeColor color) {\n/* 53 */ setData(color.getWoolData());\n/* */ }", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }", "public static void saveColor(final float[] color, Firebase reference) {\n reference.runTransaction(new Transaction.Handler() {\n @Override\n public Transaction.Result doTransaction(MutableData playerStatsData) {\n DBPlayerStats playerStats = playerStatsData.getValue(DBPlayerStats.class);\n if (playerStats==null){\n return Transaction.abort();\n }\n\n playerStats.setColor(color);\n playerStatsData.setValue(playerStats);\n\n return Transaction.success(playerStatsData);\n }\n\n @Override\n public void onComplete(FirebaseError firebaseError, boolean b, DataSnapshot dataSnapshot) {\n }\n });\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 }", "public void setSecretColour(ColourClient colour){\n\n this.secretColour=colour;\n\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public CGlassEclipseColorSchemeExtension (CDockColorMap map) {\r\n if (map != null) {\r\n colMap = map;\r\n }\r\n updateUI();\r\n }", "public Figure(String colour) {\n this.colour = colour;\n }", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}", "public String getColour() {\r\n return colour;\r\n }", "@Override\n public void disposeComponent() {\n ColorPairsConfigurationHandler.getMyInstance().saveConfig();\n }", "public void addColor(PhotoColor color) {\n fullPhoto.addColor(color);\n }", "String getColour();", "public void persistCvchannelPack(CvchannelPack cvchannelPack);", "private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }", "private Color createColor( final String key, final Display display ) {\r\n Color color = null;\r\n if( this.store.contains( key ) ) {\r\n RGB rgb = null;\r\n if( this.store.isDefault( key ) ) {\r\n rgb = PreferenceConverter.getDefaultColor( this.store, key );\r\n } else {\r\n rgb = PreferenceConverter.getColor( this.store, key );\r\n }\r\n if( rgb != null ) {\r\n color = new Color( display, rgb );\r\n }\r\n }\r\n return color;\r\n }", "private void themeDynamicAdd() {\n try {\n Background=getBitmapFromURL(base_image);\n Drawable dr = new BitmapDrawable((Background));\n test_rules_background.setBackgroundDrawable(dr);\n\n Bitmap back_bitmap;\n String back_shrd= AarambhThemeSharedPrefreence.loadBackArrowIconFromPreference(this);\n back_bitmap = getBitmapFromURL(back_shrd);\n Drawable dr1 = new BitmapDrawable((back_bitmap));\n back_btn_test_rules.setBackgroundDrawable(dr1);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "void applyTheme(T theme);", "void setStatusColour(Color colour);", "public String getColour() {\n return colour;\n }", "public String getColour() {\n return colour;\n }", "public PaletteColour(String type, int id, String name, String code,String shortHand, int mode) {\n this.type = type;\n this.id = id;\n this.name = name;\n this.shortHand = shortHand;\n if (mode == 1) {\n System.out.println(\"Step1: \" + code);\n this.code = this.rgbToHex(code);\n System.out.println(\"Step2: \" + this.code);\n this.colour = this.hexToColour(this.code);\n System.out.println(\"Step3: \" + this.colour);\n\n } else {\n this.code = code;\n this.colour = this.hexToColour(code);\n }\n }", "public ShadesOfBlue(){\n super( Settings.ObjectivesProperties.SHADES_OF_BLUE.getTitle(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getDescription(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPath(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPoints(),\n Colour.BLUE);\n }", "public void add(String colours){\n //get middle colour\n String newColours=\"\";\n char middle = colours.charAt(4);\n\n FaceColour col = FaceColour.valueOf(Character.toString(middle));\n newColours = colours.substring(0);\n for(FaceColour faceCol : faceToColourMap.keySet()){\n char faceColCh = faceCol.name().charAt(0);\n newColours = newColours.replace(faceColCh, faceToColourMap.get(faceCol));\n }\n\n cube[col.ordinal()] = newColours;\n }", "private void addNewColorToPanel() {\n if (!colorPickerCurrent.getValue().equals(colorsQueue.getFirst())) {\n colorsQueue.push(colorPickerCurrent.getValue());\n revalidateColorPanel();\n }\n }", "public FreeMindWriter cloud( int color ) {\n tagClose();\n\n String c = Integer.toHexString( color );\n while( c.length() < 6 ) c = \"0\" + c; \n\n out.println( \"<cloud COLOR='#\" + c + \"'/>\" );\n return this; \n }", "private ArrayList<Colours> setColour(){\n\t\tArrayList<Colours> list = new ArrayList<Colours>();\n\t\tlist.add(Colours.RED);\n\t\tlist.add(Colours.BLUE);\n\t\tlist.add(Colours.YELLOW);\n\t\tlist.add(Colours.PINK);\n\t\tlist.add(Colours.GREEN);\n\t\tlist.add(Colours.PURPLE);\n\t\treturn list;\n\t}", "@Deprecated\n\tpublic void pushColour(Colour colour) {\n\t\tcolours.add(colour);\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}", "private void colorizePalette(byte [] buffer, int offset, int color) {\r\n\t\tint dataLength = getInt(buffer, offset);\r\n\t\tint dataOffset = offset + 8;\r\n\r\n\t\tint r = (color & 0x00FF0000) >>> 16;\r\n\t\tint g = (color & 0x0000FF00) >>> 8;\r\n\t\tint b = (color & 0x000000FF);\r\n\r\n\t\tfor (int i = 0; i < dataLength / 3; i++) {\r\n\t\t\tint pR = buffer[dataOffset+0] & 0xFF;\r\n\t\t\tint pG = buffer[dataOffset+1] & 0xFF;\r\n\t\t\tint pB = buffer[dataOffset+2] & 0xFF;\r\n\r\n\t\t\tint brightness = (pR + pG + pB) / 3;\r\n\r\n\t\t\tbuffer[dataOffset++] = (byte) (r + (brightness * (255-r)) / 255); // red\r\n\t\t\tbuffer[dataOffset++] = (byte) (g + (brightness * (255-g)) / 255); // green\r\n\t\t\tbuffer[dataOffset++] = (byte) (b + (brightness * (255-b)) / 255); // blue\r\n\t\t}\r\n\r\n\t\tint crc = crc32(buffer, offset + 4, dataLength + 4);\r\n\t\tsetInt(buffer, offset + 8 + dataLength, crc);\r\n\t}", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "public void updateColourInfo(String col) {\n /**\n * Handles a few special cases where the colour is not set or where the\n * colouring would class with the black background.\n *\n */\n switch (col) {\n case \"LIGHTBLACK\":\n selectedCol.setText(\"Selected Ball Colour: BLACK\");\n selectedCol.setColour(\"GREY\");\n break;\n case \"NONE\":\n selectedCol.setText(\"Selected Ball Colour: NONE\");\n selectedCol.setColour(\"WHITE\");\n break;\n default:\n selectedCol.setText(\"Selected Ball Colour: \" + col);\n selectedCol.setColour(col);\n break;\n }\n }", "public void addPawn(Pawn.Color c) { pawn = new Pawn(c, Pawn.Type.BASIC); }", "public void fillColours() {\n this.colours = new String[4];\n this.colours[0] = \"diamonds\";\n this.colours[1] = \"hearts\";\n this.colours[2] = \"spades\";\n this.colours[3] = \"clubs\";\n }", "@Override\n public void setColor(Color newColor) {\n BufferedImage bufferedImage;\n try {\n bufferedImage = ImageIO.read(new URL(this.pieceType.getFileName2D()));\n BufferedImage coloredImage = colorImage(bufferedImage,newColor);\n Image image = SwingFXUtils.toFXImage(coloredImage, null);\n view = new ImageView(image);\n\n //these are temporary\n view.setFitHeight(80);\n view.setFitWidth(80);\n\n } catch (IOException e) {\n System.err.println(\"Error with creating the buffered image\");\n e.printStackTrace();\n }\n }", "public void write(Appendable out, GxpContext gxpContext) throws IOException {\n out.append(\"#\");\n if (isFourBit(red) && isFourBit(green) && isFourBit(blue)) {\n appendNybble(out, red);\n appendNybble(out, green);\n appendNybble(out, blue);\n } else {\n appendByte(out, red);\n appendByte(out, green);\n appendByte(out, blue);\n }\n }", "public void\nsetAmbientElt( SbColor color )\n\n{\n this.coinstate.ambient.copyFrom(color);\n}", "public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }", "public void addColourCopier(String id, double pageCost, int copySpeed, \n int maxJobSize);", "public PaletteColour(String type, int id, String name, String code,String shortHand) {\n this.type = type;\n this.id = id;\n this.name = name;\n this.code = code;\n this.colour = this.hexToColour(code);\n this.shortHand = shortHand;\n\n }", "public void cambiarColorCrc() {\r\n R1 = slRCrc.getValue();\r\n G1 = slGCrc.getValue();\r\n B1 = slBCrc.getValue();\r\n jRCr.setText(\"R: \" + R1);\r\n jVCr.setText(\"G: \" + G1);\r\n jACr.setText(\"B: \" + B1);\r\n color = new Color(R1,G1,B1);\r\n btninfCrc.setBackground(color);\r\n btnEditarCrc.setBackground(color);\r\n btnPruebaCrc.setBackground(color);\r\n btnRegresarCrc.setBackground(color);\r\n repaint(); //Metodo que permite que la figura cambie de color en tiempo real\r\n }", "public void persistCvpack(Cvpack cvpack);", "private void addColors() {\n colors.add(Color.GRAY);\n colors.add(Color.BLUE);\n colors.add(Color.DKGRAY);\n colors.add(Color.CYAN);\n colors.add(Color.MAGENTA);\n //Zijn voorlopig maar 5 kleuren, kan altijd makkelijk meer doen, wil ook liever hex-based kleuren gaan gebruiken.\n }", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "public void writeToXML(Writer bw) throws IOException {\n\t\tbw.write(\"<ColorReferenceExport>\");\n\t\tIterator itr = mappings.keySet().iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString key = (String) itr.next();\n\t\t\tbw.write(\"<ColorUnit>\\n<Key>\" + key + \"</Key>\\n\");\n\t\t\tbw.write(\"<ColorRGB>\" + ((Color) mappings.get(key)).getRGB()\n\t\t\t\t\t+ \"</ColorRGB>\\n</ColorUnit>\");\n\t\t}\n\t\tbw.write(\"\\n</ColorReferenceExport>\");\n\t}", "public static void setupResourcePack() {\n try {\n FileWriter writer = new FileWriter(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\", \"pack.mcmeta\").toFile());\n writer.write(\"{\\\"pack\\\":{\\\"pack_format\\\":6,\\\"description\\\":\\\"WingTech resource pack used for lang purposes for the user to add lang for teas.\\\"}}\");\n writer.close();\n }\n catch (Exception e){\n WingTech.LOGGER.error(\"Error creating pack.mcmeta\", e);\n }\n Minecraft.getInstance().getResourcePackRepository().addPackFinder((consumer, factory) -> {\n final ResourcePackInfo packInfo = ResourcePackInfo.create(\n WingTech.MODID,\n true,\n () -> new FolderPack(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\").toFile()) {\n @Override\n public boolean isHidden() {\n return true;\n }\n },\n factory,\n ResourcePackInfo.Priority.TOP,\n IPackNameDecorator.BUILT_IN\n );\n if (packInfo == null) {\n WingTech.LOGGER.error(\"Failed to load tea resource pack!\");\n return;\n }\n consumer.accept(packInfo);\n });\n }", "public ColouredFeature(IGeometry geom, Color colour) {\n super(geom);\n this.setId(idCounter.getAndIncrement());\n if (colour == null) {\n this.symbolColour = Color.RED;\n } else {\n this.symbolColour = colour;\n }\n }", "public void setColor(String c);", "void setColor(char c, char t) {\n\t\tif(c == 'b' && t == 'b') pI = PieceImage.B_BISHOP;\n\t\tif(c == 'b' && t == 'k') pI = PieceImage.B_KING;\n\t\tif(c == 'b' && t == 'c') pI = PieceImage.B_KNIGHT;\n\t\tif(c == 'b' && t == 'p') pI = PieceImage.B_PAWN;\n\t\tif(c == 'b' && t == 'q') pI = PieceImage.B_QUEEN;\n\t\tif(c == 'b' && t == 'r') pI = PieceImage.B_ROOK;\n\t\t\n\t\tif(c == 'w' && t == 'b') pI = PieceImage.W_BISHOP;\n\t\tif(c == 'w' && t == 'k') pI = PieceImage.W_KING;\n\t\tif(c == 'w' && t == 'c') pI = PieceImage.W_KNIGHT;\n\t\tif(c == 'w' && t == 'p') pI = PieceImage.W_PAWN;\n\t\tif(c == 'w' && t == 'q') pI = PieceImage.W_QUEEN;\n\t\tif(c == 'w' && t == 'r') pI = PieceImage.W_ROOK;\n\t\n\t\tif(c == 'c' && t == 'b') pI = PieceImage.C_BISHOP;\n\t\tif(c == 'c' && t == 'k') pI = PieceImage.C_KING;\n\t\tif(c == 'c' && t == 'c') pI = PieceImage.C_KNIGHT;\n\t\tif(c == 'c' && t == 'p') pI = PieceImage.C_PAWN;\n\t\tif(c == 'c' && t == 'q') pI = PieceImage.C_QUEEN;\n\t\tif(c == 'c' && t == 'r') pI = PieceImage.C_ROOK;\n\t\t\n\t\tif(c == 'p' && t == 'b') pI = PieceImage.P_BISHOP;\n\t\tif(c == 'p' && t == 'k') pI = PieceImage.P_KING;\n\t\tif(c == 'p' && t == 'c') pI = PieceImage.P_KNIGHT;\n\t\tif(c == 'p' && t == 'p') pI = PieceImage.P_PAWN;\n\t\tif(c == 'p' && t == 'q') pI = PieceImage.P_QUEEN;\n\t\tif(c == 'p' && t == 'r') pI = PieceImage.P_ROOK;\n\t\t}", "@Override\n public String getType() {\n return \"Color change\";\n }", "public CustomColourMap(Colour[] colour, String name){\n\t\tsuper(colour, name);\n\t\tthis.SetMapSize(colour.length);\n\t\tm_colourMap = new Colour[this.GetMapSize()];\n\t\tthis.InitMap();\n\t\t\n\t\tfor (int i = 0; i < this.GetMapSize(); i++) {\n\t\t\tm_colourMap[i] = colour[i];\n\t\t}\t\t\n\t}", "void setColor(ChatColor color);", "Picture colourComponentImage() throws Exception;", "public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }", "public void\nsetDiffuseElt(SoNode node, int numColors, \n SbColorArray colors, SoColorPacker packer)\n{\n this.coinstate.diffusenodeid = get_diffuse_node_id(node, numColors, colors);\n this.coinstate.diffusearray = colors;\n this.coinstate.numdiffuse = numColors;\n this.coinstate.packeddiffuse = false;\n \n}", "RGB getNewColor();", "private void setThemesData() {\n\t\tint index = 0;\n\t\ttry {\n\t \tString strFile = Constants.extStorageDirectory +\"/Android_SlyCool/\"+theme_file_name;\n\t\t\tBufferedReader reader = new BufferedReader( new FileReader(strFile));\n\t\t\tLineNumberReader lineReader = new LineNumberReader(reader);\n\t String line;\n\t while ((line = lineReader.readLine()) != null) {\n\t \tif(lineReader.getLineNumber()!=1){\n\t \t\tString[] RowData = Constants.parseCsvLine(line.toString());\n\t \t\tif (RowData.length==14){\n\t \t\t\tfor(int j=0; j<13;j++){\t\n\t \t\t\t\tString currentString = RowData[j];\n\t \t\t\t\tcurrentString = currentString.replaceAll(\"\\\\\\\\n\", \"\\n\");\n\t \t\t\t\tRowData[j] = currentString;\n\t \t\t\t}\n\t\t \t\tThemes currentTheme = new Themes(String.valueOf(index),RowData[0],RowData[1],RowData[2],RowData[3],RowData[4],RowData[5],RowData[6],RowData[7],RowData[8],RowData[9],RowData[10],RowData[11],RowData[12],RowData[13]);\n\t\t\t\t \tConstants.allthemes.add(currentTheme);\n\t\t\t\t \tindex++;\n\t \t\t}\n\t \t} \t\n\t }\n\t\t}catch (IOException ex) {\n\t \n\t }\n\t}", "private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }", "public void addColor(Color rgb) {\r\n\t\thsb = Color\r\n\t\t\t\t.RGBtoHSB(rgb.getRed(), rgb.getGreen(), rgb.getBlue(), null);\r\n\t}", "@Override\n public void onClick(View v) {\n content.removeAllViews();\n final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null);\n\n final View colour = view.findViewById(R.id.colour_preview);\n TextView colourName = (TextView) view.findViewById(R.id.colour_id);\n\n colour.setBackgroundColor(getResources().getColor(R.color.accent));\n colourName.setText(R.string.accent);\n\n TextView cancel, save;\n cancel = (TextView) view.findViewById(R.id.cancel_button);\n save = (TextView) view.findViewById(R.id.save_button);\n\n // Change Seekbars to reflect chosen colour\n final SeekBar redBar, greenBar, blueBar;\n redBar = (SeekBar) view.findViewById(R.id.red_bar);\n greenBar = (SeekBar) view.findViewById(R.id.green_bar);\n blueBar = (SeekBar) view.findViewById(R.id.blue_bar);\n\n redBar.setProgress(accentColour.red());\n greenBar.setProgress(accentColour.green());\n blueBar.setProgress(accentColour.blue());\n\n // show hex value\n EditText hex = (EditText) view.findViewById(R.id.hex_code);\n hex.setText(String.format(\"#%s\", accentColour.asHex()));\n\n // show rgb numbers\n final EditText red, blue, green;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n red.setText(String.valueOf(accentColour.red()));\n green.setText(String.valueOf(accentColour.green()));\n blue.setText(String.valueOf(accentColour.blue()));\n\n class SeekChanged implements SeekBar.OnSeekBarChangeListener {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if(fromUser) {\n red.setText(String.valueOf(redBar.getProgress()));\n green.setText(String.valueOf(greenBar.getProgress()));\n blue.setText(String.valueOf(blueBar.getProgress()));\n }\n colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {}\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {}\n }\n\n redBar.setOnSeekBarChangeListener(new SeekChanged());\n greenBar.setOnSeekBarChangeListener(new SeekChanged());\n blueBar.setOnSeekBarChangeListener(new SeekChanged());\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n content.removeAllViews();\n content.addView(settings);\n }\n });\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // save colour as ColourPack and add to Theme\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }\n });\n\n content.addView(view);\n }", "public void setBgColours(weatherData tmp) {\n\t\t\t\t\tswitch(tmp.getCondit()) {\n\t\t\t\t\t\tcase \"sky is clear \":\n\t\t\t\t\t\tcase \"clear sky \":\n\t\t\t\t\t\tcase \"Sky is Clear \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(255, 215,0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(255, 111, 0);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"few clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 255, 0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(9, 173, 33);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"scattered clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 90);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(45, 110, 35);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"broken clouds \":\n\t\t\t\t\t\tcase \"overcast clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 150);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 150, 130);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"shower rain \":\n\t\t\t\t\t\tcase \"light intensity drizzle \":\n\t\t\t\t\t\tcase \"drizzle \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle \":\n\t\t\t\t\t\tcase \"light intensity drizzle rain \":\n\t\t\t\t\t\tcase \"drizzle rain \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle rain \":\n\t\t\t\t\t\tcase \"shower rain and drizzle \":\n\t\t\t\t\t\tcase \"heavy shower rain and drizzle \":\n\t\t\t\t\t\tcase \"shower drizzle \":\n\t\t\t\t\t\tcase \"light intensity shower rain \":\n\t\t\t\t\t\tcase \"heavy intensity shower rain \":\n\t\t\t\t\t\tcase \"ragged shower rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0,255,255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 130, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"rain \":\n\t\t\t\t\t\tcase \"light rain \":\n\t\t\t\t\t\tcase \"moderate rain \":\n\t\t\t\t\t\tcase \"heavy intensity rain \":\n\t\t\t\t\t\tcase \"very heavy rain \":\n\t\t\t\t\t\tcase \"extreme rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 166, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 50, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light rain \":\n\t\t\t\t\t\tcase \"thunderstorm with rain \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy rain \":\n\t\t\t\t\t\tcase \"light thunderstorm \":\n\t\t\t\t\t\tcase \"heavy thunderstorm \":\n\t\t\t\t\t\tcase \"ragged thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy drizzle \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 95, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(60, 30, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"snow \":\n\t\t\t\t\t\tcase \"freezing rain \":\n\t\t\t\t\t\tcase \"light snow \":\n\t\t\t\t\t\tcase \"heavy snow \":\n\t\t\t\t\t\tcase \"sleet \":\n\t\t\t\t\t\tcase \"shower sleet \":\n\t\t\t\t\t\tcase \"light rain and snow \":\n\t\t\t\t\t\tcase \"rain and snow \":\n\t\t\t\t\t\tcase \"light shower snow \":\n\t\t\t\t\t\tcase \"shower snow \":\n\t\t\t\t\t\tcase \"heavy shower snow \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(145, 245, 245);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(75, 150, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"mist \":\n\t\t\t\t\t\tcase \"smoke \":\n\t\t\t\t\t\tcase \"haze \":\n\t\t\t\t\t\tcase \"sand, dust whirls \":\n\t\t\t\t\t\tcase \"fog \":\n\t\t\t\t\t\tcase \"sand \":\n\t\t\t\t\t\tcase \"dust \":\n\t\t\t\t\t\tcase \"volcanic ash \":\n\t\t\t\t\t\tcase \"squalls \":\n\t\t\t\t\t\tcase \"tornado \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(200, 210, 210);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(85, 110, 100);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 120, 240);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 10, 90);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "private void generateBackground(Universe universe) throws SAXException {\n File bgFile = universe.getScene().getBackgroundFile();\n if(bgFile != null){\n saver.addAttribute(\"src\", XmlSaver.CDATA, relativePath(bgFile.getAbsolutePath()));\n } \n// }else{\n// Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n// saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n// }\n Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n }", "public static void saveImage3(int[] rgb, String saveName, int width, int height){\n \t\n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, rgb, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public Theme (Map<TileColor, Color> palette) {\n\t\tthis.palette = palette;\n\t}", "void setCurrentPenColour(Color colour) {\n int colourIndex = shapes.size();\n lineColours.set(colourIndex, colour);\n currentPenColour = colour;\n writeFile.writePen(colour);\n }", "private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\n\t}", "public int getColour() {\n return colour;\n }", "public void saveLayerAlpha(int sx, int sy, int i, int j, int multipliedAlpha) {\n\t\t\n\t}", "public JComponent addInsert(Color color)\n {\n Category category = new Category(this, \"Insert FX\", color);\n \n JComponent comp;\n String[] params;\n final HBox hbox = new HBox();\n\n final HBox[] insert = new HBox[6];\n\n \n // OFF\n insert[0] = new HBox();\n\n\n // EQ Bandpass\n insert[1] = new HBox(); \n\n comp = new LabelledDial(\"Mid\", this, \"bandpassmidfreq\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Freq\");\n insert[1].add(comp);\n \n comp = new LabelledDial(\"Mid\", this, \"bandpassmidgain\", color, 0, 127)\n {\n public boolean isSymmetric() { return true; }\n public String map(int value)\n {\n if (value <= 64) return \"\" + (((value - 64) * 100) / 64) + \"%\";\n else return \"\" + (((value - 64) * 100) / 63) + \"%\";\n }\n };\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[1].add(comp);\n\n comp = new LabelledDial(\"Mid\", this, \"bandpassmidq\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Q\");\n insert[1].add(comp);\n\n\n // Compressor\n insert[2] = new HBox(); \n\n comp = new LabelledDial(\"Attack\", this, \"compressorattack\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Release\", this, \"compressorrelease\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Threshold\", this, \"compressorthreshold\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Ratio\", this, \"compressorratio\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Makeup\", this, \"compressorgain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[2].add(comp);\n\n\n // Auto Wah\n insert[3] = new HBox(); \n\n VBox vbox = new VBox();\n params = AUTO_WAH_TYPES;\n comp = new Chooser(\"Wah Wah Type\", this, \"autowahtype\", params);\n vbox.add(comp);\n insert[3] .add(vbox);\n\n comp = new LabelledDial(\"Cutoff\", this, \"autowahcutoff\", color, 0, 127);\n insert[3].add(comp);\n \n comp = new LabelledDial(\"Resonance\", this, \"autowahresonance\", color, 0, 127);\n insert[3].add(comp);\n \n comp = new LabelledDial(\"Sensitivity\", this, \"autowahsensitivity\", color, 0, 127);\n insert[3].add(comp);\n \n // shared with Compressor\n comp = new LabelledDial(\"Attack\", this, \"compressorattack\", color, 0, 127);\n insert[3].add(comp);\n \n // shared with Compressor\n comp = new LabelledDial(\"Release\", this, \"compressorrelease\", color, 0, 127);\n insert[3].add(comp);\n \n \n\n // Distortion\n insert[4] = new HBox(); \n\n vbox = new VBox();\n params = DISTORTION_TYPES;\n comp = new Chooser(\"Distortion Type\", this, \"distortiontype\", params);\n vbox.add(comp);\n insert[4].add(vbox);\n\n comp = new LabelledDial(\"Depth\", this, \"distortiondepth\", color, 0, 127);\n insert[4].add(comp);\n \n comp = new LabelledDial(\"Pre\", this, \"distortionpregain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[4].add(comp);\n \n comp = new LabelledDial(\"Post\", this, \"distortionpostgain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[4].add(comp);\n \n comp = new LabelledDial(\"High\", this, \"distortionhighcutoff\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Cutoff\");\n insert[4].add(comp);\n \n\n // Reducer\n insert[5] = new HBox(); \n\n comp = new LabelledDial(\"Bit\", this, \"reducerbitdepth\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Depth\");\n insert[5].add(comp);\n \n comp = new LabelledDial(\"Sample\", this, \"reducersamplerate\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Rate\");\n insert[5].add(comp);\n \n \n /// CHOOSER\n \n final HBox fx = new HBox();\n\n vbox = new VBox();\n params = INSERT_FX_TYPES;\n comp = new Chooser(\"Type\", this, \"channelfxtype\", params) // I *think* this is insert\n {\n public void update(String key, Model model)\n {\n super.update(key, model);\n fx.removeLast();\n int channelfxtype = model.get(\"channelfxtype\", 0);\n if (channelfxtype >= 0 && channelfxtype < insert.length)\n fx.addLast(insert[channelfxtype]);\n else Synth.handleException(new Throwable(\"Invalid channel fx type: \" + channelfxtype));\n fx.revalidate();\n fx.repaint();\n }\n }; \n vbox.add(comp);\n hbox.add(vbox);\n fx.add(insert[0]); // empty\n hbox.add(fx);\n \n category.add(hbox, BorderLayout.CENTER);\n return category;\n }", "public void set_color(String color){ color_ = GralColor.getColor(color.trim()); }", "public ColorPaletteBuilder color3(Color color)\n {\n if (color3 == null) colorsCount++;\n this.color3 = color;\n return this;\n }", "void setColorScheme(\n ReaderColorScheme c);", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "public LightBulb(RGBColor color){\r\n _color = new RGBColor(color);\r\n }" ]
[ "0.697789", "0.64167607", "0.5737985", "0.57264763", "0.55294746", "0.53607005", "0.5357987", "0.5272956", "0.52419823", "0.5240997", "0.5232688", "0.52126473", "0.51777583", "0.51463944", "0.513225", "0.5116073", "0.5108738", "0.51059794", "0.51045805", "0.50947386", "0.50804484", "0.5072448", "0.50711316", "0.5066517", "0.50567967", "0.5054695", "0.5054067", "0.5052648", "0.5020239", "0.50173974", "0.50140846", "0.5004367", "0.50006145", "0.49924254", "0.4984123", "0.49706995", "0.496221", "0.49597088", "0.4958421", "0.49400395", "0.49356666", "0.4929546", "0.49274075", "0.49247226", "0.49229223", "0.49229223", "0.4911745", "0.49091366", "0.48995984", "0.48983538", "0.48954573", "0.4894267", "0.48938888", "0.48934177", "0.48932517", "0.48815653", "0.4874322", "0.48715353", "0.48614877", "0.48611647", "0.48582923", "0.4856949", "0.4845546", "0.4844571", "0.48433626", "0.4842668", "0.48410252", "0.48402792", "0.4833576", "0.48264235", "0.48259827", "0.4825567", "0.48234448", "0.4818227", "0.4814327", "0.4811836", "0.48110318", "0.4808664", "0.4807172", "0.48004988", "0.47971335", "0.47891414", "0.4788746", "0.47713903", "0.47650632", "0.4762606", "0.47577646", "0.47562557", "0.4755566", "0.47534388", "0.47484243", "0.47479516", "0.47460902", "0.47430453", "0.47414616", "0.47403663", "0.47392347", "0.47375908", "0.47370613", "0.47368416" ]
0.5088267
20
change view in linearlayout
@Override public void onClick(View v) { content.removeAllViews(); final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null); final View colour = view.findViewById(R.id.colour_preview); TextView colourName = (TextView) view.findViewById(R.id.colour_id); colour.setBackgroundColor(getResources().getColor(R.color.secondary)); colourName.setText(R.string.secondary); TextView cancel, save; cancel = (TextView) view.findViewById(R.id.cancel_button); save = (TextView) view.findViewById(R.id.save_button); // Change Seekbars to reflect chosen colour final SeekBar redBar, greenBar, blueBar; redBar = (SeekBar) view.findViewById(R.id.red_bar); greenBar = (SeekBar) view.findViewById(R.id.green_bar); blueBar = (SeekBar) view.findViewById(R.id.blue_bar); redBar.setProgress(secondaryColour.red()); greenBar.setProgress(secondaryColour.green()); blueBar.setProgress(secondaryColour.blue()); // show hex value EditText hex = (EditText) view.findViewById(R.id.hex_code); hex.setText(String.format("#%s", secondaryColour.asHex())); // show rgb numbers final EditText red, blue, green; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); red.setText(String.valueOf(secondaryColour.red())); green.setText(String.valueOf(secondaryColour.green())); blue.setText(String.valueOf(secondaryColour.blue())); class SeekChanged implements SeekBar.OnSeekBarChangeListener { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if(fromUser) { red.setText(String.valueOf(redBar.getProgress())); green.setText(String.valueOf(greenBar.getProgress())); blue.setText(String.valueOf(blueBar.getProgress())); } colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress())); } @Override public void onStartTrackingTouch(SeekBar seekBar) {} @Override public void onStopTrackingTouch(SeekBar seekBar) {} } redBar.setOnSeekBarChangeListener(new SeekChanged()); greenBar.setOnSeekBarChangeListener(new SeekChanged()); blueBar.setOnSeekBarChangeListener(new SeekChanged()); cancel.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { content.removeAllViews(); content.addView(settings); } }); save.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // save colour as ColourPack and add to Theme Settings.Section section; section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY); EditText red, green, blue; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); String r, g, b; r = red.getText().toString(); g = green.getText().toString(); b = blue.getText().toString(); section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r)); section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g)); section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b)); MainActivity.instance.themeSettings.save(); // go back to theme settings content.removeAllViews(); content.addView(settings); } }); content.addView(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }", "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "void setView(View v);", "public void setView(View view);", "@Override\r\n\tprotected void setLayout() {\n\t\tsetContentView(R.layout.edit_trace_info_activity);\r\n\t}", "public void SetActivityLayout(View lv) {\n\t\tcontainer.removeAllViews();\n\t\tcontainer.addView(lv);\n\n\t}", "@Override\n public void onClick(View v) {\n //If the view is the switch layout button\n if(v.getId() == R.id.switchLayouts)\n {\n //If the button is checked/toggled\n if(changeViewSwitch.isChecked())\n {\n //Set the text to grid\n currentView.setText(R.string.gridView);\n //Set the layout manager to staggered grid view\n this.layoutManager = new StaggeredGridLayoutManager(3, LinearLayoutManager.HORIZONTAL);\n //this.layoutManager = new GridLayoutManager(this, 2);\n //Set the layoutmanager of the recycler view to the layout manager object\n this.recyclerView.setLayoutManager(layoutManager);\n }\n else\n {\n //Set the text to list\n currentView.setText(R.string.listView);\n //Set the layout manager to staggered grid view\n this.layoutManager = new LinearLayoutManager(this);\n //Set the layoutmanager of the recycler view to the layout manager object\n this.recyclerView.setLayoutManager(layoutManager);\n }\n }\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n view_top.layout((int) mDrange + dip2px(getContext(), 20) - view_top.getMeasuredWidth() / 2, t, (int) mDrange + view_top.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight());\n view_mid.layout((int) mDrange + dip2px(getContext(), 20) - view_mid.getMeasuredWidth() / 2, view_top.getMeasuredHeight(), (int) mDrange + view_mid.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight());\n pb.layout(dip2px(getContext(), 20) + l, view_top.getMeasuredHeight() + view_mid.getMeasuredHeight(), r - dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight() + pb.getMeasuredHeight());\n }", "private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}", "public void mo51862e(LinearLayout linearLayout, Activity activity) {\n linearLayout.addView(super.mo51863a(jh.f39467b, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39476k, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39474i, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39473h, activity, this.f39360a), linearLayout.getChildCount());\n }", "@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t((LinearLayout) getParent()).addView(LogisticTaskFareGroupView.this.clone());\n\n\t\t\t}", "private void setCorrectView(){\n\n if(lisCompanies.size() > 0) {\n // if companies, display them\n //Toast.makeText(lsv.getContext(), \"There are companies! #\" + lisCompanies.size(), Toast.LENGTH_LONG).show();\n lsv.setVisibility(View.VISIBLE);\n llv.setVisibility(View.GONE);\n }\n else {\n // if no companies, display \"+ Add Company\" w image\n lsv.setVisibility(View.GONE);\n llv.setVisibility(View.VISIBLE);\n }\n }", "private void initView() {\n\n main_ll_rl = (LinearLayout) findViewById(R.id.main_ll_rili);\n main_ll_xw = (LinearLayout) findViewById(R.id.main_ll_xw);\n main_ll_wode = (LinearLayout) findViewById(R.id.main_ll_wd);\n main_ll_self = (LinearLayout) findViewById(R.id.main_ll_self);\n main_ll_hq = (LinearLayout) findViewById(R.id.main_ll_hq);\n main_zt_color = (LinearLayout) findViewById(R.id.main_zt_color);\n\n main_zt_color.setBackgroundColor(Color.parseColor(\"#e9e9ea\"));\n\n imgrl = (ImageView) findViewById(R.id.imgrili);\n imgxw = (ImageView) findViewById(R.id.imgxw);\n imgwd = (ImageView) findViewById(R.id.imgwd);\n imggr = (ImageView) findViewById(R.id.imgself);\n imghq = (ImageView) findViewById(R.id.imghq);\n\n main_rl_tv = (TextView) findViewById(R.id.main_rl_tv);\n main_xw_tv = (TextView) findViewById(R.id.main_xw_tv);\n main_wd_tv = (TextView) findViewById(R.id.main_wd_tv);\n main_gr_tv = (TextView) findViewById(R.id.main_self_tv);\n main_hq_tv = (TextView) findViewById(R.id.main_hq_tv);\n\n main_ll_rl.setOnClickListener(this);\n main_ll_xw.setOnClickListener(this);\n main_ll_wode.setOnClickListener(this);\n main_ll_hq.setOnClickListener(this);\n main_ll_self.setOnClickListener(this);\n }", "@Override\n\tpublic void setView(View view) {\n\n\t}", "@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n LinearLayout ll =(LinearLayout)arg0.findViewById(R.id.linearLayout22);\n task =(Task) getChild(groupPosition,childPosition);\n Log.d(\"CHILD\", task.toString());\n\t\t\t\tif(ll.getVisibility()==View.VISIBLE){\n ll.setVisibility(View.GONE);\n\t\t\t\t}else{\n linearLayout=(LinearLayout)arg0.findViewById(R.id.linearLayoutText);\n ll.setVisibility(View.VISIBLE);\n if(previosLL!=null&&previosLL.getVisibility()==View.VISIBLE&&previosLL!=ll){\n previosLL.setVisibility(View.GONE);\n }//if(previosLL!=lr)previosLL=ll;\n previosLL=ll;\n\t\t\t\t}\n\t\t\t//lr.getVisibility()=View.VISIBLE ? lr.setVisibility(Viev.GONE):lr.setVisibility(View.VISIBLE)\n\t\t\t}", "@Override\r\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tLog.v(\"MyView01>layout\",\"f-1\");\r\n\t\t\tsuper.layout(l, t, r, b);\r\n\t\t\tLog.v(\"MyView01>layout\",\"f-2\");\r\n\t\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tsuper.onLayout(changed, l, t, r, b);\n\t\tif(changed){\n\t\t\tthis.scrollTo(0, 0);\n\t\t}\n\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b)\n\t{\n\n\t\tDisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n\t\tint screenWidth = displayMetrics.widthPixels;\n\t\t//int screenHeight = displayMetrics.heightPixels;\n\t\tint childTop = 30;\n\t\tint childLeft = 20;\n\t\tint cameraPicWidth = screenWidth / 5;\n\t\tint cameraPicHeight = 2 * cameraPicWidth;\n\t\tint space = 20;\n\t\tint column = 0;\n\n\t\tfinal int count = getChildCount();\n\t\tfor (int i = 0; i < count; i++)\n\t\t{\n\t\t\tfinal View child = getChildAt(i);\n\t\t\tif (child.getVisibility() != View.GONE)\n\t\t\t{\n\t\t\t\tchild.setVisibility(View.VISIBLE);\n\t\t\t\t//child.measure(r - l, b - t);\n\t\t\t\tchild.layout(childLeft + space, childTop, childLeft + cameraPicWidth + space, childTop + cameraPicHeight + space);\n\t\t\t\tcolumn++;\n\t\t\t\tif (childLeft < screenWidth - 2 * (space + cameraPicWidth))\n\t\t\t\t{\n\t\t\t\t\tchildLeft += cameraPicWidth + space;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t\tchildLeft = 20;\n\t\t\t\t\tchildTop += cameraPicHeight;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setCustomView(View view, LayoutParams layoutParams) {\n\t\t\n\t}", "private LinearLayout updateLayout(View view, int layoutId) {\r\n LinearLayout layout = (LinearLayout) view.findViewById(layoutId);\r\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) layout.getLayoutParams();\r\n int marginInPx = SkyControlUtils.dpToPixel(4);\r\n params.setMargins(marginInPx, marginInPx, marginInPx, marginInPx);\r\n layout.setLayoutParams(params);\r\n layout.setClickable(true);\r\n layout.setBackgroundResource(R.drawable.view_clickable_background);\r\n\r\n return layout;\r\n }", "@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}", "void setScoreView(View v);", "private View modifyView(TextView view, int position) {\n MeshId item = this.getItem(position);\n if (item != null) {\n String text; // Text for the item in the list.\n int colour; // Colour for the text in the list.\n\n if (item.equals(deviceId)) {\n // Change text colour if is the current device's Id.\n text = \"This Device\";\n colour = R.color.blue;\n } else {\n // Otherwise, simply make the MeshId more readable and use the theme default colour.\n text = MeshHelper.getInstance().shortenMeshId(item);\n colour = android.R.color.primary_text_light;\n }\n view.setText(text);\n view.setTextColor(ContextCompat.getColor(getContext(), colour));\n }\n return view;\n }", "public void switchView(View view) {\r\n\t\tthis.currentView = view;\r\n\t\trenderView();\r\n\t}", "private void setViews() {\n\n }", "@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }", "protected void onLoadLayout(View view) {\n }", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "@Override\n\tprotected int getViewId() {\n\t\treturn R.layout.layout_square_live;\n\t}", "public LinearLayout getLinearLayout(String line){\n Resources r = getResources();\n String name = getPackageName();\n LinearLayout L=(LinearLayout)findViewById(r.getIdentifier(line,\"id\",name));\n L.removeAllViews();\n return L;\n }", "void updateView();", "void updateView();", "public void addView(View view) {\n view.setLayoutParams(new LinearLayout.LayoutParams(\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 1f));\n mLinearLayout.addView(view);\n }", "private void milestonesLayoutHandler() {\n layoutMilestones = (LinearLayout) findViewById(R.id.layoutMilestones);\n txtViewMilestonesCountToday = (AutoResizeTextView) findViewById(R.id.txtViewMilestonesCountToday);\n txtMilestonesYesterdayValue = (TextView) findViewById(R.id.txtMilestonesYesterdayValue);\n\n layoutMilestones.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"Coming soon\", Toast.LENGTH_SHORT).show();\n }\n });\n\n txtViewMilestonesCountToday.setText(String.valueOf(userSharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0)));\n txtMilestonesYesterdayValue.setText(\"-\");\n }", "private void viewChange() {\n currentView = (TextView) findViewById(R.id.currView);\n currentView.setText(counters.get(counterPosition).toString());\n }", "protected abstract void iniciarLayout();", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "@Override\r\n\t\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\t\tint bottom) {\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-1\");\r\n\t\t\tsuper.onLayout(changed, left, top, right, bottom);\r\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-2\");\r\n\t\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n if (flag) {\n //进行一些初始化的操作\n/* if ((mOvalHeight == -1) || (mOvalWidth == -1)) {\n if (mWidth > mHeight) {\n mOvalHeight = (mHeight - 100) / 2;\n mOvalWidth = mOvalHeight + 100;\n } else {\n mOvalWidth = (mWidth - 100) / 2;\n mOvalHeight = mOvalWidth + 100;\n }\n }else {\n mOvalWidth /= 2;\n mOvalHeight /= 2;\n }*/\n\n if (mOvalHeightMargin != -1) {\n mOvalHeight = (mHeight - mOvalHeightMargin * 2) / 2;\n } else if (mOvalHeight == -1) {\n mOvalHeight = mHeight / 2;\n }\n if (mOvalWidthMargin != -1) {\n mOvalWidth = (mWidth - mOvalWidthMargin * 2) / 2;\n } else if (mOvalWidth == -1) {\n mOvalWidth = mWidth / 2;\n }\n\n\n if ((mChildWidth == -1) && (mChildHeight == -1)) {\n mChildWidth = 50;\n mChildHeight = 50;\n }\n\n //下面是获取所有的子view,给子view分配初始位置,默认第一个是270度,相当于y轴负半轴。\n mChildCount = getChildCount();\n mChildrenView = new View[mChildCount];\n mAngles = new double[mChildCount];\n mAngles[0] = 270;\n double j = 360 / mChildCount;\n for (int i = 0; i < mChildCount; i++) {\n mChildrenView[i] = getChildAt(i);\n final int finalI = i;\n mChildrenView[i].setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n if (itemClickListener == null)\n Log.e(TAG, \"你点击了的position = \" + finalI + \",但是itemClickListener == null\");\n else {\n itemClickListener.onItemClick(v, finalI, true);\n }\n }\n });\n if (i > 0) {\n if ((mAngles[i] + j) <= 360) {\n mAngles[i] = mAngles[i - 1] + j;\n } else {\n mAngles[i] = mAngles[i - 1] + j - 360;\n }\n }\n int x = (int) (mOvalWidth * Math.cos(mAngles[i] * Math.PI / 180));\n int y = (int) (mOvalHeight * Math.sin(mAngles[i] * Math.PI / 180));\n mChildrenView[i].layout(mWidth / 2 - x - mChildWidth / 2, mHeight / 2 - y - mChildHeight / 2, mWidth / 2 - x + mChildWidth / 2, mHeight / 2 - y + mChildHeight / 2);\n }\n flag = false;\n }\n }", "private void setViews() {\n lv.setAdapter(adapter);\n\n dialog2 = new MiddleDialog2(INSTANCE, getResources().getString(R.string.title), getResources().getString(R.string.value), new MiddleDialog2.onBottonListener() {\n @Override\n public void onOk() {\n\n finish();\n }\n },R.style.registDialog);\n }", "private void setupView(JLabel view, int w, int h, int x, int y) {\n\n view.setSize(w,h);\n view.setLocation(x,y);\n\n add(view);\n\n }", "private void switchToPickLayout()\n {\n this.fragmentActivity.findViewById(R.id.transferImagesLayout).setVisibility(View.GONE);\n this.fragmentActivity.findViewById(R.id.pickImagesLayout).setVisibility(View.VISIBLE);\n }", "@Override\r\n\tprotected void layout() {\n\t\tsetContentView(R.layout.activity_change_password);\r\n\t\tsetBackButton();\r\n\t\tfindViewById(R.id.regist_sure).setOnClickListener(this);\r\n\t}", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "private void addViews() {\n\t}", "@Override\n\tprotected int initView() {\n\t\treturn R.layout.activity_zhusu_detail;\n\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tl = 0;\n\t\tt = 0;\n\t\tr = getWidth();\n\t\tb = getHeight();\n\n\t\tif (header != null) {\n\t\t\theader.layout(l, t, r, header.getMeasuredHeight());\n\t\t\titem.layout(l, header.getMeasuredHeight(), r, b);\n\t\t} else if (divider != null) {\n\t\t\tdivider.setBounds(l, t, r, dividerHeight);\n\t\t\titem.layout(l, dividerHeight, r, b);\n\t\t} else {\n\t\t\titem.layout(l, t, r, b);\n\t\t}\n\t}", "@Override\n\tpublic void setCustomView(View view) {\n\t\t\n\t}", "public void switchLayout(int i) {\n this.mCurrentLayout = i;\n LayoutItem layoutItem = (LayoutItem) this.mLayoutItems.get(this.mCurrentLayout);\n this.mLayoutAdapter.switchLayout(layoutItem);\n this.mImageView.setLayoutItem(layoutItem);\n }", "private void initView() {\n\t\trl_edit = (RelativeLayout) findViewById(R.id.rl_edit);\n\t\ttv_all=(TextView) findViewById(R.id.tv_all);\n\t\ttv_dle=(TextView) findViewById(R.id.tv_dle);\n\t\ttv_all.setOnClickListener(this);\n\t\ttv_dle.setOnClickListener(this);\n\t\trl_wd = (RelativeLayout) findViewById(R.id.main_rl_my);\n\t\trl_wd.setOnClickListener(this);\n\t\tmain_rl_gwc = (RelativeLayout) findViewById(R.id.main_rl_gwc);\n\t\tmain_rl_gwc.setOnClickListener(this);\n\t\trl_sy = (RelativeLayout) findViewById(R.id.main_rl_sy);\n\t\trl_sy.setOnClickListener(this);\n\n\t\tnext_sure = (TextView) findViewById(R.id.next_sure);\n\t\tnext_sure.setVisibility(View.VISIBLE);\n\t\tnext_sure.setText(\"确认\");\n\t\tnew TitleMenuUtil(MyMessage.this, \"我的消息\").show();\n\t\tmyAdapter = new MessageAdapter(MyMessage.this, myList);\n\t\teva_nodata = (LinearLayout) findViewById(R.id.eva_nodata);\n\t\tXlistview = (XListView) findViewById(R.id.x_listview);\n\t\t// refund_listview.getmFooterView().getmHintView().setText(\"�Ѿ�û�������\");\n\t\tXlistview.setPullLoadEnable(true);\n\t\tXlistview.setXListViewListener(this);\n\t\tXlistview.setDivider(null);\n\n\t\tXlistview.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t Intent i = new Intent(MyMessage.this, MymsgDetail.class);\n\t\t\t\t i.putExtra(\"id\", myList.get(position-1).getId()+\"\");\n\t\t\t\t startActivity(i);\n\t\t\t}\n\t\t});\n\t\tXlistview.setAdapter(myAdapter);\n\n\t\tnext_sure.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (MyApplication.getIsSelect()) {\n\t\t\t\t\t// ��������ɾ�����\n\t\t\t\t\tnext_sure.setText(\"取消\");\n\t\t\t\t\tMyApplication.setIsSelect(false);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\trl_editno.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_edit.setVisibility(View.GONE);\n\t\t \n\t\t\t\t} else {\n\t\t\t\t\tnext_sure.setText(\"删除\");\n\t\t\t\t\tMyApplication.setIsSelect(true);\n\t\t\t\t\trl_edit.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_editno.setVisibility(View.GONE);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void showLayout(String layout) {\n studentList.setVisibility(View.GONE);\n addTable.setVisibility(View.GONE);\n editTable.setVisibility(View.GONE);\n\n switch(layout) {\n case \"studentList\":\n Student.this.recreate();\n// startActivity(getIntent());\n// studentList.setVisibility(View.VISIBLE);\n// adapter.notifyDataSetChanged();\n break;\n case \"addTable\":\n addTable.setVisibility(View.VISIBLE);\n break;\n case \"editTable\":\n editTable.setVisibility(View.VISIBLE);\n break;\n default:\n Toast.makeText(this, \"Warning: showLayout() layout do not match.\", Toast.LENGTH_SHORT).show();\n break;\n }\n\n\n }", "private void setLayoutsFromMood() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n int mPosition = historicList.get(i).getPosition();\n if (mPosition > 4) {\n mPosition = 4;\n } else if (mPosition < 0) {\n mPosition = 0;\n }\n layout.setBackgroundColor(ContextCompat.getColor(this, historyListMood.get(mPosition).getBackgroundColor()));\n layout.setVisibility(View.VISIBLE);\n\n }\n\n\n }", "protected void init(Glk glk, Window oldw, Window neww, int method, int size) {\n \t\tmWaitingForLayout = false;\n \t\t_glk = glk;\n \t\tLinearLayout l = _view = new _View(glk.getContext());\n \t\tfinal PairWindow parent = oldw.getParent();\n \t\tsetParent(parent);\n \t\tif (parent != null)\n \t\t\tparent.mChildren[parent.mChildren[0] == oldw ? 0 : 1] = this;\n \n \t\tint dir = (int) method & Window.WINMETHOD_DIRMASK; \n \t\t\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tl.setOrientation(LinearLayout.VERTICAL);\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tdefault:\n \t\t\tl.setOrientation(LinearLayout.HORIZONTAL);\n \t\t}\n \n \t\tView oldv = oldw.getView();\n \t\tWindow first, second;\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tfirst = oldw;\n \t\t\tsecond = neww;\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tdefault:\n \t\t\tfirst = neww;\n \t\t\tsecond = oldw;\n \t\t}\n \t\t\n \t\t// transfer layout params of the split window to the pair\n \t\tl.setLayoutParams(oldv.getLayoutParams());\n \t\toldv.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT, 0));\n \n \t\tViewGroup oldParent = (ViewGroup) oldv.getParent();\n \t\tassert(oldParent != null);\n \t\t\n \t\t// swap the pair in\n \t\tint parentIndex = (oldParent.getChildAt(0) == oldv) ? 0 : 1;\n \t\toldParent.removeView(oldv);\n \t\toldParent.addView(l, parentIndex);\n \t\t\n \t\toldw.setParent(this);\n \t\tneww.setParent(this);\n \t\tmChildren = new Window[] { first, second };\n \t\t\n \t\tl.addView(first.getView());\n \t\tl.addView(second.getView());\n \t\t\n \t\tdoSetArrangement(method, size, neww);\n \t}", "public abstract int presentViewLayout();", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int titleHeight = this.titleIconContainer.getMeasuredHeight();\n View view = this.titleIconContainer;\n view.layout(0, 0, view.getMeasuredWidth(), titleHeight);\n int containerWidth = getMeasuredWidth();\n int messageTop = ((ViewGroup.MarginLayoutParams) this.message.getLayoutParams()).topMargin + titleHeight;\n int messageWidth = this.message.getMeasuredWidth();\n int messageHeight = this.message.getMeasuredHeight();\n if (getLayoutDirection() == 1) {\n this.message.layout(containerWidth - messageWidth, messageTop, containerWidth, messageTop + messageHeight);\n } else {\n this.message.layout(0, messageTop, messageWidth, messageTop + messageHeight);\n }\n }", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tint childTop = 0;\n\t\tint childLeft = 0;\n\t\tint childWidth = 0;\n\t\tint childHeight = 0;\n\t\tint count = getChildCount();\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tView child = this.getChildAt(i);\n\t\t\tif (child.getVisibility() == View.GONE)\n\t\t\t\tcontinue;\n\t\t\tif (child instanceof RankImageView) {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = (int) (original_width * scale);\n\t\t\t\tchildHeight = (int) (original_height * scale);\n\t\t\t} else if (child instanceof TextView) {\n\t\t\t\tTextView tv = (TextView) child;\n\t\t\t\tchildTop = (int) (original_height * scale + name_spacing);\n\t\t\t\tchildLeft = (int) bp.getStrokeWidth();\n\t\t\t\tchildWidth = (int) (original_width * scale - 2 * bp.getStrokeWidth());\n\t\t\t\tchildHeight = (int) this.getFontHeight(tv.getPaint());\n\t\t\t} else {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = 0;\n\t\t\t\tchildHeight = 0;\n\t\t\t}\n\t\t\tchild.measure(childWidth, childHeight);\n\t\t\tchild.layout(childLeft, childTop, childLeft + childWidth, childTop\n\t\t\t\t\t+ childHeight);\n\t\t}\n\t}", "@Override\n public void setView(@NonNull final View view) {\n mNextView = view;\n }", "@Override\r\n\tpublic void addView(View v) {\r\n\t\tview = v;\r\n\t}", "public void setView(FruitView newView){\n\t\tthis.view = newView;\n\t}", "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 }", "@Override\n\n public void onClick(View v) {\n if (tl.getVisibility() == View.VISIBLE) {\n tl.setVisibility(View.GONE);\n } else {\n tl.setVisibility(View.VISIBLE);\n }\n\n }", "private void addStep(String step) {\n stepView = View.inflate(NewRecipe.this, R.layout.new_step_layout, null);\n\n txtInstruction = stepView.findViewById(R.id.txtInstruction);\n\n //count current item\n int count = stepListLayout.getChildCount();\n LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n param.setMargins(0, 10, 0, 10);\n stepView.setLayoutParams(param);\n stepView.setTag(\"step\" + count);\n\n stepListLayout.setBackgroundColor(Color.TRANSPARENT);\n stepListLayout.addView(stepView);\n\n //// set value after adding new row\n count = stepListLayout.getChildCount();\n stepText = stepView.findViewById(R.id.step);\n\n for (int i = 0; i < count; i++) {\n itemView = stepListLayout.getChildAt(i);\n if (itemView instanceof LinearLayout) {\n\n ImageButton imgDel = stepView.findViewById(R.id.imgDel);\n imgDel.setTag(stepView);\n imgDel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n removeView((View) v.getTag());\n }\n });\n stepText.setText((i + 1) + \":\");\n txtInstruction.setTag(\"Instruction\" + (i + 1));\n if (!step.equals(\"\")) {\n txtInstruction.setText(step);\n }\n }\n }\n\n }", "private void bindToLayout() {\n binding= DataBindingUtil.setContentView(this, R.layout.activity_app_guide);\n }", "@Override\n\tprotected void initView() {\n\t\tsuper.initView();\n mLnSelectLanguage = (LinearLayout) findViewById(R.id.lnSelectLanguage);\n mBtnContinue = (Button) findViewById(R.id.btnContinue);\n mEdtPhoneNumber = (EditText) findViewById(R.id.edtPhoneNumber);\n mTvNationNameView = (TextView) findViewById(R.id.tvNationNameView);\n mChkAccept = (CheckBox) findViewById(R.id.chkAccept);\n mTvDieuKhoan = (TextView) findViewById(R.id.tvDieuKhoan);\n mTvNotifi1 = (TextView) findViewById(R.id.tvNotifi1);\n Utils.setTextViewHtml(mTvDieuKhoan,getString(R.string.dieukhoan));\n mLnSelectLanguage.setOnClickListener(this);\n mBtnContinue.setOnClickListener(this);\n mTvDieuKhoan.setOnClickListener(this);\n\n\t}", "@Override\n\tprotected void initView() {\n\t\tsetContentView(R.layout.activity_money_manage);\n\t\t\n\t\tfindViewById(R.id.bt_title_left).setOnClickListener(this);\n\t\tfindViewById(R.id.bt_ok).setOnClickListener(this);\n\t}", "private void showNewCoursesLayoutOnClick(){\n newCourses.setVisibility(View.VISIBLE);\n\n }", "@Override\n\tpublic void setContentView(int layoutResID) {\n\t\tView yourlayout = getLayoutInflater().inflate(layoutResID, null);\n\t\tRelativeLayout titlebar = (RelativeLayout) (getLayoutInflater()\n\t\t\t\t.inflate(R.layout.title_bar, null));\n\t\ttitleView = (TextView) titlebar.findViewById(R.id.title_textview);\n\t\tbutton = (Button) titlebar.findViewById(R.id.titlebar_rightbutton);\n\t\tRelativeLayout layout = (RelativeLayout) titlebar\n\t\t\t\t.findViewById(R.id.yourlayout);\n\t\tlayout.addView(yourlayout);\n\t\tsetContentView(titlebar);\n\t\tRelativeLayout youlayout = (RelativeLayout) findViewById(R.id.yourlayout);\n\t\tyoulayout.addOnLayoutChangeListener(new OnLayoutChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onLayoutChange(View v, int left, int top, int right,\n\t\t\t\t\tint bottom, int oldLeft, int oldTop, int oldRight,\n\t\t\t\t\tint oldBottom) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tif (bottom > oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = false;\n\t\t\t\telse if (bottom < oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = true;\n\n\t\t\t}\n\t\t});\n\t}", "public void createSetUI(final LinearLayout linearLayout, final int setNum, Set set){\n final RelativeLayout relativeLayout=new RelativeLayout(this);\n RelativeLayout.LayoutParams params=new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams edittxtWeightParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n params.setMargins(0,5,0,0);\n relativeLayout.setLayoutParams(params);\n RelativeLayout.LayoutParams edittxtRepParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblxParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblSetsParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams btndelParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n\n EditText editTextWeight=new EditText(this);\n editTextWeight.setId(View.generateViewId());\n weightsIds.add(editTextWeight.getId());\n editTextWeight.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n EditText editTextRep=new EditText(this);\n editTextRep.setId(View.generateViewId());\n editTextRep.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n repsids.add(editTextRep.getId());\n TextView xdivider=new TextView(this);\n xdivider.setId(View.generateViewId());\n TextView setNumlbl=new TextView(this);\n setNumlbl.setId(View.generateViewId());\n Button btnDelSet=new Button(this);\n btnDelSet.setId(View.generateViewId());\n btnDelSet.setText(\"x\");\n btnDelSet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) { delSet(v); }});\n btnDelSet.setTextColor(Color.RED);\n btnDelSet.setHeight(80);\n btnDelSet.setWidth(80);\n btnDelSet.setBackgroundColor(Color.TRANSPARENT);\n editTextWeight.setHint(\"Weight\");\n editTextWeight.setHeight(125);\n editTextWeight.setWidth(350);\n editTextRep.setWidth(350);\n editTextRep.setHeight(125);\n setNumlbl.setTextSize(20);\n\n Typeface bold=Typeface.defaultFromStyle(Typeface.BOLD);\n setNumlbl.setTypeface(bold);\n editTextRep.setHint(\"Rep\");\n xdivider.setText(\"X\");\n setNumlbl.setText(\"Set \"+setNum);\n\n edittxtWeightParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtWeightParams.addRule(RelativeLayout.LEFT_OF, xdivider.getId());\n lblSetsParams.setMargins(10, 10, 10, 10);\n edittxtWeightParams.setMargins(10, 0, 10, 10);\n edittxtRepParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtRepParams.addRule(RelativeLayout.RIGHT_OF, xdivider.getId());\n edittxtRepParams.setMargins(10, 0, 10, 10);\n lblxParams.setMargins(10, 0, 10, 10);\n btndelParams.setMargins(5, 5,10,10);\n btndelParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n btndelParams.addRule(RelativeLayout.ALIGN_BASELINE, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n lblxParams.addRule(RelativeLayout.ALIGN_BASELINE, editTextRep.getId());\n editTextWeight.setLayoutParams(edittxtWeightParams);\n editTextRep.setLayoutParams(edittxtRepParams);\n setNumlbl.setLayoutParams(lblSetsParams);\n xdivider.setLayoutParams(lblxParams);\n btnDelSet.setLayoutParams(btndelParams);\n if (set!=null){\n editTextWeight.setText(set.getWeight()+\"\");\n editTextRep.setText(set.getReps()+\"\");\n }\n relativeLayout.addView(editTextWeight, edittxtWeightParams);\n relativeLayout.addView(editTextRep, edittxtRepParams);\n relativeLayout.addView(xdivider, lblxParams);\n relativeLayout.addView(setNumlbl, lblSetsParams);\n relativeLayout.addView(btnDelSet, btndelParams);\n\n View divider=new View(this);\n divider.setLayoutParams(new LinearLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, 1));\n divider.setBackgroundColor(Color.parseColor(\"#B3B3B3\"));\n linearLayout.addView(relativeLayout, params);\n linearLayout.addView(divider);\n setsViewList.add(relativeLayout);\n }", "@Override\r\n\t\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\t\t\t LayoutInflater inflater = LayoutInflater.from(arg2.getContext());\r\n\t\t\t View retView = inflater.inflate(R.layout.report_listitems, arg2, false);\r\n\t\t\t int j=i%2;\r\n\t\t\t retView.setBackgroundColor(colors[j]);\r\n\t\t\t i++;\r\n\t\t\t bindView(retView,arg0,arg1);\r\n\t\t\t return retView;\r\n\t\t\t \r\n\t\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int count = getChildCount();\n int parentWidth = getMeasuredWidth();\n\n //get the available size of child view\n int childLeft = this.getPaddingLeft();\n int childTop = this.getPaddingTop();\n\n //walk through each child, and arrange it from left to right\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n LayoutUtils.layoutChild(child, childLeft, childTop);\n childTop += child.getMeasuredHeight();\n }\n }\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n this.mDrawArea.left = 0;\n this.mDrawArea.top = 0;\n this.mDrawArea.right = r - l;\n this.mDrawArea.bottom = b - t;\n this.mZoomView.layout(this.mDrawArea.left, this.mDrawArea.top, this.mDrawArea.right, this.mDrawArea.bottom);\n if (!inZoomView() || changed) {\n resetZoomView();\n layoutViewItems(changed);\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.head_rl:\n\n\t\t\tmenu_mine.setVisibility(View.VISIBLE);\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n// int childLeft = getPaddingLeft();\n// int childRight = right - left - getPaddingRight();\n// int childTop = getPaddingTop();\n// int childBottom = bottom - top - getPaddingBottom();\n//\n// int tempLeftBottom = childTop + leftLabel.getMeasuredHeight();\n// leftLabel.item_personal_center_prefix(childLeft, childTop, childRight, tempLeftBottom);\n// childTop += leftLabel.getMeasuredHeight();\n//\n// int tempRightTop = childBottom - rightLebel.getMeasuredHeight();\n// rightLebel.item_personal_center_prefix(childLeft, tempRightTop, childRight, childBottom);\n// childBottom -= rightLebel.getMeasuredHeight();\n//\n//\n// inputEdit.item_personal_center_prefix(childLeft, childTop, childRight, childBottom);\n int childLeft = getPaddingLeft();\n int childTop = getPaddingTop();\n int childBottom = leftLabel.getMeasuredHeight();\n int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n leftLabel.measure(w, h);\n inputEdit.measure(w, h);\n rightLebel.measure(w, h);\n divider.measure(w, h);\n\n int childRight = leftLabel.getMeasuredWidth();\n leftLabel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft += leftLabel.getMeasuredWidth();\n childRight = right - getPaddingRight() - rightLebel.getMeasuredWidth();\n childBottom = inputEdit.getMeasuredHeight();\n inputEdit.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = right - rightLebel.getMeasuredWidth() - getPaddingRight();\n childRight = right - getPaddingRight();\n childBottom = rightLebel.getMeasuredHeight();\n rightLebel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = getPaddingLeft();\n childRight= right - getPaddingRight();\n childTop = getPaddingTop() + inputEdit.getMeasuredHeight();\n childBottom = childTop + 1;\n divider.layout(childLeft, childTop + dividerPadding, childRight, childBottom);\n }", "private void init() {\n left = (TextView) findViewById(R.id.tv_left);\n left.setOnClickListener(this);\n title = (TextView) findViewById(R.id.tv_mid);\n title.setText(\"车贴任务\");\n right = (TextView) findViewById(R.id.tv_right);\n right.setVisibility(View.VISIBLE);\n right.setText(\"任务说明\");\n right.setOnClickListener(this);\n lv_chetielist = (ListView) findViewById(R.id.lv_chetielist);\n lv_chetielist.setOnItemClickListener(this);\n rela_chetie_state1 = (RelativeLayout) findViewById(R.id.rela_chetie_state1);\n rela_chetie_state2 = (RelativeLayout) findViewById(R.id.rela_chetie_state2);\n rela_chetie_state3 = (RelativeLayout) findViewById(R.id.rela_chetie_state3);\n rela_chetie_state1.setOnClickListener(this);\n rela_chetie_state2.setOnClickListener(this);\n rela_chetie_state3.setOnClickListener(this);\n tv_chetie_state1 = (TextView) findViewById(R.id.tv_chetie_state1);\n tv_chetie_state2 = (TextView) findViewById(R.id.tv_chetie_state2);\n tv_chetie_state3 = (TextView) findViewById(R.id.tv_chetie_state3);\n line_chetie_state = (LinearLayout) findViewById(R.id.line_chetie_state);\n view_chetieview = findViewById(R.id.view_chetieview);\n SetColor();\n tv_chetie_state1.setTextColor(getResources().getColor(R.color.color_red));\n GetCheTieList(\"Y\");\n }", "private void bindViews() {\n mMenu1 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu1);\n mMenu2 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu2);\n mMenu3 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu3);\n mMenu4 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu4);\n mMenu5 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu5);\n\n mMenu1.setOnClickListener(this);\n mMenu2.setOnClickListener(this);\n mMenu3.setOnClickListener(this);\n mMenu4.setOnClickListener(this);\n mMenu5.setOnClickListener(this);\n }", "protected void au() {\n View view = this.ln.get();\n if (view == null) {\n return;\n }\n ViewTreeObserver viewTreeObserver = this.lm.get();\n if ((view = view.getViewTreeObserver()) == viewTreeObserver) return;\n this.lm = new WeakReference<View>(view);\n view.addOnScrollChangedListener((ViewTreeObserver.OnScrollChangedListener)this);\n view.addOnGlobalLayoutListener((ViewTreeObserver.OnGlobalLayoutListener)this);\n }", "@Override\n\tpublic void updateView( View view ) {\n\t\t\n\t\tif ( mStyleBackground != null ) {\n\t\t\tview.setBackgroundColor( mStyleBackground.mBackground );\n\t\t}\n\t\t\n\t\tObject object = view.getTag();\n\t\tif ( object instanceof ViewHolder ) {\n\t\t\tViewHolder holder = (ViewHolder)object;\n\t\t\tlayoutImageView( view, R.id.imageViewCancelButton, mStyleCancelButton, android.R.drawable.ic_menu_close_clear_cancel );\n\t\t\tlayoutImageView( holder.mLeftIcon, mStyleImageLeft, mDataImageLeft );\n\t\t\tlayoutImageView( holder.mRightIcon, mStyleImageRight, mDataImageRight );\n\t\t\tlayoutTextView( holder.mMajorTextLeft, mStyleTextMajor, mDataTextMajor );\n\t\t\tlayoutTextView( holder.mMinorTextLeft, mStyleTextMinor, mDataTextMinor );\n\t\t\tlayoutTextView( holder.mMajorTextRight, mStyleTextMajorRight, mDataTextMajorRight );\n\t\t\tlayoutTextView( holder.mMinorTextRight, mStyleTextMinorRight, mDataTextMinorRight );\t\n\t\t\tif ( holder.mViewType != getViewType() ) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\tmButtonPanelBar = new ThreeButtonPanelBar(view);\n\t\t\tif ( mButtonPanelBar != null ) {\n\t\t\t\tmButtonPanelBar.SetBackgroundColor( 0x00000000 ); // TODO read from style\n\t\t\t\tmButtonPanelBar.RemoveAllButtons();\n\t\t\t\tfor ( int i=0; i<mButtons.size(); i++ ) {\n\t\t\t\t\tmButtonPanelBar.AddButton( mButtons.get(i) );\n\t\t\t\t}\t\t\t\t\n\t\t\t\tmButtonPanelBar.updateUI();\n\t\t\t} else {\n\t\t\t\tLogger.e( TAG, \"updateView() - NPE button panel bar\" );\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.e( TAG, \"updateView() - object mismatch\" ); \n\t\t}\n\t\t\t\n\t\tview.forceLayout();\n\t\tview.invalidate();\n\t}", "@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }", "@Override\n\tprotected void setView() {\n\t\tsetContentView(R.layout.activity_main);\n\t}", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "private void initView() {\n\n lv_functions= (ListView) findViewById(R.id.lv_functions);\n MultLayoutAdapter multLayoutAdapter=new MultLayoutAdapter(this,R.layout.function_list_item0,functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// swingBottomInAnimationAdapter.setListView(lv_functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingLeftInAnimationAdapter swingLeftInAnimationAdapter = new SwingLeftInAnimationAdapter(multLayoutAdapter);\n// swingLeftInAnimationAdapter.setListView(lv_functions);\n // swingRightInAnimationAdapter.setListView(lv_functions);\n lv_functions.setAdapter(multLayoutAdapter);\n\n }", "public void configure(T aView) { aView.setText(\"Label\"); }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_1, container, false);\n btnColor = view.findViewById(R.id.btnColor);\n ll1 = view.findViewById(R.id.ll1);\n ll1.setBackgroundColor(Color.GRAY);\n btnColor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if ( i==0) {\n ll1.setBackgroundColor(Color.YELLOW);\n i = 1;\n }else {\n ll1.setBackgroundColor(Color.GRAY);\n i = 0;\n }\n }\n });\n\n return view;\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 }", "@Override\n\tpublic int setLayout() {\n\t\treturn R.layout.activity_main;\n\t}", "public void setAsPollUserWasGiven() {\n LinearLayout linearLayout = (LinearLayout)findViewById(R.id.poll_object_main_layout);\n linearLayout.setBackgroundResource(R.drawable.poll_border);\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n super.onLayout(changed, l, t, r, b);\n C0312e eVar = this.f1126a;\n if (eVar != null) {\n eVar.mo4671a(this, l, t, r, b);\n }\n }", "@Override\n public void onClick(View v) {\n l1.setBackgroundColor(getResources().getColor(R.color.white));\n l2.setBackgroundColor(getResources().getColor(R.color.white));\n l3.setBackgroundColor(getResources().getColor(R.color.white));\n l4.setBackgroundColor(getResources().getColor(R.color.teal_200));\n l5.setBackgroundColor(getResources().getColor(R.color.white));\n fragment = new HukumFragment();\n openFragment(fragment);\n }", "@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}", "private void initView(View subview) {\n\t\tlay_one = (ImageView) subview.findViewById(R.id.green);\n\t\tlay_four = (ImageView) subview.findViewById(R.id.yelow);\n\t\tlay_two = (ImageView) subview.findViewById(R.id.good);\n\t\tlay_five = (ImageView) subview.findViewById(R.id.red_smiley);\n\t\tlay_three = (ImageView) subview.findViewById(R.id.average);\n\t\tlay_one.setOnClickListener(this);\n\t\tlay_three.setOnClickListener(this);\n\t\tlay_two.setOnClickListener(this);\n\t\tlay_five.setOnClickListener(this);\n\t\tlay_four.setOnClickListener(this);\n\t\t}", "private void switchToTransferLayout()\n {\n this.fragmentActivity.findViewById(R.id.pickImagesLayout).setVisibility(View.GONE);\n this.fragmentActivity.findViewById(R.id.transferImagesLayout).setVisibility(View.VISIBLE);\n }", "@Override\n public void setContentView(int layoutResID){\n }", "public void updateConicalView();", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int childLeft = 0;\n int count = getChildCount();\n if (this.mSelectMaxItem <= 0) {\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n int childWidth = child.getMeasuredWidth();\n int childHeight = child.getMeasuredHeight();\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n int childLeft2 = childLeft + lp.leftMargin;\n child.layout(childLeft2, 0, childWidth + childLeft2, childHeight + 0);\n childLeft = childLeft2 + lp.rightMargin + childWidth;\n }\n this.mMaxWid = childLeft;\n } else {\n float pace = (1.0f / ((float) this.mSelectMaxItem)) * ((float) (r - l));\n for (int i2 = 0; i2 < count; i2++) {\n View child2 = getChildAt(i2);\n int childHeight2 = child2.getMeasuredHeight();\n LayoutParams lp2 = (LayoutParams) child2.getLayoutParams();\n child2.layout(((int) (((float) i2) * pace)) + 0 + lp2.leftMargin, 0, (((int) (((float) (i2 + 1)) * pace)) + 0) - lp2.rightMargin, childHeight2 + 0);\n }\n this.mMaxWid = Math.max(getWidth(), (int) (((float) count) * pace));\n }\n this.maxScrollX = this.mMaxWid - getWidth();\n this.maxScrollX = this.maxScrollX > 0 ? this.maxScrollX : 0;\n calculationRect(true);\n }", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "public void configure(T aView) { aView.setText(\"RadioButton\"); }", "@Override\n\t\tpublic void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop,\n\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\n\t\t\tSystem.out.println(\"*\" + index +\"-\"+(right-left));\n\t\t\tcolWidth[index]=right-left;\n\t\t\n\t\t\tsetMyWidth();\n\t\t}" ]
[ "0.6264053", "0.62498647", "0.62018347", "0.6196118", "0.61638296", "0.6129786", "0.6113021", "0.6087865", "0.60824364", "0.6068422", "0.6055242", "0.6035177", "0.6017102", "0.59403336", "0.59337735", "0.59335625", "0.5933156", "0.5919495", "0.5906876", "0.5882123", "0.5877579", "0.58496934", "0.58375394", "0.5831098", "0.5819525", "0.58191806", "0.57992244", "0.57825863", "0.57781535", "0.57463557", "0.5737781", "0.57356733", "0.5734664", "0.57231456", "0.57231456", "0.5698239", "0.5694643", "0.56880695", "0.56838375", "0.5662344", "0.56599605", "0.5654324", "0.5646763", "0.56421554", "0.5627956", "0.5625659", "0.56158084", "0.56150985", "0.56066006", "0.5591259", "0.5591112", "0.5588688", "0.5586803", "0.5584843", "0.5581748", "0.5570228", "0.5561291", "0.5551071", "0.55482376", "0.5540645", "0.55338806", "0.55287385", "0.5527551", "0.5526528", "0.5505367", "0.5505158", "0.5501011", "0.5499201", "0.549482", "0.54818416", "0.54791623", "0.54776186", "0.547666", "0.54714715", "0.5464743", "0.54638505", "0.5459031", "0.54575104", "0.54571134", "0.54571134", "0.5456913", "0.5450972", "0.54459494", "0.5437623", "0.5437612", "0.54292446", "0.5428959", "0.54211783", "0.5418438", "0.5409677", "0.54090464", "0.5396374", "0.53898495", "0.5387106", "0.538516", "0.53847057", "0.538043", "0.53764486", "0.5375806", "0.5368088", "0.53655773" ]
0.0
-1
save colour as ColourPack and add to Theme
@Override public void onClick(View v) { Settings.Section section; section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY); EditText red, green, blue; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); String r, g, b; r = red.getText().toString(); g = green.getText().toString(); b = blue.getText().toString(); section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r)); section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g)); section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b)); MainActivity.instance.themeSettings.save(); // go back to theme settings content.removeAllViews(); content.addView(settings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void packUp() {\n news.themeColour = (String) colourChooser.getSelectedItem(); //gets the currently selected colour\n news.write(); //writes high scores and selected colour to file\n }", "public void saveColor()\r\n\t{\r\n\t\tsavedColor = g.getColor();\r\n\t}", "public void saveColorAndFont()\r\n\t{\r\n\t\tsaveColor();\r\n\t\tsaveFont();\r\n\t}", "public void saveValues() {\n bluej.setExtensionPropertyString(PROFILE_LABEL, color.getText());\r\n }", "public void setColour(Colour colour);", "private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }", "private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n saveBtn.setEnabled(true);\n }", "private JButton createApplyButton() {\r\n apply = new JButton();\r\n apply.setBounds(5, 260, 100, 25);\r\n\r\n add(new SComponent(apply,\r\n new String[] {\"Anpassen\", \"Apply\"},\r\n new String[] {\"Speichert die Farbeinstellungen.\",\r\n \"Saves the color settings.\"}));\r\n\r\n apply.addActionListener(new ActionListener() {\r\n\r\n /** Zeichnet den Graphen mit den ausgewählten\r\n * Frabeinstellungen\r\n *\r\n * @param e ActionEvent\r\n */\r\n public void actionPerformed(final ActionEvent e) {\r\n Color[] col = new Color[8];\r\n for (int i = 0; i < 8; i++) {\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n col[i] = chooser[COLOR_EDGE_FLOW]\r\n .getColorSelected();\r\n break;\r\n case COLOR_EDGE_TWO:\r\n col[i] = chooser[COLOR_EDGE_CAP]\r\n .getColorSelected();\r\n break;\r\n case COLOR_EDGE_TOP:\r\n col[i] = chooser[COLOR_EDGE_RTOP]\r\n .getColorSelected();\r\n break;\r\n default: col[i] = chooser[i].getColorSelected();\r\n }\r\n } else {\r\n col[i] = chooser[i].getColorSelected();\r\n }\r\n }\r\n drawer.setColorSettings(col);\r\n\r\n /*GAModel gam = mainclass.getModel();\r\n if (gam.getGraphComponentState()\r\n == GAModel.COMPONENT_VALID) {\r\n gam.setGraphComponentState(GAModel.COMPONENT_OUTDATED);\r\n }*/\r\n mainclass.repaint();\r\n }\r\n });\r\n\r\n return apply;\r\n }", "public void setColour(String colour) {\n this.colour = colour;\n }", "public void addPalette(Palette palette);", "@Override\n\tpublic String addcolor() {\n\t\treturn \"Green color is applied\";\n\t}", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "protected void setColors(String key, RGB foreground, RGB background,\n String filePath) {\n ColorInfoMap colorInfoMap = this.getColorInfoMap();\n if (colorInfoMap == null) {\n colorInfoMap = new ColorInfoMap();\n this.setColorInfoMap(colorInfoMap);\n }\n Map<String, ColorInfo> colors = colorInfoMap.getColors();\n if (colors == null) {\n colorInfoMap.setColors(new HashMap<String, ColorInfo>());\n colors = colorInfoMap.getColors();\n }\n\n ColorInfo colorInfo = colors.get(key);\n if (colorInfo != null) {\n colorInfo.setColors(foreground, background);\n } else {\n ColorInfo newColorInfo = new ColorInfo();\n newColorInfo.setColors(foreground, background);\n colors.put(key, newColorInfo);\n }\n\n IPathManager pathMgr = PathManagerFactory.getPathManager();\n LocalizationContext lContext = pathMgr.getContext(\n LocalizationType.CAVE_STATIC, LocalizationLevel.USER);\n LocalizationFile file = pathMgr.getLocalizationFile(lContext, filePath);\n try {\n jaxb.marshalToXmlFile(colorInfoMap, file.getFile().getPath());\n file.save();\n } catch (Exception e) {\n Activator.statusHandler.error(\n \"Unable to write color information to file: \"\n + file.getName() + \" in context \" + lContext, e);\n }\n }", "public void saveAccentWallpaper() {\n Theme.ThemeAccent themeAccent = this.accent;\n if (themeAccent != null && !TextUtils.isEmpty(themeAccent.patternSlug)) {\n try {\n File pathToWallpaper = this.accent.getPathToWallpaper();\n Drawable background = this.backgroundImage.getBackground();\n Bitmap bitmap = this.backgroundImage.getImageReceiver().getBitmap();\n FileOutputStream fileOutputStream = new FileOutputStream(pathToWallpaper);\n bitmap.compress(background instanceof MotionBackgroundDrawable ? Bitmap.CompressFormat.PNG : Bitmap.CompressFormat.JPEG, 87, fileOutputStream);\n fileOutputStream.close();\n } catch (Throwable th) {\n FileLog.e(th);\n }\n }\n }", "public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }", "void setCurrentFillColour(Color colour) {\n int colourIndex = shapes.size();\n fillColours.set(colourIndex, colour);\n currentFillColour = colour;\n writeFile.writeFill(colour);\n }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}", "public Piece.color getColor() { return color; }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_PRIMARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "public void addColor(String color) {\n fullPhoto.addColor(color);\n }", "public Preferences(BlueJ bluej) {\r\n this.bluej = bluej;\r\n myPanel = new JPanel();\r\n myPanel.add(new JLabel(\"Favorite Colour\"));\r\n color = new JTextField(40);\r\n myPanel.add(color);\r\n // Load the default value\r\n loadValues();\r\n }", "public void setColour(String c)\n\t{\n\t\tcolour = c;\n\t}", "public void setColor(DyeColor color) {\n/* 53 */ setData(color.getWoolData());\n/* */ }", "public void saveState() {\n savedPen.setValues(pm.pen);\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 }", "public static void saveColor(final float[] color, Firebase reference) {\n reference.runTransaction(new Transaction.Handler() {\n @Override\n public Transaction.Result doTransaction(MutableData playerStatsData) {\n DBPlayerStats playerStats = playerStatsData.getValue(DBPlayerStats.class);\n if (playerStats==null){\n return Transaction.abort();\n }\n\n playerStats.setColor(color);\n playerStatsData.setValue(playerStats);\n\n return Transaction.success(playerStatsData);\n }\n\n @Override\n public void onComplete(FirebaseError firebaseError, boolean b, DataSnapshot dataSnapshot) {\n }\n });\n }", "public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }", "public void setSecretColour(ColourClient colour){\n\n this.secretColour=colour;\n\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public CGlassEclipseColorSchemeExtension (CDockColorMap map) {\r\n if (map != null) {\r\n colMap = map;\r\n }\r\n updateUI();\r\n }", "public Figure(String colour) {\n this.colour = colour;\n }", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}", "public String getColour() {\r\n return colour;\r\n }", "@Override\n public void disposeComponent() {\n ColorPairsConfigurationHandler.getMyInstance().saveConfig();\n }", "public void addColor(PhotoColor color) {\n fullPhoto.addColor(color);\n }", "String getColour();", "public void persistCvchannelPack(CvchannelPack cvchannelPack);", "private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }", "private Color createColor( final String key, final Display display ) {\r\n Color color = null;\r\n if( this.store.contains( key ) ) {\r\n RGB rgb = null;\r\n if( this.store.isDefault( key ) ) {\r\n rgb = PreferenceConverter.getDefaultColor( this.store, key );\r\n } else {\r\n rgb = PreferenceConverter.getColor( this.store, key );\r\n }\r\n if( rgb != null ) {\r\n color = new Color( display, rgb );\r\n }\r\n }\r\n return color;\r\n }", "private void themeDynamicAdd() {\n try {\n Background=getBitmapFromURL(base_image);\n Drawable dr = new BitmapDrawable((Background));\n test_rules_background.setBackgroundDrawable(dr);\n\n Bitmap back_bitmap;\n String back_shrd= AarambhThemeSharedPrefreence.loadBackArrowIconFromPreference(this);\n back_bitmap = getBitmapFromURL(back_shrd);\n Drawable dr1 = new BitmapDrawable((back_bitmap));\n back_btn_test_rules.setBackgroundDrawable(dr1);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "void applyTheme(T theme);", "void setStatusColour(Color colour);", "public String getColour() {\n return colour;\n }", "public String getColour() {\n return colour;\n }", "public PaletteColour(String type, int id, String name, String code,String shortHand, int mode) {\n this.type = type;\n this.id = id;\n this.name = name;\n this.shortHand = shortHand;\n if (mode == 1) {\n System.out.println(\"Step1: \" + code);\n this.code = this.rgbToHex(code);\n System.out.println(\"Step2: \" + this.code);\n this.colour = this.hexToColour(this.code);\n System.out.println(\"Step3: \" + this.colour);\n\n } else {\n this.code = code;\n this.colour = this.hexToColour(code);\n }\n }", "public ShadesOfBlue(){\n super( Settings.ObjectivesProperties.SHADES_OF_BLUE.getTitle(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getDescription(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPath(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPoints(),\n Colour.BLUE);\n }", "public void add(String colours){\n //get middle colour\n String newColours=\"\";\n char middle = colours.charAt(4);\n\n FaceColour col = FaceColour.valueOf(Character.toString(middle));\n newColours = colours.substring(0);\n for(FaceColour faceCol : faceToColourMap.keySet()){\n char faceColCh = faceCol.name().charAt(0);\n newColours = newColours.replace(faceColCh, faceToColourMap.get(faceCol));\n }\n\n cube[col.ordinal()] = newColours;\n }", "private void addNewColorToPanel() {\n if (!colorPickerCurrent.getValue().equals(colorsQueue.getFirst())) {\n colorsQueue.push(colorPickerCurrent.getValue());\n revalidateColorPanel();\n }\n }", "private ArrayList<Colours> setColour(){\n\t\tArrayList<Colours> list = new ArrayList<Colours>();\n\t\tlist.add(Colours.RED);\n\t\tlist.add(Colours.BLUE);\n\t\tlist.add(Colours.YELLOW);\n\t\tlist.add(Colours.PINK);\n\t\tlist.add(Colours.GREEN);\n\t\tlist.add(Colours.PURPLE);\n\t\treturn list;\n\t}", "public FreeMindWriter cloud( int color ) {\n tagClose();\n\n String c = Integer.toHexString( color );\n while( c.length() < 6 ) c = \"0\" + c; \n\n out.println( \"<cloud COLOR='#\" + c + \"'/>\" );\n return this; \n }", "@Deprecated\n\tpublic void pushColour(Colour colour) {\n\t\tcolours.add(colour);\n\t}", "private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "private void colorizePalette(byte [] buffer, int offset, int color) {\r\n\t\tint dataLength = getInt(buffer, offset);\r\n\t\tint dataOffset = offset + 8;\r\n\r\n\t\tint r = (color & 0x00FF0000) >>> 16;\r\n\t\tint g = (color & 0x0000FF00) >>> 8;\r\n\t\tint b = (color & 0x000000FF);\r\n\r\n\t\tfor (int i = 0; i < dataLength / 3; i++) {\r\n\t\t\tint pR = buffer[dataOffset+0] & 0xFF;\r\n\t\t\tint pG = buffer[dataOffset+1] & 0xFF;\r\n\t\t\tint pB = buffer[dataOffset+2] & 0xFF;\r\n\r\n\t\t\tint brightness = (pR + pG + pB) / 3;\r\n\r\n\t\t\tbuffer[dataOffset++] = (byte) (r + (brightness * (255-r)) / 255); // red\r\n\t\t\tbuffer[dataOffset++] = (byte) (g + (brightness * (255-g)) / 255); // green\r\n\t\t\tbuffer[dataOffset++] = (byte) (b + (brightness * (255-b)) / 255); // blue\r\n\t\t}\r\n\r\n\t\tint crc = crc32(buffer, offset + 4, dataLength + 4);\r\n\t\tsetInt(buffer, offset + 8 + dataLength, crc);\r\n\t}", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "public void updateColourInfo(String col) {\n /**\n * Handles a few special cases where the colour is not set or where the\n * colouring would class with the black background.\n *\n */\n switch (col) {\n case \"LIGHTBLACK\":\n selectedCol.setText(\"Selected Ball Colour: BLACK\");\n selectedCol.setColour(\"GREY\");\n break;\n case \"NONE\":\n selectedCol.setText(\"Selected Ball Colour: NONE\");\n selectedCol.setColour(\"WHITE\");\n break;\n default:\n selectedCol.setText(\"Selected Ball Colour: \" + col);\n selectedCol.setColour(col);\n break;\n }\n }", "public void addPawn(Pawn.Color c) { pawn = new Pawn(c, Pawn.Type.BASIC); }", "public void fillColours() {\n this.colours = new String[4];\n this.colours[0] = \"diamonds\";\n this.colours[1] = \"hearts\";\n this.colours[2] = \"spades\";\n this.colours[3] = \"clubs\";\n }", "@Override\n public void setColor(Color newColor) {\n BufferedImage bufferedImage;\n try {\n bufferedImage = ImageIO.read(new URL(this.pieceType.getFileName2D()));\n BufferedImage coloredImage = colorImage(bufferedImage,newColor);\n Image image = SwingFXUtils.toFXImage(coloredImage, null);\n view = new ImageView(image);\n\n //these are temporary\n view.setFitHeight(80);\n view.setFitWidth(80);\n\n } catch (IOException e) {\n System.err.println(\"Error with creating the buffered image\");\n e.printStackTrace();\n }\n }", "public void write(Appendable out, GxpContext gxpContext) throws IOException {\n out.append(\"#\");\n if (isFourBit(red) && isFourBit(green) && isFourBit(blue)) {\n appendNybble(out, red);\n appendNybble(out, green);\n appendNybble(out, blue);\n } else {\n appendByte(out, red);\n appendByte(out, green);\n appendByte(out, blue);\n }\n }", "public void\nsetAmbientElt( SbColor color )\n\n{\n this.coinstate.ambient.copyFrom(color);\n}", "public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }", "public void addColourCopier(String id, double pageCost, int copySpeed, \n int maxJobSize);", "public PaletteColour(String type, int id, String name, String code,String shortHand) {\n this.type = type;\n this.id = id;\n this.name = name;\n this.code = code;\n this.colour = this.hexToColour(code);\n this.shortHand = shortHand;\n\n }", "public void persistCvpack(Cvpack cvpack);", "public void cambiarColorCrc() {\r\n R1 = slRCrc.getValue();\r\n G1 = slGCrc.getValue();\r\n B1 = slBCrc.getValue();\r\n jRCr.setText(\"R: \" + R1);\r\n jVCr.setText(\"G: \" + G1);\r\n jACr.setText(\"B: \" + B1);\r\n color = new Color(R1,G1,B1);\r\n btninfCrc.setBackground(color);\r\n btnEditarCrc.setBackground(color);\r\n btnPruebaCrc.setBackground(color);\r\n btnRegresarCrc.setBackground(color);\r\n repaint(); //Metodo que permite que la figura cambie de color en tiempo real\r\n }", "private void addColors() {\n colors.add(Color.GRAY);\n colors.add(Color.BLUE);\n colors.add(Color.DKGRAY);\n colors.add(Color.CYAN);\n colors.add(Color.MAGENTA);\n //Zijn voorlopig maar 5 kleuren, kan altijd makkelijk meer doen, wil ook liever hex-based kleuren gaan gebruiken.\n }", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "public static void setupResourcePack() {\n try {\n FileWriter writer = new FileWriter(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\", \"pack.mcmeta\").toFile());\n writer.write(\"{\\\"pack\\\":{\\\"pack_format\\\":6,\\\"description\\\":\\\"WingTech resource pack used for lang purposes for the user to add lang for teas.\\\"}}\");\n writer.close();\n }\n catch (Exception e){\n WingTech.LOGGER.error(\"Error creating pack.mcmeta\", e);\n }\n Minecraft.getInstance().getResourcePackRepository().addPackFinder((consumer, factory) -> {\n final ResourcePackInfo packInfo = ResourcePackInfo.create(\n WingTech.MODID,\n true,\n () -> new FolderPack(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\").toFile()) {\n @Override\n public boolean isHidden() {\n return true;\n }\n },\n factory,\n ResourcePackInfo.Priority.TOP,\n IPackNameDecorator.BUILT_IN\n );\n if (packInfo == null) {\n WingTech.LOGGER.error(\"Failed to load tea resource pack!\");\n return;\n }\n consumer.accept(packInfo);\n });\n }", "public void writeToXML(Writer bw) throws IOException {\n\t\tbw.write(\"<ColorReferenceExport>\");\n\t\tIterator itr = mappings.keySet().iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString key = (String) itr.next();\n\t\t\tbw.write(\"<ColorUnit>\\n<Key>\" + key + \"</Key>\\n\");\n\t\t\tbw.write(\"<ColorRGB>\" + ((Color) mappings.get(key)).getRGB()\n\t\t\t\t\t+ \"</ColorRGB>\\n</ColorUnit>\");\n\t\t}\n\t\tbw.write(\"\\n</ColorReferenceExport>\");\n\t}", "public ColouredFeature(IGeometry geom, Color colour) {\n super(geom);\n this.setId(idCounter.getAndIncrement());\n if (colour == null) {\n this.symbolColour = Color.RED;\n } else {\n this.symbolColour = colour;\n }\n }", "public void setColor(String c);", "void setColor(char c, char t) {\n\t\tif(c == 'b' && t == 'b') pI = PieceImage.B_BISHOP;\n\t\tif(c == 'b' && t == 'k') pI = PieceImage.B_KING;\n\t\tif(c == 'b' && t == 'c') pI = PieceImage.B_KNIGHT;\n\t\tif(c == 'b' && t == 'p') pI = PieceImage.B_PAWN;\n\t\tif(c == 'b' && t == 'q') pI = PieceImage.B_QUEEN;\n\t\tif(c == 'b' && t == 'r') pI = PieceImage.B_ROOK;\n\t\t\n\t\tif(c == 'w' && t == 'b') pI = PieceImage.W_BISHOP;\n\t\tif(c == 'w' && t == 'k') pI = PieceImage.W_KING;\n\t\tif(c == 'w' && t == 'c') pI = PieceImage.W_KNIGHT;\n\t\tif(c == 'w' && t == 'p') pI = PieceImage.W_PAWN;\n\t\tif(c == 'w' && t == 'q') pI = PieceImage.W_QUEEN;\n\t\tif(c == 'w' && t == 'r') pI = PieceImage.W_ROOK;\n\t\n\t\tif(c == 'c' && t == 'b') pI = PieceImage.C_BISHOP;\n\t\tif(c == 'c' && t == 'k') pI = PieceImage.C_KING;\n\t\tif(c == 'c' && t == 'c') pI = PieceImage.C_KNIGHT;\n\t\tif(c == 'c' && t == 'p') pI = PieceImage.C_PAWN;\n\t\tif(c == 'c' && t == 'q') pI = PieceImage.C_QUEEN;\n\t\tif(c == 'c' && t == 'r') pI = PieceImage.C_ROOK;\n\t\t\n\t\tif(c == 'p' && t == 'b') pI = PieceImage.P_BISHOP;\n\t\tif(c == 'p' && t == 'k') pI = PieceImage.P_KING;\n\t\tif(c == 'p' && t == 'c') pI = PieceImage.P_KNIGHT;\n\t\tif(c == 'p' && t == 'p') pI = PieceImage.P_PAWN;\n\t\tif(c == 'p' && t == 'q') pI = PieceImage.P_QUEEN;\n\t\tif(c == 'p' && t == 'r') pI = PieceImage.P_ROOK;\n\t\t}", "public CustomColourMap(Colour[] colour, String name){\n\t\tsuper(colour, name);\n\t\tthis.SetMapSize(colour.length);\n\t\tm_colourMap = new Colour[this.GetMapSize()];\n\t\tthis.InitMap();\n\t\t\n\t\tfor (int i = 0; i < this.GetMapSize(); i++) {\n\t\t\tm_colourMap[i] = colour[i];\n\t\t}\t\t\n\t}", "@Override\n public String getType() {\n return \"Color change\";\n }", "void setColor(ChatColor color);", "Picture colourComponentImage() throws Exception;", "public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }", "public void\nsetDiffuseElt(SoNode node, int numColors, \n SbColorArray colors, SoColorPacker packer)\n{\n this.coinstate.diffusenodeid = get_diffuse_node_id(node, numColors, colors);\n this.coinstate.diffusearray = colors;\n this.coinstate.numdiffuse = numColors;\n this.coinstate.packeddiffuse = false;\n \n}", "private void setThemesData() {\n\t\tint index = 0;\n\t\ttry {\n\t \tString strFile = Constants.extStorageDirectory +\"/Android_SlyCool/\"+theme_file_name;\n\t\t\tBufferedReader reader = new BufferedReader( new FileReader(strFile));\n\t\t\tLineNumberReader lineReader = new LineNumberReader(reader);\n\t String line;\n\t while ((line = lineReader.readLine()) != null) {\n\t \tif(lineReader.getLineNumber()!=1){\n\t \t\tString[] RowData = Constants.parseCsvLine(line.toString());\n\t \t\tif (RowData.length==14){\n\t \t\t\tfor(int j=0; j<13;j++){\t\n\t \t\t\t\tString currentString = RowData[j];\n\t \t\t\t\tcurrentString = currentString.replaceAll(\"\\\\\\\\n\", \"\\n\");\n\t \t\t\t\tRowData[j] = currentString;\n\t \t\t\t}\n\t\t \t\tThemes currentTheme = new Themes(String.valueOf(index),RowData[0],RowData[1],RowData[2],RowData[3],RowData[4],RowData[5],RowData[6],RowData[7],RowData[8],RowData[9],RowData[10],RowData[11],RowData[12],RowData[13]);\n\t\t\t\t \tConstants.allthemes.add(currentTheme);\n\t\t\t\t \tindex++;\n\t \t\t}\n\t \t} \t\n\t }\n\t\t}catch (IOException ex) {\n\t \n\t }\n\t}", "RGB getNewColor();", "private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }", "public void addColor(Color rgb) {\r\n\t\thsb = Color\r\n\t\t\t\t.RGBtoHSB(rgb.getRed(), rgb.getGreen(), rgb.getBlue(), null);\r\n\t}", "@Override\n public void onClick(View v) {\n content.removeAllViews();\n final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null);\n\n final View colour = view.findViewById(R.id.colour_preview);\n TextView colourName = (TextView) view.findViewById(R.id.colour_id);\n\n colour.setBackgroundColor(getResources().getColor(R.color.accent));\n colourName.setText(R.string.accent);\n\n TextView cancel, save;\n cancel = (TextView) view.findViewById(R.id.cancel_button);\n save = (TextView) view.findViewById(R.id.save_button);\n\n // Change Seekbars to reflect chosen colour\n final SeekBar redBar, greenBar, blueBar;\n redBar = (SeekBar) view.findViewById(R.id.red_bar);\n greenBar = (SeekBar) view.findViewById(R.id.green_bar);\n blueBar = (SeekBar) view.findViewById(R.id.blue_bar);\n\n redBar.setProgress(accentColour.red());\n greenBar.setProgress(accentColour.green());\n blueBar.setProgress(accentColour.blue());\n\n // show hex value\n EditText hex = (EditText) view.findViewById(R.id.hex_code);\n hex.setText(String.format(\"#%s\", accentColour.asHex()));\n\n // show rgb numbers\n final EditText red, blue, green;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n red.setText(String.valueOf(accentColour.red()));\n green.setText(String.valueOf(accentColour.green()));\n blue.setText(String.valueOf(accentColour.blue()));\n\n class SeekChanged implements SeekBar.OnSeekBarChangeListener {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if(fromUser) {\n red.setText(String.valueOf(redBar.getProgress()));\n green.setText(String.valueOf(greenBar.getProgress()));\n blue.setText(String.valueOf(blueBar.getProgress()));\n }\n colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {}\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {}\n }\n\n redBar.setOnSeekBarChangeListener(new SeekChanged());\n greenBar.setOnSeekBarChangeListener(new SeekChanged());\n blueBar.setOnSeekBarChangeListener(new SeekChanged());\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n content.removeAllViews();\n content.addView(settings);\n }\n });\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // save colour as ColourPack and add to Theme\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }\n });\n\n content.addView(view);\n }", "public void setBgColours(weatherData tmp) {\n\t\t\t\t\tswitch(tmp.getCondit()) {\n\t\t\t\t\t\tcase \"sky is clear \":\n\t\t\t\t\t\tcase \"clear sky \":\n\t\t\t\t\t\tcase \"Sky is Clear \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(255, 215,0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(255, 111, 0);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"few clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 255, 0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(9, 173, 33);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"scattered clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 90);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(45, 110, 35);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"broken clouds \":\n\t\t\t\t\t\tcase \"overcast clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 150);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 150, 130);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"shower rain \":\n\t\t\t\t\t\tcase \"light intensity drizzle \":\n\t\t\t\t\t\tcase \"drizzle \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle \":\n\t\t\t\t\t\tcase \"light intensity drizzle rain \":\n\t\t\t\t\t\tcase \"drizzle rain \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle rain \":\n\t\t\t\t\t\tcase \"shower rain and drizzle \":\n\t\t\t\t\t\tcase \"heavy shower rain and drizzle \":\n\t\t\t\t\t\tcase \"shower drizzle \":\n\t\t\t\t\t\tcase \"light intensity shower rain \":\n\t\t\t\t\t\tcase \"heavy intensity shower rain \":\n\t\t\t\t\t\tcase \"ragged shower rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0,255,255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 130, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"rain \":\n\t\t\t\t\t\tcase \"light rain \":\n\t\t\t\t\t\tcase \"moderate rain \":\n\t\t\t\t\t\tcase \"heavy intensity rain \":\n\t\t\t\t\t\tcase \"very heavy rain \":\n\t\t\t\t\t\tcase \"extreme rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 166, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 50, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light rain \":\n\t\t\t\t\t\tcase \"thunderstorm with rain \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy rain \":\n\t\t\t\t\t\tcase \"light thunderstorm \":\n\t\t\t\t\t\tcase \"heavy thunderstorm \":\n\t\t\t\t\t\tcase \"ragged thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy drizzle \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 95, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(60, 30, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"snow \":\n\t\t\t\t\t\tcase \"freezing rain \":\n\t\t\t\t\t\tcase \"light snow \":\n\t\t\t\t\t\tcase \"heavy snow \":\n\t\t\t\t\t\tcase \"sleet \":\n\t\t\t\t\t\tcase \"shower sleet \":\n\t\t\t\t\t\tcase \"light rain and snow \":\n\t\t\t\t\t\tcase \"rain and snow \":\n\t\t\t\t\t\tcase \"light shower snow \":\n\t\t\t\t\t\tcase \"shower snow \":\n\t\t\t\t\t\tcase \"heavy shower snow \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(145, 245, 245);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(75, 150, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"mist \":\n\t\t\t\t\t\tcase \"smoke \":\n\t\t\t\t\t\tcase \"haze \":\n\t\t\t\t\t\tcase \"sand, dust whirls \":\n\t\t\t\t\t\tcase \"fog \":\n\t\t\t\t\t\tcase \"sand \":\n\t\t\t\t\t\tcase \"dust \":\n\t\t\t\t\t\tcase \"volcanic ash \":\n\t\t\t\t\t\tcase \"squalls \":\n\t\t\t\t\t\tcase \"tornado \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(200, 210, 210);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(85, 110, 100);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 120, 240);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 10, 90);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "private void generateBackground(Universe universe) throws SAXException {\n File bgFile = universe.getScene().getBackgroundFile();\n if(bgFile != null){\n saver.addAttribute(\"src\", XmlSaver.CDATA, relativePath(bgFile.getAbsolutePath()));\n } \n// }else{\n// Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n// saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n// }\n Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n }", "public static void saveImage3(int[] rgb, String saveName, int width, int height){\n \t\n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, rgb, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public Theme (Map<TileColor, Color> palette) {\n\t\tthis.palette = palette;\n\t}", "void setCurrentPenColour(Color colour) {\n int colourIndex = shapes.size();\n lineColours.set(colourIndex, colour);\n currentPenColour = colour;\n writeFile.writePen(colour);\n }", "private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\n\t}", "public int getColour() {\n return colour;\n }", "public void saveLayerAlpha(int sx, int sy, int i, int j, int multipliedAlpha) {\n\t\t\n\t}", "public JComponent addInsert(Color color)\n {\n Category category = new Category(this, \"Insert FX\", color);\n \n JComponent comp;\n String[] params;\n final HBox hbox = new HBox();\n\n final HBox[] insert = new HBox[6];\n\n \n // OFF\n insert[0] = new HBox();\n\n\n // EQ Bandpass\n insert[1] = new HBox(); \n\n comp = new LabelledDial(\"Mid\", this, \"bandpassmidfreq\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Freq\");\n insert[1].add(comp);\n \n comp = new LabelledDial(\"Mid\", this, \"bandpassmidgain\", color, 0, 127)\n {\n public boolean isSymmetric() { return true; }\n public String map(int value)\n {\n if (value <= 64) return \"\" + (((value - 64) * 100) / 64) + \"%\";\n else return \"\" + (((value - 64) * 100) / 63) + \"%\";\n }\n };\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[1].add(comp);\n\n comp = new LabelledDial(\"Mid\", this, \"bandpassmidq\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Q\");\n insert[1].add(comp);\n\n\n // Compressor\n insert[2] = new HBox(); \n\n comp = new LabelledDial(\"Attack\", this, \"compressorattack\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Release\", this, \"compressorrelease\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Threshold\", this, \"compressorthreshold\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Ratio\", this, \"compressorratio\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Makeup\", this, \"compressorgain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[2].add(comp);\n\n\n // Auto Wah\n insert[3] = new HBox(); \n\n VBox vbox = new VBox();\n params = AUTO_WAH_TYPES;\n comp = new Chooser(\"Wah Wah Type\", this, \"autowahtype\", params);\n vbox.add(comp);\n insert[3] .add(vbox);\n\n comp = new LabelledDial(\"Cutoff\", this, \"autowahcutoff\", color, 0, 127);\n insert[3].add(comp);\n \n comp = new LabelledDial(\"Resonance\", this, \"autowahresonance\", color, 0, 127);\n insert[3].add(comp);\n \n comp = new LabelledDial(\"Sensitivity\", this, \"autowahsensitivity\", color, 0, 127);\n insert[3].add(comp);\n \n // shared with Compressor\n comp = new LabelledDial(\"Attack\", this, \"compressorattack\", color, 0, 127);\n insert[3].add(comp);\n \n // shared with Compressor\n comp = new LabelledDial(\"Release\", this, \"compressorrelease\", color, 0, 127);\n insert[3].add(comp);\n \n \n\n // Distortion\n insert[4] = new HBox(); \n\n vbox = new VBox();\n params = DISTORTION_TYPES;\n comp = new Chooser(\"Distortion Type\", this, \"distortiontype\", params);\n vbox.add(comp);\n insert[4].add(vbox);\n\n comp = new LabelledDial(\"Depth\", this, \"distortiondepth\", color, 0, 127);\n insert[4].add(comp);\n \n comp = new LabelledDial(\"Pre\", this, \"distortionpregain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[4].add(comp);\n \n comp = new LabelledDial(\"Post\", this, \"distortionpostgain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[4].add(comp);\n \n comp = new LabelledDial(\"High\", this, \"distortionhighcutoff\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Cutoff\");\n insert[4].add(comp);\n \n\n // Reducer\n insert[5] = new HBox(); \n\n comp = new LabelledDial(\"Bit\", this, \"reducerbitdepth\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Depth\");\n insert[5].add(comp);\n \n comp = new LabelledDial(\"Sample\", this, \"reducersamplerate\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Rate\");\n insert[5].add(comp);\n \n \n /// CHOOSER\n \n final HBox fx = new HBox();\n\n vbox = new VBox();\n params = INSERT_FX_TYPES;\n comp = new Chooser(\"Type\", this, \"channelfxtype\", params) // I *think* this is insert\n {\n public void update(String key, Model model)\n {\n super.update(key, model);\n fx.removeLast();\n int channelfxtype = model.get(\"channelfxtype\", 0);\n if (channelfxtype >= 0 && channelfxtype < insert.length)\n fx.addLast(insert[channelfxtype]);\n else Synth.handleException(new Throwable(\"Invalid channel fx type: \" + channelfxtype));\n fx.revalidate();\n fx.repaint();\n }\n }; \n vbox.add(comp);\n hbox.add(vbox);\n fx.add(insert[0]); // empty\n hbox.add(fx);\n \n category.add(hbox, BorderLayout.CENTER);\n return category;\n }", "public void set_color(String color){ color_ = GralColor.getColor(color.trim()); }", "public ColorPaletteBuilder color3(Color color)\n {\n if (color3 == null) colorsCount++;\n this.color3 = color;\n return this;\n }", "void setColorScheme(\n ReaderColorScheme c);", "public LightBulb(RGBColor color){\r\n _color = new RGBColor(color);\r\n }", "public void colorButtonClicked(String tag){\n color.set(tag);\n }" ]
[ "0.6978104", "0.6416462", "0.5737731", "0.5726519", "0.5529851", "0.5360623", "0.53583735", "0.5272551", "0.52433306", "0.52407086", "0.5231618", "0.5211561", "0.51772267", "0.5146643", "0.51311153", "0.51162857", "0.5108351", "0.5105574", "0.5094418", "0.50879467", "0.50812054", "0.50731826", "0.5071486", "0.50669885", "0.50568855", "0.50540656", "0.5053917", "0.5053353", "0.5020622", "0.5016698", "0.5013344", "0.50059336", "0.4999958", "0.49923146", "0.49841198", "0.49710178", "0.49630272", "0.49590397", "0.4957812", "0.49404404", "0.4936277", "0.49299958", "0.49265632", "0.49246383", "0.49229458", "0.49229458", "0.4911587", "0.4908806", "0.48998207", "0.48981515", "0.48944306", "0.48942602", "0.4894198", "0.48932004", "0.48923448", "0.48814255", "0.48742914", "0.48718628", "0.48616865", "0.486037", "0.48585182", "0.48552093", "0.48465228", "0.4843226", "0.48429343", "0.4842923", "0.4840409", "0.48398626", "0.48323897", "0.48257568", "0.48251927", "0.4824268", "0.4823498", "0.4817657", "0.48135942", "0.48121953", "0.4811175", "0.480775", "0.4806449", "0.48008442", "0.4795442", "0.4789558", "0.47873703", "0.4771277", "0.47648457", "0.47629303", "0.47573218", "0.47561777", "0.47555003", "0.4752917", "0.47492814", "0.47462404", "0.47457996", "0.47415602", "0.47412288", "0.4740986", "0.473889", "0.4737092", "0.47369736", "0.47355786" ]
0.51043826
18
change view in linearlayout
@Override public void onClick(View v) { content.removeAllViews(); final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null); final View colour = view.findViewById(R.id.colour_preview); TextView colourName = (TextView) view.findViewById(R.id.colour_id); colour.setBackgroundColor(getResources().getColor(R.color.accent)); colourName.setText(R.string.accent); TextView cancel, save; cancel = (TextView) view.findViewById(R.id.cancel_button); save = (TextView) view.findViewById(R.id.save_button); // Change Seekbars to reflect chosen colour final SeekBar redBar, greenBar, blueBar; redBar = (SeekBar) view.findViewById(R.id.red_bar); greenBar = (SeekBar) view.findViewById(R.id.green_bar); blueBar = (SeekBar) view.findViewById(R.id.blue_bar); redBar.setProgress(accentColour.red()); greenBar.setProgress(accentColour.green()); blueBar.setProgress(accentColour.blue()); // show hex value EditText hex = (EditText) view.findViewById(R.id.hex_code); hex.setText(String.format("#%s", accentColour.asHex())); // show rgb numbers final EditText red, blue, green; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); red.setText(String.valueOf(accentColour.red())); green.setText(String.valueOf(accentColour.green())); blue.setText(String.valueOf(accentColour.blue())); class SeekChanged implements SeekBar.OnSeekBarChangeListener { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { if(fromUser) { red.setText(String.valueOf(redBar.getProgress())); green.setText(String.valueOf(greenBar.getProgress())); blue.setText(String.valueOf(blueBar.getProgress())); } colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress())); } @Override public void onStartTrackingTouch(SeekBar seekBar) {} @Override public void onStopTrackingTouch(SeekBar seekBar) {} } redBar.setOnSeekBarChangeListener(new SeekChanged()); greenBar.setOnSeekBarChangeListener(new SeekChanged()); blueBar.setOnSeekBarChangeListener(new SeekChanged()); cancel.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { content.removeAllViews(); content.addView(settings); } }); save.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // save colour as ColourPack and add to Theme Settings.Section section; section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT); EditText red, green, blue; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); String r, g, b; r = red.getText().toString(); g = green.getText().toString(); b = blue.getText().toString(); section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r)); section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g)); section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b)); MainActivity.instance.themeSettings.save(); // go back to theme settings content.removeAllViews(); content.addView(settings); } }); content.addView(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n Log.v(TAG, \"onLayout l = \" + l + \"; t = \" + t + \"; r = \" + r + \"; b = \" + b);\n int count = getChildCount();\n int x = l;\n int y = t;\n for(int i = 0; i < count; i++){\n View child = (View)getChildAt(i);\n child.layout(x, y, x + r, y + b);\n x = x + r;\n }\n }", "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "void setView(View v);", "public void setView(View view);", "@Override\r\n\tprotected void setLayout() {\n\t\tsetContentView(R.layout.edit_trace_info_activity);\r\n\t}", "public void SetActivityLayout(View lv) {\n\t\tcontainer.removeAllViews();\n\t\tcontainer.addView(lv);\n\n\t}", "@Override\n public void onClick(View v) {\n //If the view is the switch layout button\n if(v.getId() == R.id.switchLayouts)\n {\n //If the button is checked/toggled\n if(changeViewSwitch.isChecked())\n {\n //Set the text to grid\n currentView.setText(R.string.gridView);\n //Set the layout manager to staggered grid view\n this.layoutManager = new StaggeredGridLayoutManager(3, LinearLayoutManager.HORIZONTAL);\n //this.layoutManager = new GridLayoutManager(this, 2);\n //Set the layoutmanager of the recycler view to the layout manager object\n this.recyclerView.setLayoutManager(layoutManager);\n }\n else\n {\n //Set the text to list\n currentView.setText(R.string.listView);\n //Set the layout manager to staggered grid view\n this.layoutManager = new LinearLayoutManager(this);\n //Set the layoutmanager of the recycler view to the layout manager object\n this.recyclerView.setLayoutManager(layoutManager);\n }\n }\n }", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n view_top.layout((int) mDrange + dip2px(getContext(), 20) - view_top.getMeasuredWidth() / 2, t, (int) mDrange + view_top.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight());\n view_mid.layout((int) mDrange + dip2px(getContext(), 20) - view_mid.getMeasuredWidth() / 2, view_top.getMeasuredHeight(), (int) mDrange + view_mid.getMeasuredWidth() / 2 + dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight());\n pb.layout(dip2px(getContext(), 20) + l, view_top.getMeasuredHeight() + view_mid.getMeasuredHeight(), r - dip2px(getContext(), 20), view_top.getMeasuredHeight() + view_mid.getMeasuredHeight() + pb.getMeasuredHeight());\n }", "private void InitView() {\n\t\tmLinearLayout = new LinearLayout(getContext());\n\t\t//mLinearLayout.setBackgroundResource(MusicApplication.getInstance().getBgResource());\n\t\t\n\t\t//Modify by LiYongNam 2012.9.19_start\n\t\tMusicUtil.setBackgroundOfView ( mLinearLayout, getContext() );\t\t\t\t\n\t\t//Modify by LiYongNam 2012.9.19_end\n\t\t\n\t\tmLinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tmLinearLayout.setPadding(1, 1, 1, Util.dipTopx(getContext(), 60));\n\t\t// 导航条\n\t\taddTitleBar(-1, \"编辑列表\", R.drawable.check_off, R.drawable.title_bar);\n\n\t\tmControlBar = new ControlBar(getContext());\n\t\tmControlBar.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\tUtil.dipTopx(getContext(), 60)));\n\n//\t\taddControlButton(\"全选\", CONTROL1, 0);\n\t\taddControlButton(\"播放\", CONTROL2, 1);\n\t\taddControlButton(\"加入\", CONTROL3, 2);\n\t\taddControlButton(\"删除\", CONTROL4, 3);\n\n\t}", "public void mo51862e(LinearLayout linearLayout, Activity activity) {\n linearLayout.addView(super.mo51863a(jh.f39467b, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39476k, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39474i, activity, this.f39360a), linearLayout.getChildCount());\n linearLayout.addView(super.mo51863a(jh.f39473h, activity, this.f39360a), linearLayout.getChildCount());\n }", "@Override\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tsuper.layout(l, t, r, b);\n\t\t\tLog.e(\"FYF\", getId() + \" ImageView layout\");\n\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t((LinearLayout) getParent()).addView(LogisticTaskFareGroupView.this.clone());\n\n\t\t\t}", "private void setCorrectView(){\n\n if(lisCompanies.size() > 0) {\n // if companies, display them\n //Toast.makeText(lsv.getContext(), \"There are companies! #\" + lisCompanies.size(), Toast.LENGTH_LONG).show();\n lsv.setVisibility(View.VISIBLE);\n llv.setVisibility(View.GONE);\n }\n else {\n // if no companies, display \"+ Add Company\" w image\n lsv.setVisibility(View.GONE);\n llv.setVisibility(View.VISIBLE);\n }\n }", "private void initView() {\n\n main_ll_rl = (LinearLayout) findViewById(R.id.main_ll_rili);\n main_ll_xw = (LinearLayout) findViewById(R.id.main_ll_xw);\n main_ll_wode = (LinearLayout) findViewById(R.id.main_ll_wd);\n main_ll_self = (LinearLayout) findViewById(R.id.main_ll_self);\n main_ll_hq = (LinearLayout) findViewById(R.id.main_ll_hq);\n main_zt_color = (LinearLayout) findViewById(R.id.main_zt_color);\n\n main_zt_color.setBackgroundColor(Color.parseColor(\"#e9e9ea\"));\n\n imgrl = (ImageView) findViewById(R.id.imgrili);\n imgxw = (ImageView) findViewById(R.id.imgxw);\n imgwd = (ImageView) findViewById(R.id.imgwd);\n imggr = (ImageView) findViewById(R.id.imgself);\n imghq = (ImageView) findViewById(R.id.imghq);\n\n main_rl_tv = (TextView) findViewById(R.id.main_rl_tv);\n main_xw_tv = (TextView) findViewById(R.id.main_xw_tv);\n main_wd_tv = (TextView) findViewById(R.id.main_wd_tv);\n main_gr_tv = (TextView) findViewById(R.id.main_self_tv);\n main_hq_tv = (TextView) findViewById(R.id.main_hq_tv);\n\n main_ll_rl.setOnClickListener(this);\n main_ll_xw.setOnClickListener(this);\n main_ll_wode.setOnClickListener(this);\n main_ll_hq.setOnClickListener(this);\n main_ll_self.setOnClickListener(this);\n }", "@Override\n\tpublic void setView(View view) {\n\n\t}", "@Override \r\n\tprotected void onLayout(boolean changed, int left, int top, int right, int bottom)\r\n\t{\n\t\tif(changed)\r\n\t\t{\r\n\t\t\tthis.calculateChildViewLayoutParams();\r\n\t\t}\r\n\t\t\r\n\t\t// Set the layout position for the menu and content\r\n\t\tthis.m_listView.layout(left, top, right, bottom);\r\n\t\tthis.m_playerInfo.layout(left, (top - this.m_currentInfoOffset), right, (bottom - this.m_currentInfoOffset));\r\n\t\tthis.m_playerControls.layout(left, (top - this.m_currentControlsOffset), right, (bottom - this.m_currentControlsOffset));\r\n\t\tthis.m_banner.layout(left, top, right, bottom);\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n LinearLayout ll =(LinearLayout)arg0.findViewById(R.id.linearLayout22);\n task =(Task) getChild(groupPosition,childPosition);\n Log.d(\"CHILD\", task.toString());\n\t\t\t\tif(ll.getVisibility()==View.VISIBLE){\n ll.setVisibility(View.GONE);\n\t\t\t\t}else{\n linearLayout=(LinearLayout)arg0.findViewById(R.id.linearLayoutText);\n ll.setVisibility(View.VISIBLE);\n if(previosLL!=null&&previosLL.getVisibility()==View.VISIBLE&&previosLL!=ll){\n previosLL.setVisibility(View.GONE);\n }//if(previosLL!=lr)previosLL=ll;\n previosLL=ll;\n\t\t\t\t}\n\t\t\t//lr.getVisibility()=View.VISIBLE ? lr.setVisibility(Viev.GONE):lr.setVisibility(View.VISIBLE)\n\t\t\t}", "@Override\r\n\t\tpublic void layout(int l, int t, int r, int b) {\n\t\t\tLog.v(\"MyView01>layout\",\"f-1\");\r\n\t\t\tsuper.layout(l, t, r, b);\r\n\t\t\tLog.v(\"MyView01>layout\",\"f-2\");\r\n\t\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tsuper.onLayout(changed, l, t, r, b);\n\t\tif(changed){\n\t\t\tthis.scrollTo(0, 0);\n\t\t}\n\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b)\n\t{\n\n\t\tDisplayMetrics displayMetrics = getResources().getDisplayMetrics();\n\t\tint screenWidth = displayMetrics.widthPixels;\n\t\t//int screenHeight = displayMetrics.heightPixels;\n\t\tint childTop = 30;\n\t\tint childLeft = 20;\n\t\tint cameraPicWidth = screenWidth / 5;\n\t\tint cameraPicHeight = 2 * cameraPicWidth;\n\t\tint space = 20;\n\t\tint column = 0;\n\n\t\tfinal int count = getChildCount();\n\t\tfor (int i = 0; i < count; i++)\n\t\t{\n\t\t\tfinal View child = getChildAt(i);\n\t\t\tif (child.getVisibility() != View.GONE)\n\t\t\t{\n\t\t\t\tchild.setVisibility(View.VISIBLE);\n\t\t\t\t//child.measure(r - l, b - t);\n\t\t\t\tchild.layout(childLeft + space, childTop, childLeft + cameraPicWidth + space, childTop + cameraPicHeight + space);\n\t\t\t\tcolumn++;\n\t\t\t\tif (childLeft < screenWidth - 2 * (space + cameraPicWidth))\n\t\t\t\t{\n\t\t\t\t\tchildLeft += cameraPicWidth + space;\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tcolumn = 0;\n\t\t\t\t\tchildLeft = 20;\n\t\t\t\t\tchildTop += cameraPicHeight;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void setCustomView(View view, LayoutParams layoutParams) {\n\t\t\n\t}", "private LinearLayout updateLayout(View view, int layoutId) {\r\n LinearLayout layout = (LinearLayout) view.findViewById(layoutId);\r\n LinearLayout.LayoutParams params = (LinearLayout.LayoutParams) layout.getLayoutParams();\r\n int marginInPx = SkyControlUtils.dpToPixel(4);\r\n params.setMargins(marginInPx, marginInPx, marginInPx, marginInPx);\r\n layout.setLayoutParams(params);\r\n layout.setClickable(true);\r\n layout.setBackgroundResource(R.drawable.view_clickable_background);\r\n\r\n return layout;\r\n }", "@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}", "void setScoreView(View v);", "private View modifyView(TextView view, int position) {\n MeshId item = this.getItem(position);\n if (item != null) {\n String text; // Text for the item in the list.\n int colour; // Colour for the text in the list.\n\n if (item.equals(deviceId)) {\n // Change text colour if is the current device's Id.\n text = \"This Device\";\n colour = R.color.blue;\n } else {\n // Otherwise, simply make the MeshId more readable and use the theme default colour.\n text = MeshHelper.getInstance().shortenMeshId(item);\n colour = android.R.color.primary_text_light;\n }\n view.setText(text);\n view.setTextColor(ContextCompat.getColor(getContext(), colour));\n }\n return view;\n }", "public void switchView(View view) {\r\n\t\tthis.currentView = view;\r\n\t\trenderView();\r\n\t}", "private void setViews() {\n\n }", "@Override\n public void generarLinearLayoutV() {\n LinearLayoutManager llm = new LinearLayoutManager(getActivity());\n llm.setOrientation(LinearLayoutManager.VERTICAL);\n\n rvMascotas.setLayoutManager(llm);//le entrego el layout a mi lista\n\n }", "protected void onLoadLayout(View view) {\n }", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "@Override\n\tprotected int getViewId() {\n\t\treturn R.layout.layout_square_live;\n\t}", "public LinearLayout getLinearLayout(String line){\n Resources r = getResources();\n String name = getPackageName();\n LinearLayout L=(LinearLayout)findViewById(r.getIdentifier(line,\"id\",name));\n L.removeAllViews();\n return L;\n }", "void updateView();", "void updateView();", "public void addView(View view) {\n view.setLayoutParams(new LinearLayout.LayoutParams(\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, 1f));\n mLinearLayout.addView(view);\n }", "private void milestonesLayoutHandler() {\n layoutMilestones = (LinearLayout) findViewById(R.id.layoutMilestones);\n txtViewMilestonesCountToday = (AutoResizeTextView) findViewById(R.id.txtViewMilestonesCountToday);\n txtMilestonesYesterdayValue = (TextView) findViewById(R.id.txtMilestonesYesterdayValue);\n\n layoutMilestones.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(context, \"Coming soon\", Toast.LENGTH_SHORT).show();\n }\n });\n\n txtViewMilestonesCountToday.setText(String.valueOf(userSharedPreferences.getInt(HPIApp.Prefs.SHARED_KEY_MILESTONES_TODAY, 0)));\n txtMilestonesYesterdayValue.setText(\"-\");\n }", "private void viewChange() {\n currentView = (TextView) findViewById(R.id.currView);\n currentView.setText(counters.get(counterPosition).toString());\n }", "protected abstract void iniciarLayout();", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "@Override\r\n\t\tprotected void onLayout(boolean changed, int left, int top, int right,\r\n\t\t\t\tint bottom) {\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-1\");\r\n\t\t\tsuper.onLayout(changed, left, top, right, bottom);\r\n\t\t\tLog.v(\"MyView01>onLayout\",\"f-2\");\r\n\t\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n if (flag) {\n //进行一些初始化的操作\n/* if ((mOvalHeight == -1) || (mOvalWidth == -1)) {\n if (mWidth > mHeight) {\n mOvalHeight = (mHeight - 100) / 2;\n mOvalWidth = mOvalHeight + 100;\n } else {\n mOvalWidth = (mWidth - 100) / 2;\n mOvalHeight = mOvalWidth + 100;\n }\n }else {\n mOvalWidth /= 2;\n mOvalHeight /= 2;\n }*/\n\n if (mOvalHeightMargin != -1) {\n mOvalHeight = (mHeight - mOvalHeightMargin * 2) / 2;\n } else if (mOvalHeight == -1) {\n mOvalHeight = mHeight / 2;\n }\n if (mOvalWidthMargin != -1) {\n mOvalWidth = (mWidth - mOvalWidthMargin * 2) / 2;\n } else if (mOvalWidth == -1) {\n mOvalWidth = mWidth / 2;\n }\n\n\n if ((mChildWidth == -1) && (mChildHeight == -1)) {\n mChildWidth = 50;\n mChildHeight = 50;\n }\n\n //下面是获取所有的子view,给子view分配初始位置,默认第一个是270度,相当于y轴负半轴。\n mChildCount = getChildCount();\n mChildrenView = new View[mChildCount];\n mAngles = new double[mChildCount];\n mAngles[0] = 270;\n double j = 360 / mChildCount;\n for (int i = 0; i < mChildCount; i++) {\n mChildrenView[i] = getChildAt(i);\n final int finalI = i;\n mChildrenView[i].setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n if (itemClickListener == null)\n Log.e(TAG, \"你点击了的position = \" + finalI + \",但是itemClickListener == null\");\n else {\n itemClickListener.onItemClick(v, finalI, true);\n }\n }\n });\n if (i > 0) {\n if ((mAngles[i] + j) <= 360) {\n mAngles[i] = mAngles[i - 1] + j;\n } else {\n mAngles[i] = mAngles[i - 1] + j - 360;\n }\n }\n int x = (int) (mOvalWidth * Math.cos(mAngles[i] * Math.PI / 180));\n int y = (int) (mOvalHeight * Math.sin(mAngles[i] * Math.PI / 180));\n mChildrenView[i].layout(mWidth / 2 - x - mChildWidth / 2, mHeight / 2 - y - mChildHeight / 2, mWidth / 2 - x + mChildWidth / 2, mHeight / 2 - y + mChildHeight / 2);\n }\n flag = false;\n }\n }", "private void setViews() {\n lv.setAdapter(adapter);\n\n dialog2 = new MiddleDialog2(INSTANCE, getResources().getString(R.string.title), getResources().getString(R.string.value), new MiddleDialog2.onBottonListener() {\n @Override\n public void onOk() {\n\n finish();\n }\n },R.style.registDialog);\n }", "private void setupView(JLabel view, int w, int h, int x, int y) {\n\n view.setSize(w,h);\n view.setLocation(x,y);\n\n add(view);\n\n }", "private void switchToPickLayout()\n {\n this.fragmentActivity.findViewById(R.id.transferImagesLayout).setVisibility(View.GONE);\n this.fragmentActivity.findViewById(R.id.pickImagesLayout).setVisibility(View.VISIBLE);\n }", "@Override\r\n\tprotected void layout() {\n\t\tsetContentView(R.layout.activity_change_password);\r\n\t\tsetBackButton();\r\n\t\tfindViewById(R.id.regist_sure).setOnClickListener(this);\r\n\t}", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "private void addViews() {\n\t}", "@Override\n\tprotected int initView() {\n\t\treturn R.layout.activity_zhusu_detail;\n\t}", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tl = 0;\n\t\tt = 0;\n\t\tr = getWidth();\n\t\tb = getHeight();\n\n\t\tif (header != null) {\n\t\t\theader.layout(l, t, r, header.getMeasuredHeight());\n\t\t\titem.layout(l, header.getMeasuredHeight(), r, b);\n\t\t} else if (divider != null) {\n\t\t\tdivider.setBounds(l, t, r, dividerHeight);\n\t\t\titem.layout(l, dividerHeight, r, b);\n\t\t} else {\n\t\t\titem.layout(l, t, r, b);\n\t\t}\n\t}", "@Override\n\tpublic void setCustomView(View view) {\n\t\t\n\t}", "public void switchLayout(int i) {\n this.mCurrentLayout = i;\n LayoutItem layoutItem = (LayoutItem) this.mLayoutItems.get(this.mCurrentLayout);\n this.mLayoutAdapter.switchLayout(layoutItem);\n this.mImageView.setLayoutItem(layoutItem);\n }", "private void initView() {\n\t\trl_edit = (RelativeLayout) findViewById(R.id.rl_edit);\n\t\ttv_all=(TextView) findViewById(R.id.tv_all);\n\t\ttv_dle=(TextView) findViewById(R.id.tv_dle);\n\t\ttv_all.setOnClickListener(this);\n\t\ttv_dle.setOnClickListener(this);\n\t\trl_wd = (RelativeLayout) findViewById(R.id.main_rl_my);\n\t\trl_wd.setOnClickListener(this);\n\t\tmain_rl_gwc = (RelativeLayout) findViewById(R.id.main_rl_gwc);\n\t\tmain_rl_gwc.setOnClickListener(this);\n\t\trl_sy = (RelativeLayout) findViewById(R.id.main_rl_sy);\n\t\trl_sy.setOnClickListener(this);\n\n\t\tnext_sure = (TextView) findViewById(R.id.next_sure);\n\t\tnext_sure.setVisibility(View.VISIBLE);\n\t\tnext_sure.setText(\"确认\");\n\t\tnew TitleMenuUtil(MyMessage.this, \"我的消息\").show();\n\t\tmyAdapter = new MessageAdapter(MyMessage.this, myList);\n\t\teva_nodata = (LinearLayout) findViewById(R.id.eva_nodata);\n\t\tXlistview = (XListView) findViewById(R.id.x_listview);\n\t\t// refund_listview.getmFooterView().getmHintView().setText(\"�Ѿ�û�������\");\n\t\tXlistview.setPullLoadEnable(true);\n\t\tXlistview.setXListViewListener(this);\n\t\tXlistview.setDivider(null);\n\n\t\tXlistview.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t Intent i = new Intent(MyMessage.this, MymsgDetail.class);\n\t\t\t\t i.putExtra(\"id\", myList.get(position-1).getId()+\"\");\n\t\t\t\t startActivity(i);\n\t\t\t}\n\t\t});\n\t\tXlistview.setAdapter(myAdapter);\n\n\t\tnext_sure.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (MyApplication.getIsSelect()) {\n\t\t\t\t\t// ��������ɾ�����\n\t\t\t\t\tnext_sure.setText(\"取消\");\n\t\t\t\t\tMyApplication.setIsSelect(false);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t \n\t\t\t\t\t\n\t\t\t\t\trl_editno.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_edit.setVisibility(View.GONE);\n\t\t \n\t\t\t\t} else {\n\t\t\t\t\tnext_sure.setText(\"删除\");\n\t\t\t\t\tMyApplication.setIsSelect(true);\n\t\t\t\t\trl_edit.setVisibility(View.VISIBLE);\n\t\t\t\t\trl_editno.setVisibility(View.GONE);\n\t\t\t\t\tmyAdapter.notifyDataSetChanged();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void showLayout(String layout) {\n studentList.setVisibility(View.GONE);\n addTable.setVisibility(View.GONE);\n editTable.setVisibility(View.GONE);\n\n switch(layout) {\n case \"studentList\":\n Student.this.recreate();\n// startActivity(getIntent());\n// studentList.setVisibility(View.VISIBLE);\n// adapter.notifyDataSetChanged();\n break;\n case \"addTable\":\n addTable.setVisibility(View.VISIBLE);\n break;\n case \"editTable\":\n editTable.setVisibility(View.VISIBLE);\n break;\n default:\n Toast.makeText(this, \"Warning: showLayout() layout do not match.\", Toast.LENGTH_SHORT).show();\n break;\n }\n\n\n }", "private void setLayoutsFromMood() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n int mPosition = historicList.get(i).getPosition();\n if (mPosition > 4) {\n mPosition = 4;\n } else if (mPosition < 0) {\n mPosition = 0;\n }\n layout.setBackgroundColor(ContextCompat.getColor(this, historyListMood.get(mPosition).getBackgroundColor()));\n layout.setVisibility(View.VISIBLE);\n\n }\n\n\n }", "protected void init(Glk glk, Window oldw, Window neww, int method, int size) {\n \t\tmWaitingForLayout = false;\n \t\t_glk = glk;\n \t\tLinearLayout l = _view = new _View(glk.getContext());\n \t\tfinal PairWindow parent = oldw.getParent();\n \t\tsetParent(parent);\n \t\tif (parent != null)\n \t\t\tparent.mChildren[parent.mChildren[0] == oldw ? 0 : 1] = this;\n \n \t\tint dir = (int) method & Window.WINMETHOD_DIRMASK; \n \t\t\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tl.setOrientation(LinearLayout.VERTICAL);\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tdefault:\n \t\t\tl.setOrientation(LinearLayout.HORIZONTAL);\n \t\t}\n \n \t\tView oldv = oldw.getView();\n \t\tWindow first, second;\n \t\tswitch (dir) {\n \t\tcase Window.WINMETHOD_RIGHT:\n \t\tcase Window.WINMETHOD_BELOW:\n \t\t\tfirst = oldw;\n \t\t\tsecond = neww;\n \t\t\tbreak;\n \t\tcase Window.WINMETHOD_LEFT:\n \t\tcase Window.WINMETHOD_ABOVE:\n \t\tdefault:\n \t\t\tfirst = neww;\n \t\t\tsecond = oldw;\n \t\t}\n \t\t\n \t\t// transfer layout params of the split window to the pair\n \t\tl.setLayoutParams(oldv.getLayoutParams());\n \t\toldv.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT, 0));\n \n \t\tViewGroup oldParent = (ViewGroup) oldv.getParent();\n \t\tassert(oldParent != null);\n \t\t\n \t\t// swap the pair in\n \t\tint parentIndex = (oldParent.getChildAt(0) == oldv) ? 0 : 1;\n \t\toldParent.removeView(oldv);\n \t\toldParent.addView(l, parentIndex);\n \t\t\n \t\toldw.setParent(this);\n \t\tneww.setParent(this);\n \t\tmChildren = new Window[] { first, second };\n \t\t\n \t\tl.addView(first.getView());\n \t\tl.addView(second.getView());\n \t\t\n \t\tdoSetArrangement(method, size, neww);\n \t}", "public abstract int presentViewLayout();", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int titleHeight = this.titleIconContainer.getMeasuredHeight();\n View view = this.titleIconContainer;\n view.layout(0, 0, view.getMeasuredWidth(), titleHeight);\n int containerWidth = getMeasuredWidth();\n int messageTop = ((ViewGroup.MarginLayoutParams) this.message.getLayoutParams()).topMargin + titleHeight;\n int messageWidth = this.message.getMeasuredWidth();\n int messageHeight = this.message.getMeasuredHeight();\n if (getLayoutDirection() == 1) {\n this.message.layout(containerWidth - messageWidth, messageTop, containerWidth, messageTop + messageHeight);\n } else {\n this.message.layout(0, messageTop, messageWidth, messageTop + messageHeight);\n }\n }", "@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tint childTop = 0;\n\t\tint childLeft = 0;\n\t\tint childWidth = 0;\n\t\tint childHeight = 0;\n\t\tint count = getChildCount();\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tView child = this.getChildAt(i);\n\t\t\tif (child.getVisibility() == View.GONE)\n\t\t\t\tcontinue;\n\t\t\tif (child instanceof RankImageView) {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = (int) (original_width * scale);\n\t\t\t\tchildHeight = (int) (original_height * scale);\n\t\t\t} else if (child instanceof TextView) {\n\t\t\t\tTextView tv = (TextView) child;\n\t\t\t\tchildTop = (int) (original_height * scale + name_spacing);\n\t\t\t\tchildLeft = (int) bp.getStrokeWidth();\n\t\t\t\tchildWidth = (int) (original_width * scale - 2 * bp.getStrokeWidth());\n\t\t\t\tchildHeight = (int) this.getFontHeight(tv.getPaint());\n\t\t\t} else {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = 0;\n\t\t\t\tchildHeight = 0;\n\t\t\t}\n\t\t\tchild.measure(childWidth, childHeight);\n\t\t\tchild.layout(childLeft, childTop, childLeft + childWidth, childTop\n\t\t\t\t\t+ childHeight);\n\t\t}\n\t}", "@Override\n public void setView(@NonNull final View view) {\n mNextView = view;\n }", "@Override\r\n\tpublic void addView(View v) {\r\n\t\tview = v;\r\n\t}", "public void setView(FruitView newView){\n\t\tthis.view = newView;\n\t}", "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 }", "@Override\n\n public void onClick(View v) {\n if (tl.getVisibility() == View.VISIBLE) {\n tl.setVisibility(View.GONE);\n } else {\n tl.setVisibility(View.VISIBLE);\n }\n\n }", "private void addStep(String step) {\n stepView = View.inflate(NewRecipe.this, R.layout.new_step_layout, null);\n\n txtInstruction = stepView.findViewById(R.id.txtInstruction);\n\n //count current item\n int count = stepListLayout.getChildCount();\n LinearLayout.LayoutParams param = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n param.setMargins(0, 10, 0, 10);\n stepView.setLayoutParams(param);\n stepView.setTag(\"step\" + count);\n\n stepListLayout.setBackgroundColor(Color.TRANSPARENT);\n stepListLayout.addView(stepView);\n\n //// set value after adding new row\n count = stepListLayout.getChildCount();\n stepText = stepView.findViewById(R.id.step);\n\n for (int i = 0; i < count; i++) {\n itemView = stepListLayout.getChildAt(i);\n if (itemView instanceof LinearLayout) {\n\n ImageButton imgDel = stepView.findViewById(R.id.imgDel);\n imgDel.setTag(stepView);\n imgDel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n removeView((View) v.getTag());\n }\n });\n stepText.setText((i + 1) + \":\");\n txtInstruction.setTag(\"Instruction\" + (i + 1));\n if (!step.equals(\"\")) {\n txtInstruction.setText(step);\n }\n }\n }\n\n }", "private void bindToLayout() {\n binding= DataBindingUtil.setContentView(this, R.layout.activity_app_guide);\n }", "@Override\n\tprotected void initView() {\n\t\tsuper.initView();\n mLnSelectLanguage = (LinearLayout) findViewById(R.id.lnSelectLanguage);\n mBtnContinue = (Button) findViewById(R.id.btnContinue);\n mEdtPhoneNumber = (EditText) findViewById(R.id.edtPhoneNumber);\n mTvNationNameView = (TextView) findViewById(R.id.tvNationNameView);\n mChkAccept = (CheckBox) findViewById(R.id.chkAccept);\n mTvDieuKhoan = (TextView) findViewById(R.id.tvDieuKhoan);\n mTvNotifi1 = (TextView) findViewById(R.id.tvNotifi1);\n Utils.setTextViewHtml(mTvDieuKhoan,getString(R.string.dieukhoan));\n mLnSelectLanguage.setOnClickListener(this);\n mBtnContinue.setOnClickListener(this);\n mTvDieuKhoan.setOnClickListener(this);\n\n\t}", "@Override\n\tprotected void initView() {\n\t\tsetContentView(R.layout.activity_money_manage);\n\t\t\n\t\tfindViewById(R.id.bt_title_left).setOnClickListener(this);\n\t\tfindViewById(R.id.bt_ok).setOnClickListener(this);\n\t}", "private void showNewCoursesLayoutOnClick(){\n newCourses.setVisibility(View.VISIBLE);\n\n }", "@Override\n\tpublic void setContentView(int layoutResID) {\n\t\tView yourlayout = getLayoutInflater().inflate(layoutResID, null);\n\t\tRelativeLayout titlebar = (RelativeLayout) (getLayoutInflater()\n\t\t\t\t.inflate(R.layout.title_bar, null));\n\t\ttitleView = (TextView) titlebar.findViewById(R.id.title_textview);\n\t\tbutton = (Button) titlebar.findViewById(R.id.titlebar_rightbutton);\n\t\tRelativeLayout layout = (RelativeLayout) titlebar\n\t\t\t\t.findViewById(R.id.yourlayout);\n\t\tlayout.addView(yourlayout);\n\t\tsetContentView(titlebar);\n\t\tRelativeLayout youlayout = (RelativeLayout) findViewById(R.id.yourlayout);\n\t\tyoulayout.addOnLayoutChangeListener(new OnLayoutChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onLayoutChange(View v, int left, int top, int right,\n\t\t\t\t\tint bottom, int oldLeft, int oldTop, int oldRight,\n\t\t\t\t\tint oldBottom) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tif (bottom > oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = false;\n\t\t\t\telse if (bottom < oldBottom && oldBottom != 0)\n\t\t\t\t\tflaginput = true;\n\n\t\t\t}\n\t\t});\n\t}", "public void createSetUI(final LinearLayout linearLayout, final int setNum, Set set){\n final RelativeLayout relativeLayout=new RelativeLayout(this);\n RelativeLayout.LayoutParams params=new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams edittxtWeightParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n params.setMargins(0,5,0,0);\n relativeLayout.setLayoutParams(params);\n RelativeLayout.LayoutParams edittxtRepParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblxParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams lblSetsParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n RelativeLayout.LayoutParams btndelParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n\n EditText editTextWeight=new EditText(this);\n editTextWeight.setId(View.generateViewId());\n weightsIds.add(editTextWeight.getId());\n editTextWeight.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n EditText editTextRep=new EditText(this);\n editTextRep.setId(View.generateViewId());\n editTextRep.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n repsids.add(editTextRep.getId());\n TextView xdivider=new TextView(this);\n xdivider.setId(View.generateViewId());\n TextView setNumlbl=new TextView(this);\n setNumlbl.setId(View.generateViewId());\n Button btnDelSet=new Button(this);\n btnDelSet.setId(View.generateViewId());\n btnDelSet.setText(\"x\");\n btnDelSet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) { delSet(v); }});\n btnDelSet.setTextColor(Color.RED);\n btnDelSet.setHeight(80);\n btnDelSet.setWidth(80);\n btnDelSet.setBackgroundColor(Color.TRANSPARENT);\n editTextWeight.setHint(\"Weight\");\n editTextWeight.setHeight(125);\n editTextWeight.setWidth(350);\n editTextRep.setWidth(350);\n editTextRep.setHeight(125);\n setNumlbl.setTextSize(20);\n\n Typeface bold=Typeface.defaultFromStyle(Typeface.BOLD);\n setNumlbl.setTypeface(bold);\n editTextRep.setHint(\"Rep\");\n xdivider.setText(\"X\");\n setNumlbl.setText(\"Set \"+setNum);\n\n edittxtWeightParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtWeightParams.addRule(RelativeLayout.LEFT_OF, xdivider.getId());\n lblSetsParams.setMargins(10, 10, 10, 10);\n edittxtWeightParams.setMargins(10, 0, 10, 10);\n edittxtRepParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n edittxtRepParams.addRule(RelativeLayout.RIGHT_OF, xdivider.getId());\n edittxtRepParams.setMargins(10, 0, 10, 10);\n lblxParams.setMargins(10, 0, 10, 10);\n btndelParams.setMargins(5, 5,10,10);\n btndelParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT);\n btndelParams.addRule(RelativeLayout.ALIGN_BASELINE, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.BELOW, setNumlbl.getId());\n lblxParams.addRule(RelativeLayout.CENTER_HORIZONTAL);\n lblxParams.addRule(RelativeLayout.ALIGN_BASELINE, editTextRep.getId());\n editTextWeight.setLayoutParams(edittxtWeightParams);\n editTextRep.setLayoutParams(edittxtRepParams);\n setNumlbl.setLayoutParams(lblSetsParams);\n xdivider.setLayoutParams(lblxParams);\n btnDelSet.setLayoutParams(btndelParams);\n if (set!=null){\n editTextWeight.setText(set.getWeight()+\"\");\n editTextRep.setText(set.getReps()+\"\");\n }\n relativeLayout.addView(editTextWeight, edittxtWeightParams);\n relativeLayout.addView(editTextRep, edittxtRepParams);\n relativeLayout.addView(xdivider, lblxParams);\n relativeLayout.addView(setNumlbl, lblSetsParams);\n relativeLayout.addView(btnDelSet, btndelParams);\n\n View divider=new View(this);\n divider.setLayoutParams(new LinearLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, 1));\n divider.setBackgroundColor(Color.parseColor(\"#B3B3B3\"));\n linearLayout.addView(relativeLayout, params);\n linearLayout.addView(divider);\n setsViewList.add(relativeLayout);\n }", "@Override\r\n\t\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\t\t\t LayoutInflater inflater = LayoutInflater.from(arg2.getContext());\r\n\t\t\t View retView = inflater.inflate(R.layout.report_listitems, arg2, false);\r\n\t\t\t int j=i%2;\r\n\t\t\t retView.setBackgroundColor(colors[j]);\r\n\t\t\t i++;\r\n\t\t\t bindView(retView,arg0,arg1);\r\n\t\t\t return retView;\r\n\t\t\t \r\n\t\t}", "@Override\n protected void onLayout(boolean changed, int l, int t, int r, int b) {\n final int count = getChildCount();\n int parentWidth = getMeasuredWidth();\n\n //get the available size of child view\n int childLeft = this.getPaddingLeft();\n int childTop = this.getPaddingTop();\n\n //walk through each child, and arrange it from left to right\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n if (child.getVisibility() != GONE) {\n LayoutUtils.layoutChild(child, childLeft, childTop);\n childTop += child.getMeasuredHeight();\n }\n }\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n this.mDrawArea.left = 0;\n this.mDrawArea.top = 0;\n this.mDrawArea.right = r - l;\n this.mDrawArea.bottom = b - t;\n this.mZoomView.layout(this.mDrawArea.left, this.mDrawArea.top, this.mDrawArea.right, this.mDrawArea.bottom);\n if (!inZoomView() || changed) {\n resetZoomView();\n layoutViewItems(changed);\n }\n }", "@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n// int childLeft = getPaddingLeft();\n// int childRight = right - left - getPaddingRight();\n// int childTop = getPaddingTop();\n// int childBottom = bottom - top - getPaddingBottom();\n//\n// int tempLeftBottom = childTop + leftLabel.getMeasuredHeight();\n// leftLabel.item_personal_center_prefix(childLeft, childTop, childRight, tempLeftBottom);\n// childTop += leftLabel.getMeasuredHeight();\n//\n// int tempRightTop = childBottom - rightLebel.getMeasuredHeight();\n// rightLebel.item_personal_center_prefix(childLeft, tempRightTop, childRight, childBottom);\n// childBottom -= rightLebel.getMeasuredHeight();\n//\n//\n// inputEdit.item_personal_center_prefix(childLeft, childTop, childRight, childBottom);\n int childLeft = getPaddingLeft();\n int childTop = getPaddingTop();\n int childBottom = leftLabel.getMeasuredHeight();\n int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n leftLabel.measure(w, h);\n inputEdit.measure(w, h);\n rightLebel.measure(w, h);\n divider.measure(w, h);\n\n int childRight = leftLabel.getMeasuredWidth();\n leftLabel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft += leftLabel.getMeasuredWidth();\n childRight = right - getPaddingRight() - rightLebel.getMeasuredWidth();\n childBottom = inputEdit.getMeasuredHeight();\n inputEdit.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = right - rightLebel.getMeasuredWidth() - getPaddingRight();\n childRight = right - getPaddingRight();\n childBottom = rightLebel.getMeasuredHeight();\n rightLebel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = getPaddingLeft();\n childRight= right - getPaddingRight();\n childTop = getPaddingTop() + inputEdit.getMeasuredHeight();\n childBottom = childTop + 1;\n divider.layout(childLeft, childTop + dividerPadding, childRight, childBottom);\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.head_rl:\n\n\t\t\tmenu_mine.setVisibility(View.VISIBLE);\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}", "private void init() {\n left = (TextView) findViewById(R.id.tv_left);\n left.setOnClickListener(this);\n title = (TextView) findViewById(R.id.tv_mid);\n title.setText(\"车贴任务\");\n right = (TextView) findViewById(R.id.tv_right);\n right.setVisibility(View.VISIBLE);\n right.setText(\"任务说明\");\n right.setOnClickListener(this);\n lv_chetielist = (ListView) findViewById(R.id.lv_chetielist);\n lv_chetielist.setOnItemClickListener(this);\n rela_chetie_state1 = (RelativeLayout) findViewById(R.id.rela_chetie_state1);\n rela_chetie_state2 = (RelativeLayout) findViewById(R.id.rela_chetie_state2);\n rela_chetie_state3 = (RelativeLayout) findViewById(R.id.rela_chetie_state3);\n rela_chetie_state1.setOnClickListener(this);\n rela_chetie_state2.setOnClickListener(this);\n rela_chetie_state3.setOnClickListener(this);\n tv_chetie_state1 = (TextView) findViewById(R.id.tv_chetie_state1);\n tv_chetie_state2 = (TextView) findViewById(R.id.tv_chetie_state2);\n tv_chetie_state3 = (TextView) findViewById(R.id.tv_chetie_state3);\n line_chetie_state = (LinearLayout) findViewById(R.id.line_chetie_state);\n view_chetieview = findViewById(R.id.view_chetieview);\n SetColor();\n tv_chetie_state1.setTextColor(getResources().getColor(R.color.color_red));\n GetCheTieList(\"Y\");\n }", "protected void au() {\n View view = this.ln.get();\n if (view == null) {\n return;\n }\n ViewTreeObserver viewTreeObserver = this.lm.get();\n if ((view = view.getViewTreeObserver()) == viewTreeObserver) return;\n this.lm = new WeakReference<View>(view);\n view.addOnScrollChangedListener((ViewTreeObserver.OnScrollChangedListener)this);\n view.addOnGlobalLayoutListener((ViewTreeObserver.OnGlobalLayoutListener)this);\n }", "@Override\n\tpublic void updateView( View view ) {\n\t\t\n\t\tif ( mStyleBackground != null ) {\n\t\t\tview.setBackgroundColor( mStyleBackground.mBackground );\n\t\t}\n\t\t\n\t\tObject object = view.getTag();\n\t\tif ( object instanceof ViewHolder ) {\n\t\t\tViewHolder holder = (ViewHolder)object;\n\t\t\tlayoutImageView( view, R.id.imageViewCancelButton, mStyleCancelButton, android.R.drawable.ic_menu_close_clear_cancel );\n\t\t\tlayoutImageView( holder.mLeftIcon, mStyleImageLeft, mDataImageLeft );\n\t\t\tlayoutImageView( holder.mRightIcon, mStyleImageRight, mDataImageRight );\n\t\t\tlayoutTextView( holder.mMajorTextLeft, mStyleTextMajor, mDataTextMajor );\n\t\t\tlayoutTextView( holder.mMinorTextLeft, mStyleTextMinor, mDataTextMinor );\n\t\t\tlayoutTextView( holder.mMajorTextRight, mStyleTextMajorRight, mDataTextMajorRight );\n\t\t\tlayoutTextView( holder.mMinorTextRight, mStyleTextMinorRight, mDataTextMinorRight );\t\n\t\t\tif ( holder.mViewType != getViewType() ) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\tmButtonPanelBar = new ThreeButtonPanelBar(view);\n\t\t\tif ( mButtonPanelBar != null ) {\n\t\t\t\tmButtonPanelBar.SetBackgroundColor( 0x00000000 ); // TODO read from style\n\t\t\t\tmButtonPanelBar.RemoveAllButtons();\n\t\t\t\tfor ( int i=0; i<mButtons.size(); i++ ) {\n\t\t\t\t\tmButtonPanelBar.AddButton( mButtons.get(i) );\n\t\t\t\t}\t\t\t\t\n\t\t\t\tmButtonPanelBar.updateUI();\n\t\t\t} else {\n\t\t\t\tLogger.e( TAG, \"updateView() - NPE button panel bar\" );\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.e( TAG, \"updateView() - object mismatch\" ); \n\t\t}\n\t\t\t\n\t\tview.forceLayout();\n\t\tview.invalidate();\n\t}", "private void bindViews() {\n mMenu1 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu1);\n mMenu2 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu2);\n mMenu3 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu3);\n mMenu4 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu4);\n mMenu5 = (com.zhy.autolayout.AutoLinearLayout) rootView.findViewById(R.id.menu5);\n\n mMenu1.setOnClickListener(this);\n mMenu2.setOnClickListener(this);\n mMenu3.setOnClickListener(this);\n mMenu4.setOnClickListener(this);\n mMenu5.setOnClickListener(this);\n }", "@Override\n protected void loadViewLayout() {\n setContentView(R.layout.ui_imgs_graffit);\n }", "@Override\n\tprotected void setView() {\n\t\tsetContentView(R.layout.activity_main);\n\t}", "static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }", "private void initView() {\n\n lv_functions= (ListView) findViewById(R.id.lv_functions);\n MultLayoutAdapter multLayoutAdapter=new MultLayoutAdapter(this,R.layout.function_list_item0,functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// swingBottomInAnimationAdapter.setListView(lv_functions);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingBottomInAnimationAdapter swingBottomInAnimationAdapter = new SwingBottomInAnimationAdapter(multLayoutAdapter);\n// SwingRightInAnimationAdapter swingRightInAnimationAdapter = new SwingRightInAnimationAdapter(swingBottomInAnimationAdapter);\n// SwingLeftInAnimationAdapter swingLeftInAnimationAdapter = new SwingLeftInAnimationAdapter(multLayoutAdapter);\n// swingLeftInAnimationAdapter.setListView(lv_functions);\n // swingRightInAnimationAdapter.setListView(lv_functions);\n lv_functions.setAdapter(multLayoutAdapter);\n\n }", "public void configure(T aView) { aView.setText(\"Label\"); }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_1, container, false);\n btnColor = view.findViewById(R.id.btnColor);\n ll1 = view.findViewById(R.id.ll1);\n ll1.setBackgroundColor(Color.GRAY);\n btnColor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if ( i==0) {\n ll1.setBackgroundColor(Color.YELLOW);\n i = 1;\n }else {\n ll1.setBackgroundColor(Color.GRAY);\n i = 0;\n }\n }\n });\n\n return view;\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 }", "@Override\n\tpublic int setLayout() {\n\t\treturn R.layout.activity_main;\n\t}", "public void setAsPollUserWasGiven() {\n LinearLayout linearLayout = (LinearLayout)findViewById(R.id.poll_object_main_layout);\n linearLayout.setBackgroundResource(R.drawable.poll_border);\n }", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n super.onLayout(changed, l, t, r, b);\n C0312e eVar = this.f1126a;\n if (eVar != null) {\n eVar.mo4671a(this, l, t, r, b);\n }\n }", "@Override\n public void onClick(View v) {\n l1.setBackgroundColor(getResources().getColor(R.color.white));\n l2.setBackgroundColor(getResources().getColor(R.color.white));\n l3.setBackgroundColor(getResources().getColor(R.color.white));\n l4.setBackgroundColor(getResources().getColor(R.color.teal_200));\n l5.setBackgroundColor(getResources().getColor(R.color.white));\n fragment = new HukumFragment();\n openFragment(fragment);\n }", "@Override\r\n\tprotected int layoutId() {\n\t\treturn R.layout.mine_new_huankuan;\r\n\t}", "private void initView(View subview) {\n\t\tlay_one = (ImageView) subview.findViewById(R.id.green);\n\t\tlay_four = (ImageView) subview.findViewById(R.id.yelow);\n\t\tlay_two = (ImageView) subview.findViewById(R.id.good);\n\t\tlay_five = (ImageView) subview.findViewById(R.id.red_smiley);\n\t\tlay_three = (ImageView) subview.findViewById(R.id.average);\n\t\tlay_one.setOnClickListener(this);\n\t\tlay_three.setOnClickListener(this);\n\t\tlay_two.setOnClickListener(this);\n\t\tlay_five.setOnClickListener(this);\n\t\tlay_four.setOnClickListener(this);\n\t\t}", "private void switchToTransferLayout()\n {\n this.fragmentActivity.findViewById(R.id.pickImagesLayout).setVisibility(View.GONE);\n this.fragmentActivity.findViewById(R.id.transferImagesLayout).setVisibility(View.VISIBLE);\n }", "@Override\n public void setContentView(int layoutResID){\n }", "public void updateConicalView();", "public void onLayout(boolean changed, int l, int t, int r, int b) {\n int childLeft = 0;\n int count = getChildCount();\n if (this.mSelectMaxItem <= 0) {\n for (int i = 0; i < count; i++) {\n View child = getChildAt(i);\n int childWidth = child.getMeasuredWidth();\n int childHeight = child.getMeasuredHeight();\n LayoutParams lp = (LayoutParams) child.getLayoutParams();\n int childLeft2 = childLeft + lp.leftMargin;\n child.layout(childLeft2, 0, childWidth + childLeft2, childHeight + 0);\n childLeft = childLeft2 + lp.rightMargin + childWidth;\n }\n this.mMaxWid = childLeft;\n } else {\n float pace = (1.0f / ((float) this.mSelectMaxItem)) * ((float) (r - l));\n for (int i2 = 0; i2 < count; i2++) {\n View child2 = getChildAt(i2);\n int childHeight2 = child2.getMeasuredHeight();\n LayoutParams lp2 = (LayoutParams) child2.getLayoutParams();\n child2.layout(((int) (((float) i2) * pace)) + 0 + lp2.leftMargin, 0, (((int) (((float) (i2 + 1)) * pace)) + 0) - lp2.rightMargin, childHeight2 + 0);\n }\n this.mMaxWid = Math.max(getWidth(), (int) (((float) count) * pace));\n }\n this.maxScrollX = this.mMaxWid - getWidth();\n this.maxScrollX = this.maxScrollX > 0 ? this.maxScrollX : 0;\n calculationRect(true);\n }", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "public void configure(T aView) { aView.setText(\"RadioButton\"); }", "@Override\n\t\tpublic void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop,\n\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\n\t\t\tSystem.out.println(\"*\" + index +\"-\"+(right-left));\n\t\t\tcolWidth[index]=right-left;\n\t\t\n\t\t\tsetMyWidth();\n\t\t}" ]
[ "0.6263531", "0.625032", "0.61999875", "0.6195249", "0.61630756", "0.6128324", "0.61136925", "0.6087491", "0.60823977", "0.606822", "0.6055554", "0.6034567", "0.60173136", "0.5940116", "0.5933596", "0.5933093", "0.59329", "0.59198046", "0.5907009", "0.58812344", "0.58778554", "0.58500457", "0.58379817", "0.58316386", "0.58191323", "0.58190864", "0.57981855", "0.5781794", "0.577788", "0.5746583", "0.57379466", "0.57346547", "0.57341766", "0.57216185", "0.57216185", "0.5699208", "0.56946635", "0.56875783", "0.5683006", "0.5662748", "0.5659413", "0.5654738", "0.5645681", "0.5642252", "0.562733", "0.5624944", "0.5615928", "0.56148404", "0.56059563", "0.55919737", "0.5591131", "0.55874884", "0.5586619", "0.5584168", "0.5581348", "0.55686533", "0.55612165", "0.5550633", "0.5548239", "0.55402213", "0.55340916", "0.5527756", "0.55276644", "0.55264187", "0.55059475", "0.550379", "0.55010194", "0.5499051", "0.54943347", "0.54811877", "0.5479422", "0.5477652", "0.54775554", "0.5471554", "0.5464283", "0.5463787", "0.54584336", "0.5457278", "0.5457242", "0.5456684", "0.5456167", "0.54494774", "0.54457027", "0.5437367", "0.54373294", "0.54298466", "0.5429116", "0.5420619", "0.54183507", "0.54091936", "0.5408468", "0.5396285", "0.5389232", "0.5387714", "0.5384377", "0.53833103", "0.5378942", "0.5377066", "0.5375269", "0.5367986", "0.53656244" ]
0.0
-1
save colour as ColourPack and add to Theme
@Override public void onClick(View v) { Settings.Section section; section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT); EditText red, green, blue; red = (EditText) view.findViewById(R.id.rgb_red); green = (EditText) view.findViewById(R.id.rgb_green); blue = (EditText) view.findViewById(R.id.rgb_blue); String r, g, b; r = red.getText().toString(); g = green.getText().toString(); b = blue.getText().toString(); section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r)); section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g)); section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b)); MainActivity.instance.themeSettings.save(); // go back to theme settings content.removeAllViews(); content.addView(settings); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void packUp() {\n news.themeColour = (String) colourChooser.getSelectedItem(); //gets the currently selected colour\n news.write(); //writes high scores and selected colour to file\n }", "public void saveColor()\r\n\t{\r\n\t\tsavedColor = g.getColor();\r\n\t}", "public void saveColorAndFont()\r\n\t{\r\n\t\tsaveColor();\r\n\t\tsaveFont();\r\n\t}", "public void saveValues() {\n bluej.setExtensionPropertyString(PROFILE_LABEL, color.getText());\r\n }", "public void setColour(Colour colour);", "private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }", "private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n saveBtn.setEnabled(true);\n }", "private JButton createApplyButton() {\r\n apply = new JButton();\r\n apply.setBounds(5, 260, 100, 25);\r\n\r\n add(new SComponent(apply,\r\n new String[] {\"Anpassen\", \"Apply\"},\r\n new String[] {\"Speichert die Farbeinstellungen.\",\r\n \"Saves the color settings.\"}));\r\n\r\n apply.addActionListener(new ActionListener() {\r\n\r\n /** Zeichnet den Graphen mit den ausgewählten\r\n * Frabeinstellungen\r\n *\r\n * @param e ActionEvent\r\n */\r\n public void actionPerformed(final ActionEvent e) {\r\n Color[] col = new Color[8];\r\n for (int i = 0; i < 8; i++) {\r\n if (mainclass.getGraphTyp()\r\n == AbstractGraph.GRAPHTYP_RESIDUAL) {\r\n switch (i) {\r\n case COLOR_EDGE_ONE:\r\n col[i] = chooser[COLOR_EDGE_FLOW]\r\n .getColorSelected();\r\n break;\r\n case COLOR_EDGE_TWO:\r\n col[i] = chooser[COLOR_EDGE_CAP]\r\n .getColorSelected();\r\n break;\r\n case COLOR_EDGE_TOP:\r\n col[i] = chooser[COLOR_EDGE_RTOP]\r\n .getColorSelected();\r\n break;\r\n default: col[i] = chooser[i].getColorSelected();\r\n }\r\n } else {\r\n col[i] = chooser[i].getColorSelected();\r\n }\r\n }\r\n drawer.setColorSettings(col);\r\n\r\n /*GAModel gam = mainclass.getModel();\r\n if (gam.getGraphComponentState()\r\n == GAModel.COMPONENT_VALID) {\r\n gam.setGraphComponentState(GAModel.COMPONENT_OUTDATED);\r\n }*/\r\n mainclass.repaint();\r\n }\r\n });\r\n\r\n return apply;\r\n }", "public void setColour(String colour) {\n this.colour = colour;\n }", "public void addPalette(Palette palette);", "@Override\n\tpublic String addcolor() {\n\t\treturn \"Green color is applied\";\n\t}", "private void changeColors(){\n \n Color vaccanceColor = vaccance.getValue();\n String vaccRGB = getRGB(vaccanceColor);\n databaseHandler.setTermColor(\"vaccance\", vaccRGB);\n \n Color travailColor = travail.getValue();\n String travailRGB = getRGB(travailColor);\n databaseHandler.setTermColor(\"travail\", travailRGB);\n \n Color AnnivColor = anniverssaire.getValue();\n String summerSemRGB = getRGB(AnnivColor);\n databaseHandler.setTermColor(\"annivessaire\", summerSemRGB);\n \n Color formationColor = formation.getValue();\n String formationRGB = getRGB(formationColor);\n databaseHandler.setTermColor(\"formation\", formationRGB);\n \n Color workshopColor = workshop.getValue();\n String workshopRGB = getRGB(workshopColor);\n databaseHandler.setTermColor(\"workshop\", workshopRGB);\n \n Color certifColor = certif.getValue();\n String certifRGB = getRGB(certifColor);\n databaseHandler.setTermColor(\"certif\", certifRGB);\n \n Color importantColor = important.getValue();\n String importantRGB = getRGB(importantColor);\n databaseHandler.setTermColor(\"important\", importantRGB);\n \n Color urgentColor = urgent.getValue();\n String allHolidayRGB = getRGB(urgentColor);\n databaseHandler.setTermColor(\"urgent\", allHolidayRGB);\n \n \n \n }", "protected void setColors(String key, RGB foreground, RGB background,\n String filePath) {\n ColorInfoMap colorInfoMap = this.getColorInfoMap();\n if (colorInfoMap == null) {\n colorInfoMap = new ColorInfoMap();\n this.setColorInfoMap(colorInfoMap);\n }\n Map<String, ColorInfo> colors = colorInfoMap.getColors();\n if (colors == null) {\n colorInfoMap.setColors(new HashMap<String, ColorInfo>());\n colors = colorInfoMap.getColors();\n }\n\n ColorInfo colorInfo = colors.get(key);\n if (colorInfo != null) {\n colorInfo.setColors(foreground, background);\n } else {\n ColorInfo newColorInfo = new ColorInfo();\n newColorInfo.setColors(foreground, background);\n colors.put(key, newColorInfo);\n }\n\n IPathManager pathMgr = PathManagerFactory.getPathManager();\n LocalizationContext lContext = pathMgr.getContext(\n LocalizationType.CAVE_STATIC, LocalizationLevel.USER);\n LocalizationFile file = pathMgr.getLocalizationFile(lContext, filePath);\n try {\n jaxb.marshalToXmlFile(colorInfoMap, file.getFile().getPath());\n file.save();\n } catch (Exception e) {\n Activator.statusHandler.error(\n \"Unable to write color information to file: \"\n + file.getName() + \" in context \" + lContext, e);\n }\n }", "public void saveAccentWallpaper() {\n Theme.ThemeAccent themeAccent = this.accent;\n if (themeAccent != null && !TextUtils.isEmpty(themeAccent.patternSlug)) {\n try {\n File pathToWallpaper = this.accent.getPathToWallpaper();\n Drawable background = this.backgroundImage.getBackground();\n Bitmap bitmap = this.backgroundImage.getImageReceiver().getBitmap();\n FileOutputStream fileOutputStream = new FileOutputStream(pathToWallpaper);\n bitmap.compress(background instanceof MotionBackgroundDrawable ? Bitmap.CompressFormat.PNG : Bitmap.CompressFormat.JPEG, 87, fileOutputStream);\n fileOutputStream.close();\n } catch (Throwable th) {\n FileLog.e(th);\n }\n }\n }", "public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }", "void setCurrentFillColour(Color colour) {\n int colourIndex = shapes.size();\n fillColours.set(colourIndex, colour);\n currentFillColour = colour;\n writeFile.writeFill(colour);\n }", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "public Piece.color getColor() { return color; }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_PRIMARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "public void addColor(String color) {\n fullPhoto.addColor(color);\n }", "public Preferences(BlueJ bluej) {\r\n this.bluej = bluej;\r\n myPanel = new JPanel();\r\n myPanel.add(new JLabel(\"Favorite Colour\"));\r\n color = new JTextField(40);\r\n myPanel.add(color);\r\n // Load the default value\r\n loadValues();\r\n }", "public void setColour(String c)\n\t{\n\t\tcolour = c;\n\t}", "public void setColor(DyeColor color) {\n/* 53 */ setData(color.getWoolData());\n/* */ }", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public static void addColor(){ \r\n \r\n welcome.add(black);\r\n black.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n black.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(red);\r\n red.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n red.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //adding some buttons, formatting them, and aligning them\r\n \r\n welcome.add(yellow);\r\n yellow.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n yellow.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n \r\n welcome.add(green);\r\n green.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n green.setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\r\n }", "public static void saveColor(final float[] color, Firebase reference) {\n reference.runTransaction(new Transaction.Handler() {\n @Override\n public Transaction.Result doTransaction(MutableData playerStatsData) {\n DBPlayerStats playerStats = playerStatsData.getValue(DBPlayerStats.class);\n if (playerStats==null){\n return Transaction.abort();\n }\n\n playerStats.setColor(color);\n playerStatsData.setValue(playerStats);\n\n return Transaction.success(playerStatsData);\n }\n\n @Override\n public void onComplete(FirebaseError firebaseError, boolean b, DataSnapshot dataSnapshot) {\n }\n });\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 }", "public void setSecretColour(ColourClient colour){\n\n this.secretColour=colour;\n\n }", "void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }", "public CGlassEclipseColorSchemeExtension (CDockColorMap map) {\r\n if (map != null) {\r\n colMap = map;\r\n }\r\n updateUI();\r\n }", "public Figure(String colour) {\n this.colour = colour;\n }", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "public NewCustomColorPalette() {\n\t\tsuper();\n\t\tbuildPalette();\n\t}", "public String getColour() {\r\n return colour;\r\n }", "@Override\n public void disposeComponent() {\n ColorPairsConfigurationHandler.getMyInstance().saveConfig();\n }", "public void addColor(PhotoColor color) {\n fullPhoto.addColor(color);\n }", "String getColour();", "public void persistCvchannelPack(CvchannelPack cvchannelPack);", "private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }", "private Color createColor( final String key, final Display display ) {\r\n Color color = null;\r\n if( this.store.contains( key ) ) {\r\n RGB rgb = null;\r\n if( this.store.isDefault( key ) ) {\r\n rgb = PreferenceConverter.getDefaultColor( this.store, key );\r\n } else {\r\n rgb = PreferenceConverter.getColor( this.store, key );\r\n }\r\n if( rgb != null ) {\r\n color = new Color( display, rgb );\r\n }\r\n }\r\n return color;\r\n }", "private void themeDynamicAdd() {\n try {\n Background=getBitmapFromURL(base_image);\n Drawable dr = new BitmapDrawable((Background));\n test_rules_background.setBackgroundDrawable(dr);\n\n Bitmap back_bitmap;\n String back_shrd= AarambhThemeSharedPrefreence.loadBackArrowIconFromPreference(this);\n back_bitmap = getBitmapFromURL(back_shrd);\n Drawable dr1 = new BitmapDrawable((back_bitmap));\n back_btn_test_rules.setBackgroundDrawable(dr1);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "void applyTheme(T theme);", "void setStatusColour(Color colour);", "public String getColour() {\n return colour;\n }", "public String getColour() {\n return colour;\n }", "public PaletteColour(String type, int id, String name, String code,String shortHand, int mode) {\n this.type = type;\n this.id = id;\n this.name = name;\n this.shortHand = shortHand;\n if (mode == 1) {\n System.out.println(\"Step1: \" + code);\n this.code = this.rgbToHex(code);\n System.out.println(\"Step2: \" + this.code);\n this.colour = this.hexToColour(this.code);\n System.out.println(\"Step3: \" + this.colour);\n\n } else {\n this.code = code;\n this.colour = this.hexToColour(code);\n }\n }", "public ShadesOfBlue(){\n super( Settings.ObjectivesProperties.SHADES_OF_BLUE.getTitle(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getDescription(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPath(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPoints(),\n Colour.BLUE);\n }", "public void add(String colours){\n //get middle colour\n String newColours=\"\";\n char middle = colours.charAt(4);\n\n FaceColour col = FaceColour.valueOf(Character.toString(middle));\n newColours = colours.substring(0);\n for(FaceColour faceCol : faceToColourMap.keySet()){\n char faceColCh = faceCol.name().charAt(0);\n newColours = newColours.replace(faceColCh, faceToColourMap.get(faceCol));\n }\n\n cube[col.ordinal()] = newColours;\n }", "private void addNewColorToPanel() {\n if (!colorPickerCurrent.getValue().equals(colorsQueue.getFirst())) {\n colorsQueue.push(colorPickerCurrent.getValue());\n revalidateColorPanel();\n }\n }", "public FreeMindWriter cloud( int color ) {\n tagClose();\n\n String c = Integer.toHexString( color );\n while( c.length() < 6 ) c = \"0\" + c; \n\n out.println( \"<cloud COLOR='#\" + c + \"'/>\" );\n return this; \n }", "private ArrayList<Colours> setColour(){\n\t\tArrayList<Colours> list = new ArrayList<Colours>();\n\t\tlist.add(Colours.RED);\n\t\tlist.add(Colours.BLUE);\n\t\tlist.add(Colours.YELLOW);\n\t\tlist.add(Colours.PINK);\n\t\tlist.add(Colours.GREEN);\n\t\tlist.add(Colours.PURPLE);\n\t\treturn list;\n\t}", "@Deprecated\n\tpublic void pushColour(Colour colour) {\n\t\tcolours.add(colour);\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "private void generarColor() {\r\n\t\tthis.color = COLORES[(int) (Math.random() * COLORES.length)];\r\n\t}", "private void colorizePalette(byte [] buffer, int offset, int color) {\r\n\t\tint dataLength = getInt(buffer, offset);\r\n\t\tint dataOffset = offset + 8;\r\n\r\n\t\tint r = (color & 0x00FF0000) >>> 16;\r\n\t\tint g = (color & 0x0000FF00) >>> 8;\r\n\t\tint b = (color & 0x000000FF);\r\n\r\n\t\tfor (int i = 0; i < dataLength / 3; i++) {\r\n\t\t\tint pR = buffer[dataOffset+0] & 0xFF;\r\n\t\t\tint pG = buffer[dataOffset+1] & 0xFF;\r\n\t\t\tint pB = buffer[dataOffset+2] & 0xFF;\r\n\r\n\t\t\tint brightness = (pR + pG + pB) / 3;\r\n\r\n\t\t\tbuffer[dataOffset++] = (byte) (r + (brightness * (255-r)) / 255); // red\r\n\t\t\tbuffer[dataOffset++] = (byte) (g + (brightness * (255-g)) / 255); // green\r\n\t\t\tbuffer[dataOffset++] = (byte) (b + (brightness * (255-b)) / 255); // blue\r\n\t\t}\r\n\r\n\t\tint crc = crc32(buffer, offset + 4, dataLength + 4);\r\n\t\tsetInt(buffer, offset + 8 + dataLength, crc);\r\n\t}", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "public void updateColourInfo(String col) {\n /**\n * Handles a few special cases where the colour is not set or where the\n * colouring would class with the black background.\n *\n */\n switch (col) {\n case \"LIGHTBLACK\":\n selectedCol.setText(\"Selected Ball Colour: BLACK\");\n selectedCol.setColour(\"GREY\");\n break;\n case \"NONE\":\n selectedCol.setText(\"Selected Ball Colour: NONE\");\n selectedCol.setColour(\"WHITE\");\n break;\n default:\n selectedCol.setText(\"Selected Ball Colour: \" + col);\n selectedCol.setColour(col);\n break;\n }\n }", "public void addPawn(Pawn.Color c) { pawn = new Pawn(c, Pawn.Type.BASIC); }", "public void fillColours() {\n this.colours = new String[4];\n this.colours[0] = \"diamonds\";\n this.colours[1] = \"hearts\";\n this.colours[2] = \"spades\";\n this.colours[3] = \"clubs\";\n }", "@Override\n public void setColor(Color newColor) {\n BufferedImage bufferedImage;\n try {\n bufferedImage = ImageIO.read(new URL(this.pieceType.getFileName2D()));\n BufferedImage coloredImage = colorImage(bufferedImage,newColor);\n Image image = SwingFXUtils.toFXImage(coloredImage, null);\n view = new ImageView(image);\n\n //these are temporary\n view.setFitHeight(80);\n view.setFitWidth(80);\n\n } catch (IOException e) {\n System.err.println(\"Error with creating the buffered image\");\n e.printStackTrace();\n }\n }", "public void write(Appendable out, GxpContext gxpContext) throws IOException {\n out.append(\"#\");\n if (isFourBit(red) && isFourBit(green) && isFourBit(blue)) {\n appendNybble(out, red);\n appendNybble(out, green);\n appendNybble(out, blue);\n } else {\n appendByte(out, red);\n appendByte(out, green);\n appendByte(out, blue);\n }\n }", "public void\nsetAmbientElt( SbColor color )\n\n{\n this.coinstate.ambient.copyFrom(color);\n}", "public static void populateColors() {\n colors.put(0,Color.rgb(238, 228, 218, 0.35)); //empty tile\n colors.put(2, Color.rgb(238, 228, 218));\n colors.put(4, Color.rgb(237, 224, 200));\n colors.put(8,Color.rgb(242, 177, 121));\n colors.put(16, Color.rgb(245, 149, 99));\n colors.put(32,Color.rgb(246, 124, 95));\n colors.put(64,Color.rgb(246, 94, 59));\n colors.put(128,Color.rgb(237, 207, 114));\n colors.put(256,Color.rgb(237, 204, 97));\n colors.put(512,Color.rgb(237, 200, 80));\n colors.put(1024,Color.rgb(237, 197, 63));\n colors.put(2048,Color.rgb(237, 194, 46));\n colors.put(4096,Color.rgb(237, 194, 46));\n colors.put(8192,Color.rgb(237, 194, 46));\n\n }", "public void addColourCopier(String id, double pageCost, int copySpeed, \n int maxJobSize);", "public PaletteColour(String type, int id, String name, String code,String shortHand) {\n this.type = type;\n this.id = id;\n this.name = name;\n this.code = code;\n this.colour = this.hexToColour(code);\n this.shortHand = shortHand;\n\n }", "public void cambiarColorCrc() {\r\n R1 = slRCrc.getValue();\r\n G1 = slGCrc.getValue();\r\n B1 = slBCrc.getValue();\r\n jRCr.setText(\"R: \" + R1);\r\n jVCr.setText(\"G: \" + G1);\r\n jACr.setText(\"B: \" + B1);\r\n color = new Color(R1,G1,B1);\r\n btninfCrc.setBackground(color);\r\n btnEditarCrc.setBackground(color);\r\n btnPruebaCrc.setBackground(color);\r\n btnRegresarCrc.setBackground(color);\r\n repaint(); //Metodo que permite que la figura cambie de color en tiempo real\r\n }", "public void persistCvpack(Cvpack cvpack);", "private void addColors() {\n colors.add(Color.GRAY);\n colors.add(Color.BLUE);\n colors.add(Color.DKGRAY);\n colors.add(Color.CYAN);\n colors.add(Color.MAGENTA);\n //Zijn voorlopig maar 5 kleuren, kan altijd makkelijk meer doen, wil ook liever hex-based kleuren gaan gebruiken.\n }", "private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }", "public void writeToXML(Writer bw) throws IOException {\n\t\tbw.write(\"<ColorReferenceExport>\");\n\t\tIterator itr = mappings.keySet().iterator();\n\t\twhile (itr.hasNext()) {\n\t\t\tString key = (String) itr.next();\n\t\t\tbw.write(\"<ColorUnit>\\n<Key>\" + key + \"</Key>\\n\");\n\t\t\tbw.write(\"<ColorRGB>\" + ((Color) mappings.get(key)).getRGB()\n\t\t\t\t\t+ \"</ColorRGB>\\n</ColorUnit>\");\n\t\t}\n\t\tbw.write(\"\\n</ColorReferenceExport>\");\n\t}", "public static void setupResourcePack() {\n try {\n FileWriter writer = new FileWriter(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\", \"pack.mcmeta\").toFile());\n writer.write(\"{\\\"pack\\\":{\\\"pack_format\\\":6,\\\"description\\\":\\\"WingTech resource pack used for lang purposes for the user to add lang for teas.\\\"}}\");\n writer.close();\n }\n catch (Exception e){\n WingTech.LOGGER.error(\"Error creating pack.mcmeta\", e);\n }\n Minecraft.getInstance().getResourcePackRepository().addPackFinder((consumer, factory) -> {\n final ResourcePackInfo packInfo = ResourcePackInfo.create(\n WingTech.MODID,\n true,\n () -> new FolderPack(Paths.get(FMLPaths.CONFIGDIR.get().toAbsolutePath().toString(),WingTech.MODID, \"resources\").toFile()) {\n @Override\n public boolean isHidden() {\n return true;\n }\n },\n factory,\n ResourcePackInfo.Priority.TOP,\n IPackNameDecorator.BUILT_IN\n );\n if (packInfo == null) {\n WingTech.LOGGER.error(\"Failed to load tea resource pack!\");\n return;\n }\n consumer.accept(packInfo);\n });\n }", "public ColouredFeature(IGeometry geom, Color colour) {\n super(geom);\n this.setId(idCounter.getAndIncrement());\n if (colour == null) {\n this.symbolColour = Color.RED;\n } else {\n this.symbolColour = colour;\n }\n }", "public void setColor(String c);", "void setColor(char c, char t) {\n\t\tif(c == 'b' && t == 'b') pI = PieceImage.B_BISHOP;\n\t\tif(c == 'b' && t == 'k') pI = PieceImage.B_KING;\n\t\tif(c == 'b' && t == 'c') pI = PieceImage.B_KNIGHT;\n\t\tif(c == 'b' && t == 'p') pI = PieceImage.B_PAWN;\n\t\tif(c == 'b' && t == 'q') pI = PieceImage.B_QUEEN;\n\t\tif(c == 'b' && t == 'r') pI = PieceImage.B_ROOK;\n\t\t\n\t\tif(c == 'w' && t == 'b') pI = PieceImage.W_BISHOP;\n\t\tif(c == 'w' && t == 'k') pI = PieceImage.W_KING;\n\t\tif(c == 'w' && t == 'c') pI = PieceImage.W_KNIGHT;\n\t\tif(c == 'w' && t == 'p') pI = PieceImage.W_PAWN;\n\t\tif(c == 'w' && t == 'q') pI = PieceImage.W_QUEEN;\n\t\tif(c == 'w' && t == 'r') pI = PieceImage.W_ROOK;\n\t\n\t\tif(c == 'c' && t == 'b') pI = PieceImage.C_BISHOP;\n\t\tif(c == 'c' && t == 'k') pI = PieceImage.C_KING;\n\t\tif(c == 'c' && t == 'c') pI = PieceImage.C_KNIGHT;\n\t\tif(c == 'c' && t == 'p') pI = PieceImage.C_PAWN;\n\t\tif(c == 'c' && t == 'q') pI = PieceImage.C_QUEEN;\n\t\tif(c == 'c' && t == 'r') pI = PieceImage.C_ROOK;\n\t\t\n\t\tif(c == 'p' && t == 'b') pI = PieceImage.P_BISHOP;\n\t\tif(c == 'p' && t == 'k') pI = PieceImage.P_KING;\n\t\tif(c == 'p' && t == 'c') pI = PieceImage.P_KNIGHT;\n\t\tif(c == 'p' && t == 'p') pI = PieceImage.P_PAWN;\n\t\tif(c == 'p' && t == 'q') pI = PieceImage.P_QUEEN;\n\t\tif(c == 'p' && t == 'r') pI = PieceImage.P_ROOK;\n\t\t}", "@Override\n public String getType() {\n return \"Color change\";\n }", "public CustomColourMap(Colour[] colour, String name){\n\t\tsuper(colour, name);\n\t\tthis.SetMapSize(colour.length);\n\t\tm_colourMap = new Colour[this.GetMapSize()];\n\t\tthis.InitMap();\n\t\t\n\t\tfor (int i = 0; i < this.GetMapSize(); i++) {\n\t\t\tm_colourMap[i] = colour[i];\n\t\t}\t\t\n\t}", "void setColor(ChatColor color);", "Picture colourComponentImage() throws Exception;", "public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }", "public void\nsetDiffuseElt(SoNode node, int numColors, \n SbColorArray colors, SoColorPacker packer)\n{\n this.coinstate.diffusenodeid = get_diffuse_node_id(node, numColors, colors);\n this.coinstate.diffusearray = colors;\n this.coinstate.numdiffuse = numColors;\n this.coinstate.packeddiffuse = false;\n \n}", "RGB getNewColor();", "private void setThemesData() {\n\t\tint index = 0;\n\t\ttry {\n\t \tString strFile = Constants.extStorageDirectory +\"/Android_SlyCool/\"+theme_file_name;\n\t\t\tBufferedReader reader = new BufferedReader( new FileReader(strFile));\n\t\t\tLineNumberReader lineReader = new LineNumberReader(reader);\n\t String line;\n\t while ((line = lineReader.readLine()) != null) {\n\t \tif(lineReader.getLineNumber()!=1){\n\t \t\tString[] RowData = Constants.parseCsvLine(line.toString());\n\t \t\tif (RowData.length==14){\n\t \t\t\tfor(int j=0; j<13;j++){\t\n\t \t\t\t\tString currentString = RowData[j];\n\t \t\t\t\tcurrentString = currentString.replaceAll(\"\\\\\\\\n\", \"\\n\");\n\t \t\t\t\tRowData[j] = currentString;\n\t \t\t\t}\n\t\t \t\tThemes currentTheme = new Themes(String.valueOf(index),RowData[0],RowData[1],RowData[2],RowData[3],RowData[4],RowData[5],RowData[6],RowData[7],RowData[8],RowData[9],RowData[10],RowData[11],RowData[12],RowData[13]);\n\t\t\t\t \tConstants.allthemes.add(currentTheme);\n\t\t\t\t \tindex++;\n\t \t\t}\n\t \t} \t\n\t }\n\t\t}catch (IOException ex) {\n\t \n\t }\n\t}", "private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }", "public void addColor(Color rgb) {\r\n\t\thsb = Color\r\n\t\t\t\t.RGBtoHSB(rgb.getRed(), rgb.getGreen(), rgb.getBlue(), null);\r\n\t}", "@Override\n public void onClick(View v) {\n content.removeAllViews();\n final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null);\n\n final View colour = view.findViewById(R.id.colour_preview);\n TextView colourName = (TextView) view.findViewById(R.id.colour_id);\n\n colour.setBackgroundColor(getResources().getColor(R.color.accent));\n colourName.setText(R.string.accent);\n\n TextView cancel, save;\n cancel = (TextView) view.findViewById(R.id.cancel_button);\n save = (TextView) view.findViewById(R.id.save_button);\n\n // Change Seekbars to reflect chosen colour\n final SeekBar redBar, greenBar, blueBar;\n redBar = (SeekBar) view.findViewById(R.id.red_bar);\n greenBar = (SeekBar) view.findViewById(R.id.green_bar);\n blueBar = (SeekBar) view.findViewById(R.id.blue_bar);\n\n redBar.setProgress(accentColour.red());\n greenBar.setProgress(accentColour.green());\n blueBar.setProgress(accentColour.blue());\n\n // show hex value\n EditText hex = (EditText) view.findViewById(R.id.hex_code);\n hex.setText(String.format(\"#%s\", accentColour.asHex()));\n\n // show rgb numbers\n final EditText red, blue, green;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n red.setText(String.valueOf(accentColour.red()));\n green.setText(String.valueOf(accentColour.green()));\n blue.setText(String.valueOf(accentColour.blue()));\n\n class SeekChanged implements SeekBar.OnSeekBarChangeListener {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if(fromUser) {\n red.setText(String.valueOf(redBar.getProgress()));\n green.setText(String.valueOf(greenBar.getProgress()));\n blue.setText(String.valueOf(blueBar.getProgress()));\n }\n colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {}\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {}\n }\n\n redBar.setOnSeekBarChangeListener(new SeekChanged());\n greenBar.setOnSeekBarChangeListener(new SeekChanged());\n blueBar.setOnSeekBarChangeListener(new SeekChanged());\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n content.removeAllViews();\n content.addView(settings);\n }\n });\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // save colour as ColourPack and add to Theme\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }\n });\n\n content.addView(view);\n }", "public void setBgColours(weatherData tmp) {\n\t\t\t\t\tswitch(tmp.getCondit()) {\n\t\t\t\t\t\tcase \"sky is clear \":\n\t\t\t\t\t\tcase \"clear sky \":\n\t\t\t\t\t\tcase \"Sky is Clear \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(255, 215,0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(255, 111, 0);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"few clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 255, 0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(9, 173, 33);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"scattered clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 90);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(45, 110, 35);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"broken clouds \":\n\t\t\t\t\t\tcase \"overcast clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 150);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 150, 130);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"shower rain \":\n\t\t\t\t\t\tcase \"light intensity drizzle \":\n\t\t\t\t\t\tcase \"drizzle \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle \":\n\t\t\t\t\t\tcase \"light intensity drizzle rain \":\n\t\t\t\t\t\tcase \"drizzle rain \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle rain \":\n\t\t\t\t\t\tcase \"shower rain and drizzle \":\n\t\t\t\t\t\tcase \"heavy shower rain and drizzle \":\n\t\t\t\t\t\tcase \"shower drizzle \":\n\t\t\t\t\t\tcase \"light intensity shower rain \":\n\t\t\t\t\t\tcase \"heavy intensity shower rain \":\n\t\t\t\t\t\tcase \"ragged shower rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0,255,255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 130, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"rain \":\n\t\t\t\t\t\tcase \"light rain \":\n\t\t\t\t\t\tcase \"moderate rain \":\n\t\t\t\t\t\tcase \"heavy intensity rain \":\n\t\t\t\t\t\tcase \"very heavy rain \":\n\t\t\t\t\t\tcase \"extreme rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 166, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 50, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light rain \":\n\t\t\t\t\t\tcase \"thunderstorm with rain \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy rain \":\n\t\t\t\t\t\tcase \"light thunderstorm \":\n\t\t\t\t\t\tcase \"heavy thunderstorm \":\n\t\t\t\t\t\tcase \"ragged thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy drizzle \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 95, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(60, 30, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"snow \":\n\t\t\t\t\t\tcase \"freezing rain \":\n\t\t\t\t\t\tcase \"light snow \":\n\t\t\t\t\t\tcase \"heavy snow \":\n\t\t\t\t\t\tcase \"sleet \":\n\t\t\t\t\t\tcase \"shower sleet \":\n\t\t\t\t\t\tcase \"light rain and snow \":\n\t\t\t\t\t\tcase \"rain and snow \":\n\t\t\t\t\t\tcase \"light shower snow \":\n\t\t\t\t\t\tcase \"shower snow \":\n\t\t\t\t\t\tcase \"heavy shower snow \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(145, 245, 245);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(75, 150, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"mist \":\n\t\t\t\t\t\tcase \"smoke \":\n\t\t\t\t\t\tcase \"haze \":\n\t\t\t\t\t\tcase \"sand, dust whirls \":\n\t\t\t\t\t\tcase \"fog \":\n\t\t\t\t\t\tcase \"sand \":\n\t\t\t\t\t\tcase \"dust \":\n\t\t\t\t\t\tcase \"volcanic ash \":\n\t\t\t\t\t\tcase \"squalls \":\n\t\t\t\t\t\tcase \"tornado \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(200, 210, 210);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(85, 110, 100);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 120, 240);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 10, 90);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "private void generateBackground(Universe universe) throws SAXException {\n File bgFile = universe.getScene().getBackgroundFile();\n if(bgFile != null){\n saver.addAttribute(\"src\", XmlSaver.CDATA, relativePath(bgFile.getAbsolutePath()));\n } \n// }else{\n// Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n// saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n// }\n Color3f bgColor = new Color3f(universe.getScene().getBackgroundColor());\n saver.startTag(\"background\", Converter.tuple3fToString(bgColor));\n }", "public static void saveImage3(int[] rgb, String saveName, int width, int height){\n \t\n // Ask the user for the name of the output file.\n// try{\n// saveName = imageMain.console.readLine();\n// }\n// catch(IOException e){ \n// System.out.println(e);\n// System.exit(1);\n// }\n\n // If saveName does not already end in .bmp, then add .bmp to saveName.\n saveName=bmpTack(saveName);\n\n // Combine the 8-bit red, green, blue, offset values into 32-bit words.\n\n // Write the data out to file with the name given by string saveName.\n BMPFile bmpf = new BMPFile();\n bmpf.saveBitmap(saveName, rgb, width, height);\n System.out.println(\"Saved \" + saveName);\n }", "public Theme (Map<TileColor, Color> palette) {\n\t\tthis.palette = palette;\n\t}", "void setCurrentPenColour(Color colour) {\n int colourIndex = shapes.size();\n lineColours.set(colourIndex, colour);\n currentPenColour = colour;\n writeFile.writePen(colour);\n }", "private void green(){\n\t\tthis.arretes_fG();\n\t\tthis.coins_fG();\n\t\tthis.coins_a1G();\n\t\tthis.coins_a2G();\n\t\tthis.aretes_aG();\n\t\tthis.cube[31] = \"G\";\n\t}", "public int getColour() {\n return colour;\n }", "public void saveLayerAlpha(int sx, int sy, int i, int j, int multipliedAlpha) {\n\t\t\n\t}", "public JComponent addInsert(Color color)\n {\n Category category = new Category(this, \"Insert FX\", color);\n \n JComponent comp;\n String[] params;\n final HBox hbox = new HBox();\n\n final HBox[] insert = new HBox[6];\n\n \n // OFF\n insert[0] = new HBox();\n\n\n // EQ Bandpass\n insert[1] = new HBox(); \n\n comp = new LabelledDial(\"Mid\", this, \"bandpassmidfreq\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Freq\");\n insert[1].add(comp);\n \n comp = new LabelledDial(\"Mid\", this, \"bandpassmidgain\", color, 0, 127)\n {\n public boolean isSymmetric() { return true; }\n public String map(int value)\n {\n if (value <= 64) return \"\" + (((value - 64) * 100) / 64) + \"%\";\n else return \"\" + (((value - 64) * 100) / 63) + \"%\";\n }\n };\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[1].add(comp);\n\n comp = new LabelledDial(\"Mid\", this, \"bandpassmidq\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Q\");\n insert[1].add(comp);\n\n\n // Compressor\n insert[2] = new HBox(); \n\n comp = new LabelledDial(\"Attack\", this, \"compressorattack\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Release\", this, \"compressorrelease\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Threshold\", this, \"compressorthreshold\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Ratio\", this, \"compressorratio\", color, 0, 127);\n insert[2].add(comp);\n \n comp = new LabelledDial(\"Makeup\", this, \"compressorgain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[2].add(comp);\n\n\n // Auto Wah\n insert[3] = new HBox(); \n\n VBox vbox = new VBox();\n params = AUTO_WAH_TYPES;\n comp = new Chooser(\"Wah Wah Type\", this, \"autowahtype\", params);\n vbox.add(comp);\n insert[3] .add(vbox);\n\n comp = new LabelledDial(\"Cutoff\", this, \"autowahcutoff\", color, 0, 127);\n insert[3].add(comp);\n \n comp = new LabelledDial(\"Resonance\", this, \"autowahresonance\", color, 0, 127);\n insert[3].add(comp);\n \n comp = new LabelledDial(\"Sensitivity\", this, \"autowahsensitivity\", color, 0, 127);\n insert[3].add(comp);\n \n // shared with Compressor\n comp = new LabelledDial(\"Attack\", this, \"compressorattack\", color, 0, 127);\n insert[3].add(comp);\n \n // shared with Compressor\n comp = new LabelledDial(\"Release\", this, \"compressorrelease\", color, 0, 127);\n insert[3].add(comp);\n \n \n\n // Distortion\n insert[4] = new HBox(); \n\n vbox = new VBox();\n params = DISTORTION_TYPES;\n comp = new Chooser(\"Distortion Type\", this, \"distortiontype\", params);\n vbox.add(comp);\n insert[4].add(vbox);\n\n comp = new LabelledDial(\"Depth\", this, \"distortiondepth\", color, 0, 127);\n insert[4].add(comp);\n \n comp = new LabelledDial(\"Pre\", this, \"distortionpregain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[4].add(comp);\n \n comp = new LabelledDial(\"Post\", this, \"distortionpostgain\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Gain\");\n insert[4].add(comp);\n \n comp = new LabelledDial(\"High\", this, \"distortionhighcutoff\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Cutoff\");\n insert[4].add(comp);\n \n\n // Reducer\n insert[5] = new HBox(); \n\n comp = new LabelledDial(\"Bit\", this, \"reducerbitdepth\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Depth\");\n insert[5].add(comp);\n \n comp = new LabelledDial(\"Sample\", this, \"reducersamplerate\", color, 0, 127);\n ((LabelledDial)comp).addAdditionalLabel(\"Rate\");\n insert[5].add(comp);\n \n \n /// CHOOSER\n \n final HBox fx = new HBox();\n\n vbox = new VBox();\n params = INSERT_FX_TYPES;\n comp = new Chooser(\"Type\", this, \"channelfxtype\", params) // I *think* this is insert\n {\n public void update(String key, Model model)\n {\n super.update(key, model);\n fx.removeLast();\n int channelfxtype = model.get(\"channelfxtype\", 0);\n if (channelfxtype >= 0 && channelfxtype < insert.length)\n fx.addLast(insert[channelfxtype]);\n else Synth.handleException(new Throwable(\"Invalid channel fx type: \" + channelfxtype));\n fx.revalidate();\n fx.repaint();\n }\n }; \n vbox.add(comp);\n hbox.add(vbox);\n fx.add(insert[0]); // empty\n hbox.add(fx);\n \n category.add(hbox, BorderLayout.CENTER);\n return category;\n }", "public void set_color(String color){ color_ = GralColor.getColor(color.trim()); }", "public ColorPaletteBuilder color3(Color color)\n {\n if (color3 == null) colorsCount++;\n this.color3 = color;\n return this;\n }", "void setColorScheme(\n ReaderColorScheme c);", "public void colorButtonClicked(String tag){\n color.set(tag);\n }", "public LightBulb(RGBColor color){\r\n _color = new RGBColor(color);\r\n }" ]
[ "0.697789", "0.64167607", "0.5737985", "0.57264763", "0.55294746", "0.53607005", "0.5357987", "0.5272956", "0.52419823", "0.5240997", "0.5232688", "0.52126473", "0.51777583", "0.51463944", "0.513225", "0.5116073", "0.51059794", "0.51045805", "0.50947386", "0.5088267", "0.50804484", "0.5072448", "0.50711316", "0.5066517", "0.50567967", "0.5054695", "0.5054067", "0.5052648", "0.5020239", "0.50173974", "0.50140846", "0.5004367", "0.50006145", "0.49924254", "0.4984123", "0.49706995", "0.496221", "0.49597088", "0.4958421", "0.49400395", "0.49356666", "0.4929546", "0.49274075", "0.49247226", "0.49229223", "0.49229223", "0.4911745", "0.49091366", "0.48995984", "0.48983538", "0.48954573", "0.4894267", "0.48938888", "0.48934177", "0.48932517", "0.48815653", "0.4874322", "0.48715353", "0.48614877", "0.48611647", "0.48582923", "0.4856949", "0.4845546", "0.4844571", "0.48433626", "0.4842668", "0.48410252", "0.48402792", "0.4833576", "0.48264235", "0.48259827", "0.4825567", "0.48234448", "0.4818227", "0.4814327", "0.4811836", "0.48110318", "0.4808664", "0.4807172", "0.48004988", "0.47971335", "0.47891414", "0.4788746", "0.47713903", "0.47650632", "0.4762606", "0.47577646", "0.47562557", "0.4755566", "0.47534388", "0.47484243", "0.47479516", "0.47460902", "0.47430453", "0.47414616", "0.47403663", "0.47392347", "0.47375908", "0.47370613", "0.47368416" ]
0.5108738
16
apply theme later, do nothing here
@Override public void onClick(View v) { dialog.dismiss(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "void applyTheme(T theme);", "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 }", "public void themesa()\n {\n \n \n \n \n }", "public void applyTheme(){\n\t\tColor backgroundColour = new Color(255,255,255);\n\t\tColor buttonText = new Color(255,255,255);\n\t\tColor normalText = new Color(0,0,0);\n\t\tColor buttonColour = new Color(15,169,249);\n\n\t\tfirstAttemptResult.setForeground(new Color(255,0,110));\n\t\tsecondAttemptResult.setForeground(new Color(255,0,0));\n\t\t\n\t\t// background color\n\t\tthis.setBackground(backgroundColour);\n\t\t\n\t\t// normal text\n\t\tspellQuery.setForeground(normalText);\n\t\tdefinitionArea.setForeground(normalText);\n\t\tlblstAttempt.setForeground(normalText);\n\t\tlblndAttempt.setForeground(normalText);\n\t\tfirstAttempt.setForeground(normalText);\n\t\tsecondAttempt.setForeground(normalText);\n\t\tcurrentQuiz.setForeground(normalText);\n\t\tcurrentStreak.setForeground(normalText);\n\t\tlongestStreak.setForeground(normalText);\n\t\tnoOfCorrectSpellings.setForeground(normalText);\n\t\tquizAccuracy.setForeground(normalText);\n\t\tlblNewLabel.setForeground(normalText);\n\t\tlblYouOnlyHave.setForeground(normalText);\n\t\tlblCurrentQuiz.setForeground(normalText);\n\t\tlblCurrentStreak.setForeground(normalText);\n\t\tlblLongeststreak.setForeground(normalText);\n\t\tlblSpelledCorrectly.setForeground(normalText);\n\t\tlblQuizAccuracy.setForeground(normalText);\n\t\t\n\t\t// button text\n\t\tbtnConfirmOrNext.setForeground(buttonText);\n\t\tbtnStop.setForeground(buttonText);\n\t\tbtnListenAgain.setForeground(buttonText);\n\t\t// normal button color\n\t\tbtnConfirmOrNext.setBackground(buttonColour);\n\t\tbtnStop.setBackground(buttonColour);\n\t\tbtnListenAgain.setBackground(buttonColour);\n\t}", "public void preThemeChange() {\n setPadding(getPaddingLeft(), 0, getPaddingRight(), 0);\n }", "public void onThemeChanged()\n\t{\n\t}", "public /* synthetic */ void lambda$createView$14(View view) {\n Theme.ThemeAccent themeAccent;\n Theme.ThemeInfo previousTheme = Theme.getPreviousTheme();\n if (previousTheme != null) {\n int i = previousTheme.prevAccentId;\n if (i >= 0) {\n themeAccent = previousTheme.themeAccentsMap.get(i);\n } else {\n themeAccent = previousTheme.getAccent(false);\n }\n if (this.accent != null) {\n saveAccentWallpaper();\n Theme.saveThemeAccents(this.applyingTheme, true, false, false, false);\n Theme.clearPreviousTheme();\n Theme.applyTheme(this.applyingTheme, this.nightTheme);\n this.parentLayout.rebuildAllFragmentViews(false, false);\n } else {\n this.parentLayout.rebuildAllFragmentViews(false, false);\n File file = new File(this.applyingTheme.pathToFile);\n Theme.ThemeInfo themeInfo = this.applyingTheme;\n Theme.applyThemeFile(file, themeInfo.name, themeInfo.info, false);\n MessagesController.getInstance(this.applyingTheme.account).saveTheme(this.applyingTheme, (Theme.ThemeAccent) null, false, false);\n SharedPreferences.Editor edit = ApplicationLoader.applicationContext.getSharedPreferences(\"themeconfig\", 0).edit();\n edit.putString(\"lastDayTheme\", this.applyingTheme.getKey());\n edit.commit();\n }\n finishFragment();\n if (this.screenType == 0) {\n NotificationCenter.getGlobalInstance().postNotificationName(NotificationCenter.didApplyNewTheme, previousTheme, themeAccent, Boolean.valueOf(this.deleteOnCancel));\n }\n }\n }", "private void changeTheme(int type){\n frame.setBackground(Color.DARK_GRAY);\n mainPanel.setBackground(Color.DARK_GRAY);\n ((RequestPanel) mainPanel.getRightComponent()).changeTheme(type);\n ((RequestListPanel) mainPanel.getLeftComponent()).changeTheme(type);\n }", "private void toggleTheme() {\n\n // Following options to change the Theme must precede setContentView().\n\n SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n String lister = sharedPref.getString(\"list_preference\", \"1\");\n\n currentTheme = Integer.parseInt(lister);\n if (currentTheme == 2) {\n isLight = false;\n } else {\n isLight = true;\n }\n\n if (isLight) {\n setTheme(R.style.LightCustom);\n } else {\n setTheme(R.style.DarkCustom);\n }\n }", "@SuppressWarnings(\"unused\")\n\tprotected void initializeTheme() {\n\t\tthis.httpContext.setDefaultTheme(ConfigurationManager.getValue(\"Theme\"));\n\t}", "public void setTheme(){\r\n\r\n for (int i = 0; i < 3; i++) {\r\n\r\n buttons[i].setBackground(theme.getButtonTheme()[0][0]);\r\n buttons[i].setForeground(theme.getButtonTheme()[0][1]);\r\n\r\n if(i < 2) {\r\n\r\n panels[i].setBackground(theme.getBackGroundTheme()[0]);\r\n\r\n }\r\n\r\n }\r\n\r\n menuBars[0].setBackground(theme.getInsomniaTheme()[0]);\r\n\r\n menus[0].setForeground(theme.getInsomniaTheme()[1]);\r\n\r\n buttons[0].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_list_30px.png\"));\r\n\r\n buttons[1].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_sort_down_10px.png\"));\r\n\r\n buttons[2].setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_sort_down_&&_plus_25px.png\"));\r\n\r\n menus[2].getItem(0).setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_joyent_15px.png\"));\r\n menus[2].getItem(1).setIcon(new ImageIcon(theme.getAddressIcons()+\"icons8_doctors_folder_15px.png\"));\r\n\r\n filter.setBackground(theme.getTextFieldTheme()[0][0]);\r\n filter.setForeground(theme.getTextFieldTheme()[0][1]);\r\n\r\n }", "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 }", "public void checkTheme()\n {\n ImageView miniLogo = (ImageView) findViewById(R.id.mini_logo);\n LinearLayout colorBar = (LinearLayout) findViewById(R.id.color_bar);\n\n if(!ApplicationData.theme.equals(\"default\"))\n {\n switch(ApplicationData.theme)\n {\n case \"Banana\":\n colorBar.setBackgroundResource(R.color.color_banana);\n miniLogo.setImageResource(R.drawable.banner_logo_banana);\n //bigImg.setImageResource(R.drawable.banner_logo_banana);\n ApplicationData.theme = \"Banana\";\n //setTheme(R.style.AppThemeBanana);\n break;\n case \"Peach\":\n colorBar.setBackgroundResource(R.color.color_peach);\n miniLogo.setImageResource(R.drawable.banner_logo_peach);\n //bigImg.setImageResource(R.drawable.banner_logo_peach);\n ApplicationData.theme = \"Peach\";\n break;\n case \"Strawberry\":\n colorBar.setBackgroundResource(R.color.color_strawberry);\n miniLogo.setImageResource(R.drawable.banner_logo_strawberry);\n //bigImg.setImageResource(R.drawable.banner_logo_strawberry);\n ApplicationData.theme = \"Strawberry\";\n break;\n case \"Mellon\":\n colorBar.setBackgroundResource(R.color.color_mellon);\n miniLogo.setImageResource(R.drawable.banner_logo_mellon);\n //bigImg.setImageResource(R.drawable.banner_logo_mellon);\n ApplicationData.theme = \"Mellon\";\n break;\n default:\n colorBar.setBackgroundResource(R.color.color_default);\n miniLogo.setImageResource(R.drawable.banner_logo);\n //bigImg.setImageResource(R.drawable.banner_logo);\n ApplicationData.theme = \"Default\";\n break;\n }\n }\n }", "public /* synthetic */ void lambda$createView$13(View view) {\n cancelThemeApply(false);\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}", "private VP_Theme() {\n }", "@Override\n public void setTheme(int resid) {\n super.setTheme(android.R.style.Theme_Translucent_NoTitleBar);\n /*String packageName = getIntent().getStringExtra(Intent.EXTRA_PACKAGE_NAME);\n if(packageName.contains(\"kaer\") || packageName.contains(\"com.android\")){\n Log.e(\"ReviewPermissionsActivity\", \"setTheme Theme_Translucent_NoTitleBar\");\n super.setTheme(android.R.style.Theme_Translucent_NoTitleBar);\n }else{\n Log.e(\"ReviewPermissionsActivity\", \"setTheme ActivityNormal\");\n super.setTheme(R.style.ActivityNormal);\n }*/\n }", "private void applyInitialLook() {\r\n\t\tthis.control.setFont(this.initialFont);\r\n\t\tthis.control.setBackground(this.initialBackgroundColor);\r\n\t\tthis.control.setForeground(this.initialForegroundColor);\r\n\t}", "@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 synchronized void resetStyle() {\n \t\tstyleInitialized = false;\n \t}", "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 }", "protected void doDark() {\r\n\t\talpha = 0.5f;\r\n\t\tsetAlphaOnTiles();\r\n\t\trepaint();\r\n\t}", "@FXML\r\n void darkThemeAction() {\r\n root.getStylesheets().remove(\"sample/UserInterface/light_theme.css\");\r\n root.getStylesheets().add(\"sample/UserInterface/dark_theme.css\");\r\n }", "public void Themes31()\n {\n theme3= new Label(\"Theme\");\n theme3.setPrefWidth(150);\n theme3.setFont(new Font(13));\n theme3.setPrefHeight(40);\n theme3.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n dikoma3 = new Label(\"Dikoma\");\n dikoma3.setFont(new Font(13));\n dikoma3.setPrefWidth(150);\n dikoma3.setPrefHeight(40);\n dikoma3.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n diagelo3 = new Label(\"Diagelo\");\n diagelo3.setFont(new Font(13));\n diagelo3.setPrefWidth(150);\n diagelo3.setPrefHeight(40);\n diagelo3.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n abuse3 = new Label(\"Woman & children abuse\");\n abuse3.setPrefWidth(150);\n abuse3.setFont(new Font(13));\n abuse3.setPrefHeight(40);\n abuse3.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n trafficking3 = new Label(\"Human trafficking\");\n trafficking3.setFont(new Font(13));\n trafficking3.setPrefWidth(150);\n trafficking3.setPrefHeight(40);\n trafficking3.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n }", "private void changeTheme(Theme theme) {\n uiController.setTheme(theme);\n this.getStylesheets().clear();\n this.getStylesheets().add(getClass().getResource(\"styles/\" + theme + \".css\").toExternalForm());\n }", "public void Themes21()\n {\n theme2= new Label(\"Theme\");\n theme2.setPrefWidth(150);\n theme2.setFont(new Font(13));\n theme2.setPrefHeight(40);\n theme2.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n dikoma2 = new Label(\"Dikoma\");\n dikoma2.setFont(new Font(13));\n dikoma2.setPrefWidth(150);\n dikoma2.setPrefHeight(40);\n dikoma2.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n diagelo2 = new Label(\"Diagelo\");\n diagelo2.setFont(new Font(13));\n diagelo2.setPrefWidth(150);\n diagelo2.setPrefHeight(40);\n diagelo2.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n abuse2 = new Label(\"Woman & children abuse\");\n abuse2.setPrefWidth(150);\n abuse2.setFont(new Font(13));\n abuse2.setPrefHeight(40);\n abuse2.setBackground(new Background(new BackgroundFill(Color.GREEN,CornerRadii.EMPTY,Insets.EMPTY)));\n \n \n trafficking2 = new Label(\"Human trafficking\");\n trafficking2.setFont(new Font(13));\n trafficking2.setPrefWidth(150);\n trafficking2.setPrefHeight(40);\n trafficking2.setBackground(new Background(new BackgroundFill(Color.YELLOW,CornerRadii.EMPTY,Insets.EMPTY)));\n }", "public void applyCurrentStyle()\n\t{\n\t\tthis.getCurrentStyleTree().saveCurrentStyle();\n\t\tthis.guiController.rebuildStyle();\n\n\t\tThreadService.executeOnEDT(new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tgetCurrentStyleTree().repaint();\n\t\t\t}\n\t\t});\n\t}", "public String _buildtheme() throws Exception{\n_theme.Initialize(\"pagetheme\");\r\n //BA.debugLineNum = 91;BA.debugLine=\"theme.AddABMTheme(ABMShared.MyTheme)\";\r\n_theme.AddABMTheme(_abmshared._mytheme);\r\n //BA.debugLineNum = 94;BA.debugLine=\"theme.AddLabelTheme(\\\"lightblue\\\")\";\r\n_theme.AddLabelTheme(\"lightblue\");\r\n //BA.debugLineNum = 95;BA.debugLine=\"theme.Label(\\\"lightblue\\\").ForeColor = ABM.COLOR_LI\";\r\n_theme.Label(\"lightblue\").ForeColor = _abm.COLOR_LIGHTBLUE;\r\n //BA.debugLineNum = 96;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}", "private static void setActivityTheme(Context context) {\n //access the dark mode theme\n SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);\n String themePref = sharedPrefs.getString(\"theme_preference\", \"Light\");\n //set the calling object's theme to match with what's listed in shared preferences\n switch (themePref) {\n case \"Light\":\n context.setTheme(R.style.AppTheme);\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);\n break;\n case \"Dark\":\n context.setTheme(R.style.AppThemeDark);\n //turn off AppThemeDayNight\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);\n break;\n //\"Auto\" is commented out due to time restraints. I hope to revisit this later. -Littlesnowman88\n /*case \"Auto\":\n context.setTheme(R.style.AppThemeDayNight);\n AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_AUTO);\n break;*/\n //a Runtime Exception is thrown to ensure that new themes are fully implemented into this case statement. Developers must not be sloppy with their theme changes.\n default:\n throw new RuntimeException(\"ERROR: mismatch between selected app theme and implemented app themes.\");\n }\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\tThemeUtils.applyTheme(this);\n\n\t\tsuper.onCreate(savedInstanceState);\n\t}", "void onStyleModify() {\n\t\tif (mergedStyleSheet != null) {\n\t\t\tmergedStyleSheet = null;\n\t\t\tsheets.setNeedsUpdate(true);\n\t\t} else if (sheets != null) {\n\t\t\tsheets.setNeedsUpdate(true);\n\t\t}\n\t}", "private void themeDynamicAdd() {\n try {\n Background=getBitmapFromURL(base_image);\n Drawable dr = new BitmapDrawable((Background));\n test_rules_background.setBackgroundDrawable(dr);\n\n Bitmap back_bitmap;\n String back_shrd= AarambhThemeSharedPrefreence.loadBackArrowIconFromPreference(this);\n back_bitmap = getBitmapFromURL(back_shrd);\n Drawable dr1 = new BitmapDrawable((back_bitmap));\n back_btn_test_rules.setBackgroundDrawable(dr1);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }", "public void onThemeChanged()\n\t{\n\t\tthemeChanged = true;\n\t}", "public void changeTheme(ActionEvent actionEvent) throws IOException {\n if (user.isStyleDark()){\n user.setStyleSheet(LIGHT_STYLE_SHEET);\n }\n else {\n user.setStyleSheet(DARK_STYLE_SHEET);\n }\n AppManager.changeScene(getClass().getResource(\"/views/SettingsScreen.fxml\"),actionEvent, user);\n\n }", "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 }", "public void applyLookAndFeel() {\n\r\n\t\tLookAndFeelInfo[] infos = UIManager.getInstalledLookAndFeels();\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"NIMBUS\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (look < 0) {\r\n\t\t\tfor (int i = 0; i < infos.length; i++) {\r\n\t\t\t\tif (infos[i].getName().toUpperCase().contains(\"WINDOW\")) {\r\n\t\t\t\t\tlook = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tlook = (Math.abs(look) % infos.length);\r\n\r\n\t\tString lookName = infos[look].getName();\r\n\r\n\t\ttry {\r\n \t\tUIManager.setLookAndFeel(infos[look].getClassName());\r\n \t\tsetTitle(JMTKResizer.ABOUT + \" - \" + lookName);\r\n \tSwingUtilities.updateComponentTreeUI(this);\r\n \t\t//pack();\r\n\r\n \t} catch (Exception e) {\r\n \t\te.printStackTrace();\r\n \t}\r\n\t}", "private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}", "static void getTheme(Activity activity){\n\n if(PREF_THEME != DARK_THEME){\n activity.setTheme(R.style.AppTheme);\n }\n else{\n activity.setTheme(R.style.Theme_AppCompat);\n }\n }", "private void changeTheme() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean useDarkTheme = preferences.getBoolean(\"theme_pref\", false);\n\n if (useDarkTheme) {\n setTheme(R.style.DarkTheme);\n } else {\n setTheme(R.style.AppTheme);\n }\n }", "@Override\n @TargetApi(Build.VERSION_CODES.LOLLIPOP)\n public void applyTheme(Resources.Theme t) {\n patternDrawable.applyTheme(t);\n super.applyTheme(t);\n }", "private void m502c() {\n boolean z = this.f445b == null;\n if (z) {\n this.f445b = getResources().newTheme();\n Theme theme = getBaseContext().getTheme();\n if (theme != null) {\n this.f445b.setTo(theme);\n }\n }\n mo616a(this.f445b, this.f444a, z);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\tinitTheme();\n\t\tsuper.onCreate(savedInstanceState);\n\t\t//ActivityTool.setWindowStatusBarColor(this,R.color.colorPrimaryDark);\n\t}", "public void onFinishInflate() {\n super.onFinishInflate();\n if (16 != this.h) {\n setBgtype(this.h);\n }\n }", "boolean hasTheme();", "public void mo616a(Theme theme, int i, boolean z) {\n theme.applyStyle(i, true);\n }", "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 }", "@Override\n protected void unBindTarget() {\n this.mThemeCallback = null;\n }", "private void applyStyle() {\n\t\tmenu.getStyleClass().add(menuColor);\n\t}", "private void createThemeDialog() {\n\n\t\tAlertDialog.Builder alb = new AlertDialog.Builder(this);\n\t\talb.setTitle(getString(R.string.choose_theme));\n\t\talb.setCancelable(true);\n\n\t\tString[] items;\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n\t\t\titems = new String[]{getString(R.string.light), getString(R.string.dark),\n\t\t\t\t\tgetString(R.string.time), getString(R.string.system)};\n\t\t} else {\n\t\t\titems = new String[]{getString(R.string.light), getString(R.string.dark),\n\t\t\t\t\tgetString(R.string.time)};\n\t\t}\n\n\t\tAtomicInteger newTheme = new AtomicInteger(currentTheme);\n\n\t\talb.setSingleChoiceItems(items, currentTheme, (dialog, which) -> newTheme.set(which));\n\n\t\talb.setPositiveButton(getString(R.string.set_theme), (dialog, which) -> {\n\t\t\tcurrentTheme = newTheme.get();\n\t\t\tchangeTheme();\n\t\t});\n\n\t\talb.show();\n\t}", "static void setPrefTheme(int theme){\n PREF_THEME = theme;\n }", "@Override\n public void run() {\n overlay.remove(shadowContainerLayer);\n mViewToAnimate.setBackground(oldBackground);\n if (mViewBitmap != null) {\n mViewBitmap.recycle();\n }\n }", "protected void installThemeTemplate() throws CoreException\n {\n SDK sdk = getSDK();\n String themeName = this.masterModel.getStringProperty( THEME_NAME );\n String displayName = this.masterModel.getStringProperty( DISPLAY_NAME );\n IPath newThemePath = sdk.createNewThemeProject( themeName, displayName );\n\n processNewFiles( newThemePath.append( themeName + ISDKConstants.THEME_PLUGIN_PROJECT_SUFFIX ) );\n\n // cleanup portlet files\n newThemePath.toFile().delete();\n\n try\n {\n this.project.refreshLocal( IResource.DEPTH_INFINITE, monitor );\n }\n catch( Exception e )\n {\n ProjectCorePlugin.logError( e );\n }\n }", "public void revertColorAndFont()\r\n\t{\r\n\t\trevertColor();\r\n\t\trevertFont();\r\n\t}", "public void setTheme(ComponentTheme ui) {\r\n ComponentTheme old = this.ui;\r\n this.ui = ui;\r\n if (old != this.ui) {\r\n if (this.ui!=null) {\r\n try {\r\n this.ui.initComponent(this);\r\n } catch (OxyException e) {\r\n Log.error(\"error initializing component\", e);\r\n } \r\n }\r\n onThemeChange();\r\n }\r\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t\tthemeHandler = new HandlerCallback(this);\n\t}", "public Theme() {\n\t\tpalette = new HashMap<>();\n\t\tinitDefaultPalette(palette);\n\t}", "private synchronized void initStyle(InstanceWaypoint context) {\n \t\tif (styleInitialized) {\n \t\t\treturn;\n \t\t}\n \t\telse {\n \t\t\tstyleInitialized = true;\n \t\t}\n \t\t\n \t\t//check if there is a Rule from the Rulestyle-Page and apply to the instancemarker on the map\n \t\tRule honoredRule = honorRules(context);\n \t\tfillStyle(honoredRule, context);\n \t\tstrokeStyle(honoredRule, context);\t\n \n \t}", "public static void changeTheme(Activity activity) {\n String themeChoice = PreferenceManager.getDefaultSharedPreferences(activity).getString(ActivityPreferences.KEY_THEME, ActivityPreferences.KEY_THEME);\n if ((themeChoice != null) && (themeChoice.equals(\"1\")))\n activity.setTheme(R.style.CollectThemeLight);\n else\n activity.setTheme(R.style.CollectThemeDark);\n\n\n Resources res = activity.getResources();\n // Change locale settings in the app.\n DisplayMetrics dm = res.getDisplayMetrics();\n android.content.res.Configuration conf = res.getConfiguration();\n String languageChoice = PreferenceManager.getDefaultSharedPreferences(activity).getString(ActivityPreferences.KEY_LANGUAGE, ActivityPreferences.KEY_LANGUAGE);\n if (languageChoice != null) {\n if (languageChoice.equals(\"1\"))\n conf.locale = new Locale(\"fr\");\n else if (languageChoice.equals(\"0\"))\n conf.locale = new Locale(\"en\");\n\n res.updateConfiguration(conf, dm);\n }\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //changing the theme\n if (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES) {\n setTheme(R.style.DarkTheme);\n } else {\n setTheme(R.style.AppTheme);\n }\n //code for changing theme ends\n\n //Layout set here from the xml files\n setContentView(R.layout.activity_admin_change);\n }", "public void applyStyleToTheme(long themePtr, int resId, boolean force) {\n synchronized (this) {\n ensureValidLocked();\n nativeThemeApplyStyle(this.mObject, themePtr, resId, force);\n }\n }", "public void styleforOne() {\r\n\t\t\r\n\r\n\t\tsuper.styleforOne();\r\n\t\t\r\n\t}", "public void setTheme(String theme) {\n this.theme = theme;\n }", "private void setStyleToDefault() {\n // enable syntax highlighting\n commandTextField.enableSyntaxHighlighting();\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 }", "static private void change_do(BSUIWindow ui) {\n\t\tui.getPanel().removeAll();\n\t\tui.getPanel().setBackground(background);\n\t\tui.getPanel().setForeground(text);\n\t\tui.getPanel().setLayout(new SpringLayout());\n\t\tui.init();\n\t\tui.getPanel().validate();\n\t\twindow.setVisible(true);\n\t}", "static void changeToTheme(Activity activity, int theme, User usr) {\n switch (theme) {\n default:\n case THEME_DEFAULT:\n activity.setTheme(R.style.LightDefaultTheme);\n break;\n case THEME_GP:\n activity.setTheme(R.style.LightGPTheme);\n break;\n case THEME_OT:\n activity.setTheme(R.style.LightOTTheme);\n break;\n case THEME_BP:\n activity.setTheme(R.style.LightBPTheme);\n break;\n }\n usr.getUserData().setPrefs(null);\n Intent intent = new Intent(activity, activity.getClass());\n intent.putExtra(\"UserObject\", usr);\n activity.finish();\n activity.startActivity(intent);\n }", "public static void onActivityCreateSetTheme(Activity activity, int theme) {\n\n\n switch (theme) {\n default:\n case THEME_DEFAULT:\n activity.setTheme(R.style.AppTheme);\n\n break;\n case THEME_ONE:\n activity.setTheme(R.style.MySecondTheme);\n break;\n case THEME_TWO:\n activity.setTheme(R.style.MyThirdTheme);\n break;\n case THEME_THREE:\n activity.setTheme(R.style.MyFourthTheme);\n break;\n case THEME_FOUR:\n activity.setTheme(R.style.MyFifthTheme);\n break;\n case THEME_FIVE:\n activity.setTheme(R.style.MySixthTheme);\n break;\n case THEME_SIX:\n activity.setTheme(R.style.MySeventhTheme);\n break;\n case THEME_SEVEN:\n activity.setTheme(R.style.MyEigthTheme);\n break;\n case THEME_EIGHT:\n activity.setTheme(R.style.MyNinthTheme);\n break;\n }\n }", "private static void updateColors() {\n try {\n text.setBackground(colorScheme[0]); outputText.setBackground(colorScheme[0]); \n //frame.setBackground(colorScheme[0]);\n\n //Determines the color to set the splitter\n if(colorScheme[0].equals(Color.BLACK)) splitter.setBackground(Color.DARK_GRAY.darker());\n else if(colorScheme[0].equals(new Color(35,37,50))) splitter.setBackground(new Color(35,37,50).brighter());\n else if(colorScheme[0].equals(Color.GRAY) || colorScheme[0].equals(Color.LIGHT_GRAY) || colorScheme[0].equals(Color.WHITE)) splitter.setBackground(null);\n else splitter.setBackground(colorScheme[0].darker());\n\n text.getStyledDocument().getForeground(attributeScheme[11]); //Will work, but needs to be refreshed somehow.\n outputText.setForeground(colorScheme[11]); \n } catch (Exception e) {\n System.out.println(\"The error was here!\");\n e.printStackTrace();\n }\n }", "public DefaultTheme() {\r\n //sets up alpha values for a nicer look\r\n p1.a = 0.85f;\r\n p2.a = 0.85f;\r\n p3.a = 0.85f;\r\n\r\n s1.a = 0.85f;\r\n s2.a = 0.85f;\r\n s3.a = 0.85f;\r\n }", "public ThemeManager(Context c) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(c);\n String guild = sp.getString(\"prefColorScheme\", \"Default\");\n if (guild.equalsIgnoreCase(c.getResources().getString(R.string.selesnya))) {\n this.drawable_background = R.drawable.std_life_bkg_seles;\n this.lightColor = R.color.primary_light_seles;\n this.theme = R.style.AppThemeSeles;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.azorious))) {\n this.drawable_background = R.drawable.std_life_bkg_azorious;\n this.lightColor = R.color.primary_light_azorious;\n this.theme = R.style.AppThemeAzorious;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.dimir))) {\n this.drawable_background = R.drawable.std_life_bkg_dimir;\n this.lightColor = R.color.primary_light_dimir;\n this.theme = R.style.AppThemeDimir;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.rakdos))) {\n this.drawable_background = R.drawable.std_life_bkg_rakdos;\n this.lightColor = R.color.primary_light_rakdos;\n this.theme = R.style.AppThemeRakdos;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.gruul))) {\n this.drawable_background = R.drawable.std_life_bkg_gruul;\n this.lightColor = R.color.primary_light_gruul;\n this.theme = R.style.AppThemeGruul;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.orzhov))) {\n this.drawable_background = R.drawable.std_life_bkg_orzhov;\n this.lightColor = R.color.primary_light_orzhov;\n this.theme = R.style.AppThemeOrzhov;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.izzet))) {\n this.drawable_background = R.drawable.std_life_bkg_izzet;\n this.lightColor = R.color.primary_light_izzet;\n this.theme = R.style.AppThemeIzzet;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.golgari))) {\n this.drawable_background = R.drawable.std_life_bkg_golgari;\n this.lightColor = R.color.primary_light_golgari;\n this.theme = R.style.AppThemeGolgari;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.boros))) {\n this.drawable_background = R.drawable.std_life_bkg_boros;\n this.lightColor = R.color.primary_light_boros;\n this.theme = R.style.AppThemeBoros;\n } else if (guild.equalsIgnoreCase(c.getResources().getString(R.string.simic))) {\n this.drawable_background = R.drawable.std_life_bkg_simic;\n this.lightColor = R.color.primary_light_simic;\n this.theme = R.style.AppThemeSimic;\n } else {\n this.drawable_background = R.drawable.std_life_bkg;\n this.lightColor = R.color.primary_light_seles;\n this.theme = R.style.AppTheme;\n }\n }", "public void applyFonts()\n\t{\n\t\tFont font = s_cfg.getFont( FontKey.GUI_NOM );\n\t\tm_executorsTable.applyFonts();\n\t\tm_btnTakeControl.setFont( font );\n\t\tm_btnReleaseControl.setFont( font );\n\t\tm_btnBackground.setFont( font );\n\t\tm_btnStartMonitor.setFont( font );\n\t\tm_btnStopMonitor.setFont( font );\n\t\tm_btnKillExecutor.setFont( font );\n\t\tm_btnStopExecutor.setFont( font );\n\t\tm_btnRefresh.setFont( font );\n\t}", "public void setTheme(BoardTheme theme)\n {\n this.theme = theme;\n repaint();\n }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_PRIMARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "public final void mo39711K() {\n setBackgroundColor(0);\n }", "private void initStyles(){\n Shadow shadowEffect = new Shadow();\n shadowEffect.setBlurType(BlurType.GAUSSIAN);\n shadowEffect.setHeight(0);\n shadowEffect.setWidth(5.93);\n shadowEffect.setColor(Color.color(0.5, 0, 1.0));\n openAboutText.setOnMouseEntered(mouseEvent -> openAboutText.setEffect(shadowEffect));//#2f00ff\n openAboutText.setOnMouseExited(mouseEvent -> openAboutText.setEffect(null) );//#9277ff\n\n openSetingsText.setOnMouseEntered(mouseEvent -> {openSetingsText.setEffect(shadowEffect);});\n openSetingsText.setOnMouseExited(mouseEvent -> {openSetingsText.setEffect(null);});\n\n openAlarmsText.setOnMouseEntered(mouseEvent -> {openAlarmsText.setEffect(shadowEffect);});\n openAlarmsText.setOnMouseExited(mouseEvent -> {openAlarmsText.setEffect(null);});\n\n exitText.setOnMouseEntered(mouseEvent ->{\n shadowEffect.setColor(Color.color(1,0,0));\n exitText.setEffect(shadowEffect); });\n exitText.setOnMouseExited(mouseEvent -> {\n shadowEffect.setColor(Color.color(0.5, 0, 1.0));\n exitText.setEffect(null);\n } );\n }", "public void onClick(DialogInterface dialog, int id) {\n\t\t \t switch (positionSelected){\n default:\n case 55:\n themeId = R.style.ThemeGreen; break;\n\t\t \t case 0:\n\t\t \t\t themeId = R.style.ThemeLight; break;\n\t\t \t case 1:\n\t\t \t\t themeId = R.style.ThemeDark; break;\n\n\t\t \t }\n\t\t \t //getApplication().setTheme(themeId);\n\t\t \t \n\t\t \t act.Update();\n\t\t \t //Activity act = getActivity(); \n\t\t }", "public void scheduleApplyColor(int i, int i2, boolean z) {\n if (i2 == -1) {\n int i3 = this.colorType;\n if (i3 == 1 || i3 == 2) {\n long j = this.backupBackgroundOverrideColor;\n if (j != 0) {\n this.accent.backgroundOverrideColor = j;\n } else {\n this.accent.backgroundOverrideColor = 0;\n }\n long j2 = this.backupBackgroundGradientOverrideColor1;\n if (j2 != 0) {\n this.accent.backgroundGradientOverrideColor1 = j2;\n } else {\n this.accent.backgroundGradientOverrideColor1 = 0;\n }\n long j3 = this.backupBackgroundGradientOverrideColor2;\n if (j3 != 0) {\n this.accent.backgroundGradientOverrideColor2 = j3;\n } else {\n this.accent.backgroundGradientOverrideColor2 = 0;\n }\n long j4 = this.backupBackgroundGradientOverrideColor3;\n if (j4 != 0) {\n this.accent.backgroundGradientOverrideColor3 = j4;\n } else {\n this.accent.backgroundGradientOverrideColor3 = 0;\n }\n this.accent.backgroundRotation = this.backupBackgroundRotation;\n if (i3 == 2) {\n int defaultAccentColor = Theme.getDefaultAccentColor(\"chat_wallpaper\");\n int defaultAccentColor2 = Theme.getDefaultAccentColor(\"chat_wallpaper_gradient_to\");\n int defaultAccentColor3 = Theme.getDefaultAccentColor(\"key_chat_wallpaper_gradient_to2\");\n int defaultAccentColor4 = Theme.getDefaultAccentColor(\"key_chat_wallpaper_gradient_to3\");\n Theme.ThemeAccent themeAccent = this.accent;\n int i4 = (int) themeAccent.backgroundGradientOverrideColor1;\n int i5 = (int) themeAccent.backgroundGradientOverrideColor2;\n int i6 = (int) themeAccent.backgroundGradientOverrideColor3;\n int i7 = (int) themeAccent.backgroundOverrideColor;\n ColorPicker colorPicker2 = this.colorPicker;\n if (i6 != 0) {\n defaultAccentColor4 = i6;\n }\n colorPicker2.setColor(defaultAccentColor4, 3);\n ColorPicker colorPicker3 = this.colorPicker;\n if (i5 != 0) {\n defaultAccentColor3 = i5;\n }\n colorPicker3.setColor(defaultAccentColor3, 2);\n ColorPicker colorPicker4 = this.colorPicker;\n if (i4 != 0) {\n defaultAccentColor2 = i4;\n }\n colorPicker4.setColor(defaultAccentColor2, 1);\n ColorPicker colorPicker5 = this.colorPicker;\n if (i7 != 0) {\n defaultAccentColor = i7;\n }\n colorPicker5.setColor(defaultAccentColor, 0);\n }\n }\n int i8 = this.colorType;\n if (i8 == 1 || i8 == 3) {\n int i9 = this.backupMyMessagesAccentColor;\n if (i9 != 0) {\n this.accent.myMessagesAccentColor = i9;\n } else {\n this.accent.myMessagesAccentColor = 0;\n }\n int i10 = this.backupMyMessagesGradientAccentColor1;\n if (i10 != 0) {\n this.accent.myMessagesGradientAccentColor1 = i10;\n } else {\n this.accent.myMessagesGradientAccentColor1 = 0;\n }\n int i11 = this.backupMyMessagesGradientAccentColor2;\n if (i11 != 0) {\n this.accent.myMessagesGradientAccentColor2 = i11;\n } else {\n this.accent.myMessagesGradientAccentColor2 = 0;\n }\n int i12 = this.backupMyMessagesGradientAccentColor3;\n if (i12 != 0) {\n this.accent.myMessagesGradientAccentColor3 = i12;\n } else {\n this.accent.myMessagesGradientAccentColor3 = 0;\n }\n if (i8 == 3) {\n this.colorPicker.setColor(this.accent.myMessagesGradientAccentColor3, 3);\n this.colorPicker.setColor(this.accent.myMessagesGradientAccentColor2, 2);\n this.colorPicker.setColor(this.accent.myMessagesGradientAccentColor1, 1);\n ColorPicker colorPicker6 = this.colorPicker;\n Theme.ThemeAccent themeAccent2 = this.accent;\n int i13 = themeAccent2.myMessagesAccentColor;\n if (i13 == 0) {\n i13 = themeAccent2.accentColor;\n }\n colorPicker6.setColor(i13, 0);\n }\n }\n Theme.refreshThemeColors();\n this.listView2.invalidateViews();\n return;\n }\n int i14 = this.lastPickedColorNum;\n if (!(i14 == -1 || i14 == i2)) {\n this.applyColorAction.run();\n }\n this.lastPickedColor = i;\n this.lastPickedColorNum = i2;\n if (z) {\n this.applyColorAction.run();\n } else if (!this.applyColorScheduled) {\n this.applyColorScheduled = true;\n this.fragmentView.postDelayed(this.applyColorAction, 16);\n }\n }", "protected void sequence_Theme(ISerializationContext context, Theme semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "private void setMapViewTheme(MapView mapView) {\n\n Typeface typeface_a = Typeface.create(Typeface.MONOSPACE,Typeface.BOLD_ITALIC);\n Typeface typeface_b = Typeface.create(Typeface.MONOSPACE,Typeface.NORMAL);\n Typeface typeface_c = Typeface.create(Typeface.SERIF,Typeface.BOLD_ITALIC);\n\n\n Theme theme = mMapView\n .themeBuilder()\n .setProperty(\"view.poi.color.background\", Color.DKGRAY)\n // POI Icon\n .setProperty(\"view.poi.icon.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.icon.color.background\",Color.TRANSPARENT)\n // POI Header\n .setProperty(\"view.poi.header.color.background\",Color.TRANSPARENT)\n // POI Header Icon\n .setProperty(\"view.poi.header.icon.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.icon.color.background\",Color.TRANSPARENT)\n // POI Header Title\n .setProperty(\"view.poi.header.title.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.title.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.title.font.name\", typeface_a)\n .setProperty(\"view.poi.header.title.font.size\", 20.0)\n // POI Header Location\n .setProperty(\"view.poi.header.location.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.location.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.location.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.location.font.name\", typeface_b)\n .setProperty(\"view.poi.header.location.font.size\", 16.0)\n // POI Header Security\n .setProperty(\"view.poi.header.security.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.security.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.security.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.security.font.name\", typeface_b)\n .setProperty(\"view.poi.header.security.font.size\", 16.0)\n // POI Header Level\n .setProperty(\"view.poi.header.level.color.text\",Color.WHITE)\n .setProperty(\"view.poi.header.level.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.header.level.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.header.level.font.name\", typeface_b)\n .setProperty(\"view.poi.header.level.font.size\", 16.0)\n // POI Carousel\n .setProperty(\"view.poi.carousel.color.background\",Color.DKGRAY)\n .setProperty(\"view.poi.carousel.error.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.loader.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.image.color.background\",Color.LTGRAY)\n // POI Carousel - Label\n .setProperty(\"view.poi.carousel.label.color.text\",Color.BLACK)\n .setProperty(\"view.poi.carousel.label.color.background\",Color.WHITE)\n .setProperty(\"view.poi.carousel.label.font.name\", typeface_b)\n .setProperty(\"view.poi.carousel.label.font.size\", 12.0)\n // POI Carousel - Loading\n .setProperty(\"view.poi.carousel.loading.color.background\", Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.loading.text.color.text\", Color.LTGRAY)\n .setProperty(\"view.poi.carousel.loading.text.color.background\", Color.TRANSPARENT)\n .setProperty(\"view.poi.carousel.loading.text.font.name\", typeface_b)\n .setProperty(\"view.poi.carousel.loading.text.font.size\", 12.0)\n // POI Details Description String\n .setProperty(\"view.poi.detail.description.color.text\",Color.WHITE)\n .setProperty(\"view.poi.detail.description.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.detail.description.font.name\", typeface_b)\n .setProperty(\"view.poi.detail.description.font.size\", 16.0)\n // POI Details Spannable Tag String\n .setProperty(\"view.poi.detail.tag.color.text\",Color.BLACK)\n .setProperty(\"view.poi.detail.tag.color.background\",Color.WHITE)\n // POI Contact - Website\n .setProperty(\"view.poi.contact.website.active.color.text\",Color.YELLOW)\n .setProperty(\"view.poi.contact.website.active.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.website.active.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.website.active.font.size\", 18.0)\n .setProperty(\"view.poi.contact.website.default.color.text\",Color.WHITE)\n .setProperty(\"view.poi.contact.website.default.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.website.default.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.website.default.font.size\", 16.0)\n // POI Contact - Phone\n .setProperty(\"view.poi.contact.phone.active.color.text\",Color.YELLOW)\n .setProperty(\"view.poi.contact.phone.active.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.phone.active.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.phone.active.font.size\", 14.0)\n .setProperty(\"view.poi.contact.phone.default.color.text\",Color.WHITE)\n .setProperty(\"view.poi.contact.phone.default.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.contact.phone.default.font.name\", typeface_b)\n .setProperty(\"view.poi.contact.phone.default.font.size\", 16.0)\n // POI Buttons\n .setProperty(\"view.poi.button.color.text\",Color.WHITE)\n .setProperty(\"view.poi.button.color.tint\",Color.WHITE)\n .setProperty(\"view.poi.button.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.button.font.name\", typeface_b)\n .setProperty(\"view.poi.button.font.size\", 13.0)\n // POI Operational Times - Day\n .setProperty(\"view.poi.time.day.color.text\",Color.WHITE)\n .setProperty(\"view.poi.time.day.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.time.day.font.name\", typeface_a)\n .setProperty(\"view.poi.time.day.font.size\", 16.0)\n // POI Operational Times - compress Hour\n .setProperty(\"view.poi.time.hours.color.text\",Color.LTGRAY)\n .setProperty(\"view.poi.time.hours.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.time.hours.font.name\", typeface_c)\n .setProperty(\"view.poi.time.hours.font.size\", 18.0)\n\n // POI Operational Times - extended Hour\n .setProperty(\"view.poi.time.hour.color.text\",Color.LTGRAY)\n .setProperty(\"view.poi.time.hour.color.background\",Color.TRANSPARENT)\n .setProperty(\"view.poi.time.hour.font.name\", typeface_c)\n .setProperty(\"view.poi.time.hour.font.size\", 18.0)\n // Create DefaultTheme\n .createTheme();\n\n mMapView.setTheme(theme);\n }", "protected void apply() {\n dispose();\n }", "public org.openxmlformats.schemas.drawingml.x2006.main.CTBaseStyles addNewThemeElements()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTBaseStyles target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTBaseStyles)get_store().add_element_user(THEMEELEMENTS$0);\n return target;\n }\n }", "public static void onActivityCreateSetTheme(Activity activity)\n\t{\n\t\tswitch (mCurrentTheme)\n\t\t{\n\t\t\tcase THEME_MEDIUM:\n\t\t\t\tactivity.setTheme(R.style.MediumTheme);\n\t\t\t\tbreak;\n\t\t\tcase THEME_LIGHT:\n\t\t\t\tactivity.setTheme(R.style.LightTheme);\n\t\t\t\tbreak;\n\t\t\tcase THEME_DARK:\n\t\t\tdefault:\n\t\t\t\tactivity.setTheme(R.style.DarkTheme);\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void setTheme(Theme theme) {\n this.theme = theme;\n }", "@Override\n protected String getStyle() {\n return App.getInstance().getThemeCssFileName();\n\n }", "protected void installDefaults() {\n this.controlPanel.setBackground(null);\n\n Font font = this.controlPanel.getFont();\n if (font == null || font instanceof UIResource) {\n Font toSet = RadianceThemingCortex.GlobalScope.getFontPolicy().getFontSet().\n getControlFont();\n this.controlPanel.setFont(toSet);\n }\n }", "public void setTheme(String theme) {\r\n\t\tsuper.setTheme(theme);\r\n\t\tProps props = getPage().getPageProperties();\r\n\t\t_saveButtonCaption = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_SAVE_BUTTON_CAPTION);\r\n\t\t_saveButtonAccessKey = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_SAVE_BUTTON_ACCESS_KEY);\r\n\t\t_addButtonCaption = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_ADD_BUTTON_CAPTION);\r\n\t\t_addButtonAccessKey = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_ADD_BUTTON_ACCESS_KEY);\r\n\t\t_deleteButtonCaption = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_DELETE_BUTTON_CAPTION);\r\n\t\t_deleteButtonAccessKey = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_DELETE_BUTTON_ACCESS_KEY);\r\n\t\t_cancelButtonCaption = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_CANCEL_BUTTON_CAPTION);\r\n\t\t_cancelButtonAccessKey = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_CANCEL_BUTTON_ACCESS_KEY);\r\n\r\n\t\t//agregado\r\n\t\t//Juan Manuel Cortez, 14/10/2007\r\n\t\t_okToCancelQuestion = props.getThemeProperty(theme, Props.FORM_DISPLAY_BOX_CANCEL_CONFIRMATION_MESSAGE);\r\n\t\t_okToAddQuestion = props.getThemeProperty(theme, Props.FORM_DISPLAY_BOX_ADD_CONFIRMATION_MESSAGE);\r\n\t\t_okToEditQuestion = props.getThemeProperty(theme, Props.FORM_DISPLAY_BOX_EDIT_CONFIRMATION_MESSAGE);\r\n\t\t_okToDeleteQuestion = props.getThemeProperty(theme, Props.FORM_DISPLAY_BOX_DELETE_CONFIRMATION_MESSAGE);\r\n\t\t_dirtyDataError = props.getThemeProperty(theme, Props.FORM_DISPLAY_BOX_DIRTY_DATA_ERROR_MESSAGE);\r\n\r\n\t\tString st = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_BUTTON_LOCATION);\r\n\t\tif (st != null) {\r\n\t\t\tif (st.equalsIgnoreCase(\"BELOW_TABLE\"))\r\n\t\t\t\tsetButtonDisplayLocation(BUTTON_DISPLAY_BELOW_TABLE);\r\n\t\t\telse if (st.equalsIgnoreCase(\"IN_HEADER\"))\r\n\t\t\t\tsetButtonDisplayLocation(BUTTON_DISPLAY_IN_HEADER);\r\n\t\t}\r\n\t\tst = props.getThemeProperty(theme, Props.DETAIL_FORM_DISPLAY_BOX_BOTTOM_BUTTON_ALIGN);\r\n\t\tif (st !=null)\r\n\t\t\tsetBottomButtonAlign(st);\r\n\t\tsetUpButtons();\r\n\t}", "public void setDropDownViewTheme(Resources.Theme theme) {\n/* 95 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void resetListStyles() {\n\t\t\t\t for (int i=0; i<wordsList.getChildCount(); i++) {\n\t\t\t\t\t View child = wordsList.getChildAt(i);\n\t\t\t\t\t child.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t }\n\t\t\t }", "@Override\n protected void createThemeLayout(@NonNull LayoutInflater inflater, @NonNull final ViewGroup container) {\n mThemeView = inflater.inflate(R.layout.lib_web_default_theme, container, false);\n mIvBack = mThemeView.findViewById(R.id.ib_left_lib_web);\n mIvBack.setOnClickListener(this);\n mTvTitle = mThemeView.findViewById(R.id.tv_title_lib_web);\n mProgressBar = mThemeView.findViewById(R.id.pb_lib_web);\n mContentView = mThemeView.findViewById(R.id.content_lib_web);\n }", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "@Override\n public void setTheme(String theme) {\n if (StringUtils.isBlank(theme)) {\n theme = THEME;\n }\n \n this.theme = theme;\n }", "public void defed() {\n\n if (coalesceBridge != null) {\n coalesceBridge.defed();\n } else if (preColor) {\n defed = true;\n }\n }", "public abstract void mo91580a(StarTheme starTheme);", "public void onFinishInflate() {\n super.onFinishInflate();\n this.mTextAndBackground = (ViewGroup) findViewById(C0622R.C0625id.text_and_background);\n ColorDrawable colorDrawable = (ColorDrawable) this.mTextAndBackground.getBackground();\n this.mBackgroundColor = colorDrawable.getColor();\n this.mTextAndBackground.setBackground(new RippleDrawable(ColorStateList.valueOf(Themes.getAttrColor(getContext(), 16843820)), colorDrawable, null));\n this.mTitleView = (TextView) this.mTextAndBackground.findViewById(C0622R.C0625id.title);\n this.mTextView = (TextView) this.mTextAndBackground.findViewById(C0622R.C0625id.text);\n }", "private void applyForegroundColor() {\r\n\t\tthis.control.setForeground(PromptSupport.getForeground(this.control));\r\n\t}", "@Override\n public void onClick(View v) {\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }", "private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n app.toggleDarkMode();\n isDark = !isDark;\n }", "@Parameterized.AfterParam\n public static void restoreAfter() {\n getApplicationContext().getResources().getDisplayMetrics().setTo(OLD_DISPLAY_METRICS);\n }", "public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }" ]
[ "0.70628345", "0.70400685", "0.7012299", "0.6918983", "0.6916562", "0.67947114", "0.63875705", "0.634473", "0.62973785", "0.62936217", "0.62931234", "0.62797415", "0.62562644", "0.6181969", "0.61357206", "0.61187685", "0.6117407", "0.6105475", "0.6035489", "0.60328996", "0.6014759", "0.5974888", "0.59349227", "0.59311336", "0.5916577", "0.5900104", "0.5877659", "0.58487487", "0.578645", "0.57862085", "0.5778412", "0.5769111", "0.5743538", "0.57430464", "0.5737072", "0.57257736", "0.570954", "0.57031375", "0.5701229", "0.5663503", "0.56632894", "0.56335825", "0.5628461", "0.5605718", "0.5559897", "0.5556584", "0.55504084", "0.5548856", "0.5531593", "0.5496722", "0.5467955", "0.5466861", "0.5466599", "0.5461515", "0.545639", "0.5452396", "0.5436999", "0.5432774", "0.54233634", "0.54199785", "0.5414917", "0.5392293", "0.5387178", "0.5381878", "0.5381739", "0.5372968", "0.5372536", "0.53581476", "0.5356764", "0.53342295", "0.5333804", "0.5333275", "0.53309524", "0.5327474", "0.5316695", "0.53101563", "0.53091586", "0.5296889", "0.5280131", "0.52653295", "0.52644837", "0.5262053", "0.52577823", "0.52576363", "0.52537256", "0.5250836", "0.5220026", "0.52195793", "0.5206968", "0.5200351", "0.519613", "0.5182106", "0.51803136", "0.5175446", "0.51739645", "0.51728487", "0.5152081", "0.5134143", "0.5131134", "0.5126822", "0.51267076" ]
0.0
-1
Default event. Just show the page populated with any proj parameters that were passed along.
public String handleDefault() throws HttpPresentationException { return showEditPage(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}", "@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}", "public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}", "@SuppressWarnings(\"serial\")\n\tpublic ProjectPage() {\n\t\tagregarForm();\n\t}", "public StartPage() {\n initComponents();\n \n }", "@Given(\"I am on the Project Contact Details Page\")\n public void i_am_on_the_project_contact_details_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n i_click_on_create_a_new_project();\n\n }", "@Override\n\tprotected void enter(ViewChangeEvent event, List<URIParameter> parameters) {\n\t\tthis.presenter.fillViewWithData();\n\t}", "public ProjectsPage() {\n\t\tthis.driver = DriverManager.getDriver();\n\t\tElementFactory.initElements(driver, this);\n\t\t// sets the name of the project to add, with a random integer ending for slight\n\t\t// ease on multiple test runs\n\t\tnameOfProject = \"testz2018\" + (int) Math.random() * 500;\n\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t}", "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showPage(null);\n }", "@Override\n\t\tpublic void onPageSelected(int arg0)\n\t\t{\n\t\t\t\n\t\t}", "@Override\r\n public void onSubmit() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n \r\n // check if any field is missing\r\n boolean hasAllFields = true;\r\n if (this.projectName == null) {\r\n hasAllFields = false;\r\n error(\"Project name is required.\");\r\n }\r\n if (this.ownerName == null) {\r\n hasAllFields = false;\r\n error(\"Owner name is required.\");\r\n }\r\n if (this.password == null) {\r\n hasAllFields = false;\r\n error(\"Password is required.\");\r\n }\r\n if (this.svnUrl == null) {\r\n hasAllFields = false;\r\n error(\"The repository URL is required.\");\r\n }\r\n \r\n if (hasAllFields) {\r\n try {\r\n // check if the owner is a valid hackystat user\r\n String host = app.getSensorBaseHost();\r\n SensorBaseClient client = new SensorBaseClient(host, this.ownerName, this.password);\r\n client.authenticate();\r\n }\r\n catch (SensorBaseClientException e) {\r\n error(\"Owner is not valid Hackystat user or password does not match.\");\r\n }\r\n \r\n try {\r\n // check if the svn url is a valid google host url\r\n WebConversation wc = new WebConversation();\r\n WebResponse response = wc.getResponse(this.svnUrl);\r\n if (!response.getTitle().contains(\"Revision\")) {\r\n error(\"The repository URL is not a valid Google host repository URL.\");\r\n }\r\n }\r\n catch (Exception e) {\r\n error(\"Cannot connect to the repository URL.\");\r\n }\r\n \r\n // if there is no error, create the project and go back to the home page\r\n if (!hasError() && createProject()) {\r\n // redirect to the projects page\r\n setResponsePage(ProjectsPage.class);\r\n }\r\n else {\r\n error(\"The project cannot be created. \" +\r\n \"A project with the same name already exists, or some information are invalid.\");\r\n }\r\n }\r\n \r\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "public static void main(String[] args) {\r\n\t\tProgProjGUI display = new ProgProjGUI();\r\n\t\tdisplay.setVisible(true);\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew ProjectView().init();\r\n\t\t\t}", "void updatePage(String name, String park);", "public static void index()\n {\n String adminId = session.get(\"logged_in_adminid\"); // to display page to logged-in administrator only\n if (adminId == null)\n {\n Logger.info(\"Donor Location: Administrator not logged-in\");\n Welcome.index();\n }\n else\n {\n Logger.info(\"Displaying geolocations of all donors\");\n render();\n }\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlReportGeneration.setVisible(true);\n\t\t\t\tloadProjects();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t}", "public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override protected void startup() {\n show(new MIDLetParamsView(this));\n }", "public String handleDefault()\n throws HttpPresentationException\n {\n\t return showPage(null);\n }", "@Override\n public void onPageSelected(int arg0) {\n }", "public static void main(String[] args) {\n TestTerrainPage app = new TestTerrainPage();\n app.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG);\n app.start();\n }", "protected void onBeforeDisplayEvent( UserRequest request,\n int pageNumber,\n String buttonPressed )\n {\n // default noop\n }", "void showNoneParametersView();", "public LandRYSettingPage() {\n initComponents();\n }", "@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onPageSelected(int arg0) {\n\r\n\t}", "private void loadDefaultPage() {\n loadPage(DEFAULT_PAGE.toExternalForm());\n }", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tToast.makeText(getBaseContext(), arg0 + \"\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "public String showEditPage(String errorMsg) \n throws HttpPresentationException, webschedulePresentationException\n { \n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String personID = this.getComms().request.getParameter(PERSONID);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n String password = this.getComms().request.getParameter(PASSWORD);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n String contactname = this.getComms().request.getParameter(CONTACTNAME);\n String contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n String billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n String billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n String billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n String city = this.getComms().request.getParameter(CITY);\n String state = this.getComms().request.getParameter(STATE);\n String zip = this.getComms().request.getParameter(ZIP);\n String accountid = this.getComms().request.getParameter(ACCOUNTID);\n String outside = this.getComms().request.getParameter(OUTSIDE);\n String exp = this.getComms().request.getParameter(EXP);\n String expday = this.getComms().request.getParameter(EXPDAY);\n String expmonth = this.getComms().request.getParameter(EXPMONTH);\n String expyear = this.getComms().request.getParameter(EXPYEAR);\n String notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\t\n\t // Instantiate the page object\n\t EditHTML page = new EditHTML();\n Project project = null;\n\tString userID = null;\n\n System.out.println(\"project Id at show edit page \"+projectID);\n try {\n project = ProjectFactory.findProjectByID(projectID);\n\t userID = project.getUserID();\n // Catch any possible database exception in findProjectByID()\n } catch(webscheduleBusinessException ex) {\n this.getSessionData().setUserMessage(\"Please choose a valid project to edit\");\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n }\n \n try {\n // If we received a valid projectID then try to show the project's contents,\n // otherwise try to use the HTML input parameters\n page.getElementProjID().setValue(project.getHandle());\n\n if(null != proj_name && proj_name.length() != 0) {\n page.getElementProj_name().setValue(proj_name);\n } else {\n page.getElementProj_name().setValue(project.getProj_name());\n }\n\n HTMLOptionElement templateOption = page.getElementTemplateOption();\n Node PersonSelect = templateOption.getParentNode();\n templateOption.removeAttribute(\"id\");\n templateOption.removeChild(templateOption.getFirstChild());\n\n\n try {\n \tPerson[] PersonList = PersonFactory.getPersonsList();\n \tfor (int numPersons = 0; numPersons < PersonList.length; numPersons++) {\n \t Person currentPerson = PersonList[numPersons] ;\n \t HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true);\n clonedOption.setValue(currentPerson.getHandle());\n Node optionTextNode = clonedOption.getOwnerDocument().\n createTextNode(currentPerson.getFirstname() + \" \" +\n currentPerson.getLastname());\n\t\t\tif ((currentPerson.getHandle()).equals(userID))\n\t\t\t clonedOption.setSelected(true);\n\t\t\t else \n\t\t\t clonedOption.setSelected(false);\t\t\n\t\t\t \n clonedOption.appendChild(optionTextNode);\n // Do only a shallow copy of the option as we don't want the text child\n // of the node option\n PersonSelect.appendChild(clonedOption);\n // Alternative way to insert nodes below\n // insertBefore(newNode, oldNode);\n // ProjSelect.insertBefore(clonedOption, templateOption);\n\t }\n\t } catch(Exception ex) {\n\t this.writeDebugMsg(\"Error populating Persons List: \" + ex);\n throw new webschedulePresentationException(\"Error getting Persons List: \", ex);\n\t }\n\t\n templateOption.getParentNode().removeChild(templateOption);\n\n /* if (personID.equals(INVALID_ID)){\n \tpage.getElementPersonList().setValue(project.getUserID());\n \t\n }else {\n \tpage.getElementPersonList().setValue(personID);\n }\t\t*/\n\n if(null != password && password.length() != 0) {\n page.getElementPassword().setValue(password);\n } else {\n page.getElementPassword().setValue(project.getPassword());\n }\n\n if(null != discrib && discrib.length() != 0) {\n page.getElementDiscrib().setValue(discrib);\n } else {\n page.getElementDiscrib().setValue(project.getDescription());\n }\n \n if(null != indexnum && indexnum.length() != 0) {\n page.getElementIndexnum().setValue(indexnum);\n } else {\n page.getElementIndexnum().setValue(project.getIndexnum());\n }\n\n if(null != thours && thours.length() != 0) {\n page.getElementThours().setValue(thours);\n } else {\n page.getElementThours().setValue(Double.toString(project.getTotalhours()));\n }\n\n if(null != dhours && dhours.length() != 0) {\n page.getElementDhours().setValue(dhours);\n } else {\n page.getElementDhours().setValue(Double.toString(project.getDonehours()));\n }\n if(null != codeofpay && codeofpay.length() != 0) {\n page.getElementCodeofpay().setValue(codeofpay);\n } else {\n page.getElementCodeofpay().setValue(Integer.toString(project.getCodeofpay()));\n }\n\n \n\t\n\t if(null != contactname && contactname.length() != 0) {\n page.getElementContactname().setValue(contactname);\n } else {\n page.getElementContactname().setValue(project.getContactname());\n }\n\n\t if(null != billaddr1 && billaddr1.length() != 0) {\n page.getElementBilladdr1().setValue(billaddr1);\n } else {\n page.getElementBilladdr1().setValue(project.getBilladdr1());\n }\n\n\n\t if(null != billaddr2 && billaddr2.length() != 0) {\n page.getElementBilladdr2().setValue(billaddr2);\n } else {\n page.getElementBilladdr2().setValue(project.getBilladdr2());\n }\n\n\t\n\t if(null != billaddr3 && billaddr3.length() != 0) {\n page.getElementBilladdr3().setValue(billaddr3);\n } else {\n page.getElementBilladdr3().setValue(project.getBilladdr3());\n }\n\n\n if(null != city && city.length() != 0) {\n page.getElementCity().setValue(city);\n } else {\n page.getElementCity().setValue(project.getCity());\n }\n\n\t if(null != state && state.length() != 0) {\n page.getElementState().setValue(state);\n } else {\n page.getElementState().setValue(project.getState());\n }\n\n if(null != zip && zip.length() != 0) {\n page.getElementZip().setValue(zip);\n } else {\n page.getElementZip().setValue(project.getZip());\n }\n\nif(null != accountid && accountid.length() != 0) {\n page.getElementAccountid().setValue(accountid);\n } else {\n page.getElementAccountid().setValue(project.getAccountid());\n }\n\n\t\n\tif(null != this.getComms().request.getParameter(OUTSIDE)) {\n page.getElementOutsideBox().setChecked(true);\n } else {\n page.getElementOutsideBox().setChecked(project.isOutside());\n }\n\t\n\t\n\tif(null != this.getComms().request.getParameter(EXP)) {\n page.getElementExpBox().setChecked(true);\n } else {\n page.getElementExpBox().setChecked(project.isExp());\n }\n\n if(null != expday && expday.length() != 0) {\n page.getElementExpday().setValue(expday);\n } else {\n page.getElementExpday().setValue(Integer.toString(project.getExpday()));\n }\n \n\n\nif(null != expmonth && expmonth.length() != 0) {\n page.getElementExpmonth().setValue(expmonth);\n } else {\n page.getElementExpmonth().setValue(Integer.toString(project.getExpmonth()));\n }\n \nif(null != expyear && expyear.length() != 0) {\n page.getElementExpyear().setValue(expyear);\n } else {\n page.getElementExpyear().setValue(Integer.toString(project.getExpyear())); \t \n}\n\n\n\t if(null != notifycontact && notifycontact.length() != 0) {\n page.getElementNotifycontact().setValue(notifycontact);\n } else {\n page.getElementNotifycontact().setValue(project.getNotifycontact());\n }\n\n\n\n if(null == errorMsg) {\n\n page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText());\n\t } else {\n page.setTextErrorText(errorMsg);\n }\n } catch(webscheduleBusinessException ex) {\n throw new webschedulePresentationException(\"Error populating page for project editing\", ex);\n }\n \n page.getElementEventValue().setValue(EDIT_COMMAND);\n\t return page.toDocument();\n }", "public abstract void pageDisplayed();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpage3 p9=new page3();\n\t\t\t\tpage3.main(null);\n\t\t\t\tf4.dispose();\n\t\t\t}", "@FXML\n private void callCourseSelectPage(ActionEvent e) {\n\n CourseSelectPage.selectForRecordMode= false;\n\n Pageloader loader = new Pageloader();\n Parent root = loader.getPage(\"GUIcourseSelectPage\");\n Stage stage = new Stage();\n stage.setTitle(\"Add record for student\");\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.setScene(new Scene(root));\n stage.showAndWait();\n }", "@Override\n public void enter(ViewChangeListener.ViewChangeEvent event) {\n Map<String, String> parametersMap = event.getParameterMap();\n Logger.getLogger(this).info(\"Parameters map \" + Arrays.toString(parametersMap.entrySet().toArray()));\n this.selectedCustomerId = Integer.parseInt(parametersMap.getOrDefault(\"customer\", \"0\"));\n this.selectedSiteId = Integer.parseInt(parametersMap.getOrDefault(\"site\", \"0\"));\n this.selectedVehicleId = Integer.parseInt(parametersMap.getOrDefault(\"vehicle\", \"0\"));\n super.enter(event);\n }", "void onSelectProject();", "public SavingsInfoPage() {\n setLocationRelativeTo(null);\n setResizable(false); \n initComponents();\n onRun();\n }", "@Override\r\n\tpublic void index() {\n\t\trender(\"index.jsp\");\r\n\t}", "@RequestMapping(value = \"/*\", method = RequestMethod.GET)\r\n public ModelAndView handleRequest() {\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n ModelAndView mav = new ModelAndView(\"home\");\r\n List<Project> projs = hibernateTemplate.find(\"from Project\");\r\n mav.addObject(\"projs\", projs);\r\n List<Event> events = dataAccessService.getEventsForUser(user, 10);\r\n Map<String, Integer> stats = dataAccessService.getStatistics();\r\n List<SubProject> followedProjects = dataAccessService.getFollowedSubProjectsForUser(user);\r\n Collections.sort(followedProjects, new Comparator<SubProject>() {\r\n\r\n @Override\r\n public int compare(SubProject o1, SubProject o2) {\r\n Integer into1 = o1.getParent().getId();\r\n Integer into2 = o2.getParent().getId();\r\n return into1.compareTo(into2);\r\n }\r\n });\r\n mav.addObject(\"followProjects\", followedProjects);\r\n mav.addObject(\"events\", events);\r\n mav.addObject(\"projects\", stats.get(\"projects\"));\r\n mav.addObject(\"users\", stats.get(\"users\"));\r\n mav.addObject(\"subprojects\", stats.get(\"subprojects\"));\r\n mav.addObject(\"methods\", stats.get(\"methods\"));\r\n mav.addObject(\"results\", stats.get(\"results\"));\r\n mav.addObject(\"comments\", stats.get(\"comments\"));\r\n mav.addObject(\"eventstat\", stats.get(\"events\"));\r\n mav.addObject(\"data\", stats.get(\"data\"));\r\n return mav;\r\n }", "public AbstractSOAProjectWizardPage(String pageName) {\r\n\t\tsuper(pageName);\r\n\t}", "public void parameterChange(ParameterChangeEvent e) {\n\t\tsite.setLocation(new Location(((Double) latitude.getValue())\n\t\t\t\t.doubleValue(), ((Double) longitude.getValue()).doubleValue()));\n\t}", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "public String showPage(String errorMsg) \n throws HttpPresentationException, webschedulePresentationException\n { \n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String personID = this.getComms().request.getParameter(PERSONID);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n // String dhours = this.getComms().request.getParameter(DHOURS);\n // String projectID = this.getComms().request.getParameter(PROJ_ID);\n String password = this.getComms().request.getParameter(PASSWORD);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n String contactname = this.getComms().request.getParameter(CONTACTNAME);\n String contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n String contactemail = this.getComms().request.getParameter(CONTACTEMAIL);\n String billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n String billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n String billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n String city = this.getComms().request.getParameter(CITY);\n String state = this.getComms().request.getParameter(STATE);\n String zip = this.getComms().request.getParameter(ZIP);\n // String accountid = this.getComms().request.getParameter(ACCOUNTID);\n // String outside = this.getComms().request.getParameter(OUTSIDE);\n // String exp = this.getComms().request.getParameter(EXP);\n String expday = this.getComms().request.getParameter(EXPDAY);\n String expmonth = this.getComms().request.getParameter(EXPMONTH);\n String expyear = this.getComms().request.getParameter(EXPYEAR);\n String notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n // String iexpday = this.getComms().request.getParameter(IEXPDAY);\n // String iexpmonth = this.getComms().request.getParameter(IEXPMONTH);\n //String iexpyear = this.getComms().request.getParameter(IEXPYEAR);\n \n String modby= this.getComms().request.getParameter(MODBY);\n String moddate= this.getComms().request.getParameter(MODDATE);\n String notes= this.getComms().request.getParameter(NOTES);\n \n String irbnum = this.getComms().request.getParameter(IRBNUM);\n \n // Instantiate the page object\n ucsdprojectseditHTML page = new ucsdprojectseditHTML();\n \n HTMLSelectElement\texpday_select, expmonth_select, expyear_select;\n\tHTMLCollection\t\texpday_selectCollection, expmonth_selectCollection, expyear_selectCollection;\n\tHTMLOptionElement\texpday_option, expmonth_option, expyear_option;\n\tString\t\t\texpday_optionName, expmonth_optionName, expyear_optionName;\n\t\t\n\t\t\n\texpday_select = (HTMLSelectElement)page.getElementExpday();\n\texpday_selectCollection = expday_select.getOptions();\t\n\t\t\t\n expmonth_select = (HTMLSelectElement)page.getElementExpmonth();\n\texpmonth_selectCollection = expmonth_select.getOptions();\t\n\n\texpyear_select = (HTMLSelectElement)page.getElementExpyear();\n\texpyear_selectCollection = expyear_select.getOptions();\t\n\t\n \n \n HTMLSelectElement\tiexpday_select, iexpmonth_select, iexpyear_select;\n\tHTMLCollection\t\tiexpday_selectCollection, iexpmonth_selectCollection, iexpyear_selectCollection;\n\tHTMLOptionElement\tiexpday_option, iexpmonth_option, iexpyear_option;\n\tString\t\t\tiexpday_optionName, iexpmonth_optionName, iexpyear_optionName;\n\t\t\n\t\t\n\tiexpday_select = (HTMLSelectElement)page.getElementIexpday();\n\tiexpday_selectCollection = iexpday_select.getOptions();\t\n\t\t\t\n iexpmonth_select = (HTMLSelectElement)page.getElementIexpmonth();\n\tiexpmonth_selectCollection = iexpmonth_select.getOptions();\t\n\n\tiexpyear_select = (HTMLSelectElement)page.getElementIexpyear();\n\tiexpyear_selectCollection = iexpyear_select.getOptions();\t\n\t\n\t\n\t \n\t \n\t \n Project theProject = null;\n\tString userID = null;\n\t\n\tString proj_describ, firstname, lastname, piname, user_email, proj_notes;\n\tint expdayi, expmonthi, expyeari;\n\t\n\tdouble dhours;\n\t Date iacucdate = new Date();\n\t java.sql.Date moddated ;\n\t \nString projectID = this.getProjectID();\n\n System.out.println(\"project Id at show edit page \"+projectID);\n try {\n theProject = ProjectFactory.findProjectByID(projectID);\n\t// userID = project.getUserID();\n\t \n\t // proj_name = theProject.getProj_name();\n\t proj_describ = theProject.getDescription();\n\t \n\t firstname = theProject.getUserFirstName();\t \n\t lastname = theProject.getUserLastName();\t\n\t user_email = theProject.getUserEmail();\t\n\t piname = firstname+\" \"+lastname;\n\t \n\t //cname = theProject.getCname();\n\t //cphone = theProject.getCphone();\n\t //cemail = theProject.getCemail();\n\t \n\t// indexnum = theProject.getIndexnum();\n\t\n\t \n\t// Baline1 = theProject.getBilladdr1();\n\t// Baline2 = theProject.getBilladdr2();\n\t// Baline3 = theProject.getBilladdr3();\n\t // Bacity = theProject.getCity();\n\t // Bast = theProject.getState();\n\t // Bazip = theProject.getZip();\n\t \n\t expdayi = theProject.getExpday();\t \n\t expmonthi = theProject.getExpmonth();\t \n\t expyeari = theProject.getExpyear();\t \n\t \n\t // fpname = theProject.getContactname();\n\t // fpphone = theProject.getContactphone();\n\t \n\t moddated = theProject.getModDate();\n\t // thours = theProject.getTotalhours();\n\t dhours = theProject.getDonehours();\n\t iacucdate = theProject.getIACUCDate();\n\t proj_notes = theProject.getNotes();\n\t \n /* // Catch any possible database exception in findProjectByID()\n } catch(webscheduleBusinessException ex) {\n this.getSessionData().setUserMessage(\"Please choose a valid project to edit\");\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n }\n */\n int iexpyeari = iacucdate.getYear();\n iexpyeari = iexpyeari + 1900;\n \n \n int iexpmonthi = iacucdate.getMonth();\n //add one\n iexpmonthi = iexpmonthi+1;\n int iexpdatei = iacucdate.getDate();\n String iexpyears = Integer.toString(iexpyeari);\n String iexpmonths = Integer.toString(iexpmonthi);\n String iexpdates = Integer.toString(iexpdatei);\t\t\n\t\nString expyears = Integer.toString(expyeari);\n String expmonths = Integer.toString(expmonthi);\n String expdays = Integer.toString(expdayi);\t\t\n \n // try {\n // If we received a valid projectID then try to show the project's contents,\n // otherwise try to use the HTML input parameters\n //page.getElementProjID().setValue(project.getHandle());\n\npage.setTextPiname(piname);\npage.setTextEmail(user_email);\n if(null != proj_name && proj_name.length() != 0) {\n page.getElementProj_name().setValue(proj_name);\n } else {\n page.getElementProj_name().setValue(theProject.getProj_name());\n }\n\t \n\t\n if(null != discrib && discrib.length() != 0) {\n page.getElementDiscrib().setValue(discrib);\n } else {\n page.getElementDiscrib().setValue(proj_describ);\n }\n \n if(null != indexnum && indexnum.length() != 0) {\n page.getElementIndexnum().setValue(indexnum);\n } else {\n page.getElementIndexnum().setValue(theProject.getIndexnum());\n }\n\n if(null != thours && thours.length() != 0) {\n page.getElementThours().setValue(thours);\n } else {\n page.getElementThours().setValue(Double.toString(theProject.getTotalhours()));\n }\n\npage.setTextDhour(Double.toString(theProject.getDonehours()));\n\n/* if(null != dhours && dhours.length() != 0) {\n page.getElementDhours().setValue(dhours);\n } else {\n page.getElementDhours().setValue(Double.toString(project.getDonehours()));\n }*/\n\t \n if(null != codeofpay && codeofpay.length() != 0) {\n page.getElementCodeofpay().setValue(codeofpay);\n } else {\n page.getElementCodeofpay().setValue(Integer.toString(theProject.getCodeofpay()));\n }\n\n \n\t\n\t if(null != contactname && contactname.length() != 0) {\n page.getElementContactname().setValue(contactname);\n } else {\n page.getElementContactname().setValue(theProject.getContactname());\n }\n\t \n\t if(null != contactphone && contactphone.length() != 0) {\n page.getElementContactphone().setValue(contactphone);\n } else {\n page.getElementContactphone().setValue(theProject.getContactphone());\n }\n\t \n\t if(null != contactemail && contactemail.length() != 0) {\n page.getElementContactemail().setValue(contactemail);\n } else {\n page.getElementContactemail().setValue(theProject.getFpemail());\n }\n\n\t if(null != billaddr1 && billaddr1.length() != 0) {\n page.getElementBilladdr1().setValue(billaddr1);\n } else {\n page.getElementBilladdr1().setValue(theProject.getBilladdr1());\n }\n\n\n\t /* if(null != billaddr2 && billaddr2.length() != 0) {\n page.getElementBilladdr2().setValue(billaddr2);\n } else {\n page.getElementBilladdr2().setValue(theProject.getBilladdr2());\n }\n*/\n\t\n\t if(null != billaddr3 && billaddr3.length() != 0) {\n page.getElementBilladdr3().setValue(billaddr3);\n } else {\n page.getElementBilladdr3().setValue(theProject.getBilladdr3());\n }\n\n\n if(null != city && city.length() != 0) {\n page.getElementCity().setValue(city);\n } else {\n page.getElementCity().setValue(theProject.getCity());\n }\n\n\t if(null != state && state.length() != 0) {\n page.getElementState().setValue(state);\n } else {\n page.getElementState().setValue(theProject.getState());\n }\n\n if(null != zip && zip.length() != 0) {\n page.getElementZip().setValue(zip);\n } else {\n page.getElementZip().setValue(theProject.getZip());\n }\n\n\t\n\t\n/*\tif(null != this.getComms().request.getParameter(EXP)) {\n page.getElementExpBox().setChecked(true);\n } else {\n page.getElementExpBox().setChecked(project.isExp());\n }\n*/\n\n if(null != expday && expday.length() != 0) {\n page.getElementExpday().setValue(expday);\n } else {\n page.getElementExpday().setValue(Integer.toString(theProject.getExpday()));\n }\n \n\n\nif(null != expmonth && expmonth.length() != 0) {\n page.getElementExpmonth().setValue(expmonth);\n } else {\n page.getElementExpmonth().setValue(Integer.toString(theProject.getExpmonth()));\n }\n \nif(null != expyear && expyear.length() != 0) {\n page.getElementExpyear().setValue(expyear);\n } else {\n page.getElementExpyear().setValue(Integer.toString(theProject.getExpyear())); \t \n}\n\n\n\t if(null != notifycontact && notifycontact.length() != 0) {\n page.getElementNotifycontact().setValue(notifycontact);\n } else {\n page.getElementNotifycontact().setValue(theProject.getNotifycontact());\n }\n\n if(null != notes && notes.length() != 0) {\n\tNode notesText = page.getElementNotes().getOwnerDocument().createTextNode(notes); \n page.getElementNotes().appendChild(notesText);\n } else {\n\t Node notesText = page.getElementNotes().getOwnerDocument().createTextNode(theProject.getNotes()); \n page.getElementNotes().appendChild(notesText); \n }\n\t \n\t System.out.println(\" *** Notes of UCSD project Edit *** \"+notes);\n\n\nif (expyeari > 2000)\n {\n int expday_optionlen = expday_selectCollection.getLength();\n for (int i=0; i< expday_optionlen; i++) {\n\t expday_option = (HTMLOptionElement)expday_selectCollection.item(i);\n\t expday_optionName = expday_option.getValue();\n\t if (expday_optionName.equals(expdays))\n\t expday_option.setSelected(true);\n\t else\n\t expday_option.setSelected(false);\n\t } \n\n int expmonth_optionlen = expmonth_selectCollection.getLength();\n for (int i=0; i< expmonth_optionlen; i++) {\n\t expmonth_option = (HTMLOptionElement)expmonth_selectCollection.item(i);\n\t expmonth_optionName = expmonth_option.getValue();\n\t if (expmonth_optionName.equals(expmonths))\n\t expmonth_option.setSelected(true);\n\t else\n\t expmonth_option.setSelected(false);\n\t } \n\t \n\t int expyear_optionlen = expyear_selectCollection.getLength();\n\tfor (int i=0; i< expyear_optionlen; i++) {\n\t expyear_option = (HTMLOptionElement)expyear_selectCollection.item(i);\n\t expyear_optionName = expyear_option.getValue();\n\t if (expyear_optionName.equals(expyears))\n\t expyear_option.setSelected(true);\n\t else\n\t expyear_option.setSelected(false);\n\t } \n\n }\n\n\nif (iexpyeari > 2000)\n {\n int iexpday_optionlen = iexpday_selectCollection.getLength();\n for (int i=0; i< iexpday_optionlen; i++) {\n\t iexpday_option = (HTMLOptionElement)iexpday_selectCollection.item(i);\n\t iexpday_optionName = iexpday_option.getValue();\n\t if (iexpday_optionName.equals(iexpdates))\n\t iexpday_option.setSelected(true);\n\t else\n\t iexpday_option.setSelected(false);\n\t } \n\n int iexpmonth_optionlen = iexpmonth_selectCollection.getLength();\n for (int i=0; i< iexpmonth_optionlen; i++) {\n\t iexpmonth_option = (HTMLOptionElement)iexpmonth_selectCollection.item(i);\n\t iexpmonth_optionName = iexpmonth_option.getValue();\n\t if (iexpmonth_optionName.equals(iexpmonths))\n\t iexpmonth_option.setSelected(true);\n\t else\n\t iexpmonth_option.setSelected(false);\n\t } \n\t \n\t int iexpyear_optionlen = iexpyear_selectCollection.getLength();\n\tfor (int i=0; i< iexpyear_optionlen; i++) {\n\t iexpyear_option = (HTMLOptionElement)iexpyear_selectCollection.item(i);\n\t iexpyear_optionName = iexpyear_option.getValue();\n\t if (iexpyear_optionName.equals(iexpyears))\n\t iexpyear_option.setSelected(true);\n\t else\n\t iexpyear_option.setSelected(false);\n\t } \n\n }\n\n\nif(null != irbnum && irbnum.length() != 0) {\n page.getElementIrbnum().setValue(irbnum);\n } else {\n\t page.getElementIrbnum().setValue(theProject.getIRBnum());\n }\n\n\n\t page.setTextModdate(moddated.toString()); \n\tpage.setTextModby(theProject.getModifiedby()); \n\n\n\n\n if(null == errorMsg) {\n\n page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText());\n\t } else {\n page.setTextErrorText(errorMsg);\n }\n } catch(webscheduleBusinessException ex) {\n throw new webschedulePresentationException(\"Error populating page for project editing\", ex);\n }\n \n // page.getElementEventValue().setValue(EDIT_COMMAND);\n\t return page.toDocument();\n }", "public DisplayPage(SplashPage parent) {\n initComponents();\n this.parent = parent;\n }", "@Override\n\tpublic void showPostLocation() {\n\t\t\n\t}", "@Override\r\n\tpublic int buildPage(String name, Map<?, ?> data, File file) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void addPages() {\n\t\tprojectPage = new NewProjectWizardPage();\r\n\t\taddPage(projectPage);\r\n\t}", "public void execute(){\r\n\t\tapplicationController.about();\r\n\t}", "public project() {\n\n initComponents();\n }", "public PersonalPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "@SneakyThrows\n private void premierLeague(ActionEvent event) {\n final Project project = table.getSelectionModel().getSelectedItem();\n if (project == null) {\n NotificationUtil.warningAlert(\"Warning\", \"Select project first\", NotificationUtil.SHORT);\n return;\n } else if (getFreeInstructors().isEmpty()) {\n NotificationUtil.warningAlert(\"Warning\", \"All instructors are busy\", NotificationUtil.SHORT);\n return;\n }\n\n final FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"/PremierLeague.fxml\"));\n Parent parent = fxmlLoader.load();\n PremierLeagueController premierLeagueController = fxmlLoader.getController();\n premierLeagueController.loadProjectDetails(project);\n\n final Stage stage = new Stage();\n Scene value = new Scene(parent);\n stage.setScene(value);\n value.getStylesheets().add(\"css/main.css\");\n stage.initModality(Modality.WINDOW_MODAL);\n Window window = ((Node) event.getSource()).getScene().getWindow();\n stage.initOwner(window);\n stage.show();\n\n stage.setOnHiding(e -> loadProjects());\n }", "private void init(final DccdSB dccdHit)\n\t{\n\t\tLink viewResultLink = new Link(\"viewResult\")\n\t\t{\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\t// now navigate to view page with given project;\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}\n };\n add(viewResultLink);\n\n\t\taddObjectInformation(viewResultLink, dccdHit);\n\t\taddProjectInformation(viewResultLink, dccdHit);\n\t\t\n\t\tboolean hasMarkerOnMap = false;\n\t\tif (dccdHit.hasLatLng())\n\t\t{\n\t\t\t//Check for permission\n\t\t\tDccdUser user = (DccdUser) ((DccdSession) getSession()).getUser();\n\t\t\tProjectPermissionLevel effectivelevel = dccdHit.getEffectivePermissionLevel(user);\n\t\t\tBoolean isAllowedToViewLocation = ProjectPermissionLevel.OBJECT.isPermittedBy(effectivelevel);\n\t\t\thasMarkerOnMap = isAllowedToViewLocation;\n\t\t}\n\t\t// add location marker icon\n\t\tResourceReference markerIconImageReference = GeoViewer.getDefaultMarkerIconImageReference();\n\t\tif(hasMarkerOnMap) \n\t\t{\n\t\t\t// use index specific marker icon image\n\t\t\tint latLngMarkerIndex = dccdHit.latLngMarkerIndex;\n\t\t\tlogger.debug(\"Marker index to use on HitPanel: \" + latLngMarkerIndex);\n\t\t\tif (latLngMarkerIndex >= 0)\n\t\t\t\tmarkerIconImageReference = GeoViewer.getLetterMarkerIconImageReference(latLngMarkerIndex);\n\t\t}\n\t\tImage geoMarkerIconImage = new Image(\"geoMarkerIconImage\", markerIconImageReference);\n\t\tviewResultLink.add(geoMarkerIconImage);\n\t\t// only show icon if marker is on the map\n\t\tgeoMarkerIconImage.setVisible(hasMarkerOnMap);\n\t}", "public String showAddPage(String errorMsg) \n throws HttpPresentationException, webschedulePresentationException\n { \n\n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String password = this.getComms().request.getParameter(PASSWORD);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n\tString contactname = this.getComms().request.getParameter(CONTACTNAME);\n\tString contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n\tString billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n\tString billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n\tString billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n\tString city = this.getComms().request.getParameter(CITY);\n\tString state = this.getComms().request.getParameter(STATE);\n\tString zip = this.getComms().request.getParameter(ZIP);\n\tString accountid = this.getComms().request.getParameter(ACCOUNTID);\n\tString isoutside = this.getComms().request.getParameter(OUTSIDE);\n\tString exp = this.getComms().request.getParameter(EXP);\n\tString expday = this.getComms().request.getParameter(EXPDAY);\n\tString expmonth = this.getComms().request.getParameter(EXPMONTH);\n\tString expyear = this.getComms().request.getParameter(EXPYEAR);\n\tString notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\n\n\t // Instantiate the page object\n\t EditHTML page = new EditHTML();\n\n\tHTMLOptionElement templateOption = page.getElementTemplateOption();\n Node PersonSelect = templateOption.getParentNode();\n templateOption.removeAttribute(\"id\");\n templateOption.removeChild(templateOption.getFirstChild());\n\n if(null != this.getComms().request.getParameter(PROJ_NAME)) {\n page.getElementProj_name().setValue(this.getComms().request.getParameter(PROJ_NAME));\n }\n\n try {\n \tPerson[] PersonList = PersonFactory.getPersonsList();\n \tfor (int numPersons = 0; numPersons < PersonList.length; numPersons++) {\n \t Person currentPerson = PersonList[numPersons] ;\n \t HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true);\n clonedOption.setValue(currentPerson.getHandle());\n Node optionTextNode = clonedOption.getOwnerDocument().\n createTextNode(currentPerson.getFirstname() + \" \" +\n currentPerson.getLastname());\n clonedOption.appendChild(optionTextNode);\n // Do only a shallow copy of the option as we don't want the text child\n // of the node option\n PersonSelect.appendChild(clonedOption);\n // Alternative way to insert nodes below\n // insertBefore(newNode, oldNode);\n // ProjSelect.insertBefore(clonedOption, templateOption);\n\t }\n\t } catch(Exception ex) {\n\t this.writeDebugMsg(\"Error populating Persons List: \" + ex);\n throw new webschedulePresentationException(\"Error getting Persons List: \", ex);\n\t }\n\t\n templateOption.getParentNode().removeChild(templateOption);\n\n if(null != this.getComms().request.getParameter(PASSWORD)) {\n page.getElementPassword().setValue(this.getComms().request.getParameter(PASSWORD));\n }\n\n if(null != this.getComms().request.getParameter(DISCRIB)) {\n page.getElementDiscrib().setValue(this.getComms().request.getParameter(DISCRIB));\n }\n if(null != this.getComms().request.getParameter(INDEXNUM)) {\n page.getElementIndexnum().setValue(this.getComms().request.getParameter(INDEXNUM));\n }\n\n if(null != this.getComms().request.getParameter(THOURS)) {\n page.getElementThours().setValue(this.getComms().request.getParameter(THOURS));\n }\n\n if(null != this.getComms().request.getParameter(DHOURS)) {\n page.getElementDhours().setValue(this.getComms().request.getParameter(DHOURS));\n }\n\n if(null != this.getComms().request.getParameter(CODEOFPAY)) {\n page.getElementCodeofpay().setValue(this.getComms().request.getParameter(CODEOFPAY));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTNAME)) {\n page.getElementContactname().setValue(this.getComms().request.getParameter(CONTACTNAME));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTPHONE)) {\n \npage.getElementContactphone().setValue(this.getComms().request.getParameter(CONTACTPHONE));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR1)) {\n \npage.getElementBilladdr1().setValue(this.getComms().request.getParameter(BILLADDR1));\n }\n\n\n\nif(null != this.getComms().request.getParameter(BILLADDR2)) {\n \npage.getElementBilladdr2().setValue(this.getComms().request.getParameter(BILLADDR2));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR3)) {\n \npage.getElementBilladdr3().setValue(this.getComms().request.getParameter(BILLADDR3));\n }\n\nif(null != this.getComms().request.getParameter(STATE)) {\n \npage.getElementState().setValue(this.getComms().request.getParameter(STATE));\n }\n\nif(null != this.getComms().request.getParameter(ZIP)) {\n \npage.getElementZip().setValue(this.getComms().request.getParameter(ZIP));\n }\n\n if(null != this.getComms().request.getParameter(OUTSIDE)) {\n page.getElementOutsideBox().setChecked(true);\n } else {\n page.getElementOutsideBox().setChecked(false);\n }\n\t\nif(null != this.getComms().request.getParameter(EXP)) {\n page.getElementExpBox().setChecked(true);\n } else {\n page.getElementExpBox().setChecked(false);\n }\t\n\t\nif(null != this.getComms().request.getParameter(ACCOUNTID)) {\n \npage.getElementAccountid().setValue(this.getComms().request.getParameter(ACCOUNTID));\n }\n\t\n\t\nif(null != this.getComms().request.getParameter(EXPDAY)) {\n \npage.getElementExpday().setValue(this.getComms().request.getParameter(EXPDAY));\n }\n\n\nif(null != this.getComms().request.getParameter(EXPMONTH)) {\n \npage.getElementExpmonth().setValue(this.getComms().request.getParameter(EXPMONTH));\n }\nif(null != this.getComms().request.getParameter(EXPYEAR)) {\n \npage.getElementExpyear().setValue(this.getComms().request.getParameter(EXPYEAR));\n }\n\n if(null != this.getComms().request.getParameter(NOTIFYCONTACT)) {\n page.getElementNotifycontact().setValue(this.getComms().request.getParameter(NOTIFYCONTACT));\n }\n\n if(null == errorMsg) { \n\t page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText());\n } else {\n page.setTextErrorText(errorMsg);\n }\n \n\t return page.toDocument();\n }", "public NewCZ_DPPHRProcessPage(){ super(); }", "public void showConfigN3(ActionEvent event) {\r\n\t\tlog.info(\"-----------------------Debugging EstrucOrgController.showConfigN3-----------------------------\");\r\n\t\tlog.info(\"renderConfigN3: \"+getRenderConfigN3());\r\n\t\tif(getRenderConfigN3()==false){\r\n\t\t\tsetRenderConfigN3(true);\r\n\t\t\tsetStrBtnAgregarN3(\"Ocultar Configuración\");\r\n\t\t}else{\r\n\t\t\tsetRenderConfigN3(false);\r\n\t\t\tsetStrBtnAgregarN3(\"Agregar Configuración\");\r\n\t\t}\r\n\t}", "public void handleCreateProject(SelectEvent event) {\n\t}", "@Subscribe\n public void handlePhotoGalleryPageSelected(OnPhotoGalleryPhotoSelect event) {\n displayPhoto(event.getPhotoDisplayInfo());\n }", "public void processRequest(OAPageContext pageContext, OAWebBean webBean) {\n super.processRequest(pageContext, webBean);\n\n String hrSourceType = pageContext.getParameter(\"HrSourceType\");\n OAApplicationModule am = pageContext.getApplicationModule(webBean);\n if (hrSourceType != null && !\"\".equals(hrSourceType)) {\n am.getOADBTransaction().putValue(\"HrSourceType\", hrSourceType);\n }\n initLayout(hrSourceType, webBean);\n if (\"M\".equals(hrSourceType)) {\n pageContext.getPageLayoutBean().setWindowTitle(\"项目管理人才库\");\n OAWebBean WorkExperience = \n webBean.findChildRecursive(\"WorkExperience\");\n WorkExperience.setAttributeValue(this.PROMPT_ATTR, \"项目管理年限\");\n OAHeaderBean queryHeader = \n (OAHeaderBean)webBean.findChildRecursive(\"QueryRN\");\n queryHeader.setText(pageContext, \"项目管理人才库查询\");\n OAMessageStyledTextBean PersonName = \n (OAMessageStyledTextBean)webBean.findChildRecursive(\"PersonName\");\n PersonName.setDestination(\"OA.jsp?page=/cux/oracle/apps/pa/source/webui/EmployeeProjectListPG&personId={@PersonId}&retainAM=Y&HrSourceType=M\");\n } else if (\"D\".equals(hrSourceType)) {\n pageContext.getPageLayoutBean().setWindowTitle(\"设计人员人才库\");\n OAWebBean WorkExperience = \n webBean.findChildRecursive(\"WorkExperience\");\n WorkExperience.setAttributeValue(this.PROMPT_ATTR, \"设计工作年限\");\n OAHeaderBean queryHeader = \n (OAHeaderBean)webBean.findChildRecursive(\"QueryRN\");\n queryHeader.setText(pageContext, \"设计人员人才库查询\");\n OAMessageStyledTextBean PersonName = \n (OAMessageStyledTextBean)webBean.findChildRecursive(\"PersonName\");\n PersonName.setDestination(\"OA.jsp?page=/cux/oracle/apps/pa/source/webui/EmployeeProjectListPG&personId={@PersonId}&retainAM=Y&HrSourceType=D\");\n }\n am.invokeMethod(\"initSearchPVO\");\n }", "public MainPage() {\n initComponents();\n \n initPage();\n }", "private void showUI(HttpServletRequest req, HttpServletResponse resp, String pageName) throws ServletException, IOException{\n\t\tGetPageByName pagecontroller = new GetPageByName();\n\t\tPage page = pagecontroller.getPageByName(pageName,currentProject.getProjectID());\n\t\treq.setAttribute(\"Page\", page);\n\t\t/*\n\t\t * Translation Code???\n\t\t * \n\t\t */\n\t\t\n\t\t// Display UI\n\t\treq.getRequestDispatcher(\"/_view/pages.jsp\").forward(req,resp);\t\t\t\n\t}", "@Override\r\n\tpublic void onPageRender(ComponentSystemEvent event) throws Throwable {\n\t}", "public SearchPage() {\n\t\tdoRender();\n\t}", "@Override\r\n\tpublic void start(Stage primaryStage) {\r\n\t\tthis.primaryStage=primaryStage;\r\n\t\tthis.primaryStage.setTitle(\"AmwayWinston\");\r\n\t\t\r\n\t\tinitRootLayout();\r\n\t\t\r\n\t\tshowPersonOverview();\r\n\t\t\r\n\t}", "@RequestMapping(\"/showForm\")\n\t\tpublic String displayDetails(){\n\t\t\treturn \"mngt-page\";\n\t\t}", "@Override\n protected void display() {\n System.out.println(\"Welcome to team builder tool!\");\n System.out.println(\"Current team: \" + team.getName());\n }", "public void onGoToSearchModule() {\n GWT.log(\"SearchModule loaded\");\n //nothing by default\n }", "public CreateProjectPanel() {\n isFinished = true;\n }", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\treporteViewStage(stage);\n\t\t\t\t}", "public void showBlank() {\n reportContainer.setVisible( false );\n url = ABOUT_BLANK;\n reportContainer.setUrl( url ); //$NON-NLS-1$\n }", "@Override\n\tprotected void init() throws Exception {\n\t\toid = getParameter(\"oid\");\n\t\tif (AppUtil.isEmpty(oid)) {\n\t\t\toid = getArgument(\"oid\");\n\t\t}\n\t\tif (AppUtil.isEmpty(oid)) {\n\t\t\tsetupNewPage();\n\t\t} else {\n\t\t\tsetupEditPage();\n\t\t}\n\t}", "public void doRender(GridSphereEvent event) throws PortletLayoutException, IOException {\n PortletResponse res = event.getPortletResponse();\n PrintWriter out = res.getWriter();\n \n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<meta http-equiv=\\\"content-type\\\" content=\\\"text/html; charset=iso-8859-1\\\">\");\n out.println(\" <title>\" + name + \"</title>\");\n out.println(\" <link type=\\\"text/css\\\" href=\\\"themes/\" + theme + \"/css\" +\n \"/default.css\\\" rel=\\\"STYLESHEET\\\"/>\");\n out.println(\"<script language=\\\"JavaScript\\\" src=\\\"javascript/gridsphere.js\\\"></script>\");\n out.println(\"</head>\\n<body>\");\n \n Iterator it = components.iterator();\n while (it.hasNext()) {\n PortletComponent comp = (PortletComponent) it.next();\n comp.doRender(event);\n }\n out.println(\"</body></html>\");\n }", "@Then(\"I land on datepicker page\")\n public void i_land_on_datepicker_page() {\n System.out.println(\" landing page\");\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tnew ReportPage(value);\r\n\t\t\t}", "private void viewPage(String club) throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"Would you like to view the \" + \r\n club + \" clubpage? (y/n)\");\r\n \r\n // if yes, go to club page\r\n // else return to display prompt\r\n if(\"y\".equalsIgnoreCase(in.nextLine())) {\r\n \t Club clubToView = new Club(club);\r\n \t clubToView.printClubPromptsAndInfo(PolyClubsConsole.user instanceof ClubAdmin);\r\n }\r\n \r\n else \r\n displaySearch(); \r\n }", "public void handleResetPersonPanelRequestEvent(ResetPersonPanelRequestEvent event) {\n logger.info(LogsCenter.getEventHandlingLogMessage(event));\n loadBlankPersonPage();\n }", "public void viewUser(ActionEvent actionEvent) throws IOException {\n Parent root = FXMLLoader.load(getClass().getResource(\"/sample/view/platoStatistics.fxml\"));\n Scene pageTwoScene = new Scene(root);\n Main.allStage.setScene(pageTwoScene);\n Main.allStage.show();\n\n }", "@Override\n public void afterNavigation(AfterNavigationEvent event) {\n List<Person> persons = Arrays.asList( //\n createPerson(\"https://avatars.githubusercontent.com/u/64605113?s=400&u=113297bed9816b716db08eee82e617f6b1e8ef38&v=4\", \"Andrei Kviatkouski\", \"February 23\",\n \"In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content (also called greeking).\",\n \"1K\", \"500\", \"20\"),\n createPerson(\"https://randomuser.me/api/portraits/women/42.jpg\", \"Abagail Libbie\", \"May 3\",\n \"In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document without relying on meaningful content (also called greeking).\",\n \"1K\", \"500\", \"20\"));\n\n grid.setItems(persons);\n }", "@Override\n public void onPageSelected(int arg0) {\n current = arg0;\n // title.setText(content[current]);\n\n //\tToast.makeText(LearningActivity.this, \"Current = \"+arg0, Toast.LENGTH_SHORT).show();\n\n }", "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\ttitle.setSize(new Dimension(40, 40));\n\t\ttitlePanel.add(title);\n\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridy = 0;\n\t\tc.weighty = .5;\n\t\tadd(titlePanel, c);\n\n\t\tinputField = addinputField();\n\n\t\t//positioning of the grid field\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridy = 1;\n\t\tc.ipady = 10;\n\t\tc.weighty = .5;\n\t\tadd(inputField, c);\n\n\t\tc.gridy++;\n\t\tJButton debug = new JButton(\"Debug\");\n\t\tdebug.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDebugPrinter.toggleDebug();\n\t\t\t}\n\n\t\t});\n\t\tadd(debug,c);\n\n\n\t\tpack();\n\n\n\t}", "@Override\n public void handle(ActionEvent event) \n {\n if(userRole == 1)\n {\n stage.setScene(ReporterPage(stage));\n }\n else if(userRole == 2)\n {\n stage.setScene(DeveloperPage(stage));\n }\n else if(userRole == 3)\n {\n stage.setScene(ReviewerPage(stage));\n }\n else if(userRole == 4)\n {\n stage.setScene(TriagerPage(stage));\n }\n }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tclientAnchor.setHref(GWT.getHostPageBaseURL() + \"IT_Projekt.html\");\r\n\t\t}", "public PagePane() {\n instance = this;\n u = CommonUtil.getInstance();\n toolBar = ToolBar.getInstance();\n MsgBoard.getInstance().subscribe(this);\n generalModel = (GeneralModel) GeneralEditor.getInstance().getModel();\n gridModel = (GridModel) GridEditor.getInstance().getModel();\n model = new PageModel();\n mousePt = new Point(generalModel.getWidth() / 2, generalModel.getHeight() / 2);\n canvasWidth = Builder.CANVAS_WIDTH;\n canvasHeight = Builder.CANVAS_HEIGHT;\n this.addMouseListener(new MouseHandler());\n this.addMouseMotionListener(new MouseMotionHandler());\n this.addKeyListener(new DeleteKeyListener());\n this.setLocation(0, 0);\n this.setOpaque(true);\n this.setFocusable( true ); \n this.setBorder(BorderFactory.createLineBorder(Color.black));\n this.setVisible(true);\n bZoom = true;\n }", "@Override\r\n\tpublic void onModuleLoad() {\n\t\tProposalHistory history=new ProposalHistory();\t\r\n\t\tPresenter presenter=new ProposalHistoryPresenter(history.addProposal(), new ProposalHistoryWidget());\r\n\t\tpresenter.go(RootPanel.get());\r\n\t}", "public ActionForward populatePublications(ActionMapping mapping, ActionForm form, HttpServletRequest request,\n HttpServletResponse response) throws Exception {\n setCancerModel(request);\n \n setComments(request, Constants.Pages.PUBLICATIONS);\n \n return mapping.findForward(\"viewPublications\");\n }", "public static void main(String[] args) throws MyException {\n\n PessoaView2 tela = new PessoaView2();\n tela.setVisible(true);\n tela.setLocationRelativeTo(null);\n \n// PessoaDAO pdao = new PessoaDAO();\n// pdao.Salvar(new PessoaVO(1,\"hueberto1\", 32122));\n \n \n }", "@Given(\"I am on the Home Page\")\n public void i_am_on_the_home_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n\n }", "protected void aboutUs(ActionEvent arg0) {\n\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\"A Curriculum Design of DBMS By psiphonc in NOV.2019\");\r\n\t}", "public void initialScreen() {\n PortfolioStocksVOImpl vo = getPortfolioStocksVO();\n //Number numb = (Number)2;\n Number num = new Number(2);\n vo.setBindPortfolioID(2);\n vo.executeQuery();\n //System.out.println(\"\\n\\n\\n End initial screen method \\n\\n\");\n }", "private void info(ActionEvent x) {\n\t\tProject p = this.list.getSelectedValue();\n\t\tif (p != null) {\n\t\t\tcontroller.moreinfo(p.getName());\n\t\t}\n\t}", "public static void main(String[] args) {\n People people0 = new People(\"Albert\", \"Einstein\", true);\n //People people1 = new People(\"Marie\",\"Curie\", false);\n ViewPeople view1 = new ViewPeople();\n\n ControlPeaple guiControl = new ControlPeaple(people0,view1);\n guiControl.startView();\n\n //System.out.println(people0);\n //System.out.println(people1);\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\t// create an instance of NewPage\r\n\t\tNewPage newPage = new NewPage(canvas);\r\n\t\t// create new WhiteBoard Page\r\n\t\tnewPage.createNewWbPage();\r\n\t\t// create an instance PresentationInfoListData object to \r\n\t\t//add to PresentationList.\r\n\t\tPresentationInfoListData data =\r\n\t\t\tnew PresentationInfoListData(0, false, newPage.getKey());\r\n\t\tpresentationInfo.add(data);\r\n\t\t// notify all the participants that a new WhiteBoard has been opened\r\n\t\t// and selected\r\n\t\tDataEvent.notifySender(\r\n\t\t\tcanvas.getApplicationType(),\r\n\t\t\tpresentationInfo.getListModel().getSize(),\r\n\t\t\tnewPage.getKey(),\r\n\t\t\tgetToolString());\r\n\t\t\t\r\n\t\t// select the current new WhiteBoard\r\n\t\tpresentationInfo.getPresentationList().setSelectedValue(data, true);\r\n\r\n\t}", "@Override\r\n\t\t\t\tpublic void onSuccess(final Map<String, String> result) {\r\n\t\t\t\t\tcatalogue_search_param_panel.setVisible(true);\r\n\r\n\t\t\t\t\tcatalogue_search_panel_see_description_button.setVisible(true);\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Click on this button to see the description file\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcatalogue_search_panel_see_description_button.addClickHandler(new ClickHandler() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tWindow.open(result.get(\"description\"), \"description\", result.get(\"description\"));\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * If the map doesn't contain the parameter then the field\r\n\t\t\t\t\t * is disabled. Otherwise, the parameter's key is register\r\n\t\t\t\t\t * to build the request url later\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (!result.containsKey(\"eo:platform\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_platform.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_platform.setName(result.get(\"eo:platform\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:orbitType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitType.setName(result.get(\"eo:orbitType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:instrument\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensor.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensor.setName(result.get(\"eo:instrument\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:sensorType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensortype.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensortype.setName(result.get(\"eo:sensorType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:sensorMode\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensorMode.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_sensorMode.setName(result.get(\"eo:sensorMode\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:resolution\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMax.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMin.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMax.setName(result.get(\"eo:resolution\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_resolutionMin.setName(result.get(\"eo:resolution\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:swathId\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_swathId.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_swathId.setName(result.get(\"eo:swathId\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:wavelength\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght1.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght2.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght1.setName(result.get(\"eo:wavelength\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_waveLenght2.setName(result.get(\"eo:wavelength\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:spectralRange\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_spectralRange.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_spectralRange.setName(result.get(\"eo:spectralRange\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:orbitNumber\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMax.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMin.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMax.setName(result.get(\"eo:orbitNumber\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitMin.setName(result.get(\"eo:orbitNumber\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:orbitDirection\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitDirection.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_orbitDirection.setName(result.get(\"eo:orbitDirection\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:track\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAccross.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAlong.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAccross.setName(result.get(\"eo:track\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_trackAlong.setName(result.get(\"eo:track\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:frame\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_frame1.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_frame2.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_frame1.setName(result.get(\"eo:frame\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_frame2.setName(result.get(\"eo:frame\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:identifier\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_identifier.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_identifier.setName(result.get(\"eo:identifier\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:type\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_entryType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_entryType.setName(result.get(\"eo:type\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:acquisitionType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionType.setName(result.get(\"eo:acquisitionType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:status\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_status.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_status.setName(result.get(\"eo:status\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:archivingCenter\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_archivingCenter.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_archivingCenter.setName(result.get(\"eo:archivingCenter\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:acquisitionStation\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionStation.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_acquisitionStation.setName(result.get(\"eo:acquisitionStation\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingCenter\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingCenter.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingCenter.setName(result.get(\"eo:processingCenter\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingSoftware\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingSoftware.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingSoftware.setName(result.get(\"eo:processingSoftware\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingDate\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate1.setEnabled(false);\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate2.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate1.setName(result.get(\"eo:processingDate\"));\r\n\t\t\t\t\t\tcatalogue_search_panel_processingDate2.setName(result.get(\"eo:processingDate\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:processingLevel\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingLevel.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_processingLevel.setName(result.get(\"eo:processingLevel\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:compositeType\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_compositeType.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_compositeType.setName(result.get(\"eo:compositeType\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:contents\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_contents.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_contents.setName(result.get(\"eo:contents\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:cloudCover\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_cloud.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_cloud.setName(result.get(\"eo:cloudCover\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!result.containsKey(\"eo:snowCover\")) {\r\n\t\t\t\t\t\tcatalogue_search_panel_snow.setEnabled(false);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tcatalogue_search_panel_snow.setName(result.get(\"eo:snowCover\"));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tSystem.out.println(\"success!\");\r\n\t\t\t\t}", "public Homepage() {\n initComponents();\n }", "private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }" ]
[ "0.5901357", "0.5901357", "0.5684753", "0.5608698", "0.5556459", "0.5458474", "0.5440235", "0.54330575", "0.5424278", "0.5423528", "0.542201", "0.54154", "0.5406783", "0.5406783", "0.5401075", "0.5394074", "0.53880996", "0.5373908", "0.53642124", "0.5353104", "0.5345993", "0.53339505", "0.53339505", "0.5331814", "0.5331814", "0.5331325", "0.5328571", "0.5317446", "0.5304274", "0.52981263", "0.5286125", "0.52799016", "0.5271148", "0.52627933", "0.52588505", "0.5256612", "0.5227103", "0.52171034", "0.521068", "0.519423", "0.51868933", "0.5162019", "0.5161814", "0.515202", "0.5148078", "0.51442385", "0.5140645", "0.51401937", "0.5123344", "0.51146686", "0.51088315", "0.50994104", "0.5097689", "0.50876594", "0.5080453", "0.5074811", "0.5056273", "0.5050196", "0.5042368", "0.50265944", "0.5025413", "0.50214255", "0.50124806", "0.49993807", "0.49979463", "0.49977952", "0.49940833", "0.49896476", "0.49873424", "0.49827376", "0.49781084", "0.49776804", "0.4963197", "0.49630135", "0.49617636", "0.4961336", "0.49602905", "0.4958981", "0.49586818", "0.49538022", "0.4953335", "0.49530175", "0.4948559", "0.4947319", "0.49404415", "0.49389732", "0.4938294", "0.4932714", "0.49270794", "0.4920529", "0.4908784", "0.4907824", "0.4904973", "0.49048838", "0.4904479", "0.49041486", "0.4901794", "0.4899973", "0.48967475", "0.48953888" ]
0.5275659
32
Default event. Just show the page.
public String handleShowAddPage() throws HttpPresentationException { return showAddPage(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showPage(null);\n }", "public String handleDefault()\n throws HttpPresentationException\n {\n\t return showPage(null);\n }", "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showEditPage(null);\n }", "private void loadDefaultPage() {\n loadPage(DEFAULT_PAGE.toExternalForm());\n }", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t}", "@Override\n\tpublic void show() {\n\t}", "@Override\n\tpublic void show() {\n\t}", "@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\t\t\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\n\tpublic void show() {\n\n\t}", "@Override\r\n\tpublic void show() {\n\t}", "@Override\r\n\tpublic void show() {\n\t\tSystem.out.println(\"Showing...\");\r\n\t}", "@Override\r\n public void show()\r\n {\r\n\r\n }", "@Override\r\n public void show()\r\n {\r\n\r\n }", "public abstract void pageDisplayed();", "@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\tToast.makeText(getBaseContext(), arg0 + \"\", Toast.LENGTH_SHORT).show();\n\t\t\t}", "public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\r\n\tpublic void show() {\n\r\n\t}", "@Override\r\n\tpublic void show() {\n\r\n\t}", "@Override\n public void show() {\n }", "@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void index() {\n\t\trender(\"index.jsp\");\r\n\t}", "@Override\n public void show() {\n\n }", "@Override\n public void show() {\n\n }", "public synchronized void showPage() {\n final ShowPageImage viewer = new ShowPageImage();\n\n if (SwingUtilities.isEventDispatchThread()) {\n viewer.run();\n } else {\n SwingUtilities.invokeLater(viewer);\n }\n }", "public void displayDoctorHomePage() throws IllegalArgumentException {\r\n\t\tif (getCurrentEntity() == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"No doctor is displayed\");\r\n\t\t}\r\n\t\ttracer(this).debug(\"Displaying doctor home page: \" + getCurrentEntity().getId());\r\n\t\tgetEventBus().fireEvent(DoctorHomePage.createPageEvent(this, getCurrentEntity().getId()));\r\n\t\tview.setViewVisible(false);\r\n\t}", "@Override\n protected BasePage openPage() {\n return null;\n }", "public void showMainPage() {\r\n\t\tmainFrame.showPage(mainPage.getClass().getCanonicalName());\r\n\t}", "public static void show() {\n\t\t\n\t}", "public void show() {\n }", "public void show();", "public void show()\r\n {\r\n\tshow(\"\");\r\n }", "@Override\n\tpublic void show() {\n\t\tsetUpGame();\n\t}", "@Override\r\n \t\t\tpublic void onClick(ClickEvent evt){\n \t\t\t\tbody.show();\r\n \t\t\t\tbody.animateFade(100);\r\n \t\t\t}", "public static void show() {\n\n\t}", "@Override\n public void show() {\n \n }", "public void show() {\r\n show(\"\");\r\n }", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}", "protected void onBeforeDisplayEvent( UserRequest request,\n int pageNumber,\n String buttonPressed )\n {\n // default noop\n }", "private void viewPageClicked(ActionEvent event) {\n\n Item tempItem = new Item();\n String itemURL = tempItem.itemURL;\n Desktop dk = Desktop.getDesktop();\n try{\n dk.browse(new java.net.URI(itemURL));\n }catch(IOException | URISyntaxException e){\n System.out.println(\"The URL on file is invalid.\");\n }\n\n showMessage(\"Visiting Item Web Page\");\n\n }", "@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onPageSelected(int arg0)\n\t\t{\n\t\t\t\n\t\t}", "@Override\n\tvoid show() {\n\t\tSystem.out.println(\"Test\");\n\t}", "@Override\n\tpublic void shown() {\n\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);//when user clicks health assistant button the visibility of the frame for the home screen will be set to false\n new HealthAssistant();//displays the health assistant page\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tnew ReportPage(value);\r\n\t\t\t}", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tdisplayEvent();\n\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void aboutToBeShown() {\n\t\tsuper.aboutToBeShown();\r\n\t}", "public void display() {\n\t\tSystem.out.println(\"none static display() called\");\n\t}", "@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"Displaying...\");\r\n\t}", "public void show() {\n super.show();\n }", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);//when user clicks financial assistant button the visibility of the frame for the home screen will be set to false\n new FinancialAssistant();//displays the financial assistant page\n }", "@Override\r\n\tpublic void run() {\n\t\tshowViewer();\r\n\t}", "@Override\r\n\tpublic void onPageSelected(int arg0) {\n\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tResultPage resultPage = new ResultPage(Agent.agentResult);\n\t\t\t\tframe.setVisible(false);\n\t\t\t\tresultPage.setVisible(true);\n\t\t\t}", "protected void display() {\n\r\n\t}", "public void show()\n\t{\n\t\tSystem.out.println(\"show\");\n\t}", "@Override\n public void onPageSelected(int arg0) {\n }", "@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tOpenscreen.open(\"/admin_main/first_main.fxml\");\r\n\t\t\t}", "@Override\n public void show() {\n VisAQ.getInstance().userInput();\n }", "public void show() {\n\t\tSystem.out.println(\"show..\");\n\t}", "public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}", "@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t}", "Point onPage();", "public void goToUserPage(ActionEvent event) throws IOException { //this is going to close the current window and open a new window\n\t\t//this should also display the User Page\n\t\tParent user_page = FXMLLoader.load(getClass().getResource(\"/view/User_Page.fxml\"));\n\t\tScene userpage_scene = new Scene(user_page);\n\t\tStage app_stage = (Stage) ((Node) (event.getSource())).getScene().getWindow();\n\t\tapp_stage.setScene(userpage_scene);\n\t\tapp_stage.setTitle(\"User Page\");\n\t\tapp_stage.show();\n\t}", "private void handleWindowShowing(WindowEvent event){\n WebEngine webEngine = webView.getEngine();\n //Load help page.\n webEngine.load(getClass()\n .getResource(\"/javafxapplicationud3example/ui/view/help.html\").toExternalForm());\n }", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "@Override\n\tpublic void onPageSelected(int arg0) {\n\n\t}", "default void show1() {\n \tSystem.out.println(\"show default\");\n }", "public static void index() {\r\n render();\r\n }" ]
[ "0.7357101", "0.7229108", "0.6759732", "0.67395073", "0.6626522", "0.6626522", "0.6626522", "0.65788877", "0.65788877", "0.6569241", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6567708", "0.6566962", "0.6566962", "0.6566962", "0.6566962", "0.6566962", "0.6566962", "0.6566962", "0.6566962", "0.6565091", "0.6508534", "0.65019894", "0.65019894", "0.6499656", "0.6491195", "0.64683455", "0.64642066", "0.6438601", "0.6438601", "0.637801", "0.6374909", "0.63060176", "0.6247074", "0.6247074", "0.62435025", "0.6225161", "0.62125415", "0.62111074", "0.6202664", "0.6176934", "0.6171989", "0.6167748", "0.61625135", "0.61588943", "0.6149278", "0.61453974", "0.6139387", "0.61361134", "0.60726774", "0.60664856", "0.60591114", "0.60457265", "0.60447365", "0.604047", "0.6032738", "0.60237694", "0.6013098", "0.6012105", "0.60072386", "0.60008526", "0.60008526", "0.5996392", "0.59959257", "0.5967598", "0.59593666", "0.5958188", "0.5958188", "0.5943246", "0.5934489", "0.5932332", "0.59284943", "0.59264493", "0.5922927", "0.5922699", "0.5921485", "0.5920688", "0.5917172", "0.5913536", "0.5911182", "0.5907581", "0.5906665", "0.590666", "0.5899769", "0.58956796", "0.58956796", "0.5887981", "0.58839613" ]
0.0
-1
/ Edits an existing proj in the proj database
public String handleEdit() throws webschedulePresentationException, HttpPresentationException { String projID = this.getComms().request.getParameter(PROJ_ID); Project project = null; System.out.println(" trying to edit a project "+ projID); // Try to get the proj by its ID try { project = ProjectFactory.findProjectByID(projID); System.out.println(" trying to edit a project 2"+ projID); String title = project.getProj_name(); System.out.println("project title: "+title); } catch(Exception ex) { this.getSessionData().setUserMessage("Please choose a valid PROJECT to edit"); throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE); } // If we got a valid project then try to save it // If any fields were missing then redisplay the edit page, // otherwise redirect to the project catalog page try { saveProject(project); throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE); } catch(Exception ex) { return showEditPage("You must fill out all fields to edit this project"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updateProject(Project project);", "public void saveNewProject(){\n String pn = tGUI.ProjectTextField2.getText();\n String pd = tGUI.ProjectTextArea1.getText();\n String statusID = tGUI.StatusComboBox.getSelectedItem().toString();\n String customerID = tGUI.CustomerComboBox.getSelectedItem().toString();\n\n int sstatusID = getStatusID(statusID);\n int ccustomerID = getCustomerID(customerID);\n\n try {\n pstat = cn.prepareStatement (\"insert into projects (project_name, project_description, project_status_id, customer_id) VALUES (?,?,?,?)\");\n pstat.setString(1, pn);\n pstat.setString(2,pd);\n pstat.setInt(3, sstatusID);\n pstat.setInt(4, ccustomerID);\n pstat.executeUpdate();\n\n }catch (SQLException ex) {\n Logger.getLogger(ProjectMethods.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void updateArchitect(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects \" +\r\n \" SET architect_name = ?, architect_tel = ?, architect_email = ?, architect_address = ?\" +\r\n \"WHERE project_num = \" +projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.architect_name);\r\n pstmt.setString(2, NewProject.architect_tel);\r\n pstmt.setString(3, NewProject.architect_email);\r\n pstmt.setString(4, NewProject.architect_address);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static void updateContractor(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects\" +\r\n \" SET contract_name = ?, contract_tel = ?, contract_email = ?, contract_address = ?\" +\r\n \"WHERE project_num = \" +projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.contract_name);\r\n pstmt.setString(2, NewProject.contract_tel);\r\n pstmt.setString(3, NewProject.contract_email);\r\n pstmt.setString(4, NewProject.contract_address);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\tpublic Integer modifyProject(ProjectInfo project) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.modifyProject\", project);\n\t}", "@SneakyThrows\n private void editProject(MouseEvent event) {\n final Project project = table.getSelectionModel().getSelectedItem();\n if (project == null) {\n NotificationUtil.warningAlert(\"Warning\", \"Select project first\", NotificationUtil.SHORT);\n return;\n }\n final FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"/entity/update/UpdateProject.fxml\"));\n Parent parent = fxmlLoader.load();\n UpdateProjectController updateProjectController = fxmlLoader.getController();\n updateProjectController.editCurrentProject(project);\n\n final Stage stage = new Stage();\n Scene value = new Scene(parent);\n value.getStylesheets().add(\"css/main.css\");\n stage.setScene(value);\n stage.initModality(Modality.WINDOW_MODAL);\n Window window = ((Node) event.getSource()).getScene().getWindow();\n stage.initOwner(window);\n stage.show();\n\n stage.setOnHiding(e -> loadProjects());\n }", "int updateByPrimaryKey(UserOperateProject record);", "int updateByPrimaryKey(Project record);", "public boolean updateProject(Project p) {\n\n try {\n String update = \"UPDATE PROJECTS SET \" + \"DESCRIPTION = ?, \"\n + \"HOURS = ?, \" + \"STARTDATE = ?, \" + \"DUEDATE = ?, \" + \"INVOICESENT = ? \"\n + \"WHERE PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(update);\n ps.setString(1, p.getDescription());\n ps.setString(2, p.getHours());\n ps.setString(3, p.getStartdate());\n ps.setString(4, p.getDuedate());\n ps.setString(5, p.getInvoicesent());\n ps.setString(6, p.getProjectId());\n ps.executeUpdate();\n\n logger.info(\"ps {}\", ps);\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n\n return false;\n }\n }", "public void saveProject(Project project) {\n\t\tContentValues vals = new ContentValues();\n\t\tProject existing = getProjectById(project.getId());\n\n\t\t// update\n\t\tif (existing != null) {\n\t\t\tvals.put(Constants.COLUMN_STARRED, project.isStarred() ? 1 : 0);\n\t\t\tvals.put(Constants.COLUMN_SHARED, project.isShared() ? 1 : 0);\n\t\t\tvals.put(Constants.COLUMN_TITLE, project.getTitle());\n\t\t\tvals.put(Constants.COLUMN_HISTORY, project.getSerializedHistory());\n\t\t\tString where = Constants.COLUMN_ID + \" = ?\";\n\t\t\tString[] args = new String[] { project.getId() };\n\n\t\t\tdatabase.update(Constants.TABLE_PROJECTS, vals, where, args);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// add\n\t\tvals.put(Constants.COLUMN_ID, project.getId());\n\t\tvals.put(Constants.COLUMN_TITLE, project.getTitle());\n\t\tvals.put(Constants.COLUMN_STARRED, project.isStarred() ? 1 : 0);\n\t\tvals.put(Constants.COLUMN_SHARED, project.isShared() ? 1 : 0);\n\t\tvals.put(Constants.COLUMN_HISTORY, project.getSerializedHistory());\n\t\tdatabase.insert(Constants.TABLE_PROJECTS, null, vals);\n\t}", "public void changeCurrProject(ProjectModel p) {\n \tprojects.remove(p);\n \tprojects.add(0, p);\n }", "@Override\n\tpublic void createProjects(Projects proj) {\n\t\tString sql = \"INSERT INTO projects VALUES (?,?,?,?,?,?,now(),now(),?)\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tproj.getProj_id(),\n\t\t\t\tproj.getProj_name(),\n\t\t\t\tproj.getProj_desc(),\n\t\t\t\tproj.getFile_id(),\n\t\t\t\tproj.getCus_id(),\n\t\t\t\tproj.getCretd_usr(),\n\t\t\t\tproj.getProj_currency()\n\t\t});\n\t\t\n\t\tUserDetailsApp user = UserLoginDetail.getUser();\n\t\t\n\t\tCustomer cus = new Customer();\n\t\tcus = getJdbcTemplate().queryForObject(\"select * from customer where cus_id=\"+proj.getCus_id(), new BeanPropertyRowMapper<Customer>(Customer.class));\n\t\tString file_name = \"\";\n\t\tif(proj.getFile_id() != 0){\n\t\t\tFileModel myFile = new FileModel();\n\t\t\tmyFile = getJdbcTemplate().queryForObject(\"select * from file where file_id=\"+proj.getFile_id(), new BeanPropertyRowMapper<FileModel>(FileModel.class));\n\t\t\tfile_name = myFile.getFile_name();\n\t\t}\n\t\t\n\t\tString audit = \"INSERT INTO audit_logging (aud_id,parent_id,parent_object,commit_by,commit_date,commit_desc,parent_ref) VALUES (default,?,?,?,now(),?,?)\";\n\t\tthis.getJdbcTemplate().update(audit, new Object[]{\n\t\t\t\t\n\t\t\t\tproj.getProj_id(),\n\t\t\t\t\"Projects\",\n\t\t\t\tuser.getUserModel().getUsr_name(),\n\t\t\t\t\"Created row on Projects name=\"+proj.getProj_name()+\", desc=\"+proj.getProj_desc()+\", file_name=\"+file_name\n\t\t\t\t+\", customer=\"+cus.getCus_code()+\", proj_currency=\"+proj.getProj_currency(),\n\t\t\t\tproj.getProj_name()\n\t\t});\n\t}", "public void createProject(Project newProject);", "public boolean insertProject(Project project) throws EmployeeManagementException;", "@Override\r\n\tpublic Project updateProjectById(Project projectId) {\n\t\treturn projectDAO.updateProjectById(projectId);\r\n\t}", "public void save() throws InvalidIDException, SQLException {\r\n\t\t// Whether or not this is a new project being added to the database\r\n\t\tboolean newProject;\r\n\r\n\t\tif (super.id == 0) { newProject = true; }\r\n\t\telse { newProject = false; }\r\n\r\n\t\t// Call save in the Project class first. This will save general project data.\r\n\t\tsuper.save();\r\n\r\n\t\t// Get our connection to the database.\r\n\t\tConnection conn = DBConnectionManager.getPrConnection();\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\r\n\t\t\t// Get our updatable result set\r\n\t\t\tString sqlStr = \"SELECT * FROM tblTechnology WHERE projectID = \" + super.id;\r\n\t\t\trs = stmt.executeQuery(sqlStr);\r\n\r\n\t\t\t// See if we're updating a row or adding a new row.\r\n\t\t\tif (newProject == false) {\r\n\r\n\t\t\t\t// Make sure this row is actually in the database. This shouldn't ever happen.\r\n\t\t\t\tif (!rs.next()) {\r\n\t\t\t\t\tthrow new InvalidIDException(\"ID was set in Technology, but not found in database on save()\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Make sure the result set is set up w/ current values from this object\r\n\t\t\t\tif (this.groups == null) { rs.updateNull(\"techGroups\"); }\r\n\t\t\t\telse { rs.updateString(\"techGroups\", StringUtils.join(this.groups.toArray(), \",\")); }\r\n\r\n\t\t\t\t// Update the row\r\n\t\t\t\trs.updateRow();\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// We're adding a new row.\r\n\r\n\t\t\t\trs.moveToInsertRow();\r\n\r\n\t\t\t\trs.updateInt(\"projectID\", super.id);\r\n\r\n\t\t\t\tif (this.groups == null) { rs.updateNull(\"techGroups\"); }\r\n\t\t\t\telse { rs.updateString(\"techGroups\", StringUtils.join(this.groups.toArray(), \",\")); }\r\n\r\n\t\t\t\trs.insertRow();\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\trs = null;\r\n\t\t\t\r\n\t\t\tstmt.close();\r\n\t\t\tstmt = null;\r\n\t\t\t\r\n\t\t\tconn.close();\r\n\t\t\tconn = null;\r\n\t\t}\r\n\t\tcatch(SQLException e) { throw e; }\r\n\t\tcatch(InvalidIDException e) { throw e; }\r\n\t\tfinally {\r\n\r\n\t\t\t// Always make sure result sets and statements are closed,\r\n\t\t\t// and the connection is returned to the pool\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry { rs.close(); } catch (SQLException e) { ; }\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry { stmt.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry { conn.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "int modifyProject(Project project) throws WrongIDException, WrongDurationException;", "int updateByPrimaryKey(ProjGroup record);", "public void editProjectAction() throws IOException {\n\t\tfinal List<Project> projects = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (projects.size() == 1) {\n\t\t\tfinal Project project = projects.get(0);\n\t\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\t\t((AddProjectDialogController) loader.getController()).getContentController().setProjectToEdit(project);\n\t\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\t\tif (result.isPresent()) {\n\t\t\t\tlogger.trace(\"dialog 'edit project' result: {}\", result::get);\n\t\t\t\tupdateProjectList();\n\t\t\t}\n\t\t}\n\t}", "private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }", "public void testUpdateProjeto() {\n Projeto p = ProjetoDAO.getProjetoByNome(\"proj4\");\n p.setDuracao(100);\n ProjetoDAO.updateProjeto(p);\n Projeto aux = ProjetoDAO.getProjetoByNome(\"proj4\");\n assertEquals(100, aux.getDuracao());\n }", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n\tpublic ProyectoDO update(ProyectoDO project) throws ConectelException {\r\n\t\t/*try {\r\n\t\t\tProyectoDO current = transformacionService\r\n\t\t\t\t\t.map(project, ProyectoDO.class);*/\r\n\t\t\tentityManager.merge(project);\r\n\t\t/*} catch (ConectelMappingException e) {\r\n\t\t\tthrow new ConectelException(\"Error de sistema.\");\r\n\t\t}*/\r\n\t\treturn null;\r\n\t}", "public Project editProject(Project project, boolean isUndoOrRedo)\n\t\t\tthrows StorageException, ConstraintCheckingException {\n\t\tproject.checkConstraints();\n\t\tProject projectBeforeEdition = listProject(\"_id = \\\"\" + project.get_Id() + \"\\\"\").get(0);\n\t\ttry {\n\t\t\tContentValues projectValues = new ContentValues();\n\t\t\tprojectValues.put(\"NAME\", project.getName());\n\t\t\tprojectValues.put(\"DESCRIPTION\", project.getDescription());\n\t\t\tcontentResolver.update(LocalStorageContentProvider.PROJECT_URI, projectValues,\n\t\t\t\t\t\"_id = \\\"\" + project.get_Id() + \"\\\"\", null);\n\t\t} catch (Exception e) {\n\t\t\tthrow new StorageException();\n\t\t}\n\t\tif (!isUndoOrRedo) {\n\t\t\tthis.getProjectEditedReversedList().add(0, projectBeforeEdition);\n\t\t\tthis.getProjectEditedList().add(project);\n\t\t}\n\t\treturn project;\n\t}", "@Override\n\tpublic int updateProject(Project project) {\n\t\treturn pm.updateProject(project);\n\t}", "public static void updateFinal(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects\" +\r\n \" SET completed = ?\" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, \"YES\");\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void edit(Note editedProject) {\n\t\tfor (Note project : getNotes()) {\n\t\t\tif (project.getId().equals(editedProject.getId())) {\n\n\t\t\t\tString sql = \"DELETE FROM todo WHERE ID='\" + project.getId() + \"';\";\n\t\t\t\tsqlUpdate(sql);\n\n\t\t\t\tsql = \"INSERT INTO todo VALUES ('\" + editedProject.getId() + \"','\" + editedProject.getName() + \"','\"\n\t\t\t\t\t\t+ editedProject.getAbbreviation() + \"','\" + editedProject.getDescription() + \"' );\";\n\n\t\t\t\tList<Note> todos = sqlUpdate(sql);\n\n\t\t\t\tsetNotes(todos);\n\t\t\t}\n\t\t}\n\n\t}", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "public void store() throws IOException, SQLException {\r\n \r\n /* Project section */\r\n final HashMap<Object, Object> projectdata = new HashMap<Object, Object>(8);\r\n \r\n if(project == null){\r\n \t// The title \r\n projectdata.put(ProjectAccessor.TITLE, title);\r\n // Create the project database object.\r\n final ProjectAccessor newProject = new ProjectAccessor(projectdata);\r\n newProject.persist(conn);\r\n projectid = (Long) newProject.getGeneratedKeys()[0];\r\n } else {\r\n \tprojectid = project.getProjectid();\r\n }\r\n }", "private void add_proj_DATABASE(Project project) {\n }", "public static void updatePayment(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n\r\n String sqlInsert = \"UPDATE projects SET tot_paid = ?\" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setDouble(1, NewProject.tot_paid);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void insertEmpProject(String projectID, String employeeId) {\n\t\tString query=\"INSERT INTO TA_EMPLOYEE_PROJECT(PROJECT_ID,EMPLOYEE_ID) VALUES('\" + projectID + \"','\" + employeeId +\"')\";\r\n\t\tjdbcTemplate.update(query);\r\n\t}", "public String editProjectQuery(String field, String value, String pID) \r\n\t{\r\n\t\tString query = \"UPDATE Project SET \"+field+\" = \"+\"\\\"\"+value+\"\\\" WHERE ProjectID = \\\"\"+pID+\"\\\"\";\r\n\t\tSystem.out.println(query);\r\n\t\treturn query;\r\n\t}", "public String editProjectQuery(String field, String value, String pID) \r\n\t{\r\n\t\tString query = \"UPDATE Project SET \"+field+\" = \"+\"\\\"\"+value+\"\\\" WHERE ProjectID = \\\"\"+pID+\"\\\"\";\r\n\t\tSystem.out.println(query);\r\n\t\treturn query;\r\n\t}", "public void updateCalendarProject(String id, CalendarProject project) {\n String sql = \"UPDATE calendar_projects SET name = :name, duration = :duration WHERE id = :id \";\n Map params = new HashMap();\n params.put(\"id\", id);\n params.put(\"name\", project.getProject());\n params.put(\"duration\", project.getDuration());\n int rows = jdbcTemplate.update(sql, params);\n if (rows != 1) {\n throw new DataAccessException(\"Unexpected rows. Expected: 1 Rows: \" + rows) {\n };\n }\n }", "@Override\n\tpublic Integer addProject(ProjectInfo project) {\n\t\treturn sqlSession.insert(\"cn.sep.samp2.project.addProject\", project);\n\t}", "public static void editDatabase(String sql){\n Connection connection = dbConnection();\n\n try{\n PreparedStatement pst = connection.prepareStatement(sql);\n pst.executeUpdate();\n pst.close();\n connection.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void createProjectsReference(ProjectsReference proj) {\n\t\tString sql = \"INSERT INTO projects_reference VALUES (?,?,?,?,?,?,now(),now(),?,?,?,?)\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tproj.getProj_ref_id(),\n\t\t\t\tproj.getProj_id(),\n\t\t\t\tproj.getItm_id(),\n\t\t\t\tproj.getTime(),\n\t\t\t\tproj.getPrice(),\n\t\t\t\tproj.getCretd_usr(),\n\t\t\t\tproj.getProj_ref_desc(),\n\t\t\t\tproj.getActual_time(),\n\t\t\t\tproj.getTopix_article_id(),\n\t\t\t\tproj.getActivated()\n\t\t});\n\t\t\n\t\tUserDetailsApp user = UserLoginDetail.getUser();\n\t\t\n\t\tProjects proj2 = new Projects();\n\t\tproj2 = getJdbcTemplate().queryForObject(\"select * from projects where proj_id=\"+proj.getProj_id(), new BeanPropertyRowMapper<Projects>(Projects.class));\n\t\tItem itm = new Item();\n\t\titm = getJdbcTemplate().queryForObject(\"select * from item where itm_id=\"+proj.getItm_id(), new BeanPropertyRowMapper<Item>(Item.class));\n\t\tCustomer cus = new Customer();\n\t\tcus = getJdbcTemplate().queryForObject(\"select * from customer where cus_id =\"+proj2.getCus_id(), new BeanPropertyRowMapper<Customer>(Customer.class));\n\t\t\n\t\tString audit = \"INSERT INTO audit_logging (aud_id,parent_id,parent_object,commit_by,commit_date,commit_desc,parent_ref) VALUES (default,?,?,?,now(),?,?)\";\n\t\tthis.getJdbcTemplate().update(audit, new Object[]{\n\t\t\t\t\n\t\t\t\tproj.getProj_ref_id(),\n\t\t\t\t\"Projects Reference:\"+proj2.getProj_id(),\n\t\t\t\tuser.getUserModel().getUsr_name(),\n\t\t\t\t\"Created Item name=\"+itm.getItm_name()+\" on Project name=\"+proj2.getProj_name()+\", customer=\"+cus.getCus_name()\n\t\t\t\t+\", target_time=\"+proj.getTime()+\", actual_time=\"+proj.getActual_time()+\", price=\"+proj.getPrice()+\", desc=\"+proj.getProj_ref_desc()\n\t\t\t\t+\", topix_article_id=\"+proj.getTopix_article_id()+\", activated=\"+((proj.getActivated() == 0) ? \"No\" : \"Yes\"),\n\t\t\t\tproj2.getProj_name()+\" : \"+itm.getItm_name()\n\t\t});\n\t}", "public void update(Pessoa p) {\n\t\tdb.save(p);\t\t\n\t}", "public boolean projectSet(String name, String q1, String q2, String q3){\n\tString projectSet = \"insert into projects values(?, ?, ?, ?)\";\n\tPreparedStatement pSet = null;\n\ttry{\n\t\tpSet = conn.prepareStatement(projectSet);\n\t\tpSet.setString(1, name);\n\t\tpSet.setString(2, q1);\n\t\tpSet.setString(3, q2);\n\t\tpSet.setString(4, q3);\n\t\tif(pSet.executeUpdate() ==1){\n\t\t\treturn true;\n\t\t}\n\t}catch (SQLException e){\n\t\tSystem.out.println(e.getMessage());\n\t\treturn false;\n\t}\n\treturn false;\n\t}", "private static void update_project_status() {\r\n\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\t// Allows for user input\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Select a project ID to modify it.\");\r\n\t\t\t\r\n\t\t\t// Prints out all project ids and names:\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t// This creates a list of project ids to check that the user only selects an available one\r\n\t\t\tArrayList<Integer> project_id_list = new ArrayList<Integer>(); \r\n\t\t\twhile (project_rset.next()) {\r\n\t\t\t\tSystem.out.println(\"ID: \" + project_rset.getInt(\"project_id\") + \", Name:\" + project_rset.getString(\"project_name\"));\r\n\t\t\t\tproject_id_list.add(project_rset.getInt(\"project_id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Allows user to select a project to update \r\n\t\t\tBoolean select_project = true;\r\n\t\t\tint project_id = 0;\r\n\t\t\twhile (select_project == true) {\r\n\t\t\t\tSystem.out.println(\"Project ID: \");\r\n\t\t\t\tString project_id_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tproject_id = Integer.parseInt(project_id_str);\r\n\t\t\t\t\tfor (int i = 0; i < project_id_list.size(); i ++) {\r\n\t\t\t\t\t\tif (project_id == project_id_list.get(i)) { \r\n\t\t\t\t\t\t\tselect_project = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (select_project == true) {\r\n\t\t\t\t\t\tSystem.out.println(\"Please only select an available project id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for project id is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The project number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t// The user can select either to change the due date, the status or the amount paid\r\n\t\t\t// The values are printed out so that the user can physically see the fields and decide\r\n\t\t\tSystem.out.println(\"Select 1, 2 or 3 depending on which field you want to update: \");\r\n\t\t\t\r\n\t\t\tResultSet project_select_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_select_rset.next()) {\r\n\t\t\t\tif (project_select_rset.getInt(\"project_id\") == project_id) {\r\n\t\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"ID: \" + project_select_rset.getInt(\"project_id\") + \r\n\t\t\t\t\t\"\\nName: \" + project_select_rset.getString(\"project_name\") + \r\n\t\t\t\t\t\"\\nCharged: R\" + project_select_rset.getInt(\"charged\") + \r\n\t\t\t\t\t\"\\n1. Paid: R\" + project_select_rset.getInt(\"paid\") + \r\n\t\t\t\t\t\"\\n2. Due on: \" + project_select_rset.getDate(\"deadline_date\") + \r\n\t\t\t\t\t\"\\n3. Status: \" + project_select_rset.getString(\"status\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Here the user can select the field to update's number\r\n\t\t\t// This allows the user to enter a charged amount \r\n\t\t\tBoolean select_update_field = true;\r\n\t\t\tint update_field = 0;\r\n\t\t\twhile (select_update_field == true) {\r\n\t\t\t\tSystem.out.print(\"Field number \");\r\n\t\t\t\tString field_change_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tupdate_field = Integer.parseInt(field_change_str);\r\n\t\t\t\t\tif (update_field == 1 || update_field == 2 || update_field == 3) {\r\n\t\t\t\t\t\tselect_update_field = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (update_field != 1 && update_field != 2 && update_field != 3) {\r\n\t\t\t\t\t\tSystem.out.println(\"You can only select 1, 2 or 3. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for selected field to update is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The selected field number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\tif (update_field == 1) {\r\n\t\t\t\t// This allows the user to enter update the amount paid \r\n\t\t\t\tBoolean update_paid = true;\r\n\t\t\t\tint prev_paid = 0;\r\n\t\t\t\tint paid = 0;\r\n\t\t\t\twhile (update_paid == true) {\r\n\t\t\t\t\tSystem.out.println(\"How much has been paid: R\");\r\n\t\t\t\t\tString paid_amount_str = input.nextLine();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpaid = Integer.parseInt(paid_amount_str);\r\n\t\t\t\t\t\tupdate_paid = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * @exception Throws exception if the users input for amount paid is not a number\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t\t System.out.println(\"The paid amount cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Fetches any previous paid amount to add it to the new amount\r\n\t\t\t\tResultSet project_paid_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\twhile (project_paid_rset.next()) {\r\n\t\t\t\t\tprev_paid = project_paid_rset.getInt(\"paid\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Calculates the total\r\n\t\t\t\tint total_paid = prev_paid + paid;\r\n\r\n\t\t\t\t// Updates the field\r\n\t\t\t\tPreparedStatement ps_paid = conn.prepareStatement(\r\n\t\t\t\t\t\t\"UPDATE project_statuses SET paid = ? WHERE project_id = ?;\");\r\n\t ps_paid.setInt(1, total_paid);\r\n\t ps_paid.setInt(2, project_id);\r\n\t ps_paid.executeUpdate();\r\n\t System.out.println(\"\\nUpdated Paid Amount to R\" + total_paid + \".\\n\");\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif (update_field == 2) {\r\n\t\t\t\t\r\n\t\t\t\t// Allows the user to update the due date\r\n\t\t\t\tBoolean update_deadline_date = true;\r\n\t\t\t\tDate deadline_date = null;\r\n\t\t\t\twhile (update_deadline_date == true) {\r\n\t\t\t\t\tSystem.out.print(\"Deadline Date (YYYY-MM-DD): \");\r\n\t\t\t\t\tString deadline_date_str = input.nextLine();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdeadline_date= Date.valueOf(deadline_date_str);\r\n\t\t\t\t\t\tupdate_deadline_date = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * @exception Throws exception if the users input for deadline date is not in the correct format\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t\t System.out.println(\"The date must be in the format YYYY-MM-DD (eg. 2013-01-13). Please try again\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Updates the value\r\n\t\t\t\tPreparedStatement ps_update_date = conn.prepareStatement(\r\n\t\t\t\t\t\t\"UPDATE project_statuses SET completion_date = ? WHERE project_id = ?;\");\r\n\t\t\t\tps_update_date.setDate(1, deadline_date);\r\n\t\t\t\tps_update_date.setInt(2, project_id);\r\n\t\t\t\tps_update_date.executeUpdate();\r\n\t\t\t\tSystem.out.println(\"\\nUpdated deadline date to \" + deadline_date + \".\\n\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (update_field == 3) {\r\n\t\t\t\tSystem.out.print(\"In order to set the status to complete select finalize project from the project menu.\\n\"\r\n\t\t\t\t\t\t+ \"Select status number from list of statuses: \\n\");\r\n\t\t\t\tString[] statuses = new String[] {\"Initialised\", \"Paperwork Phase\", \"Foundations\", \"Primary Construction\", \"Finishes\"};\r\n\t\t\t\tfor (int i = 0; i < 5; i ++) {\r\n\t\t\t\t\tSystem.out.println((i + 1) + \". \" + statuses[i]);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// Allows a user to select a new status\r\n\t\t\t\tBoolean update_status = true;\r\n\t\t\t\tint status_index = 0;\r\n\t\t\t\twhile (update_status == true) {\r\n\t\t\t\t\tSystem.out.println(\"Status No: \");\r\n\t\t\t\t\tString status_index_str = input.nextLine();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tstatus_index = Integer.parseInt(status_index_str);\r\n\t\t\t\t\t\tfor (int i = 0; i < 5; i ++) {\r\n\t\t\t\t\t\t\tif (status_index == i) { \r\n\t\t\t\t\t\t\t\tupdate_status = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (update_status == true) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Please only select an available status numbers.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * @exception Throws exception if the users input for status index is not a number\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t\t System.out.println(\"The status number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\r\n\t\t\t\tPreparedStatement ps_status = conn.prepareStatement(\r\n\t\t\t\t\t\t\"UPDATE project_statuses SET status = ? WHERE project_id = ?;\");\r\n\t ps_status.setString(1, statuses[status_index - 1]);\r\n\t ps_status.setInt(2, project_id);\r\n\t ps_status.executeUpdate();\r\n\t System.out.println(\"\\nThe status has been updated to \" + statuses[status_index -1] + \".\\n\");\r\n\t\t\t}\r\n\t\t/**\r\n\t\t * @exception If the table entry cannot be updated due to database constrains then the SQLException is thrown\r\n\t\t */\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "@Test\n\tpublic void saveProjects() throws ParseException {\n\t\tproject.setEstimates(5);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate parsed = format.parse(\"20110210\");\n\t\tjava.sql.Date sql = new java.sql.Date(parsed.getTime());\n\t\tproject.setdRequested(sql);\n\t\tproject.setdRequired(sql);\n\t\tproject.setCritical(true);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tProjectKeyContacts contacts = new ProjectKeyContacts();\n\t\tcontacts.setEmail(\"assdasd.gmail.com\");\n\t\tcontacts.setFname(\"sdsd\");\n\t\tcontacts.setLname(\"asdasd\");\n\t\tcontacts.setPhone(\"asd\");\n\t\tcontacts.setRole(\"asda\");\n\t\tcontacts.setTeam(\"saad\");\n\t\tproject.setContacts(contacts);\n\t\tProjectDetails det = new ProjectDetails();\n\t\tdet.setDescription(\"asdsd\");\n\t\tdet.setName(\"asd\");\n\t\tdet.setName(\"asdad\");\n\t\tdet.setSummary(\"asdd\");\n\t\tproject.setProjectDetails(det);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tassertEquals(controller.saveProject(project).getStatusCode(), HttpStatus.CREATED);\n\t}", "public ProjectCart updateProjectCart(ProjectCart pc) {\n Session session = ConnectionFactory.getInstance().getSession();\n boolean tf = true;\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(pc);\n\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n return pc;\n }", "private AppTProject populateAndSaveProjectDetails(Project project, boolean isNewProject) {\r\n\t\t// Project Details\r\n\t\tAppTProject appTProject = null;\r\n\t\tif (isNewProject) {\r\n\t\t\t// Creates a new Project Entity\r\n\t\t\tappTProject = new AppTProject();\r\n\t\t\tappTProject.setCreatedDate(new Date(System.currentTimeMillis()));\r\n\t\t} else {\r\n\t\t\t// Retrieves the existing Project Entity \r\n\t\t\tappTProject = projectRepository.getOne(project.getProjectId());\r\n\t\t\tappTProject.setModifiedDate(new Date(System.currentTimeMillis()));\r\n\t\t}\r\n\t\tappTProject.setProjectName(project.getProjectName());\r\n\t\tappTProject.setPriority(project.getPriority());\r\n\t\tappTProject.setStartDate(project.getStartDate());\r\n\t\tappTProject.setEndDate(project.getEndDate());\r\n\t\tappTProject.setActive(project.getActive());\r\n\t\tif (null != project.getUser()) {\r\n\t\t\tAppTUser appTUser = new AppTUser();\r\n\t\t\tBeanUtils.copyProperties(project.getUser(), appTUser);\r\n\t\t\tappTProject.setUser(appTUser);\r\n\t\t}\r\n\t\treturn projectRepository.save(appTProject);\r\n\t}", "int insert(Project record);", "public boolean addProject(Project p) {\n try {\n String insert = \"INSERT INTO PROJECTS\"\n + \"(CLIENT,DESCRIPTION,HOURS,STARTDATE,DUEDATE,INVOICESENT,CLIENT_ID,PROJECT_ID) \"\n + \"VALUES(?,?,?,?,?,?,?,PROJECTS_SEQ.NEXTVAL)\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(insert);\n ps.setString(1, p.getClientId());\n ps.setString(2, p.getDescription());\n ps.setString(3, p.getHours());\n ps.setString(4, p.getStartdate());\n ps.setString(5, p.getDuedate());\n ps.setString(6, p.getInvoicesent());\n ps.setString(7, p.getClientId());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "@Override\n public void onClick(View view) {\n String projectName = etProjectName.getText().toString();\n String projectOwner = etProjectOwner.getText().toString();\n String projectDescription = etProjectDescription.getText().toString();\n long projectId = 0; // This is just to give some value. Not used when saving new project because auto-increment in DB for this value.\n\n\n // USerid and projectname are mandatory parameters\n if( userId != 0 && projectName != null) {\n newProject = new Project(projectId, userId, projectName, projectOwner, projectDescription);\n dbHelper.saveProject(newProject);\n// showToast(\"NewprojectId:\" + newProject.projectId+ \"-->UserId: \"+ userId + \"--> ProjectName\" + newProject.projectName +\"->Owner\"+newProject.projectOwner);\n dbHelper.close();\n\n // SIIRRYTÄÄN PROJEKTILISTAUKSEEN\n Intent newProjectList = new Intent( NewProject.this, ProjectListActivity.class);\n newProjectList.putExtra(\"userId\", userId);\n startActivity(newProjectList);\n }\n\n }", "public void save(Project project) {\n\t\tcreate(project);\n\t}", "public void setProject(int projId) {\n projectId = projId;\n titleTextView.setText(Project.projects[projectId].getTitle());\n summaryTextView.setText(Project.projects[projectId].getSummary());\n favCheckBox.setChecked(Project.projects[projectId].isFavorite());\n Log.d(\"favorite setproject \",favCheckBox.isChecked()+\" \" + Project.projects[projectId].isFavorite());\n\n }", "public void update(int index, int id, String newName, String newField) throws DisciplineRepoException {\r\n if (index < this.disciplines.size() && index >= 0) {\r\n this.disciplines.get(index).setName(newName);\r\n this.disciplines.get(index).setField(newField);\r\n this.disciplines.get(index).setId(id);\r\n } else {\r\n throw new DisciplineRepoException(\"Discipline repo index out of bounds...\");\r\n }\r\n }", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/projects/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Project> replaceProject(\n @Path(\"name\") String name, \n @Body Project body);", "int updateByPrimaryKey(Ltsprojectpo record);", "int updateByPrimaryKeySelective(UserOperateProject record);", "public void updateProject(\n int projectId,\n String newProjectTitle,\n String newAssigneeName,\n String newSupervisorName,\n LocalDate newDeadline,\n String newDescription,\n Project.Importance importance)\n throws NoSignedInUserException, SQLException, InexistentProjectException,\n InexistentDatabaseEntityException, UnauthorisedOperationException,\n InexistentUserException, DuplicateProjectNameException, UnregisteredMemberRoleException,\n InvalidDeadlineException {\n User currentUser = getMandatoryCurrentUser();\n Project project = getMandatoryProject(projectId);\n guaranteeUserIsSupervisor(\n currentUser, project, \"change data of project\", \"they are not the \" + \"supervisor\");\n User assignee = getMandatoryUser(newAssigneeName);\n guaranteeUserIsTeamMember(assignee, project.getTeamId(), \"be assignee\");\n User supervisor = getMandatoryUser(newSupervisorName);\n guaranteeUserIsTeamMember(supervisor, project.getTeamId(), \"be supervisor\");\n // check that there is no other project with the new name\n if (!newProjectTitle.equals(project.getTitle())\n && projectRepository.getProject(project.getTeamId(), newProjectTitle).isPresent()) {\n throw new DuplicateProjectNameException(newProjectTitle);\n }\n // check that the new deadline of the project is valid\n if (!project.getDeadline().equals(newDeadline) && isOutdatedDate(newDeadline)) {\n throw new InvalidDeadlineException();\n }\n // update project\n project.setAssigneeId(assignee.getId());\n project.setSupervisorId(supervisor.getId());\n project.setDescription(newDescription);\n project.setTitle(newProjectTitle);\n project.setDeadline(newDeadline);\n project.setImportance(importance);\n projectRepository.updateProject(project);\n support.firePropertyChange(\n ProjectChangeablePropertyName.UPDATE_PROJECT.toString(), OLD_VALUE, NEW_VALUE);\n }", "private void cloneProject(Company cloneCompany, Project originalProj, Project cloneProj,\n\t Set<Staff> originalStaffSet, Map<Long, Staff> oldIdToNewStaff) {\n\n\t// Get the set of original staff,\n\t// loop through the processed map and\n\t// get equivalent clones given the ID.\n\tcloneProj.setId(0);\n\tcloneProj.setCompany(cloneCompany);\n\tcloneProj.setAuditLogs(null);\n\n\t// Update collections.\n\tSet<Staff> clonedStaffSet = getClonedEquivalent(originalStaffSet, oldIdToNewStaff);\n\tcloneProj.setAssignedFields(null);\n\tcloneProj.setAssignedTasks(null);\n\tcloneProj.setAssignedStaff(clonedStaffSet);\n\tthis.projectDAO.create(cloneProj);\n }", "public int DSAddProject(String ProjectName, String ProjectLocation);", "@HTTP(\n method = \"PUT\",\n path = \"/apis/config.openshift.io/v1/projects/{name}\",\n hasBody = true\n )\n @Headers({ \n \"Content-Type: application/json\",\n \"Accept: */*\"\n })\n KubernetesCall<Project> replaceProject(\n @Path(\"name\") String name, \n @Body Project body, \n @QueryMap ReplaceProject queryParameters);", "int updateByPrimaryKey(ParkCurrent record);", "public void openUpProject(Subproject project) {\n\t\tSubprojectField field=project.setChip(current.removeChip());\n\t\tcurrent.raiseScore(field.getAmountSZT());\n\t}", "public String handleEdit()\n throws webschedulePresentationException, HttpPresentationException\n {\t\t \n \n Project project = null;\n\n \n \n // Try to get the proj by its ID\n try {\n\t project = ProjectFactory.findProjectByID(this.getProjectID());\n\t \n\t String title = project.getProj_name();\n\t System.out.println(\"project title: \"+title);\n\t\n } catch(Exception ex) {\n this.getSessionData().setUserMessage(\"Please choose a valid PROJECT to edit\");\n throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE);\n }\n \n // If we got a valid project then try to save it\n // If any fields were missing then redisplay the edit page, \n // otherwise redirect to the project catalog page\n try {\n saveProject(project);\n throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE);\n } catch(Exception ex) {\n return showPage(\"You must fill out all fields to edit this project\");\n } \n }", "public void editarPrograma(Programa prog) throws Exception {\r\n\t\tEntityManager em = AdministradorEntityManager.getEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.merge(prog);\r\n\t\tem.getTransaction().commit();\t\t\r\n\t}", "public static void updateDueDate(){\n projectChosen = getQuestionInput();\r\n try {\r\n Connection myConn = DriverManager.getConnection(url, user, password);\r\n String sqlInsert = \"UPDATE projects SET due_date = ? \" +\r\n \"WHERE project_num = \" + projectChosen;\r\n\r\n PreparedStatement pstmt = myConn.prepareStatement(sqlInsert);\r\n pstmt.setString(1, NewProject.due_date);\r\n pstmt.executeUpdate(); //Execute update of database.\r\n pstmt.close();\r\n\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "int updateByPrimaryKey(SysTeam record);", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}", "void setProject(InternalActionContext ac, HibProject project);", "@Test\n public void testUpdateOrg() {\n Organization org = new Organization();\n org.setOrgId(1);\n org.setOrgName(\"Avenger\");\n org.setDescription(\"blah blah\");\n org.setAddress(ad);\n dao.addOrg(org);\n org.setOrgName(\"X-Men\");\n assertNotEquals(org, dao.getOrg(org.getOrgId()));\n Organization fromDao = dao.updateOrg(org);\n assertEquals(org, fromDao);\n }", "private static void finalise_project() {\r\n\t\tDate deadline_date = null;\r\n\t\tint paid = 0;\r\n\t\tint charged = 0;\r\n\t\tString project_name = \"\";\r\n\t\tString email = \"\";\r\n\t\tString number = \"\";\r\n\t\tString full_name = \"\";\r\n\t\tString address = \"\";\r\n\t\tDate completion_date = null;\r\n\t\t\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\t// Allows for user input\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Select a project ID to modify it.\");\r\n\t\t\t\r\n\t\t\t// Prints out all project ids and names that are not complete:\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id INNER JOIN people ON projects.project_id = people.projects \"\r\n\t\t\t\t\t+ \"WHERE project_statuses.status <>'Complete';\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t// This creates a list of project ids to check that the user only selects an available one\r\n\t\t\tArrayList<Integer> project_id_list = new ArrayList<Integer>(); \r\n\t\t\twhile (project_rset.next()) {\r\n\t\t\t\tSystem.out.println(\"ID: \" + project_rset.getInt(\"project_id\") + \", Name:\" + project_rset.getString(\"project_name\"));\r\n\t\t\t\tproject_id_list.add(project_rset.getInt(\"project_id\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Allows user to select a project to finalize \r\n\t\t\tBoolean select_project = true;\r\n\t\t\tint project_id = 0;\r\n\t\t\twhile (select_project == true) {\r\n\t\t\t\tSystem.out.println(\"Project ID: \");\r\n\t\t\t\tString project_id_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tproject_id = Integer.parseInt(project_id_str);\r\n\t\t\t\t\tfor (int i = 0; i < project_id_list.size(); i ++) {\r\n\t\t\t\t\t\tif (project_id == project_id_list.get(i)) { \r\n\t\t\t\t\t\t\tselect_project = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (select_project == true) {\r\n\t\t\t\t\t\tSystem.out.println(\"Please only select an available project id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for project number is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The project number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Gets values needed from the selected project\r\n\t\t\tResultSet project_select_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_select_rset.next()) {\r\n\t\t\t\tif (project_select_rset.getInt(\"project_id\") == project_id) {\r\n\t\t\t\t\tproject_id = project_select_rset.getInt(\"project_id\");\r\n\t\t\t\t\tproject_name = project_select_rset.getString(\"project_name\");\r\n\t\t\t\t\tdeadline_date = project_select_rset.getDate(\"deadline_date\");\r\n\t\t\t\t\tpaid = project_select_rset.getInt(\"paid\");\r\n\t\t\t\t\tcharged = project_select_rset.getInt(\"charged\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Gets values needed from related customer\r\n // This gets the created project's table id to use to update the people and project_statuses tables \r\n\t\t\tString strSelectCustomer = String.format(\"SELECT * FROM people WHERE projects = '%s'\", project_id);\r\n\t\t\tResultSet customer_rset = stmt.executeQuery(strSelectCustomer);\r\n\t\t\twhile (customer_rset.next()) {\r\n\t\t\t\tfull_name = customer_rset.getString(\"name\") + \" \" + customer_rset.getString(\"surname\");\r\n\t\t\t\taddress = customer_rset.getString(\"address\");\r\n\t\t\t\temail = customer_rset.getString(\"email_address\");\r\n\t\t\t\tnumber = customer_rset.getString(\"telephone_number\");\r\n\t\t\t}\r\n\r\n\t\t\t// This updates the completion date\r\n\t\t\tBoolean update_completion_date = true;\r\n\t\t\twhile (update_completion_date == true) {\r\n\t\t\t\tSystem.out.print(\"Date Complete (YYYY-MM-DD): \");\r\n\t\t\t\tString completion_date_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcompletion_date = Date.valueOf(completion_date_str);\r\n\t\t\t\t\tupdate_completion_date = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for the completion date is in the wrong format\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The date must be in the format YYYY-MM-DD (eg. 2013-01-13). Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Updates the value\r\n\t\t\tPreparedStatement ps_finalise = conn.prepareStatement(\r\n\t\t\t\t\t\"UPDATE project_statuses SET completion_date = ?, status = ? WHERE project_id = ?;\");\r\n\t\t\tps_finalise.setDate(1, completion_date);\r\n\t\t\tps_finalise.setString(2, \"Complete\");\r\n\t\t\tps_finalise.setInt(3, project_id);\r\n\t\t\tps_finalise.executeUpdate();\r\n\t\t\tSystem.out.println(\"\\nUpdated completion date to \" + completion_date + \".\\n\");\r\n\t\t}\t\r\n\t\t/**\r\n\t\t * @exception If the project status table cannot be updated because of field constraints then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\tcatch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t\t// Calculates the amount due and prints out an invoice\r\n\t\tint due = charged - paid;\r\n\t\tif (due > 0) {\r\n\t\t\tString content = \"\\t\\t\\t\\tInvoice\\n\" + \r\n\t\t\t\t\t\"\\nDate: \" + completion_date +\r\n\t\t\t\t\t\"\\n\\nName: \" + full_name +\r\n\t\t\t\t\t\"\\nContact Details: \" + email + \"\\n\" + number + \r\n\t\t\t\t\t\"\\nAddress: \" + address + \r\n\t\t\t\t\t\"\\n\\nAmount due for \" + project_name + \r\n\t\t\t\t\t\":\\nTotal Cost:\\t\\t\\t\\t\\t\\t\\tR \" + charged + \r\n\t\t\t\t\t\"\\nPaid: \\t\\t\\t\\t\\t\\t\\tR \" + paid +\r\n\t\t\t\t\t\"\\n\\n\\nDue: \\t\\t\\t\\t\\t\\t\\tR \" + due;\r\n\t\t\tCreateFile(project_name);\r\n\t\t\tWriteToFile(project_name, content);\r\n\t\t}\r\n\t}", "@Override\n\tpublic Integer removeProject(Integer projId) {\n\t\treturn sqlSession.delete(\"cn.sep.samp2.project.removeProject\", projId);\n\t}", "private void updateDB() {\n }", "public void edit_carrer_profile_project(Connection con, int user_id,int carrer_profile_project_id,String project_name,Date project_start_date,Date project_end_date,String project_organisation_associated_with,String project_cast_associated_with,String project_website_link,String project_instgram_link,String project_facebook_link,String project_twitter_link,String project_other_link,String project_description,HashMap carrer_profile_media)\n\t{\n\t\t\n\t\t// connect insta for instagram_followers etc..\t\n\t\tResultSet rs; \n\t\tPreparedStatement pst;\n\t\t DateFormat dateFormat = new SimpleDateFormat(\"yyyy-mm-dd\"); \n\t\t\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tpst=con.prepareStatement(\"update carrer_profile_project set project_name=?,project_start_date=?,project_end_date=?, project_organisation_associated_with=?,project_cast_associated_with=?,project_website_link=?,project_instgram_link=?,project_facebook_link=?,project_twitter_link=?,project_other_link=?,project_description=? where e_id=? and carrer_profile_project_id=?\");\n\t\t\tpst.setString(1, project_name);\n\t\t\tpst.setDate(2, new java.sql.Date( project_start_date.getTime()));\n\t\t\tpst.setDate(3, new java.sql.Date(project_end_date.getTime()));\n\t\t\tpst.setString(4, project_organisation_associated_with); // csv\n\t\t\tpst.setString(5, project_cast_associated_with);//csv\n\t\t\tpst.setString(6, project_website_link);\n\t\t\tpst.setString(7, project_instgram_link);\n\t\t\tpst.setString(8, project_facebook_link); \n\t\t\tpst.setString(9, project_twitter_link);\n\t\t\tpst.setString(10, project_other_link); //csv\n\t\t\tpst.setString(11, project_description);\n\t\t\tpst.setInt(12, user_id);\n\t\t\tpst.setInt(13, carrer_profile_project_id);\n\t\t\t\n\t\t\t//pst=con.prepareStatement(\"update basic_profile set name=?,whatsapp_number=?,calling_number=?,email_id=?,website_link=?,instgram_link=?,facebook_link=?,twitter_link=?,other_link=?,about_us=?,plot_or_building_number=?,building_name=?,floor_number=?,street,locality=?,landmark=?,city=?,state=?,pincode=?,country=?,google_map_link=?,logo=?) where eid=? \");\n\t\t\t//create table database.carrer_profile_media( e_id integer, carrer_profile_id integer,carrer_profile_type String, media_id integer,media longblob,media_type varchar(20))\n\t\t\t\n\t\t\tif(!carrer_profile_media.isEmpty())\n\t\t\t\tadd_carrer_profile_media(con, user_id,carrer_profile_project_id, \"carrer_profile_project\", carrer_profile_media);\n\t\t\t\t\n\t\t\t\tpst.execute();\n\t\t\t\t\n\t\t\t}catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\t\n\t\t\t// create carrer project profile detail image and store it \n\t\t} \n\t\t\n\t\tArrayList<String> values=new ArrayList<String>();\n\t\tvalues.add(Integer.toString(user_id));\n\t\tvalues.add(Integer.toString(carrer_profile_project_id));\n\t\tvalues.add(project_name);\n\t\tvalues.add(dateFormat.format(project_start_date));\n\t\tvalues.add(dateFormat.format(project_end_date));\n\t\tvalues.add(project_organisation_associated_with);\n\t\t\n\t\tvalues.add(project_cast_associated_with);\n\t\tvalues.add(project_website_link);\n\t\tvalues.add(project_instgram_link);\n\t\tvalues.add(project_facebook_link);\n\t\tvalues.add(project_twitter_link);\n\t\tvalues.add(project_other_link);\n\t\tvalues.add(project_description);\n\t\t\n\t\t\n\t\tArrayList<String> labels=new ArrayList<String>();\n\t\tlabels.add(\"user_id\");\n\t\tlabels.add(\"carrer_profile_project_id\");\n\t\tlabels.add(\"project_name\");\n\t\tlabels.add(\"project_start_date\");\n\t\tlabels.add(\"project_end_date\");\n\t\tlabels.add(\"project_organisation_associated_with\");\n\t\t\n\t\tlabels.add(\"project_cast_associated_with\");\n\t\tlabels.add(\"project_website_link\");\n\t\tlabels.add(\"project_instgram_link\");\n\t\tlabels.add(\"project_facebook_link\");\n\t\tlabels.add(\"project_twitter_link\");\n\t\tlabels.add(\"project_other_link\");\n\t\tlabels.add(\"project_description\");\n\t\t// create carrer project profile detail image and store it \n\t\tmake_snapshot_carrer_profile(values, labels, con, user_id);\n\t\t\t\n\t}", "int updateByPrimaryKeySelective(ProjGroup record);", "int insert(CliStaffProject record);", "@Override\n\tpublic Integer delProject(ProjectInfo project) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProject\", project);\n\t}", "public AddProject() {\n try\n {\n infDB = new InfDB(\"\\\\Users\\\\Oliver\\\\Documents\\\\Skola\\\\Mini_sup\\\\Realisering\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n \n try\n {\n infDB = new InfDB(\"C:\\\\Users\\\\TP300LA-C4034\\\\Desktop\\\\Delkurs 4, Lill-supen\\\\InformatikDB\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n getPlatforms();\n initComponents();\n setLocationRelativeTo(null);\n \n }", "public boolean addTask(Project p) {\n try {\n String update = \"INSERT INTO TASKS (PROJECT_ID,HOURS_ADDED,DESCRIPTION,HOURS) VALUES(?,?,?,?) \";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(update);\n ps.setString(1, p.getProjectId());\n ps.setString(2, p.getHoursadded());\n ps.setString(3, p.getDescription());\n ps.setString(4, p.getHours());\n\n ps.executeUpdate();\n\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "@Override\r\n\tpublic int insertProject(Project p) throws MyException {\n\t\tlogger.debug(\"프로젝트 생성전no:\"+p.getProjectNo());\r\n\t\tint result=dao.insertProject(session, p);\r\n\t\tif(result==0) {\r\n\t\t\tthrow new MyException(\"프로젝트 삽입에러\");\r\n\t\t}\r\n\t\tlogger.debug(\"프로젝트 생성후no:\"+p.getProjectNo());\r\n\t\t\r\n\t\tp.setProjectNo(p.getProjectNo());\r\n\t\tresult=dao.insertProjectMember(session,p);\r\n\t\t\r\n\t\tif(result==0){\r\n\t\t\tthrow new MyException(\"프로젝트멤버 삽입에러\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }", "public void deleteProjectRecord(int pgId) {\n String sql = \"DELETE FROM Project_Commit_Record WHERE pgid=?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void addProject(Project p){\n this.projects.addProject(p);\n }", "public void addNewProject(final String name) {\n Project p = new Project(name);\n ApplicationWideData.addNewProject(p);\n\n Callback<Response> responseCallback = new Callback<Response>() {\n @Override\n public void success(Response response, Response response2) {\n context.refreshLists();\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(\"RetrofitError\", \"Actions: AddNewProject: \"+error.getMessage());\n }\n };\n\n// boolean success = LocalDataSaver.addProject(p);\n// if (success) {\n// Toast.makeText(context, \"Successful adding of new project: \" + name + \" to local database\", Toast.LENGTH_LONG).show();\n// }\n if (!ApplicationWideData.getManualSync()) {\n service.addNewProject(p, userID, responseCallback);\n }\n else{\n LocalDataSaver.addNewSelectable(p, \"Project\");\n context.refreshLists();\n }\n LocalDataSaver.saveProject(p);\n Log.wtf(\"Added project\", \"to added table\");\n\n\n Log.wtf(\"Size of added table\", LocalDataRetriver.getAllAdded().size() + \"\");\n\n }", "int updateByPrimaryKey(Depart record);", "public static void updateDetails(Project proj) {\n System.out.print(\"Whose details do you want to update (contractor / architect / client): \");\n String type = input.nextLine();\n\n System.out.print(\"\\nContact number: \");\n String contactNo = input.nextLine();\n\n System.out.print(\"\\nEmail address : \");\n String email = input.nextLine();\n\n System.out.print(\"\\nAddress: \");\n String address = input.nextLine();\n\n if (type == \"architect\") {\n proj.architect.updateDetails(contactNo, email, address);\n } else if (type == \"contractor\") {\n proj.contractor.updateDetails(contactNo, email, address);\n } else if (type == \"client\") {\n proj.client.updateDetails(contactNo, email, address);\n }\n }", "Update withLabPlanId(String labPlanId);", "private static void add_project() {\r\n\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\t//List of building types\r\n\t\t\tString[] building_types = new String[] {\"House\", \"Apartment Block\", \"Commercial Property\", \"Industrial Property\", \"Agricultural Building\"};\r\n\t\t\t\r\n\t\t\t// Variables that are needed\r\n\t\t\tint project_id = 0;\r\n\t\t\tString project_name = \"\";\r\n\t\t\tString building_type = \"\";\r\n\t\t\tString physical_address = \"\";\r\n\t\t\tint erf_num = 0;\r\n\t\t\tString cust_surname = \"\";\r\n\t\t\tDate deadline_date = null;\r\n\t\t\tint charged = 0;\r\n\t\t\t\r\n\t\t\t// Allows for user input\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//So first we need to select the correct customer\r\n\t\t\tString strSelect = \"SELECT * FROM people WHERE type = 'Customer'\";\r\n\t\t\tResultSet rset = stmt . executeQuery ( strSelect );\r\n\t\t\t\r\n\t\t\t// Loops through available customers from the people table so that the user can select one\r\n\t\t\tSystem.out.println(\"\\nSelect a customer for the project by typing the customers number.\");\r\n\t\t\t// This creates a list of customer ids to check that the user only selects an available one\r\n\t\t\tArrayList<Integer> cust_id_list = new ArrayList<Integer>(); \r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\tSystem.out.println ( \r\n\t\t\t\t\t\t\"Customer Num: \" + rset.getInt(\"person_id\") + \", Fullname: \" + rset.getString(\"name\") + \" \" + rset.getString(\"surname\"));\r\n\t\t\t\tcust_id_list.add(rset.getInt(\"person_id\"));\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a customer\r\n\t\t\tBoolean select_cust = true;\r\n\t\t\tint customer_id = 0;\r\n\t\t\twhile (select_cust == true) {\r\n\t\t\t\tSystem.out.println(\"Customer No: \");\r\n\t\t\t\tString customer_id_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcustomer_id = Integer.parseInt(customer_id_str);\r\n\t\t\t\t\tfor (int i = 0; i < cust_id_list.size(); i ++) {\r\n\t\t\t\t\t\tif (customer_id == cust_id_list.get(i)) { \r\n\t\t\t\t\t\t\tselect_cust = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (select_cust == true) {\r\n\t\t\t\t\t\tSystem.out.println(\"Please only select an available customer id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for customer id is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The customer number cannot contain letters or symbols. Please try again\");\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// Prints out all available building types form the building type list\r\n\t\t\tSystem.out.print(\"Select a building type by typing the number: \\n\");\r\n\t\t\tfor (int i=0; i < 5; i ++) {\r\n\t\t\t\tSystem.out.println((i + 1) + \": \" + building_types[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a building type\r\n\t\t\tBoolean select_building = true;\r\n\t\t\tint building_index = 0;\r\n\t\t\twhile (select_building == true) {\r\n\t\t\t\tSystem.out.println(\"Building type no: \");\r\n\t\t\t\tString building_type_select_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbuilding_index = Integer.parseInt(building_type_select_str) - 1;\r\n\t\t\t\t\tbuilding_type = building_types[building_index];\r\n\t\t\t\t\tselect_building = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for building type is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The building type number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// User gets to decide whether they want an automatically generated name.\r\n\t\t\tBoolean select_project_name = true;\r\n\t\t\twhile (select_project_name == true) {\r\n\t\t\t\tSystem.out.println(\"Would you like to have the project automatically named (y or n)?\");\r\n\t\t\t\tString customer_project_name_choice = input.nextLine();\r\n\t\t\t\tif (customer_project_name_choice.equals(\"y\")){\r\n\t\t\t\t\t// Gets the customers surname for the project name\r\n\t\t\t\t\tString strSelectCustSurname = String.format(\"SELECT surname FROM people WHERE person_id = '%s'\", customer_id);\r\n\t\t\t\t\tResultSet cust_surname_rset = stmt . executeQuery ( strSelectCustSurname );\r\n\t\t\t\t\twhile (cust_surname_rset.next()) {\r\n\t\t\t\t\t\tcust_surname = cust_surname_rset.getString(\"surname\");\r\n\t\t\t\t\t\tproject_name = building_type + \" \" + cust_surname;\r\n\t\t\t\t\t\tSystem.out.println(\"Project name: \" + project_name);\r\n\t\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (customer_project_name_choice.equals(\"n\")) {\r\n\t\t\t\t\tSystem.out.println(\"Provide project name: \");\r\n\t\t\t\t\tproject_name = input.nextLine();\r\n\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!customer_project_name_choice.equals(\"y\") && !customer_project_name_choice.equals(\"n\")){\r\n\t\t\t\t\tSystem.out.println(\"You can only select either y or n. Please try again\");\r\n\t\t\t\t\tselect_project_name = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter an erf number\r\n\t\t\tBoolean select_erf_num = true;\r\n\t\t\twhile (select_erf_num == true) {\r\n\t\t\t\tSystem.out.print(\"ERF number: \");\r\n\t\t\t\tString erf_num_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\terf_num = Integer.parseInt(erf_num_str);\r\n\t\t\t\t\tselect_erf_num = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for erf number is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The erf number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a physical address\r\n\t\t\tSystem.out.print(\"Physical Address: \");\r\n\t\t\tphysical_address = input.nextLine();\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a date\r\n\t\t\tBoolean select_deadline_date = true;\r\n\t\t\twhile (select_deadline_date == true) {\r\n\t\t\t\tSystem.out.print(\"Deadline Date (YYYY-MM-DD): \");\r\n\t\t\t\tString deadline_date_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdeadline_date= Date.valueOf(deadline_date_str);\r\n\t\t\t\t\tselect_deadline_date = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for deadline date is not in the correct format\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The date must be in the format YYYY-MM-DD (eg. 2013-01-13). Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter a charged amount \r\n\t\t\tBoolean select_charged = true;\r\n\t\t\twhile (select_charged == true) {\r\n\t\t\t\tSystem.out.print(\"Total Cost: R \");\r\n\t\t\t\tString charged_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcharged = Integer.parseInt(charged_str);\r\n\t\t\t\t\tselect_charged = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for the charged amount is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The charged amount cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the projects table\r\n PreparedStatement ps = conn.prepareStatement(\"INSERT INTO projects (project_name , building_type, physical_address, erf_num) VALUES(?,?,?,?)\");\r\n ps.setString(1, project_name);\r\n ps.setString(2, building_type);\r\n ps.setString(3, physical_address);\r\n ps.setInt(4, erf_num);\r\n \r\n // Executes the statement\r\n ps.executeUpdate();\r\n \r\n // This gets the created project's table id to use to update the people and project_statuses tables \r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects WHERE project_name = '%s'\", project_name);\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_rset.next()) {\r\n\t\t\t\tproject_id = project_rset.getInt(\"project_id\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the people table\r\n\t\t\tPreparedStatement ps_customer = conn.prepareStatement(\r\n\t\t\t\t\t\"UPDATE people SET projects = ? WHERE person_id = ?;\");\r\n\t\t\tps_customer.setInt(1, project_id);\r\n\t\t\tps_customer.setInt(2, customer_id);\r\n\t\t\tps_customer.executeUpdate();\r\n \r\n\t\t\t// This adds all the values to a prepared statement to update the project_statuses table\r\n PreparedStatement ps_status = conn.prepareStatement(\"INSERT INTO project_statuses (charged , deadline_date, project_id) VALUES(?,?,?)\");\r\n ps_status.setInt(1, charged);\r\n ps_status.setDate(2, deadline_date);\r\n ps_status.setInt(3, project_id);\r\n ps_status.executeUpdate();\r\n\r\n // Once everything has been added to the tables the project that has been added gets printed out\r\n\t\t\tResultSet project_added_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_added_rset.next()){\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"\\nProjects Added: \\n\" +\r\n\t\t\t\t\t\t\"Project Sys ID: \" + project_added_rset.getInt(\"project_id\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Project Name: \" + project_added_rset.getString(\"project_name\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Building Type: \" + project_added_rset.getString(\"building_type\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Physical Address: \" + project_added_rset.getString(\"physical_address\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Erf Number: \" + project_added_rset.getInt(\"erf_num\") + \"\\n\");\r\n\t\t\t}\r\n\t\t/**\r\n\t\t * @exception If any of the table entries cannot be created due to database constrains then the SQLException is thrown\r\n\t\t */\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "@TransactionAttribute(TransactionAttributeType.REQUIRED)\r\n\tpublic void hechoFase(long idProject) throws ConectelException {\r\n\t\tProyectoDO project = entityManager.find(ProyectoDO.class, idProject);\r\n\t\tif (project == null) {\r\n\t\t\tthrow new ConectelException(\"El proyecto no existe\");\r\n\t\t}\r\n\t\tEstadoDO estado = new EstadoDO(EstadoProyecto.DATOS_GRLS.getId());\r\n\t\tproject.setEstado(estado);\r\n\t\tentityManager.merge(project);\r\n\t}", "private void changeProject(IProject newProject) {\n mProject = newProject;\n\n // enable types based on new API level\n enableTypesBasedOnApi();\n\n // update the folder name based on API level\n resetFolderPath(false /*validate*/);\n\n // update the Type with the new descriptors.\n initializeRootValues();\n\n // update the combo\n updateRootCombo(getSelectedType());\n\n validatePage();\n }", "int insert(ProjGroup record);", "int updateByPrimaryKey(ProEmployee record);", "public void setProject(org.eclipse.core.resources.IProject newProject) {\n \t\tproject = newProject;\n \t}", "private void setActiveValue(int projectId, String value) {\n\t\tConnection conn = getConnection();\n\t\tPreparedStatement stmtUpdate = null;\n\t\ttry {\n\t\t\tStringBuilder sbUpdate = new StringBuilder(UPDATE)\n\t\t\t\t.append(projectTableName)\n\t\t\t\t.append(SET)\n\t\t\t\t.append(projectActiveColumnName).append(EQUAL).append(value) //$NON-NLS-1$\n\t\t\t\t.append(WHERE)\n\t\t\t\t.append(projectIdColumnName).append(EQUAL).append(projectId); //$NON-NLS-1$\n\n\t\t\tstmtUpdate = conn.prepareStatement(sbUpdate.toString());\n\t\t\tstmtUpdate.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException ex) {\n\t\t\tthrow new DAOException(ex);\n\t\t\t\n\t\t} finally {\n\t\t\tDbUtils.closeQuietly(conn);\n\t\t\tDbUtils.closeQuietly(stmtUpdate);\n\t\t}\n\t\t\n\t}", "public void setProject(Project project){\n\t\tthis.project = project;\n\t\tif (project!=null){\n\t\t\tfor (final Iterator it = project.getRoot().getProgresses ().iterator ();it.hasNext ();){\n\t\t\t\tnew com.ost.timekeeper.actions.commands.DeleteProgress ((Progress)it.next ()).execute ();\n\t\t\t}\n\t\t}\n\t\tif (project!=null){\n\t\t\tthis.setSelectedItem (project.getRoot());\n\t\t} else {\n\t\t\tthis.setSelectedItem (null);\n\t\t}\n\t\t//notifica cambiamento di progetto\n\t\tsynchronized (this){\n\t\t\tthis.setChanged();\n\t\t\tthis.notifyObservers(ObserverCodes.PROJECTCHANGE);\n\t\t}\n\t}", "int updateByPrimaryKey(SysOrganization record);", "int insert(ProjectOtherView record);", "@Override\n public void update(Person p) throws SQLException, ClassNotFoundException\n {\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"Id\", p.getId()); // old data, find key Id\n\n BasicDBObject newDocument = new BasicDBObject();\n\n// newDocument.put(\"Id\", p.getId()); // new data\n newDocument.put(\"FName\", p.getFName()); // new data\n newDocument.put(\"LName\", p.getLName()); // new data\n newDocument.put(\"Age\", p.getAge()); // new data\n System.out.println(newDocument);\n\n BasicDBObject updateObj = new BasicDBObject();\n updateObj.put(\"$set\", newDocument);\n System.out.println(updateObj);\n\n table.update(query, updateObj);\n }", "int updateByPrimaryKey(Organization record);", "@Override\n\t@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)\n\tpublic void saveDevPlan(Map<String, Object> map) throws AppException, IllegalAccessException, InvocationTargetException {\n\t\tString optFlag = map.get(\"optFlag\")==null?\"\":map.get(\"optFlag\").toString();\n\t\tString projectid = map.get(\"projectid\")==null?\"\":map.get(\"projectid\").toString();\n\t\tString deveid = map.get(\"deveid\")==null?\"\":map.get(\"deveid\").toString();\n\t\tProDevelop dev = new ProDevelop();\n\t\tBeanUtils.populate(dev, map);\n\t\tSysUser user = SecureUtil.getCurrentUser();\n\t\tif(\"add\".equals(optFlag)){\n\t\t\tdev.setCreateuser(user.getUserid().toString());\n\t\t\tdev.setCreatetime(DateUtil.getCurrentDate(\"yyyy-MM-dd HH:mm:ss\"));\n\t\t\tproDevelopDao.save(dev);\n\t\t}else if(\"edit\".equals(optFlag)){\n\t\t\tif(\"\".equals(deveid)){\n\t\t\t\tthrow new AppException(\"信息主键没找到!\");\n\t\t\t}\n\t\t\tdev.setUpdateuser(user.getUserid().toString());\n\t\t\tdev.setUpdatetime(DateUtil.getCurrentDate(\"yyyy-MM-dd HH:mm:ss\"));\n\t\t\tproDevelopDao.update(dev);\n\t\t}\n\t\t//add by 辛鹏 2016年3月22日19:45:26\n\t\t//增加修改项目环节\n\t\tString sql = \"update PRO_PROJECT set xmdqhj ='2' where projectid=\"+projectid;\n\t\tproDevelopDao.updateBySql(sql);\n\t}", "int updateByPrimaryKey(CrmDept record);", "public void update(ProjectPk pk, Project dto) throws ProjectDaoException {\n\t\tlong t1 = System.currentTimeMillis();\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the\n\t\t\t// ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL_UPDATE + \" with DTO: \" + dto);\n\t\t\t}\n\n\t\t\tstmt = conn.prepareStatement(SQL_UPDATE);\n\t\t\tint index = 1;\n\t\t\tstmt.setInt(index++, dto.getId());\n\t\t\tstmt.setInt(index++, dto.getOwnerId());\n\t\t\tstmt.setInt(index++, dto.getCreatorId());\n\t\t\tstmt.setString(index++, dto.getName());\n\t\t\tstmt.setString(index++, dto.getDescription());\n\t\t\tif (dto.isCompanyIdNull()){\n\t\t\t\tstmt.setNull(index++, java.sql.Types.INTEGER);\n\t\t\t} else{\n\t\t\t\tstmt.setInt(index++, dto.getCompanyId());\n\t\t\t}\n\n\t\t\tstmt.setString(index++, dto.getBillAddress());\n\t\t\tstmt.setString(index++, dto.getBillCity());\n\t\t\tif (dto.isBillZipCodeNull()){\n\t\t\t\tstmt.setNull(index++, java.sql.Types.INTEGER);\n\t\t\t} else{\n\t\t\t\tstmt.setInt(index++, dto.getBillZipCode());\n\t\t\t}\n\n\t\t\tstmt.setString(index++, dto.getBillState());\n\t\t\tstmt.setString(index++, dto.getBillCountry());\n\t\t\tstmt.setString(index++, dto.getBillTelNum());\n\t\t\tstmt.setString(index++, dto.getBillFaxNum());\n\t\t\tstmt.setString(index++, dto.getIsEnable());\n\t\t\tstmt.setString(index++, dto.getMessageBody());\n\t\t\tstmt.setInt(index++, dto.getEsrqmId());\n\t\t\tstmt.setTimestamp(index++, dto.getCreateDate() == null ? null : new java.sql.Timestamp(dto.getCreateDate().getTime()));\n\t\t\tstmt.setInt(index++, dto.getLastModifiedBy());\n\t\t\tstmt.setTimestamp(index++, dto.getLastModifiedOn() == null ? null : new java.sql.Timestamp(dto.getLastModifiedOn().getTime()));\n\t\t\tstmt.setInt(20, pk.getId());\n\t\t\tint rows = stmt.executeUpdate();\n\t\t\treset(dto);\n\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(rows + \" rows affected (\" + (t2 - t1) + \" ms)\");\n\t\t\t}\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\tthrow new ProjectDaoException(\"Exception: \" + _e.getMessage(), _e);\n\t\t} finally{\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\n\t\t}\n\n\t}", "private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }", "public boolean deleteProject(Project p) {\n try {\n String delete = \"DELETE FROM PROJECTS WHERE PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(delete);\n ps.setString(1, p.getProjectId());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "public Project updateProject(String projectName, String directoryPath) {\n Project project = databaseService.getProjectByName(projectName);\n\n TrainingSetBuilder trainingSetBuilder = new TrainingSetBuilder(directoryPath);\n trainingSetBuilder.createFile(project);\n\n issueParser.updateRepoData(directoryPath, project);\n pullRequestParser.updateRepoData(directoryPath, project);\n commitParser.updateCommits(directoryPath, project);\n\n DefectPrediction defectPrediction = databaseService.getDefectPredictionByName(projectName);\n defectPrediction.evaluateClassifierAndPredict(directoryPath + \"/training.arff\", directoryPath + \"/test.arff\");\n project.setDefectPrediction(defectPrediction);\n databaseService.saveDefectPrediction(defectPrediction);\n\n project.setDefectPrediction(defectPrediction);\n databaseService.saveProject(project);\n return project;\n }" ]
[ "0.68252844", "0.6772594", "0.6712359", "0.6666845", "0.65591484", "0.6370689", "0.6347482", "0.63003254", "0.6276579", "0.6251365", "0.6251347", "0.62362367", "0.6232098", "0.6213432", "0.6210481", "0.6174647", "0.61426634", "0.61318755", "0.60858864", "0.60755855", "0.60672826", "0.60661983", "0.6058815", "0.60561115", "0.59747404", "0.5946466", "0.5929164", "0.59221506", "0.588566", "0.58832175", "0.58449304", "0.5836434", "0.5836434", "0.58286816", "0.5820133", "0.5782467", "0.5754346", "0.5732454", "0.57297117", "0.5715158", "0.5709891", "0.5671353", "0.56669396", "0.5666734", "0.56605154", "0.5625706", "0.56217945", "0.5612562", "0.5606881", "0.5604272", "0.55870616", "0.55864865", "0.5566849", "0.55619806", "0.5548191", "0.5545051", "0.55383843", "0.5529332", "0.5514369", "0.55126315", "0.54940933", "0.5486114", "0.547667", "0.5475727", "0.54705185", "0.54704565", "0.5464151", "0.5462927", "0.5462304", "0.545463", "0.5443241", "0.5430376", "0.5411091", "0.54096067", "0.53957707", "0.5374243", "0.53550327", "0.5350197", "0.5345801", "0.53418773", "0.5336477", "0.53348243", "0.53347623", "0.5330468", "0.5312466", "0.531002", "0.52990633", "0.5296993", "0.5288985", "0.528171", "0.5281403", "0.52800477", "0.5279227", "0.52787966", "0.5272534", "0.5269369", "0.5264078", "0.5258691", "0.52576345", "0.5256665" ]
0.55720586
52
/ Adds a project to the project database
public String handleAdd() throws HttpPresentationException, webschedulePresentationException { try { Project project = new Project(); saveProject(project); throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE); } catch(Exception ex) { return showAddPage("You must fill out all fields to add this project"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Integer addProject(ProjectInfo project) {\n\t\treturn sqlSession.insert(\"cn.sep.samp2.project.addProject\", project);\n\t}", "public boolean insertProject(Project project) throws EmployeeManagementException;", "private void add_proj_DATABASE(Project project) {\n }", "public boolean addProject(Project p) {\n try {\n String insert = \"INSERT INTO PROJECTS\"\n + \"(CLIENT,DESCRIPTION,HOURS,STARTDATE,DUEDATE,INVOICESENT,CLIENT_ID,PROJECT_ID) \"\n + \"VALUES(?,?,?,?,?,?,?,PROJECTS_SEQ.NEXTVAL)\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(insert);\n ps.setString(1, p.getClientId());\n ps.setString(2, p.getDescription());\n ps.setString(3, p.getHours());\n ps.setString(4, p.getStartdate());\n ps.setString(5, p.getDuedate());\n ps.setString(6, p.getInvoicesent());\n ps.setString(7, p.getClientId());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "public void saveNewProject(){\n String pn = tGUI.ProjectTextField2.getText();\n String pd = tGUI.ProjectTextArea1.getText();\n String statusID = tGUI.StatusComboBox.getSelectedItem().toString();\n String customerID = tGUI.CustomerComboBox.getSelectedItem().toString();\n\n int sstatusID = getStatusID(statusID);\n int ccustomerID = getCustomerID(customerID);\n\n try {\n pstat = cn.prepareStatement (\"insert into projects (project_name, project_description, project_status_id, customer_id) VALUES (?,?,?,?)\");\n pstat.setString(1, pn);\n pstat.setString(2,pd);\n pstat.setInt(3, sstatusID);\n pstat.setInt(4, ccustomerID);\n pstat.executeUpdate();\n\n }catch (SQLException ex) {\n Logger.getLogger(ProjectMethods.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void addProject(Project p){\n this.projects.addProject(p);\n }", "public int DSAddProject(String ProjectName, String ProjectLocation);", "@Override\r\n\tpublic int insertProject(Project p) throws MyException {\n\t\tlogger.debug(\"프로젝트 생성전no:\"+p.getProjectNo());\r\n\t\tint result=dao.insertProject(session, p);\r\n\t\tif(result==0) {\r\n\t\t\tthrow new MyException(\"프로젝트 삽입에러\");\r\n\t\t}\r\n\t\tlogger.debug(\"프로젝트 생성후no:\"+p.getProjectNo());\r\n\t\t\r\n\t\tp.setProjectNo(p.getProjectNo());\r\n\t\tresult=dao.insertProjectMember(session,p);\r\n\t\t\r\n\t\tif(result==0){\r\n\t\t\tthrow new MyException(\"프로젝트멤버 삽입에러\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "int insert(Project record);", "public int add(Project p) {\n\treturn projectmapper.add(p);\n}", "@Override\n\tpublic int addProject(Project project) \n\t\t\tthrows DuplicateKeyException, Exception {\n\t\tif (project == null)\n\t\t\tthrow new Exception(\"Missing input project\");\n\t\ttry {\n\t\t\t// insert Project record\n\t\t\tint retId = addDomainObject(project);\n\t\t\tproject.setId(retId);\n\t\t\treturn retId;\n\t\t}\n\t\tcatch (MustOverrideException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.addProject MustOverrideException: \" + e.getMessage());\n\t\t\treturn -1;\n\t\t}\n\t\tcatch (DuplicateKeyException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.addProject DuplicateKeyException: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.addProject Exception: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "public void createProject(Project newProject);", "public void saveProject(Project project) {\n\t\tContentValues vals = new ContentValues();\n\t\tProject existing = getProjectById(project.getId());\n\n\t\t// update\n\t\tif (existing != null) {\n\t\t\tvals.put(Constants.COLUMN_STARRED, project.isStarred() ? 1 : 0);\n\t\t\tvals.put(Constants.COLUMN_SHARED, project.isShared() ? 1 : 0);\n\t\t\tvals.put(Constants.COLUMN_TITLE, project.getTitle());\n\t\t\tvals.put(Constants.COLUMN_HISTORY, project.getSerializedHistory());\n\t\t\tString where = Constants.COLUMN_ID + \" = ?\";\n\t\t\tString[] args = new String[] { project.getId() };\n\n\t\t\tdatabase.update(Constants.TABLE_PROJECTS, vals, where, args);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// add\n\t\tvals.put(Constants.COLUMN_ID, project.getId());\n\t\tvals.put(Constants.COLUMN_TITLE, project.getTitle());\n\t\tvals.put(Constants.COLUMN_STARRED, project.isStarred() ? 1 : 0);\n\t\tvals.put(Constants.COLUMN_SHARED, project.isShared() ? 1 : 0);\n\t\tvals.put(Constants.COLUMN_HISTORY, project.getSerializedHistory());\n\t\tdatabase.insert(Constants.TABLE_PROJECTS, null, vals);\n\t}", "@Override\n\tpublic void createProjects(Projects proj) {\n\t\tString sql = \"INSERT INTO projects VALUES (?,?,?,?,?,?,now(),now(),?)\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tproj.getProj_id(),\n\t\t\t\tproj.getProj_name(),\n\t\t\t\tproj.getProj_desc(),\n\t\t\t\tproj.getFile_id(),\n\t\t\t\tproj.getCus_id(),\n\t\t\t\tproj.getCretd_usr(),\n\t\t\t\tproj.getProj_currency()\n\t\t});\n\t\t\n\t\tUserDetailsApp user = UserLoginDetail.getUser();\n\t\t\n\t\tCustomer cus = new Customer();\n\t\tcus = getJdbcTemplate().queryForObject(\"select * from customer where cus_id=\"+proj.getCus_id(), new BeanPropertyRowMapper<Customer>(Customer.class));\n\t\tString file_name = \"\";\n\t\tif(proj.getFile_id() != 0){\n\t\t\tFileModel myFile = new FileModel();\n\t\t\tmyFile = getJdbcTemplate().queryForObject(\"select * from file where file_id=\"+proj.getFile_id(), new BeanPropertyRowMapper<FileModel>(FileModel.class));\n\t\t\tfile_name = myFile.getFile_name();\n\t\t}\n\t\t\n\t\tString audit = \"INSERT INTO audit_logging (aud_id,parent_id,parent_object,commit_by,commit_date,commit_desc,parent_ref) VALUES (default,?,?,?,now(),?,?)\";\n\t\tthis.getJdbcTemplate().update(audit, new Object[]{\n\t\t\t\t\n\t\t\t\tproj.getProj_id(),\n\t\t\t\t\"Projects\",\n\t\t\t\tuser.getUserModel().getUsr_name(),\n\t\t\t\t\"Created row on Projects name=\"+proj.getProj_name()+\", desc=\"+proj.getProj_desc()+\", file_name=\"+file_name\n\t\t\t\t+\", customer=\"+cus.getCus_code()+\", proj_currency=\"+proj.getProj_currency(),\n\t\t\t\tproj.getProj_name()\n\t\t});\n\t}", "@PostMapping(value = \"/project\", consumes = \"application/json\", produces = \"application/json\")\n public ResponseEntity<?> addNewProject(@Valid @RequestBody Project newProject) throws URISyntaxException\n {\n newProject.setProjectid(0);\n newProject = projectService.save(newProject);\n\n // set the location header for the newly created resource\n HttpHeaders responseHeaders = new HttpHeaders();\n URI newProjectURI = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{projectid}\")\n .buildAndExpand(newProject.getProjectid())\n .toUri();\n responseHeaders.setLocation(newProjectURI);\n\n return new ResponseEntity<>(null, responseHeaders, HttpStatus.CREATED);\n }", "public void add(View project){\n projects.add(project);\n }", "@Override\n\tpublic void createProject(ProjectCreate project) {\n\t\tprojectDao.createProject(project);\n\t}", "public boolean addTask(Project p) {\n try {\n String update = \"INSERT INTO TASKS (PROJECT_ID,HOURS_ADDED,DESCRIPTION,HOURS) VALUES(?,?,?,?) \";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(update);\n ps.setString(1, p.getProjectId());\n ps.setString(2, p.getHoursadded());\n ps.setString(3, p.getDescription());\n ps.setString(4, p.getHours());\n\n ps.executeUpdate();\n\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "public void store() throws IOException, SQLException {\r\n \r\n /* Project section */\r\n final HashMap<Object, Object> projectdata = new HashMap<Object, Object>(8);\r\n \r\n if(project == null){\r\n \t// The title \r\n projectdata.put(ProjectAccessor.TITLE, title);\r\n // Create the project database object.\r\n final ProjectAccessor newProject = new ProjectAccessor(projectdata);\r\n newProject.persist(conn);\r\n projectid = (Long) newProject.getGeneratedKeys()[0];\r\n } else {\r\n \tprojectid = project.getProjectid();\r\n }\r\n }", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "public void save(Project project) {\n\t\tcreate(project);\n\t}", "public Project insertProject(Project project, boolean isUndoOrRedo)\n\t\t\tthrows StorageException, ConstraintCheckingException {\n\t\ttry {\n\t\t\tContentValues projectValues = new ContentValues();\n\t\t\tprojectValues.put(\"_ID\", project.get_Id());\n\t\t\tprojectValues.put(\"NAME\", project.getName());\n\t\t\tprojectValues.put(\"DESCRIPTION\", project.getDescription());\n\t\t\tUri uri = contentResolver.insert(LocalStorageContentProvider.PROJECT_URI, projectValues);\n\t\t} catch (Exception e) {\n\t\t\tthrow new StorageException();\n\t\t}\n\t\tif (!isUndoOrRedo) {\n\t\t\tthis.getProjectInsertedList().add(project);\n\t\t}\n\t\treturn project;\n\t}", "@Test (groups = {\"Functional\"})\n public void testAddProject() {\n //When\n CreateProject createProject = dashboard.clickCreateProjectButton();\n String projectName = \"TestProject\";\n String testAccount = \"Account1\";\n createProject.setProjectName(projectName);\n createProject.clickPublicProjectPrivacy();\n createProject.setAccountDropDown(testAccount);\n project = createProject.clickCreateProject();\n\n //Then\n assertEquals(PROJECT_NAME, project.getTitle());\n }", "public void addNewProject(final String name) {\n Project p = new Project(name);\n ApplicationWideData.addNewProject(p);\n\n Callback<Response> responseCallback = new Callback<Response>() {\n @Override\n public void success(Response response, Response response2) {\n context.refreshLists();\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(\"RetrofitError\", \"Actions: AddNewProject: \"+error.getMessage());\n }\n };\n\n// boolean success = LocalDataSaver.addProject(p);\n// if (success) {\n// Toast.makeText(context, \"Successful adding of new project: \" + name + \" to local database\", Toast.LENGTH_LONG).show();\n// }\n if (!ApplicationWideData.getManualSync()) {\n service.addNewProject(p, userID, responseCallback);\n }\n else{\n LocalDataSaver.addNewSelectable(p, \"Project\");\n context.refreshLists();\n }\n LocalDataSaver.saveProject(p);\n Log.wtf(\"Added project\", \"to added table\");\n\n\n Log.wtf(\"Size of added table\", LocalDataRetriver.getAllAdded().size() + \"\");\n\n }", "public void addFromProject() {\n btAddFromProject().push();\n }", "public void insertEmpProject(String projectID, String employeeId) {\n\t\tString query=\"INSERT INTO TA_EMPLOYEE_PROJECT(PROJECT_ID,EMPLOYEE_ID) VALUES('\" + projectID + \"','\" + employeeId +\"')\";\r\n\t\tjdbcTemplate.update(query);\r\n\t}", "public static Result add(Long project) {\n if(Secured.isMemberOf(project)) {\n Form<Task> taskForm = form(Task.class).bindFromRequest();\n if(taskForm.hasErrors()) {\n return badRequest();\n } else {\n return ok(\n \t\t\n //item.render(Note.create(taskForm.get(), project, folder), true)\n );\n }\n } else {\n return forbidden();\n }\n }", "int insert(UserOperateProject record);", "public void addProject( Project newProject){\n\t\tm_Projects.add(newProject);\n\t\tif(newProject.getTasksCount() > 0){\n\t\t\tfor(Task p : newProject.getTasks()){\n\t\t\t\tm_Tasks.add(p);\n\t\t\t}\n\t\t}\n\t}", "public boolean addClient(Project p) {\n try {\n String insert = \"INSERT INTO CLIENTS\" + \"(NAME,ADDRESS,CLIENT_ID) \"\n + \"VALUES(?,?,PROJECTS_SEQ.NEXTVAL)\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(insert);\n ps.setString(1, p.getName());\n ps.setString(2, p.getAddress());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "int insert(CliStaffProject record);", "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }", "public void save() throws InvalidIDException, SQLException {\r\n\t\t// Whether or not this is a new project being added to the database\r\n\t\tboolean newProject;\r\n\r\n\t\tif (super.id == 0) { newProject = true; }\r\n\t\telse { newProject = false; }\r\n\r\n\t\t// Call save in the Project class first. This will save general project data.\r\n\t\tsuper.save();\r\n\r\n\t\t// Get our connection to the database.\r\n\t\tConnection conn = DBConnectionManager.getPrConnection();\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\r\n\t\t\t// Get our updatable result set\r\n\t\t\tString sqlStr = \"SELECT * FROM tblTechnology WHERE projectID = \" + super.id;\r\n\t\t\trs = stmt.executeQuery(sqlStr);\r\n\r\n\t\t\t// See if we're updating a row or adding a new row.\r\n\t\t\tif (newProject == false) {\r\n\r\n\t\t\t\t// Make sure this row is actually in the database. This shouldn't ever happen.\r\n\t\t\t\tif (!rs.next()) {\r\n\t\t\t\t\tthrow new InvalidIDException(\"ID was set in Technology, but not found in database on save()\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Make sure the result set is set up w/ current values from this object\r\n\t\t\t\tif (this.groups == null) { rs.updateNull(\"techGroups\"); }\r\n\t\t\t\telse { rs.updateString(\"techGroups\", StringUtils.join(this.groups.toArray(), \",\")); }\r\n\r\n\t\t\t\t// Update the row\r\n\t\t\t\trs.updateRow();\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// We're adding a new row.\r\n\r\n\t\t\t\trs.moveToInsertRow();\r\n\r\n\t\t\t\trs.updateInt(\"projectID\", super.id);\r\n\r\n\t\t\t\tif (this.groups == null) { rs.updateNull(\"techGroups\"); }\r\n\t\t\t\telse { rs.updateString(\"techGroups\", StringUtils.join(this.groups.toArray(), \",\")); }\r\n\r\n\t\t\t\trs.insertRow();\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\trs = null;\r\n\t\t\t\r\n\t\t\tstmt.close();\r\n\t\t\tstmt = null;\r\n\t\t\t\r\n\t\t\tconn.close();\r\n\t\t\tconn = null;\r\n\t\t}\r\n\t\tcatch(SQLException e) { throw e; }\r\n\t\tcatch(InvalidIDException e) { throw e; }\r\n\t\tfinally {\r\n\r\n\t\t\t// Always make sure result sets and statements are closed,\r\n\t\t\t// and the connection is returned to the pool\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry { rs.close(); } catch (SQLException e) { ; }\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry { stmt.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry { conn.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public AddProject() {\n try\n {\n infDB = new InfDB(\"\\\\Users\\\\Oliver\\\\Documents\\\\Skola\\\\Mini_sup\\\\Realisering\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n \n try\n {\n infDB = new InfDB(\"C:\\\\Users\\\\TP300LA-C4034\\\\Desktop\\\\Delkurs 4, Lill-supen\\\\InformatikDB\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n getPlatforms();\n initComponents();\n setLocationRelativeTo(null);\n \n }", "@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }", "@Test\n\tpublic void saveProjects() throws ParseException {\n\t\tproject.setEstimates(5);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate parsed = format.parse(\"20110210\");\n\t\tjava.sql.Date sql = new java.sql.Date(parsed.getTime());\n\t\tproject.setdRequested(sql);\n\t\tproject.setdRequired(sql);\n\t\tproject.setCritical(true);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tProjectKeyContacts contacts = new ProjectKeyContacts();\n\t\tcontacts.setEmail(\"assdasd.gmail.com\");\n\t\tcontacts.setFname(\"sdsd\");\n\t\tcontacts.setLname(\"asdasd\");\n\t\tcontacts.setPhone(\"asd\");\n\t\tcontacts.setRole(\"asda\");\n\t\tcontacts.setTeam(\"saad\");\n\t\tproject.setContacts(contacts);\n\t\tProjectDetails det = new ProjectDetails();\n\t\tdet.setDescription(\"asdsd\");\n\t\tdet.setName(\"asd\");\n\t\tdet.setName(\"asdad\");\n\t\tdet.setSummary(\"asdd\");\n\t\tproject.setProjectDetails(det);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tassertEquals(controller.saveProject(project).getStatusCode(), HttpStatus.CREATED);\n\t}", "@Transactional\n public Long persist(ProjectDto project) {\n Objects.requireNonNull(project);\n Objects.requireNonNull(project.getName());\n if(project.getOrganizationId() == null) throw new EarException(\"Organization ID must be specified\");\n\n User user = userService.getSecurityUser();\n\n // name must not be empty\n if (project.getName().isEmpty()) throw new ValidationException(\"Name of the project can not be empty\");\n\n // project must not exist\n Project foundProject = dao.findByName(project.getName());\n if (foundProject != null) throw new AlreadyExistsException(\"Project with this name already exists\");\n\n Organization foundOrganization = organizationDao.find(project.getOrganizationId());\n if (foundOrganization == null) throw new AlreadyExistsException(\"Organization with this id doesnt exist\");\n\n if (!foundOrganization.isUserPM(user.getId())) {\n throw new ValidationException(\"Not enough rights\");\n }\n Project newProject = project.buildNewProject();\n newProject.setOrganization(foundOrganization);\n dao.persist(newProject);\n\n // Add user to project\n ProjectUser projectUser = new ProjectUser(user, newProject);\n projectUserDao.persist(projectUser);\n\n return newProject.getId();\n }", "@Override\n public void onClick(View view) {\n String projectName = etProjectName.getText().toString();\n String projectOwner = etProjectOwner.getText().toString();\n String projectDescription = etProjectDescription.getText().toString();\n long projectId = 0; // This is just to give some value. Not used when saving new project because auto-increment in DB for this value.\n\n\n // USerid and projectname are mandatory parameters\n if( userId != 0 && projectName != null) {\n newProject = new Project(projectId, userId, projectName, projectOwner, projectDescription);\n dbHelper.saveProject(newProject);\n// showToast(\"NewprojectId:\" + newProject.projectId+ \"-->UserId: \"+ userId + \"--> ProjectName\" + newProject.projectName +\"->Owner\"+newProject.projectOwner);\n dbHelper.close();\n\n // SIIRRYTÄÄN PROJEKTILISTAUKSEEN\n Intent newProjectList = new Intent( NewProject.this, ProjectListActivity.class);\n newProjectList.putExtra(\"userId\", userId);\n startActivity(newProjectList);\n }\n\n }", "private static void add_project() {\r\n\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\t//List of building types\r\n\t\t\tString[] building_types = new String[] {\"House\", \"Apartment Block\", \"Commercial Property\", \"Industrial Property\", \"Agricultural Building\"};\r\n\t\t\t\r\n\t\t\t// Variables that are needed\r\n\t\t\tint project_id = 0;\r\n\t\t\tString project_name = \"\";\r\n\t\t\tString building_type = \"\";\r\n\t\t\tString physical_address = \"\";\r\n\t\t\tint erf_num = 0;\r\n\t\t\tString cust_surname = \"\";\r\n\t\t\tDate deadline_date = null;\r\n\t\t\tint charged = 0;\r\n\t\t\t\r\n\t\t\t// Allows for user input\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//So first we need to select the correct customer\r\n\t\t\tString strSelect = \"SELECT * FROM people WHERE type = 'Customer'\";\r\n\t\t\tResultSet rset = stmt . executeQuery ( strSelect );\r\n\t\t\t\r\n\t\t\t// Loops through available customers from the people table so that the user can select one\r\n\t\t\tSystem.out.println(\"\\nSelect a customer for the project by typing the customers number.\");\r\n\t\t\t// This creates a list of customer ids to check that the user only selects an available one\r\n\t\t\tArrayList<Integer> cust_id_list = new ArrayList<Integer>(); \r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\tSystem.out.println ( \r\n\t\t\t\t\t\t\"Customer Num: \" + rset.getInt(\"person_id\") + \", Fullname: \" + rset.getString(\"name\") + \" \" + rset.getString(\"surname\"));\r\n\t\t\t\tcust_id_list.add(rset.getInt(\"person_id\"));\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a customer\r\n\t\t\tBoolean select_cust = true;\r\n\t\t\tint customer_id = 0;\r\n\t\t\twhile (select_cust == true) {\r\n\t\t\t\tSystem.out.println(\"Customer No: \");\r\n\t\t\t\tString customer_id_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcustomer_id = Integer.parseInt(customer_id_str);\r\n\t\t\t\t\tfor (int i = 0; i < cust_id_list.size(); i ++) {\r\n\t\t\t\t\t\tif (customer_id == cust_id_list.get(i)) { \r\n\t\t\t\t\t\t\tselect_cust = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (select_cust == true) {\r\n\t\t\t\t\t\tSystem.out.println(\"Please only select an available customer id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for customer id is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The customer number cannot contain letters or symbols. Please try again\");\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// Prints out all available building types form the building type list\r\n\t\t\tSystem.out.print(\"Select a building type by typing the number: \\n\");\r\n\t\t\tfor (int i=0; i < 5; i ++) {\r\n\t\t\t\tSystem.out.println((i + 1) + \": \" + building_types[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a building type\r\n\t\t\tBoolean select_building = true;\r\n\t\t\tint building_index = 0;\r\n\t\t\twhile (select_building == true) {\r\n\t\t\t\tSystem.out.println(\"Building type no: \");\r\n\t\t\t\tString building_type_select_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbuilding_index = Integer.parseInt(building_type_select_str) - 1;\r\n\t\t\t\t\tbuilding_type = building_types[building_index];\r\n\t\t\t\t\tselect_building = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for building type is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The building type number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// User gets to decide whether they want an automatically generated name.\r\n\t\t\tBoolean select_project_name = true;\r\n\t\t\twhile (select_project_name == true) {\r\n\t\t\t\tSystem.out.println(\"Would you like to have the project automatically named (y or n)?\");\r\n\t\t\t\tString customer_project_name_choice = input.nextLine();\r\n\t\t\t\tif (customer_project_name_choice.equals(\"y\")){\r\n\t\t\t\t\t// Gets the customers surname for the project name\r\n\t\t\t\t\tString strSelectCustSurname = String.format(\"SELECT surname FROM people WHERE person_id = '%s'\", customer_id);\r\n\t\t\t\t\tResultSet cust_surname_rset = stmt . executeQuery ( strSelectCustSurname );\r\n\t\t\t\t\twhile (cust_surname_rset.next()) {\r\n\t\t\t\t\t\tcust_surname = cust_surname_rset.getString(\"surname\");\r\n\t\t\t\t\t\tproject_name = building_type + \" \" + cust_surname;\r\n\t\t\t\t\t\tSystem.out.println(\"Project name: \" + project_name);\r\n\t\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (customer_project_name_choice.equals(\"n\")) {\r\n\t\t\t\t\tSystem.out.println(\"Provide project name: \");\r\n\t\t\t\t\tproject_name = input.nextLine();\r\n\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!customer_project_name_choice.equals(\"y\") && !customer_project_name_choice.equals(\"n\")){\r\n\t\t\t\t\tSystem.out.println(\"You can only select either y or n. Please try again\");\r\n\t\t\t\t\tselect_project_name = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter an erf number\r\n\t\t\tBoolean select_erf_num = true;\r\n\t\t\twhile (select_erf_num == true) {\r\n\t\t\t\tSystem.out.print(\"ERF number: \");\r\n\t\t\t\tString erf_num_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\terf_num = Integer.parseInt(erf_num_str);\r\n\t\t\t\t\tselect_erf_num = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for erf number is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The erf number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a physical address\r\n\t\t\tSystem.out.print(\"Physical Address: \");\r\n\t\t\tphysical_address = input.nextLine();\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a date\r\n\t\t\tBoolean select_deadline_date = true;\r\n\t\t\twhile (select_deadline_date == true) {\r\n\t\t\t\tSystem.out.print(\"Deadline Date (YYYY-MM-DD): \");\r\n\t\t\t\tString deadline_date_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdeadline_date= Date.valueOf(deadline_date_str);\r\n\t\t\t\t\tselect_deadline_date = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for deadline date is not in the correct format\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The date must be in the format YYYY-MM-DD (eg. 2013-01-13). Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter a charged amount \r\n\t\t\tBoolean select_charged = true;\r\n\t\t\twhile (select_charged == true) {\r\n\t\t\t\tSystem.out.print(\"Total Cost: R \");\r\n\t\t\t\tString charged_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcharged = Integer.parseInt(charged_str);\r\n\t\t\t\t\tselect_charged = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for the charged amount is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The charged amount cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the projects table\r\n PreparedStatement ps = conn.prepareStatement(\"INSERT INTO projects (project_name , building_type, physical_address, erf_num) VALUES(?,?,?,?)\");\r\n ps.setString(1, project_name);\r\n ps.setString(2, building_type);\r\n ps.setString(3, physical_address);\r\n ps.setInt(4, erf_num);\r\n \r\n // Executes the statement\r\n ps.executeUpdate();\r\n \r\n // This gets the created project's table id to use to update the people and project_statuses tables \r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects WHERE project_name = '%s'\", project_name);\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_rset.next()) {\r\n\t\t\t\tproject_id = project_rset.getInt(\"project_id\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the people table\r\n\t\t\tPreparedStatement ps_customer = conn.prepareStatement(\r\n\t\t\t\t\t\"UPDATE people SET projects = ? WHERE person_id = ?;\");\r\n\t\t\tps_customer.setInt(1, project_id);\r\n\t\t\tps_customer.setInt(2, customer_id);\r\n\t\t\tps_customer.executeUpdate();\r\n \r\n\t\t\t// This adds all the values to a prepared statement to update the project_statuses table\r\n PreparedStatement ps_status = conn.prepareStatement(\"INSERT INTO project_statuses (charged , deadline_date, project_id) VALUES(?,?,?)\");\r\n ps_status.setInt(1, charged);\r\n ps_status.setDate(2, deadline_date);\r\n ps_status.setInt(3, project_id);\r\n ps_status.executeUpdate();\r\n\r\n // Once everything has been added to the tables the project that has been added gets printed out\r\n\t\t\tResultSet project_added_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_added_rset.next()){\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"\\nProjects Added: \\n\" +\r\n\t\t\t\t\t\t\"Project Sys ID: \" + project_added_rset.getInt(\"project_id\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Project Name: \" + project_added_rset.getString(\"project_name\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Building Type: \" + project_added_rset.getString(\"building_type\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Physical Address: \" + project_added_rset.getString(\"physical_address\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Erf Number: \" + project_added_rset.getInt(\"erf_num\") + \"\\n\");\r\n\t\t\t}\r\n\t\t/**\r\n\t\t * @exception If any of the table entries cannot be created due to database constrains then the SQLException is thrown\r\n\t\t */\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "public String createProjectQuery(ArrayList<String> project) \r\n\t{\t\r\n\t\tString query = \"INSERT INTO Project VALUES('\"+project.get(0)+\"','\"+project.get(1)+\"','\"\r\n\t\t\t\t\t\t+ project.get(2)+\"','\"+project.get(3)+\"','\"+project.get(4)+\"','\"\r\n\t\t\t\t\t\t+ project.get(5)+\"','\"+project.get(6)+\"','\"+project.get(7)+\"','\"+project.get(8)+\"','\"+project.get(9)+\"','\"+project.get(10)+\"','\"\r\n\t\t\t\t\t\t+ project.get(11)+\"','\"+project.get(12)+\"','\"+project.get(13)+\"','\"+project.get(14)+\"','\"+project.get(15)+\"','\"+project.get(16)+\"','\"\r\n\t\t\t\t\t\t+ project.get(17)+\"','\"+project.get(18)+\"','\"+project.get(19)+\"','\"+project.get(20)+\"','\"+project.get(21)+\"','\"+project.get(22)+\"','\"\r\n\t\t\t\t\t\t+ project.get(23)+\"','\"+project.get(24)+\"','\"+project.get(25)+\"','\"+project.get(26)+\"')\";\r\n\t\t\r\n\t\treturn query;\r\n\t}", "void addToMyProjects(String userId,\n String projectGUID) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;", "private void addProjectTask(ActionEvent e) {\n Calendar dueDate = dueDateModel.getValue();\n String title = titleEntry.getText();\n String description = descriptionEntry.getText();\n Project parent = (Project) parentEntry.getSelectedItem();\n addProjectTask(title, description, parent, dueDate);\n }", "int insert(ProjGroup record);", "public void addProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'add project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "@RequestMapping(value = \"/create/project/{projectId}\", method = RequestMethod.GET)\r\n public ModelAndView create(@PathVariable(\"projectId\") String projectId) {\r\n ModelAndView mav = new ModelAndView(\"creates2\");\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(projectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n Project project = hibernateTemplate.get(Project.class, pid);\r\n if (!dataAccessService.isProjectAvailableToUser(project, user)) {\r\n return accessdenied();\r\n }\r\n List<SubProject> subProjects = dataAccessService.getResearcherSubProjectsForUserInProject(user, project);\r\n mav.addObject(\"projectId\", projectId);\r\n mav.addObject(\"methods\", project.getMethods());\r\n mav.addObject(\"subProjects\", subProjects);\r\n return mav;\r\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public void testAdd() throws TeamException, CoreException {\n IProject project = createProject(\"testAdd\", new String[] { });\n // add some resources\n buildResources(project, new String[] { \"changed.txt\", \"deleted.txt\", \"folder1/\", \"folder1/a.txt\", \"folder1/b.txt\", \"folder1/subfolder1/c.txt\" }, false);\n // add them to CVS\n add(asResourceMapping(new IResource[] { project }, IResource.DEPTH_ONE));\n add(asResourceMapping(new IResource[] { project.getFolder(\"folder1\") }, IResource.DEPTH_ONE));\n add(asResourceMapping(new IResource[] { project.getFile(\"folder1/subfolder1/c.txt\") }, IResource.DEPTH_ZERO));\n add(asResourceMapping(new IResource[] { project }, IResource.DEPTH_INFINITE));\n }", "Project createProject();", "Project createProject();", "Project createProject();", "private void registerProject(String projectName, String... importNames) {\n Project p = new Project(projectName);\n List<ModelImport<Project>> imps = null;\n if (null != importNames) {\n imps = new ArrayList<ModelImport<Project>>();\n for (int i = 0; i < importNames.length; i++) {\n if (null != importNames[i] && importNames[i].length() > 0) {\n ProjectImport imp = new ProjectImport(importNames[i], null);\n p.addImport(imp);\n imps.add(imp);\n }\n }\n if (imps.isEmpty()) {\n imps = null;\n }\n }\n File file = new File(BASE, projectName + \".ivml\");\n // don't care whether this exists or not\n ModelInfo<Project> info = new ModelInfo<Project>(p.getName(), p.getVersion(), this, file.toURI(), imps);\n data.put(info, p);\n name2Info.put(projectName, info);\n }", "public void createProject(String name) {\n Project project = new Project(name);\n Leader leader = new Leader(this, project);\n project.addLeader(leader);\n }", "@Override\n\tpublic void createProjectsReference(ProjectsReference proj) {\n\t\tString sql = \"INSERT INTO projects_reference VALUES (?,?,?,?,?,?,now(),now(),?,?,?,?)\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tproj.getProj_ref_id(),\n\t\t\t\tproj.getProj_id(),\n\t\t\t\tproj.getItm_id(),\n\t\t\t\tproj.getTime(),\n\t\t\t\tproj.getPrice(),\n\t\t\t\tproj.getCretd_usr(),\n\t\t\t\tproj.getProj_ref_desc(),\n\t\t\t\tproj.getActual_time(),\n\t\t\t\tproj.getTopix_article_id(),\n\t\t\t\tproj.getActivated()\n\t\t});\n\t\t\n\t\tUserDetailsApp user = UserLoginDetail.getUser();\n\t\t\n\t\tProjects proj2 = new Projects();\n\t\tproj2 = getJdbcTemplate().queryForObject(\"select * from projects where proj_id=\"+proj.getProj_id(), new BeanPropertyRowMapper<Projects>(Projects.class));\n\t\tItem itm = new Item();\n\t\titm = getJdbcTemplate().queryForObject(\"select * from item where itm_id=\"+proj.getItm_id(), new BeanPropertyRowMapper<Item>(Item.class));\n\t\tCustomer cus = new Customer();\n\t\tcus = getJdbcTemplate().queryForObject(\"select * from customer where cus_id =\"+proj2.getCus_id(), new BeanPropertyRowMapper<Customer>(Customer.class));\n\t\t\n\t\tString audit = \"INSERT INTO audit_logging (aud_id,parent_id,parent_object,commit_by,commit_date,commit_desc,parent_ref) VALUES (default,?,?,?,now(),?,?)\";\n\t\tthis.getJdbcTemplate().update(audit, new Object[]{\n\t\t\t\t\n\t\t\t\tproj.getProj_ref_id(),\n\t\t\t\t\"Projects Reference:\"+proj2.getProj_id(),\n\t\t\t\tuser.getUserModel().getUsr_name(),\n\t\t\t\t\"Created Item name=\"+itm.getItm_name()+\" on Project name=\"+proj2.getProj_name()+\", customer=\"+cus.getCus_name()\n\t\t\t\t+\", target_time=\"+proj.getTime()+\", actual_time=\"+proj.getActual_time()+\", price=\"+proj.getPrice()+\", desc=\"+proj.getProj_ref_desc()\n\t\t\t\t+\", topix_article_id=\"+proj.getTopix_article_id()+\", activated=\"+((proj.getActivated() == 0) ? \"No\" : \"Yes\"),\n\t\t\t\tproj2.getProj_name()+\" : \"+itm.getItm_name()\n\t\t});\n\t}", "@Test(alwaysRun=true)\n public void addProject() {\n driver.findElement(By.xpath(\"//ul[contains(@class, 'nav-tabs')]//li[3]\")).click();\n assertThat(driver.getTitle(), equalTo(\"Manage Projects - MantisBT\"));\n //Click \"Create New Projects\" button\n driver.findElement(By.xpath(\"//form//button[contains(@class, 'btn-primary')]\")).click();\n //Check fields on the \"Add Project\" view\t\"Project Name Status Inherit Global Categories View Status Description\"\n List<String> expCategory = Arrays.asList(new String[]{\"* Project Name\", \"Status\", \"Inherit Global Categories\",\n \"View Status\", \"Description\"});\n List<WebElement> category = driver.findElements(By.className(\"category\"));\n List<String> actCategory = new ArrayList<>();\n for (WebElement categories : category) {\n actCategory.add(categories.getText());\n }\n assertThat(actCategory, equalTo(expCategory));\n //Fill Project inforamtion\n driver.findElement(By.id(\"project-name\")).sendKeys(\"SB\");\n driver.findElement(By.id(\"project-description\")).sendKeys(\"new one\");\n //Add project\n driver.findElement(By.xpath(\"//input[@value='Add Project']\")).click();\n //delete Created class\n driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\n driver.findElement(By.xpath(\"//tr//a[contains(text(),'SB')]\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n driver.findElement(By.xpath(\"//input[@value ='Delete Project']\")).click();\n }", "@Test\n public void insertAndGetProjects() throws InterruptedException {\n insertProjects();\n\n setProjectIds(); //We set id after insertion in database not to interfere with autogenerate\n\n List<Project> expectedProjects = Arrays.asList( //We prepare id sorted expected list\n PROJECT_MAGICGITHUB,\n PROJECT_ENTREVOISINS,\n PROJECT_MAREU\n );\n\n //When : we get the list of projects\n List<Project> actualProjects = LiveDataTestUtil.getValue(projectDao.getProjects());\n\n //Then : the retrieved list contains the three projects sorted by id (insertion order)\n assertArrayEquals(expectedProjects.toArray(), actualProjects.toArray());\n }", "@Override\n public boolean addIdea(ProjectIdea newIdea) {\n int check = 0;\n try{\n check = super.create(newIdea);\n } catch(SQLException e){\n System.out.println(e.getMessage());\n }\n return check == 1;\n }", "public boolean projectSet(String name, String q1, String q2, String q3){\n\tString projectSet = \"insert into projects values(?, ?, ?, ?)\";\n\tPreparedStatement pSet = null;\n\ttry{\n\t\tpSet = conn.prepareStatement(projectSet);\n\t\tpSet.setString(1, name);\n\t\tpSet.setString(2, q1);\n\t\tpSet.setString(3, q2);\n\t\tpSet.setString(4, q3);\n\t\tif(pSet.executeUpdate() ==1){\n\t\t\treturn true;\n\t\t}\n\t}catch (SQLException e){\n\t\tSystem.out.println(e.getMessage());\n\t\treturn false;\n\t}\n\treturn false;\n\t}", "public void createProject(\n String projectName,\n int teamId,\n String assigneeName,\n LocalDate deadline,\n String description,\n Project.Importance importance)\n throws NoSignedInUserException, SQLException, InexistentUserException,\n InexistentTeamException, DuplicateProjectNameException, InexistentDatabaseEntityException,\n EmptyFieldsException, InvalidDeadlineException {\n if (isMissingProjectData(projectName, assigneeName, deadline)) {\n throw new EmptyFieldsException();\n }\n User currentUser = getMandatoryCurrentUser();\n User assignee = getMandatoryUser(assigneeName);\n Team team = getMandatoryTeam(teamId);\n // check that there is no other project with the same name\n if (projectRepository.getProject(teamId, projectName).isPresent()) {\n throw new DuplicateProjectNameException(projectName, team.getName());\n }\n // check if the new deadline of project is outdated (before the current date)\n if (isOutdatedDate(deadline)) {\n throw new InvalidDeadlineException();\n }\n // save project\n Project.SavableProject project =\n new Project.SavableProject(\n projectName, teamId, deadline, currentUser.getId(), assignee.getId(), importance);\n project.setDescription(description);\n projectRepository.saveProject(project);\n support.firePropertyChange(\n ProjectChangeablePropertyName.CREATE_PROJECT.toString(), OLD_VALUE, NEW_VALUE);\n }", "private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }", "private AppTProject populateAndSaveProjectDetails(Project project, boolean isNewProject) {\r\n\t\t// Project Details\r\n\t\tAppTProject appTProject = null;\r\n\t\tif (isNewProject) {\r\n\t\t\t// Creates a new Project Entity\r\n\t\t\tappTProject = new AppTProject();\r\n\t\t\tappTProject.setCreatedDate(new Date(System.currentTimeMillis()));\r\n\t\t} else {\r\n\t\t\t// Retrieves the existing Project Entity \r\n\t\t\tappTProject = projectRepository.getOne(project.getProjectId());\r\n\t\t\tappTProject.setModifiedDate(new Date(System.currentTimeMillis()));\r\n\t\t}\r\n\t\tappTProject.setProjectName(project.getProjectName());\r\n\t\tappTProject.setPriority(project.getPriority());\r\n\t\tappTProject.setStartDate(project.getStartDate());\r\n\t\tappTProject.setEndDate(project.getEndDate());\r\n\t\tappTProject.setActive(project.getActive());\r\n\t\tif (null != project.getUser()) {\r\n\t\t\tAppTUser appTUser = new AppTUser();\r\n\t\t\tBeanUtils.copyProperties(project.getUser(), appTUser);\r\n\t\t\tappTProject.setUser(appTUser);\r\n\t\t}\r\n\t\treturn projectRepository.save(appTProject);\r\n\t}", "private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }", "public synchronized String insert(ProjectDetail projectDetail) {\n ProjectDetail checkProjectDetail = exists(projectDetail.getMda(), projectDetail.getYearId(), projectDetail.getName());\n if (checkProjectDetail == null) {\n final Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n Transaction tx = null;\n try {\n //final Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n tx = session.beginTransaction();\n //session.beginTransaction();\n session.save(projectDetail);\n //session.getTransaction().commit();\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n return \"\";\n } finally {\n //session.close();\n }\n //Rank();\n return Utility.ActionResponse.INSERTED.toString();\n } else {\n //Rank();\n return Utility.ActionResponse.RECORD_EXISTS.toString();\n }\n }", "int insert(ProjectOtherView record);", "public void createProject(String nameProject, String nameDiscipline) throws \n InvalidDisciplineException,InvalidProjectException{\n int id = _person.getId();\n Professor _professor = getProfessors().get(id);\n _professor.createProject(nameProject, nameDiscipline);\n }", "public CreateProject() {\n\t\tsuper();\n\t}", "public void add_carrer_profile_project(Connection con, int user_id,String project_name,Date project_start_date,Date project_end_date,String project_organisation_associated_with,String project_cast_associated_with,String project_website_link,String project_instgram_link,String project_facebook_link,String project_twitter_link,String project_other_link,String project_description,HashMap carrer_profile_media)\n\t{\n\t\t\n\t\t\n\t\tint carrer_profile_project_id= carrer_profile_project_id_generator(con,user_id);\n\t\t\n\t\t\n\t\t/*carrer_profile_project_id integer, project_name varchar(30), project_start_date date, project_end_date date,\n\t\tproject_organisation_associated_with varchar(3000), project_cast_associated_with varchar(3000),\n\t\tproject_website_link varchar(255), project_instgram_link varchar(255), project_facebook_link varchar(255), \n\t\tproject_twitter_link varchar(255), project_other_link varchar(255) , project_description varchar(3000)) */\n\t\t\n\t\t\n\t\tResultSet rs;\n\t\tPreparedStatement pst;\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-mm-dd\"); \n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tpst=con.prepareStatement(\"insert into carrer_profile_project (e_id,carrer_profile_project_id,project_name,project_start_date,project_end_date, project_organisation_associated_with,project_cast_associated_with,project_website_link,project_instgram_link,project_facebook_link,project_twitter_link,project_other_link,project_description) values(?,?,?,?,?,?,?,?,?,?,?,?,?) \");\n\t\t\tpst.setInt(1, user_id);\n\t\t\tpst.setInt(2, carrer_profile_project_id);\n\t\t\tpst.setString(3, project_name);\n\t\t\tpst.setDate(4, new java.sql.Date( project_start_date.getTime()));\n\t\t\tpst.setDate(5, new java.sql.Date(project_end_date.getTime()));\n\t\t\tpst.setString(6, project_organisation_associated_with); // csv\n\t\t\tpst.setString(7, project_cast_associated_with);//csv\n\t\t\tpst.setString(8, project_website_link);\n\t\t\tpst.setString(9, project_instgram_link);\n\t\t\tpst.setString(10, project_facebook_link);\n\t\t\tpst.setString(11, project_twitter_link);\n\t\t\tpst.setString(12, project_other_link); //csv\n\t\t\tpst.setString(13, project_description);\n\t\t\t\n\t\t\tif(!carrer_profile_media.isEmpty())\n\t\t\tadd_carrer_profile_media(con, user_id,carrer_profile_project_id, \"carrer_profile_project\", carrer_profile_media);\n\t\t\t\n\t\t\tpst.execute();\n\t\t\t\n\t\t\t}catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\tArrayList<String> values=new ArrayList<String>();\n\t\t\tvalues.add(Integer.toString(user_id));\n\t\t\tvalues.add(Integer.toString(carrer_profile_project_id));\n\t\t\tvalues.add(project_name);\n\t\t\tvalues.add(dateFormat.format(project_start_date));\n\t\t\tvalues.add(dateFormat.format(project_end_date));\n\t\t\tvalues.add(project_organisation_associated_with);\n\t\t\t\n\t\t\tvalues.add(project_cast_associated_with);\n\t\t\tvalues.add(project_website_link);\n\t\t\tvalues.add(project_instgram_link);\n\t\t\tvalues.add(project_facebook_link);\n\t\t\tvalues.add(project_twitter_link);\n\t\t\tvalues.add(project_other_link);\n\t\t\tvalues.add(project_description);\n\t\t\t\n\t\t\t\n\t\t\tArrayList<String> labels=new ArrayList<String>();\n\t\t\tlabels.add(\"user_id\");\n\t\t\tlabels.add(\"carrer_profile_project_id\");\n\t\t\tlabels.add(\"project_name\");\n\t\t\tlabels.add(\"project_start_date\");\n\t\t\tlabels.add(\"project_end_date\");\n\t\t\tlabels.add(\"project_organisation_associated_with\");\n\t\t\t\n\t\t\tlabels.add(\"project_cast_associated_with\");\n\t\t\tlabels.add(\"project_website_link\");\n\t\t\tlabels.add(\"project_instgram_link\");\n\t\t\tlabels.add(\"project_facebook_link\");\n\t\t\tlabels.add(\"project_twitter_link\");\n\t\t\tlabels.add(\"project_other_link\");\n\t\t\tlabels.add(\"project_description\");\n\t\t\t// create carrer project profile detail image and store it \n\t\t\tmake_snapshot_carrer_profile(values, labels, con, user_id);\n\t\t} \n\t\t\t\n\t}", "private static boolean addNewProject() {\n\t\tString[] options = new String[] {\"Ongoing\",\"Finished\",\"Cancel\"};\n\t\tint choice = JOptionPane.showOptionDialog(frame, \"Select new project type\" , \"Add new Project\", \n\t\t\t\tJOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[2]);\n\t\t\n\t\tNewProjectDialog dialog;\n\t\t\n\t\tswitch(choice) {\n\t\tcase 0:\n\t\t\tdialog = new NewProjectDialog(\"o\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tdialog = new NewProjectDialog(\"f\");\n\t\t\tdialog.setVisible(true);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public static AddProject newInstance() {\n AddProject fragment = new AddProject();\n return fragment;\n }", "@Override\n\tpublic void insertProjectTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "public void create(Connection conn, Object object) \r\n\t\tthrows DAOException {\r\n\r\n\t\tif (!(object instanceof ProjectInfo))\r\n\t\t\tthrow new DAOException (\"invalid.object.projdao\",\r\n\t\t\t\t\tnull, DAOException.ERROR, true);\r\n\t\t\t\r\n\t\t\r\n\t\tString sqlstmt = DAOConstants.PROJ_CREATE;\r\n\t\tProjectInfo project = (ProjectInfo) object;\r\n\r\n\t\tif(project.getProjectId() == null)\r\n\t\t\tthrow new DAOException (\"invalid.object.projdao\",\r\n\t\t\t\t\tnull, DAOException.ERROR, true);\r\n\t\t\t\r\n\t\t\t\r\n\t\tlog.debug(\"creating ProjectInfo entry\");\r\n\t\ttry{\r\n\t\t\tif (conn == null || conn.isClosed())\r\n\t\t\t\tconn = dbAccess.getConnection();\r\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sqlstmt);\r\n\t\t\tProjectAssembler.getPreparedStatement(project, stmt);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t\tlog.debug(\"created ProjectInfo entry\");\r\n\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new DAOException (\"sql.create.exception.projdao\",\r\n\t\t\te, DAOException.ERROR, true);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new DAOException (\"create.exception.projdao\",\r\n\t\t\te.getCause(), DAOException.ERROR, true);\r\n \r\n\t\t} \r\n\t}", "public boolean updateProject(Project project);", "protected Project createProjectWithClient(long id, Client client) {\n Project project = new Project();\n setAuditableEntity(project);\n project.setActive(true);\n project.setClient(client);\n ProjectStatus projectStatus = createProjectStatus(100000);\n project.setProjectStatus(projectStatus);\n project.setId(id);\n project.setCompany(client.getCompany());\n\n // persist object\n Query query = entityManager\n .createNativeQuery(\"insert into project (project_id, project_status_id, client_id, \"\n + \"company_id,name,active,sales_tax,po_box_number,payment_terms_id,\"\n + \"description,creation_date,creation_user,modification_date,\"\n + \"modification_user,is_deleted,is_manual_prize_setting)\"\n + \" values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n int idx = 1;\n query.setParameter(idx++, project.getId());\n query.setParameter(idx++, project.getProjectStatus().getId());\n query.setParameter(idx++, project.getClient().getId());\n query.setParameter(idx++, project.getCompany().getId());\n query.setParameter(idx++, project.getName());\n query.setParameter(idx++, project.isActive());\n query.setParameter(idx++, project.getSalesTax());\n query.setParameter(idx++, project.getPOBoxNumber());\n query.setParameter(idx++, project.getPaymentTermsId());\n query.setParameter(idx++, project.getDescription());\n query.setParameter(idx++, project.getCreateDate());\n query.setParameter(idx++, project.getCreateUsername());\n query.setParameter(idx++, project.getModifyDate());\n query.setParameter(idx++, project.getModifyUsername());\n query.setParameter(idx++, 0);\n query.setParameter(idx++, 0);\n query.executeUpdate();\n\n query = entityManager\n .createNativeQuery(\"insert into client_project (project_id, client_id) values (?,?)\");\n idx = 1;\n query.setParameter(idx++, project.getId());\n query.setParameter(idx++, project.getClient().getId());\n query.executeUpdate();\n \n return project;\n }", "public Long createProject(ProjectTo projectTo) {\n\t\tprojectTo = new ProjectTo();\n\t\tprojectTo.setOrg_id(1L);\n\t\tprojectTo.setOrg_name(\"AP\");\n\t\tprojectTo.setName(\"Menlo\");\n\t\tprojectTo.setShort_name(\"Pioneer Towers\");\n\t\tprojectTo.setOwner_username(\"Madhapur\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateProject\");\n\t\t\tprojectTo = webResource.type(MediaType.APPLICATION_JSON).post(ProjectTo.class, projectTo);\n\t\t\tif(projectTo != null && projectTo.getProject_id() != null) {\n\t\t\t\treturn projectTo.getProject_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateProject : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "int insertSelective(UserOperateProject record);", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "@When(\"5- the user creates a project with a valid name {string} identical to an existing project\")\n\tpublic void theUserCreatesAProjectWithNameIdenticalToAnExistisngProject(String projectName) throws ProjectNotFoundException, ProjectAlreadyExistsException, NotAuthorizedException, OutOfBoundsException {\n\t\tadmin.createProject(projectName);\n\t\ttry {\n\t\t\tadmin.createProject(projectName);\n\t\t}\n\t\tcatch(ProjectAlreadyExistsException e) {\n\t\t\terrorMessageHolder.setErrorMessage(e.getMessage());\n\t\t}\n\t}", "public ProjectPk insert(Project dto) throws ProjectDaoException {\n\t\tlong t1 = System.currentTimeMillis();\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tResultSet rs = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the\n\t\t\t// ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\tstmt = conn.prepareStatement(SQL_INSERT, Statement.RETURN_GENERATED_KEYS);\n\t\t\tint index = 1;\n\t\t\tstmt.setInt(index++, dto.getId());\n\t\t\tstmt.setInt(index++, dto.getOwnerId());\n\t\t\tstmt.setInt(index++, dto.getCreatorId());\n\t\t\tstmt.setString(index++, dto.getName());\n\t\t\tstmt.setString(index++, dto.getDescription());\n\t\t\tif (dto.isCompanyIdNull()){\n\t\t\t\tstmt.setNull(index++, java.sql.Types.INTEGER);\n\t\t\t} else{\n\t\t\t\tstmt.setInt(index++, dto.getCompanyId());\n\t\t\t}\n\n\t\t\tstmt.setString(index++, dto.getBillAddress());\n\t\t\tstmt.setString(index++, dto.getBillCity());\n\t\t\tif (dto.isBillZipCodeNull()){\n\t\t\t\tstmt.setNull(index++, java.sql.Types.INTEGER);\n\t\t\t} else{\n\t\t\t\tstmt.setInt(index++, dto.getBillZipCode());\n\t\t\t}\n\n\t\t\tstmt.setString(index++, dto.getBillState());\n\t\t\tstmt.setString(index++, dto.getBillCountry());\n\t\t\tstmt.setString(index++, dto.getBillTelNum());\n\t\t\tstmt.setString(index++, dto.getBillFaxNum());\n\t\t\tstmt.setString(index++, dto.getIsEnable());\n\t\t\tstmt.setString(index++, dto.getMessageBody());\n\t\t\tstmt.setInt(index++, dto.getEsrqmId());\n\t\t\tstmt.setTimestamp(index++, dto.getCreateDate() == null ? null : new java.sql.Timestamp(dto.getCreateDate().getTime()));\n\t\t\tstmt.setInt(index++, dto.getLastModifiedBy());\n\t\t\tstmt.setTimestamp(index++, dto.getLastModifiedOn() == null ? null : new java.sql.Timestamp(dto.getLastModifiedOn().getTime()));\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL_INSERT + \" with DTO: \" + dto);\n\t\t\t}\n\n\t\t\tint rows = stmt.executeUpdate();\n\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(rows + \" rows affected (\" + (t2 - t1) + \" ms)\");\n\t\t\t}\n\n\t\t\t// retrieve values from auto-increment columns\n\t\t\trs = stmt.getGeneratedKeys();\n\t\t\tif (rs != null && rs.next()){\n\t\t\t\tdto.setId(rs.getInt(1));\n\t\t\t}\n\n\t\t\treset(dto);\n\t\t\treturn dto.createPk();\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\tthrow new ProjectDaoException(\"Exception: \" + _e.getMessage(), _e);\n\t\t} finally{\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\n\t\t}\n\n\t}", "private static void addProjectFile(IProject newProject, String fileName, String projectPath){\n \tBundle bundle = Platform.getBundle(BUNDLE_ID);//plugin id\n \tString filePath = DEFAULT_FILE_PATH + fileName;\n \tIPath location= Path.fromOSString(filePath); \n \tInputStream stream;\n\t\ttry {\n\t\t\tstream = FileLocator.openStream( bundle, location, false );\n\t\t\tString createdFilePath = projectPath+fileName;\n\t \tIFile file = newProject.getFile(createdFilePath);\n\t\t\tfile.create( stream, true, null );\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}catch (CoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }", "@Override\n\tpublic Integer modifyProject(ProjectInfo project) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.modifyProject\", project);\n\t}", "private void newProject(ActionEvent x) {\n\t\tthis.controller.newProject();\n\t}", "public String createSubmittedProjectQuery(ArrayList<String> submittedProject)\r\n\t{\r\n\t\tString query = \"INSERT INTO SubmittedProject VALUES('\"+submittedProject.get(0)+\"','\"+submittedProject.get(1)+\"','\"\r\n\t\t\t\t+ submittedProject.get(2)+\"','\"+submittedProject.get(3)+\"','\"+submittedProject.get(4)+\"')\";\r\n\t\t\r\n\t\treturn query;\r\n\t}", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "private void insertProjectTable() {\n name.setCellValueFactory(new PropertyValueFactory<>(\"nameId\"));\n dateStart.setCellValueFactory(new PropertyValueFactory<>(\"dateStart\"));\n dateFinish.setCellValueFactory(new PropertyValueFactory<>(\"dateFinish\"));\n place.setCellValueFactory(new PropertyValueFactory<>(\"place\"));\n car.setCellValueFactory(new PropertyValueFactory<>(\"cars\"));\n instructors.setCellValueFactory(new PropertyValueFactory<>(\"instructors\"));\n description.setCellValueFactory(new PropertyValueFactory<>(\"description\"));\n author.setCellValueFactory(new PropertyValueFactory<>(\"author\"));\n }", "public static Project Create(String id)\n\t{\n\t\t// Need to use an ancestor query to do this inside a transaction.\n\t\t// But the ancestor of project is project.\n\t\t// So we just create a normal key with only the type and id\n\t\tproject = ofy().load().key(Key.create(Project.class, id)).now();\n\n\t\treturn project;\n\t}", "@Override\n\tpublic int saveProject(Project project) \n\t\t\tthrows DuplicateKeyException, Exception {\n\t\ttry {\n\t\t\tint numObjectUpdated = saveDomainObject(project);\n\t\t\tif (numObjectUpdated == 0) {\n\t\t\t\tthrow new Exception(\"Fail to update the Project obejct\");\n\t\t\t}\n\t\t\treturn numObjectUpdated;\n\t\t}\n\t\tcatch (MustOverrideException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.saveProject MustOverrideException: \" + e.getMessage());\n\t\t\treturn -1;\n\t\t}\n\t\tcatch (DuplicateKeyException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.saveProject DuplicateKeyException: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.saveProject Exception: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "@Override\n\tpublic void insertProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "public int insertTeamMember(Member_Project mp) {\n\t\treturn sqlSession.insert(\"member_projectMapper.insertTeamMember\", mp);\r\n\t}", "public String createProjectQuery(ArrayList<String> project) \r\n\t{\r\n\t\t/*String query = \"INSERT INTO Project\" + \"(AirQualityAnalysisCO,AirQualityAnalysisNOX,AirQualityAnalysisVOC,Area,CapacityProject\"\r\n\t\t\t\t+ \"City,County,DOTDistrict,FederalFiscalYear,FederalFunctionalClassification,FundProjectType,HighwayRoadwayName,LimitFrom,LimitTo\"\r\n\t\t\t\t+ \"NetworkYear,NumberofExistingLanes,ProjectDescription,ProjectID,ProjectName,ProjectPhases,ProjectType,Remarks,\"\r\n\t\t\t\t+ \"ScopeofWork,SponsorAgency,StateSystemRoad,NumberofMiles,numberofProjectedLanes)\" + \"VALUES('\"+project.get(0)+\"','\"+project.get(1)+\"','\"\r\n\t\t\t\t\t\t+ project.get(2)+\"','\"+project.get(3)+\"','\"+project.get(4)+\"','\"\r\n\t\t\t\t\t\t+ project.get(5)+\"','\"+project.get(6)+\"','\"+project.get(7)+\"','\"+project.get(8)+\"','\"+project.get(9)+\"','\"+project.get(10)+\"','\"\r\n\t\t\t\t\t\t+ project.get(11)+\"','\"+project.get(12)+\"','\"+project.get(13)+\"','\"+project.get(14)+\"','\"+project.get(15)+\"','\"+project.get(16)+\"','\"\r\n\t\t\t\t\t\t+ project.get(17)+\"','\"+project.get(18)+\"','\"+project.get(19)+\"','\"+project.get(20)+\"','\"+project.get(21)+\"','\"+project.get(22)+\"','\"\r\n\t\t\t\t\t\t+ project.get(23)+\"','\"+project.get(24)+\"','\"+project.get(25)+\"','\"+project.get(26)+\"')\";*/\r\n\t\t\r\n\t\tString query = \"INSERT INTO Project VALUES('\"+project.get(0)+\"','\"+project.get(1)+\"','\"\r\n\t\t\t\t\t\t+ project.get(2)+\"','\"+project.get(3)+\"','\"+project.get(4)+\"','\"\r\n\t\t\t\t\t\t+ project.get(5)+\"','\"+project.get(6)+\"','\"+project.get(7)+\"','\"+project.get(8)+\"','\"+project.get(9)+\"','\"+project.get(10)+\"','\"\r\n\t\t\t\t\t\t+ project.get(11)+\"','\"+project.get(12)+\"','\"+project.get(13)+\"','\"+project.get(14)+\"','\"+project.get(15)+\"','\"+project.get(16)+\"','\"\r\n\t\t\t\t\t\t+ project.get(17)+\"','\"+project.get(18)+\"','\"+project.get(19)+\"','\"+project.get(20)+\"','\"+project.get(21)+\"','\"+project.get(22)+\"','\"\r\n\t\t\t\t\t\t+ project.get(23)+\"','\"+project.get(24)+\"','\"+project.get(25)+\"','\"+project.get(26)+\"')\";\r\n\t\t\r\n\t\treturn query;\r\n\t\t\r\n\t\t\r\n\t\t/*String query = \"INSERT INTO USERS VALUES('\"+ airQualityAnalysisCO + \"','\"+ airQualityAnalysisNOX + \"','\" + airQualityAnalysisVOC + \r\n\t\t\t\t\"','\" + area + \"','\" + capacityProject+ \"','\" + city + \"','\" + county + \"','\" + dotDistrict + \"','\"+ federalFiscalYear + \r\n\t\t\t\t\"','\"+ federalFunctionalClassifications + \"','\"+ fundProjectType + \"','\"+ highwayRoadwayName + \"','\"+ limitFrom + \"','\"\r\n\t\t\t\t+ limitTo + \"','\"+networkYear + \"','\"+ \"','\" + numberExistingLanes + \"','\" + projectDescription + \"','\"+projectID + \r\n\t\t\t\t\"','\"+projectName + \"','\" + projectPhases + \"','\"+projectType + \"','\"+remarks + \"','\" + scopeOfProduct\r\n\t\t\t\t+ \"','\"+sponsorAgency + \"','\"+stateSystemRoad + \"','\"+ numberMiles +\"','\" + numberProjectedLanes + \"')\";\r\n\t\tSystem.out.println(query);*/\r\n\r\n\t}", "int insertSelective(CliStaffProject record);", "@When(\"I click on the Create new Project\")\n public void i_click_on_the_create_new_project(){\n\n i_click_on_create_a_new_project();\n }", "@PostMapping(\"/projects\")\n @Timed\n public ResponseEntity<ProjectDTO> createProject(@Valid @RequestBody ProjectDTO projectDto)\n throws URISyntaxException, NotAuthorizedException {\n log.debug(\"REST request to save Project : {}\", projectDto);\n var org = projectDto.getOrganization();\n if (org == null || org.getName() == null) {\n throw new BadRequestException(\"Organization must be provided\",\n ENTITY_NAME, ERR_VALIDATION);\n }\n checkPermissionOnOrganization(token, PROJECT_CREATE, org.getName());\n\n if (projectDto.getId() != null) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"idexists\", \"A new project cannot already have an ID\"))\n .body(null);\n }\n if (projectRepository.findOneWithEagerRelationshipsByName(projectDto.getProjectName())\n .isPresent()) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"nameexists\", \"A project with this name already exists\"))\n .body(null);\n }\n ProjectDTO result = projectService.save(projectDto);\n return ResponseEntity.created(ResourceUriService.getUri(result))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getProjectName()))\n .body(result);\n }", "public void add(String name, String newToDo)\n {\n if (newToDo == null || name == null || newToDo.length() == 0 || name.length() == 0 )\n return;\n try {\n //Open a connection and create a statement and query.\n Connection con = ConnectDB();\n PreparedStatement prepStmt;\n \n //With NULL for an integer unique value, SQLite will automatically pick the next biggest integer for\n //the REFERENCE number\n String query = \"INSERT INTO TASKS VALUES(NULL, ?, ?, '0')\";\n prepStmt = con.prepareStatement(query);\n \n prepStmt.setString(1,name);\n prepStmt.setString(2, newToDo);\n \n prepStmt.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(SQLConnect.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void newProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_NewProjectDialog.fxml\");\n\t\tdialog.initOwner(newProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'new project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "public void insertProjectCommitRecord(int pgId, int commitNumber, StatusEnum status, Date time,\n String commitStudent) {\n String sql = \"INSERT INTO Project_Commit_Record\"\n + \"(pgId, commitNumber, status, time, commitStudent) \" + \"VALUES(?, ?, ?, ?, ?)\";\n int statusId = csDb.getStatusIdByName(status.getType());\n Timestamp date = new Timestamp(time.getTime());\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.setInt(2, commitNumber);\n preStmt.setInt(3, statusId);\n preStmt.setTimestamp(4, date);\n preStmt.setString(5, commitStudent);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public synchronized void addProjectCP(File f) { projectCP.add(f); }", "private void actionNewProject ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDataController.scenarioNewProject();\r\n\r\n\t\t\thelperDisplayProjectFiles();\r\n\r\n\t\t\t//---- Change button icon\r\n\t\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_VIEW_SAMPLES);\r\n\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setIcon(iconButton);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setActionCommand(FormMainHandlerCommands.AC_VIEW_SAMPLES_ON);\r\n\t\t\tmainFormLink.getComponentToolbar().getComponentButtonViewSamples().setToolTipText(\"View detected samples\");\r\n\r\n\t\t\tmainFormLink.reset();\r\n\t\t}\r\n\t\tcatch (ExceptionMessage e)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(e);\r\n\t\t}\r\n\t}", "@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}", "@Test\r\n\tpublic void addToDb() {\r\n\t\tservice.save(opinion);\r\n\t\tassertNotEquals(opinion.getId(), 0);\r\n\t\tassertTrue(service.exists(opinion.getId()));\r\n\t}", "LectureProject createLectureProject();" ]
[ "0.79139", "0.7623367", "0.74248403", "0.7337768", "0.72946113", "0.72908926", "0.7087798", "0.7035077", "0.6966021", "0.6959114", "0.691311", "0.68870026", "0.688144", "0.67752564", "0.67215747", "0.67060417", "0.66920054", "0.6687116", "0.6679894", "0.66609806", "0.66328055", "0.66154647", "0.6584826", "0.6578714", "0.65593815", "0.6435409", "0.642546", "0.6410941", "0.6408629", "0.63860774", "0.63134116", "0.6306904", "0.628793", "0.62574303", "0.6233357", "0.6205576", "0.61873037", "0.6182", "0.61510533", "0.61368364", "0.60811806", "0.6080365", "0.6059889", "0.6042179", "0.60355145", "0.59983265", "0.59943575", "0.59788215", "0.59788215", "0.59788215", "0.59759814", "0.59439653", "0.59259766", "0.58972245", "0.5891119", "0.5890826", "0.58802617", "0.58798224", "0.5875348", "0.5803158", "0.5772784", "0.57683057", "0.5754529", "0.5753783", "0.572545", "0.570661", "0.5699487", "0.5674858", "0.5671503", "0.5666891", "0.56658226", "0.5641085", "0.5640976", "0.5633411", "0.56228447", "0.56186754", "0.55989814", "0.5594431", "0.5590116", "0.5584831", "0.5566506", "0.5564467", "0.5553875", "0.55458343", "0.5539984", "0.5537179", "0.5530038", "0.55294716", "0.552526", "0.5521805", "0.5520617", "0.55173624", "0.549693", "0.54963684", "0.54916656", "0.5423246", "0.5417089", "0.5415318", "0.5400629", "0.53992826" ]
0.62077314
35
/ Deletes a Project from the Project database
public String handleDelete() throws HttpPresentationException, webschedulePresentationException { String projectID = this.getComms().request.getParameter(PROJ_ID); System.out.println(" trying to delete a project "+ projectID); try { Project project = ProjectFactory.findProjectByID(projectID); String title = project.getProj_name(); project.delete(); this.getSessionData().setUserMessage("The project, " + title + ", was deleted"); // Catch any possible database exception as well as the null pointer // exception if the project is not found and is null after findProjectByID } catch(Exception ex) { this.getSessionData().setUserMessage(projectID + " Please choose a valid project to delete"); } // Redirect to the catalog page which will display the error message, // if there was one set by the above exception throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteProject(Long projectId);", "@Override\n\tpublic Integer delProject(ProjectInfo project) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProject\", project);\n\t}", "void deleteProject(String projectKey);", "void deleteByProjectId(Long projectId);", "@DeleteMapping(\"/deleteProject/{projectId}\")\r\n\tpublic void deleteProject(@PathVariable String projectId) {\r\n\r\n\t\tpersistenceService.deleteProject(projectId);\r\n\t}", "public boolean deleteProject(Project p) {\n try {\n String delete = \"DELETE FROM PROJECTS WHERE PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(delete);\n ps.setString(1, p.getProjectId());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "public void deleteProject(String projectId) {\n\t\tString args[] = { projectId };\n\n\t\t// delete tasks\n\t\tdatabase.delete(Constants.TABLE_TASKS, Constants.COLUMN_PROJECTS_ID + \" = ?\", args);\n\n\t\t// delete the project\n\t\tdatabase.delete(Constants.TABLE_PROJECTS, Constants.COLUMN_ID + \" = ?\", args);\n\t}", "public void deleteProject(int projectId)\n throws InexistentProjectException, SQLException, NoSignedInUserException,\n InexistentDatabaseEntityException, UnauthorisedOperationException {\n User currentUser = getMandatoryCurrentUser();\n Project project = getMandatoryProject(projectId);\n guaranteeUserIsSupervisor(\n currentUser, project, \"delete project\", \"they are not the \" + \"supervisor\");\n commentRepository.deleteAllCommentsOfProject(projectId);\n projectRepository.deleteProject(projectId);\n support.firePropertyChange(\n ProjectChangeablePropertyName.DELETE_PROJECT.toString(), OLD_VALUE, NEW_VALUE);\n }", "public void deleteProjectRecord(int pgId) {\n String sql = \"DELETE FROM Project_Commit_Record WHERE pgid=?\";\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, pgId);\n preStmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic int deleteProject(Map<String, Object> map) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic ResponseEntity<String> deleteProject(String authToken , int projectId) throws ManualException{\r\n\t\tSession session=sessionFactory.openSession();\r\n\t\t\r\n\t\tResponseEntity<String> responseEntity=new ResponseEntity<String>(HttpStatus.BAD_REQUEST);\r\n\t\t\r\n\t\t/* check for authToken of admin */\r\n\t\tsession.beginTransaction();\r\n\t\ttry{\r\n\t\t\tAuthTable authtable=session.get(AuthTable.class, authToken);\r\n\t\t\tUser adminUser=session.get(User.class, authtable.getUser().getEmpId());\r\n\t\t\tif(adminUser.getUsertype().equals(\"Admin\")){\t\r\n\t\t\t\t\r\n\t\t\t\t\t/* get The Project */\r\n\t\t\t\t\tString hql = \"FROM project where projectId= \"+projectId ;\r\n\t\t\t\t\tQuery query = session.createQuery(hql);\r\n\t\t\t\t\tProject returnedProject=(Project)query.list().get(0);\r\n\t\t\t\t\r\n\t\t\t\t\t/* get user of that Project */\r\n\t\t\t\t\thql = \"FROM user where projectId=\"+returnedProject.getProjectId() ;\r\n\t\t\t\t\tquery = session.createQuery(hql);\r\n\t\t\t\t\tList<User> users=(List<User>)query.list();\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* Deleting project from users */\r\n\t\t\t\t\tfor(User user:users){\r\n\t\t\t\t\t\tuser.setProject(null);\r\n\t\t\t\t\t\tsession.persist(user);\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t/* delete from project table */\r\n\t\t\t\t\tif(returnedProject!=null){\r\n\t\t\t\t\t\tsession.delete(returnedProject);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t/* entry in operation table */\r\n\t\t\t\t\tOperationImpl operationImpl= new OperationImpl();\r\n\t\t\t\t\toperationImpl.addOperation(session, adminUser, \"Deleted Project \"+ returnedProject.getProjectName());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tresponseEntity=new ResponseEntity<String>(HttpStatus.OK);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tresponseEntity=new ResponseEntity<String>(HttpStatus.NOT_FOUND);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tresponseEntity=new ResponseEntity<String>(HttpStatus.UNAUTHORIZED);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tresponseEntity=null;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn responseEntity;\r\n\t\t}\r\n\t}", "@Path (\"project/{repositoryId}/{groupId}/{projectId}\")\n @DELETE\n @Produces ({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML, MediaType.TEXT_PLAIN })\n @RedbackAuthorization (noPermission = true)\n ActionStatus deleteProject( @PathParam (\"groupId\") String groupId, @PathParam (\"projectId\") String projectId,\n @PathParam (\"repositoryId\") String repositoryId )\n throws ArchivaRestServiceException;", "@Override\n\tpublic Integer removeProject(Integer projId) {\n\t\treturn sqlSession.delete(\"cn.sep.samp2.project.removeProject\", projId);\n\t}", "public void delete(ProjectPk pk) throws ProjectDaoException {\n\t\tlong t1 = System.currentTimeMillis();\n\t\t// declare variables\n\t\tfinal boolean isConnSupplied = (userConn != null);\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\ttry{\n\t\t\t// get the user-specified connection or get a connection from the\n\t\t\t// ResourceManager\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(\"Executing \" + SQL_DELETE + \" with PK: \" + pk);\n\t\t\t}\n\n\t\t\tstmt = conn.prepareStatement(SQL_DELETE);\n\t\t\tstmt.setInt(1, pk.getId());\n\t\t\tint rows = stmt.executeUpdate();\n\t\t\tlong t2 = System.currentTimeMillis();\n\t\t\tif (logger.isDebugEnabled()){\n\t\t\t\tlogger.debug(rows + \" rows affected (\" + (t2 - t1) + \" ms)\");\n\t\t\t}\n\t\t} catch (Exception _e){\n\t\t\tlogger.error(\"Exception: \" + _e.getMessage(), _e);\n\t\t\tthrow new ProjectDaoException(\"Exception: \" + _e.getMessage(), _e);\n\t\t} finally{\n\t\t\tResourceManager.close(stmt);\n\t\t\tif (!isConnSupplied){\n\t\t\t\tResourceManager.close(conn);\n\t\t\t}\n\n\t\t}\n\n\t}", "public String deleteProjectQuery(String pID) \r\n\t{\r\n\t\tString query = \"DELETE FROM Project WHERE ProjectID = \\\"\"+pID+\"\\\"\";\r\n\t\tSystem.out.println(query);\r\n\t\treturn query;\r\n\t}", "public String deleteProjectQuery(String pID) \r\n\t{\r\n\t\tString query = \"DELETE FROM Project WHERE ProjectID = \\\"\"+pID+\"\\\"\";\r\n\t\tSystem.out.println(query);\r\n\t\treturn query;\r\n\t}", "public static void deleteAndRevert(IProject project) throws CoreException {\n deleteAndRevert(new IProject[] { project });\n }", "@RequestMapping(value = \"/project/{id}\", method = RequestMethod.DELETE)\n\tpublic Response deleteProject(@PathVariable Integer id) {\n\t\tResponse response = new Response();\n\t\ttry {\n\t\t\tBoolean isDelete = projectService.removeProjectData(id);\n\t\t\tif (isDelete) {\n\t\t\t\tresponse.setCode(CustomResponse.SUCCESS.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.SUCCESS.getMessage());\n\t\t\t} else {\n\t\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\tlogger.error(\"error while project delete \", e);\n\t\t}\n\t\treturn response;\n\t}", "void deleteAllCommentsOfProject(int projectId) throws SQLException;", "public int delete(String id) {\n\treturn projectmapper.delete(id);\n}", "@DeleteMapping(\"/projects/{projectName:\" + Constants.ENTITY_ID_REGEX + \"}\")\n @Timed\n public ResponseEntity<?> deleteProject(@PathVariable String projectName)\n throws NotAuthorizedException {\n checkPermission(token, PROJECT_DELETE);\n log.debug(\"REST request to delete Project : {}\", projectName);\n ProjectDTO projectDto = projectService.findOneByName(projectName);\n checkPermissionOnOrganizationAndProject(token, PROJECT_DELETE,\n projectDto.getOrganization().getName(), projectDto.getProjectName());\n\n try {\n projectService.delete(projectDto.getId());\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, projectName))\n .build();\n } catch (DataIntegrityViolationException ex) {\n return ResponseEntity.badRequest()\n .body(new ErrorVM(ERR_PROJECT_NOT_EMPTY, ex.getMessage()));\n }\n }", "@RequestMapping(value=\"/deleteproject/{id}\", method = RequestMethod.GET)\n\tpublic ModelAndView deleteProject(@PathVariable(\"id\") String projectId) {\n\n\t\tdreamHomeService.deleteProject(Integer.parseInt(projectId));\n\t\t//model.addObject(\"successMessage\",\"Project deleted successfully\");\n\t\treturn new ModelAndView(\"redirect:/project/homepage\");\n\n\t}", "@DeleteMapping(\"/project/{projectId}\")\n public Object doDelete(@PathVariable(\"projectId\") Long projectId) throws InvalidIdentifierException {\n service.deleteProjectById(projectId);\n return new ResponseTemplate(true, null);\n }", "void deleteTrackerProjects(final Integer id);", "@Transactional\r\n public void delete(long directProjectId) throws ContributionServiceException {\r\n String signature = CLASS_NAME + \".delete(long directProjectId)\";\r\n\r\n deleteEntity(signature, DirectProjectCPConfig.class, directProjectId, \"directProjectId\");\r\n }", "public void delete(Long id) {\n log.debug(\"Request to delete TaskProject : {}\", id);\n taskProjectRepository.delete(id);\n taskProjectSearchRepository.delete(id);\n }", "public void deleteProject(String token, String projectKey) throws JiraManagerException {\r\n Util.logEnter(log, \"deleteProject\", token, projectKey);\r\n Util.checkString(log, \"token\", token);\r\n Util.checkString(log, \"projectKey\", projectKey);\r\n\r\n try {\r\n getJiraManagementServicePort().deleteProject(token, projectKey);\r\n Util.logExit(log, \"deleteProject\");\r\n } catch (JiraServiceException e) {\r\n throw processError(e);\r\n }\r\n }", "public void deleteCalendarProject(String id) {\n String sql = \"UPDATE calendar_projects SET deleted = true WHERE id = :id \";\n Map params = new HashMap();\n params.put(\"id\", id);\n int rows = jdbcTemplate.update(sql, params);\n if (rows != 1) {\n throw new DataAccessException(\"Unexpected rows. Expected: 1 Rows: \" + rows) {\n };\n }\n }", "public String deleteProjectQuery(String username) \n\t{\n\t\tString query = \"DELETE FROM Project WHERE username=\\\"\"+username+\"\\\"\";\n\t\tSystem.out.println(query);\n\t\treturn query;\n\t}", "@Override\n\tpublic void deleteProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}", "public void testProjectDelete() {\n \t\t// create the project\n \t\tIProject project = getProject(getUniqueString());\n \t\tensureExistsInWorkspace(project, true);\n \t\t// set some settings\n \t\tString qualifier = getUniqueString();\n \t\tString key = getUniqueString();\n \t\tString value = getUniqueString();\n \t\tIScopeContext context = new ProjectScope(project);\n \t\tPreferences node = context.getNode(qualifier);\n \t\tPreferences parent = node.parent().parent();\n \t\tnode.put(key, value);\n \t\tassertEquals(\"1.0\", value, node.get(key, null));\n \n \t\ttry {\n \t\t\t// delete the project\n \t\t\tproject.delete(IResource.FORCE | IResource.ALWAYS_DELETE_PROJECT_CONTENT, getMonitor());\n \t\t} catch (CoreException e) {\n \t\t\tfail(\"2.0\", e);\n \t\t}\n \n \t\ttry {\n \t\t\t// project pref should not exist\n \t\t\tassertTrue(\"3.0\", !parent.nodeExists(project.getName()));\n \t\t} catch (BackingStoreException e) {\n \t\t\tfail(\"3.1\", e);\n \t\t}\n \n \t\t// create a project with the same name\n \t\tensureExistsInWorkspace(project, true);\n \n \t\t// ensure that the preference value is not set\n \t\tassertNull(\"4.0\", context.getNode(qualifier).get(key, null));\n \t}", "public void deleteTemporaryProject() throws CoreException{\n\t\tString versionName = DataManager.getProjectVersion();\n\t\tajdtHandler.deleteProject(versionName);\n\t\t\n\t\tif(versionName.contains(\"_Old\")){\n\t\t\tversionName = versionName.replace(\"_Old\", \"\");\n\t\t\tajdtHandler.deleteProject(versionName);\n\t\t}\n\t\t\n\t}", "int deleteByPrimaryKey(Integer teamId);", "int deleteByPrimaryKey(String userOperateProjectId);", "public boolean deleteProject(Project project, boolean isUndoOrRedo) throws StorageException {\n\t\ttry {\n\t\t\tcontentResolver.delete(LocalStorageContentProvider.PROJECT_URI, \"_id =\\\"\" + project.get_Id() + \"\\\"\", null);\n\t\t} catch (Exception e) {\n\t\t\tthrow new StorageException();\n\t\t}\n\t\tif (!isUndoOrRedo) {\n\t\t\tthis.getProjectDeletedList().add(project);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic Integer delProjectBatch(List<ProjectInfo> projList) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProjectBatch\", projList);\n\t}", "public void delete() throws InvalidIDException, SQLException {\r\n\r\n\t\t// Delete the general project entry first\r\n\t\tsuper.delete();\r\n\r\n\t\t// Get our connection to the database.\r\n\t\tConnection conn = DBConnectionManager.getPrConnection();\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\r\n\t\t\t// Our SQL statement\r\n\t\t\tString sqlStr = \"SELECT projectID FROM tblTechnology WHERE projectID = \" + super.id;\r\n\r\n\t\t\t// Our results\r\n\t\t\trs = stmt.executeQuery(sqlStr);\r\n\r\n\t\t\t// No rows returned.\r\n\t\t\tif( !rs.next() ) {\r\n\t\t\t\tthrow new InvalidIDException(\"Attempted to delete a Technology Project not found in the database.\");\r\n\t\t\t}\r\n\r\n\t\t\t// Delete the result row.\r\n\t\t\trs.deleteRow();\t\t\r\n\r\n\t\t\trs.close();\r\n\t\t\trs = null;\r\n\t\t\t\r\n\t\t\tstmt.close();\r\n\t\t\tstmt = null;\r\n\t\t\t\r\n\t\t\tconn.close();\r\n\t\t\tconn = null;\r\n\t\t\t\r\n\t\t\t// re-initialize the id\r\n\t\t\tsuper.id = 0;\r\n\t\t}\r\n\t\tcatch(SQLException e) { throw e; }\r\n\t\tcatch(InvalidIDException e) { throw e; }\r\n\t\tfinally {\r\n\r\n\t\t\t// Always make sure result sets and statements are closed,\r\n\t\t\t// and the connection is returned to the pool\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry { rs.close(); } catch (SQLException e) { ; }\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry { stmt.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry { conn.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic int deleteProject(int ownerAccountId, int id)\n\t\t\tthrows Exception {\n\t\tif (ownerAccountId <= 0 || id <= 0)\n\t\t\treturn 0;\n\t\ttry {\n\t\t\treturn deleteDomainObject(ownerAccountId, id);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t}", "@Override\n public void removeProject(Project project) {\n TracCommand command = new TracRemoveProjectCommand(configuration, project);\n try {\n success = executor.executeSync(command);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n logger.error(e.getMessage(), e);\n }\n }", "@Override\n\tpublic void deleteTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}", "public void deleteDB() {\n \n sql = \"Delete from Order where OrderID = \" + getOrderID();\n db.deleteDB(sql);\n \n }", "int deleteByExample(UserOperateProjectExample example);", "int deleteByExample(CliStaffProjectExample example);", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/projects\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionProject();", "public boolean deleteProject(String projectName, String userName, String password){\n\t\ttry{\n\t\t\t//Assert.assertTrue(CommonUtil.titleContains(\"Browse Projects\", Constants.EXPLICIT_WAIT_LOW), \"Browse Project Page title is not same.\");\n\t\t\t//logger.info(\"Browse Projects page is selected successfully.\");\n\t\t\t//allProjectsLink.click();\n\t\t\t//Assert.assertTrue(CommonUtil.visibilityOfElementLocated(\"//div[@id='none-panel' and @class='module inall active']\"));\n\t\t\tAssert.assertTrue(CommonUtil.searchTheTextInList(\".//*[@id='project-list']/descendant::a[contains(@id,'view-project-')]\", projectName), \"Project is not searched successfully.\");\n\t\t\tlogger.info(projectName + \" is Searched successfully.\");\n\t\t\t\n\t\t\tCommonUtil.navigateThroughXpath(\"//td[a[text()='\"+projectName+\"']]/following-sibling::td/descendant::a[contains(@id,'delete_project')]\");\n\t\t\tCommonUtil.implicitWait(Constants.IMPLICIT_WAIT_MEDIUM);\n\t\t\tif ( CommonUtil.getTitle().contains(\"Administrator Access\") ) {\n\t\t\t\tAssert.assertTrue( JiraAdministrationAuthenticatePage.getInstance().authenticateAdminPassword(userName, password), \"Jira Administrator is not authenticate successsfully.\" );\n\t\t\t\tCommonUtil.implicitWait(Constants.IMPLICIT_WAIT_MEDIUM);\n\t\t\t\tlogger.info(\"Administrator is authenticate successfully.\");\n\t\t\t}\n\t\t\tAssert.assertTrue(CommonUtil.getTextFromUIByXpath(\"//td/*[@class='formtitle']\").contains(\"Delete Project:\"), \"Delete project confirmation popup is not validated.\");\n\t\t\tlogger.info(\"Delete project confirmation popup is validated successfully.\");\n\t\t\tAssert.assertTrue(CommonUtil.getTextFromUIByXpath(\"//td/*[@class='formtitle']\").contains(projectName), \"Delete project name in popup is not validated.\");\n\t\t\tlogger.info(\"Delete project Name in confirmation popup is validated successfully.\");\n\t\t\tCommonUtil.navigateThroughXpath(\".//*[@id='delete_submit']\");\n\t\t\tCommonUtil.javaWait(Constants.JAVA_WAIT_MEDIUM);\n\t\t\t\n\t\t\t\n\t\t\tAssert.assertFalse(CommonUtil.searchTheTextInList(\".//*[@id='project-list']/descendant::a[contains(@id,'view-project-')]\", projectName), \"Project is still present After delete.\");\n\t\t\tlogger.info(projectName + \" is Deleted successfully.\");\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public OperationReference queueDeleteProject(\r\n final UUID projectId) {\r\n\r\n final UUID locationId = UUID.fromString(\"603fe2ac-9723-48b9-88ad-09305aa6c6e1\"); //$NON-NLS-1$\r\n final ApiResourceVersion apiVersion = new ApiResourceVersion(\"2.1\"); //$NON-NLS-1$\r\n\r\n final Map<String, Object> routeValues = new HashMap<String, Object>();\r\n routeValues.put(\"projectId\", projectId); //$NON-NLS-1$\r\n\r\n final Object httpRequest = super.createRequest(HttpMethod.DELETE,\r\n locationId,\r\n routeValues,\r\n apiVersion,\r\n APPLICATION_JSON_TYPE);\r\n\r\n return super.sendRequest(httpRequest, OperationReference.class);\r\n }", "public int deleteByPrimaryKey(Long id) {\r\n ProjectFiles key = new ProjectFiles();\r\n key.setId(id);\r\n int rows = getSqlMapClientTemplate().delete(\"project_files.ibatorgenerated_deleteByPrimaryKey\", key);\r\n return rows;\r\n }", "public static void deleteAndRevert(IProject[] projects)\n throws CoreException {\n if (projects != null) {\n for (IProject project : projects) {\n if (project != null) {\n RevertAction revertAction = new RevertAction();\n revertAction.setAsync(false);\n revertAction.selectionChanged(null,\n new StructuredSelection(project));\n revertAction.runAction(false);\n\n if (project != null && project.exists()) {\n project.refreshLocal(IResource.DEPTH_INFINITE, null);\n project.accept(new IResourceVisitor() {\n\n public boolean visit(IResource resource)\n throws CoreException {\n ResourceAttributes attrs = resource\n .getResourceAttributes();\n if (attrs != null) {\n attrs.setReadOnly(false);\n try {\n resource.setResourceAttributes(attrs);\n } catch (CoreException e) {\n }\n }\n return true;\n }\n });\n project.delete(true, true, null);\n }\n }\n }\n }\n }", "int deleteByPrimaryKey(String depCode);", "@HTTP(\n method = \"DELETE\",\n path = \"/apis/config.openshift.io/v1/projects\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesCall<Status> deleteCollectionProject(\n @QueryMap DeleteCollectionProject queryParameters);", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete Projectproduct : {}\", id);\n projectproductRepository.delete(UUID.fromString(id));\n }", "@DeleteMapping(\"/delete/{constraintId}/{projectId}\")\r\n\tpublic void deleteConstraint(@PathVariable long constraintId, @PathVariable long projectId) {\n\t\tif (projectService.findByID(projectId) == null) {\r\n\t\t\tthrow new BaseException(ExceptionCode.ER0012);\r\n\t\t}\r\n\t\tservice.deleteConstraint(projectId, constraintId);\r\n\t}", "public void delete(Long id) {\n\t\tfor (Note project : getNotes()) {\n\t\t\tif (project.getId().equals(id)) {\n\t\t\t\tString sql = \"DELETE FROM todo WHERE ID='\" + id + \"'\";\n\n\t\t\t\tList<Note> todos = sqlUpdate(sql);\n\n\t\t\t\tsetNotes(todos);\n\t\t\t}\n\t\t}\n\n\t\t// this.getHibernateTemplate().delete(project);\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTransactionRecord : {}\", id);\n projectTransactionRecordRepository.delete(id);\n }", "int deleteByPrimaryKey(String idTipoPersona) throws SQLException;", "int deleteByExample(ProjGroupExample example);", "@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}", "@Delete({\n \"delete from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "public boolean deletePropostaPeloIdProjeto(int projeto_id) {\n\n conectarnoBanco();\n\n String sql = \"DELETE FROM proposta WHERE id_projeto = ?\";\n\n try {\n pst = con.prepareStatement(sql);\n String prop = Integer.toString(projeto_id);\n pst.setString(1, prop);\n pst.execute();\n\n sucesso = true;\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao deletar proposta pelo id do projeto = \" + ex.getMessage());\n sucesso = false;\n } finally {\n try {\n\n if (con != null && pst != null) {\n con.close();\n pst.close();\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao fechar o bd = \" + ex.getMessage());\n }\n\n }\n\n return sucesso;\n }", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;", "@Test\n public void deleteTemplateProgrammerProjectByProjectIdTest() throws ApiException {\n String projectId = null;\n TaskIdResult response = api.deleteTemplateProgrammerProjectByProjectId(projectId);\n\n // TODO: test validations\n }", "int deleteByPrimaryKey(String taskid);", "public int deleteByVirtualProjectCode(String virtualProjectCode) throws DataAccessException {\n\n return getSqlMapClientTemplate().delete(\"MS-PROJECT-VIRTUAL-DETAIL-DELETE-BY-VIRTUAL-PROJECT-CODE\", virtualProjectCode);\n }", "public void delete() {\n\t\ttry {\n\t\t\tStatement stmt = m_db.m_conn.createStatement();\n\t\t\tString sqlString;\n\t\t\tString ret;\n\n\t\t\tsqlString = \"DELETE from country WHERE countryid=\" + m_country_id;\n\t\t\tm_db.runSQL(sqlString, stmt);\n\t\t\tstmt.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\">>>>>>>> EXCEPTION <<<<<<<<\");\n\t\t\tSystem.out.println(\"An Exception occured in delete().\");\n\t\t\tSystem.out.println(\"MESSAGE: \" + e.getMessage());\n\t\t\tSystem.out.println(\"LOCALIZED MESSAGE: \" + e.getLocalizedMessage());\n\t\t\tSystem.out.println(\"CLASS.TOSTRING: \" + e.toString());\n\t\t\tSystem.out.println(\">>>>>>>>>>>>>-<<<<<<<<<<<<<\");\n\t\t}\n\t}", "int deleteByPrimaryKey(Integer petid);", "int deleteByPrimaryKey(Integer postid);", "public int deleteConfigurationsOfProject(String idProject) {\n\t\treturn this.jdbcTemplate.update(\"delete from configurationCrawlers where idProject = ?\", idProject);\n\t}", "int deleteByPrimaryKey(String deptCode);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTypeId : {}\", id);\n projectTypeIdRepository.deleteById(id);\n }", "public void delete() throws SQLException {\n DatabaseConnector.updateQuery(\"DELETE FROM course \"\n + \"WHERE courseDept='\" + this.courseDept \n + \"' AND courseNum = '\" + this.courseNum + \"'\");\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(frame, \n\t\t\t\t\t\t\"Do you want to delete the selected projects?\\nThis action cannot be undone!\", \n\t\t\t\t\t\t\"Delete Selected\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\t\t\t\tif(choice == 0){\n\t\t\t\t\tSystem.out.println(\"Delete\");\n\t\t\t\t\tString[] selected = sel.getSelected(); \n\t\t\t\t\tfor(int i=0;i<selected.length;i++) {\n\t\t\t\t\t\n\t\t\t\t\t\tint index = portfolio.findByCode(selected[i]);\n\t\t\t\t\t\tportfolio.remove(index, config.isUpdateDB());\n\t\t\t\t\t\tsel.remove(index);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\ttoggleSaved(false);\n\t\t\t}", "public void eliminar(){\n SQLiteDatabase db = conn.getWritableDatabase();\n String[] parametros = {cajaId.getText().toString()};\n db.delete(\"personal\", \"id = ?\", parametros);\n Toast.makeText(getApplicationContext(), \"Se eliminó el personal\", Toast.LENGTH_SHORT).show();\n db.close();\n }", "public void deleteLanguage(Long idProject, Long idLanguage) {\r\n\t\tTransaction transaction = getSession().beginTransaction();\r\n\t\ttry {\r\n\r\n\t\t\tString hql = \"delete from StudyLanguage where project.idProject= :idProject and language.idLanguage =:idLanguage\";\r\n\t\t\tQuery query = getSession().createQuery(hql);\r\n\t\t\tquery.setLong(\"idProject\", idProject);\r\n\t\t\tquery.setLong(\"idLanguage\", idLanguage);\r\n\t\t\tSystem.out.println(query.executeUpdate());\r\n\r\n\t\t\ttransaction.commit();\r\n\t\t} catch (Throwable t) {\r\n\t\t\ttransaction.rollback();\r\n\t\t\tthrow t;\r\n\t\t}\r\n\r\n\t}", "int deleteByPrimaryKey(String courseId);", "int deleteByPrimaryKey(Integer taskid);", "public boolean remove(Connection conn, Object object) throws DAOException {\r\n \t \r\n\t\tString sqlStmt = DAOConstants.PROJ_DELETE;\r\n\t\t\r\n\t\tif (!(object instanceof String))\r\n\t\t\tthrow new DAOException (\"invalid.object.projdao\",\r\n\t\t\t\t\tnull, DAOException.ERROR, true);\r\n\t\t\t\t\t\r\n\t\tString pk = (String) object;\r\n\t\t\r\n\t\tlog.debug(\"deleting ProjectInfo entry\");\r\n\t\ttry{\r\n\t\t\tif (conn == null || conn.isClosed())\r\n\t\t\t\tconn = dbAccess.getConnection();\r\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sqlStmt);\r\n\t\t\tstmt.setString(1,pk);\r\n\t\t\tstmt.execute();\r\n\t\t\tlog.debug(\"deleted ProjectInfo entry\");\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new DAOException (\"sql.delete.exception.projdao\",\r\n\t\t\te, DAOException.ERROR, true);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new DAOException (\"delete.exception.projdao\",\r\n\t\t\te.getCause(), DAOException.ERROR, true);\r\n \r\n\t\t} \r\n\t\treturn true;\r\n }", "int deleteByPrimaryKey(String postId);", "@Test\n\tpublic void deleteProjectsInvalidID() {\n\t\tthrown.expect(ResourceNotFoundException.class);\n\t\tthrown.expectMessage(\"Project Id not Found\");\n\t\tcontroller.deleteProject(7L);\n\t}", "public void deleteExistingProfile(Long projectId) {\n\t\tProjectExistingProfile profile=new ProjectExistingProfile();\n\t\tprofile.setProjectId(projectId);\n\t\t\n\t\tthis.delete(profile);\n\t}", "public void delete(CrGrupoFormularioPk pk) throws CrGrupoFormularioDaoException;", "int deleteByPrimaryKey(Integer pkid);", "int deleteByPrimaryKey(Integer pkid);", "public void deleteDB() {\n File dbFile = new File(dbPath + dbName);\n if (dbFile.exists()) {\n dbFile.delete();\n }\n }", "@Override\n\tpublic void delete(DatabaseHandler db) {\n\t\tdb.deleteWork(this);\n\t\t\n\t}", "public void deletedb()\n {\n this.appContext.deleteDatabase(DB_NAME);\n Log.d(\"testdeletedb\",\"done\");\n }", "public void removeProject(Project item){\n\t\tCollection<Task> delTasks = new ArrayList<Task>();\n\t\tfor ( Task task : m_Tasks ){\n\t\t\tif( task.project.equals(item.m_Name) ) delTasks.add(task);\n\t\t}\n\t\t\n\t\tfor(Task task: delTasks){\n\t\t\tm_Tasks.remove(task);\n\t\t}\n\t\tm_Projects.remove(item);\n\t}", "int deleteByPrimaryKey(Long researchid);", "int deleteByPrimaryKey(String objId);", "int deleteByPrimaryKey(String objId);", "int deleteByPrimaryKey(Long personId);", "@Override\r\n\tpublic int deleteByPrimaryKey(Integer prid) {\n\t\treturn 0;\r\n\t}", "private void unloadProject()\n {\n if (projectBuilder != null) {\n projectBuilder.database.close();\n projectBuilder = null;\n }\n\n if (projectSettingsPanel != null) {\n Container container = projectSettingsPanel.getParent();\n if (container != null)\n container.remove(projectSettingsPanel);\n projectSettingsPanel = null;\n }\n\n projectSettingsContainer.removeAll();\n generateButton.setEnabled(false);\n\n project = null;\n }", "int deleteByPrimaryKey(Long catalogId);", "public void delete(RutaPk pk) throws RutaDaoException;", "public void deleteAllProjectsOfTeam(int teamId)\n throws SQLException, InexistentDatabaseEntityException, InexistentUserException {\n List<Project> projectsOfTeam =\n getProjectsOfTeam(\n teamId,\n null,\n null,\n EnumSet.allOf(Project.Status.class),\n EnumSet.allOf(Project.DeadlineStatus.class),\n Project.SorterType.NONE,\n false);\n for (Project project : projectsOfTeam) {\n commentRepository.deleteAllCommentsOfProject(project.getId());\n projectRepository.deleteProject(project.getId());\n }\n }", "@Override\n\tpublic Boolean DeleteProductProjectWithSuite(List<Integer> ids) {\n\t\treturn productProjectWithSuiteDAO.DeleteProductProjectWithSuite(ids);\n\t}", "@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }", "public void delete(NominaPuestoPk pk) throws NominaPuestoDaoException;", "public static void Clear(String projectID)\n\t{\n\t\t// Clear data for the project in firebase\n\t\tFirebaseService.clear(projectID);\n\n\t\t// retrieve the project key\n\t\tKey<Project> projectKey = Key.create(Project.class, projectID);\n\n\t\t// DELETE THE WORKERS\n\t\t// by an anchestor query\n\t\tIterable<Key<Worker>> workers = ofy().transactionless().load().type(Worker.class).ancestor(projectKey).keys();\n\t\tofy().transactionless().delete().keys(workers);\n\n\t\t// DELETE THE ARTIFACTS\n\t\t// filtering per projectId\n\t\tIterable<Key<Artifact>> artifacts = ofy().transactionless().load().type(Artifact.class).filter(\"projectId\",projectID).keys();\n\t\tofy().transactionless().delete().keys(artifacts);\n\n\t\t// DELETE THE MICROTASKS\n\t\t// filtering per projectId\n\t\tIterable<Key<Microtask>> microtasks = ofy().transactionless().load().type(Microtask.class).filter(\"projectId\",projectID).keys();\n\t\tofy().transactionless().delete().keys(microtasks);\n\n\t\t// finally delete the project\n\t\tofy().transactionless().delete().key(projectKey);\n\t}", "public void delete(SmsAgendaGrupoPk pk) throws SmsAgendaGrupoDaoException;" ]
[ "0.8600347", "0.8188664", "0.8105283", "0.79530704", "0.79380596", "0.7826666", "0.77025175", "0.74087024", "0.73431134", "0.72140574", "0.71764314", "0.71629536", "0.70769525", "0.703453", "0.70278436", "0.70278436", "0.6952759", "0.6942709", "0.689694", "0.6866458", "0.6837451", "0.6782155", "0.6758948", "0.6743726", "0.67368084", "0.66943365", "0.66712105", "0.66605294", "0.6648605", "0.6640589", "0.6601805", "0.6593383", "0.6580829", "0.6574266", "0.6536118", "0.6475847", "0.6470311", "0.6432063", "0.64040494", "0.63952804", "0.6389437", "0.63450074", "0.6327501", "0.6315398", "0.6270791", "0.6270287", "0.6241238", "0.6204321", "0.61986536", "0.6197918", "0.61970145", "0.617999", "0.6153154", "0.6145556", "0.6140986", "0.61355156", "0.61118436", "0.6106387", "0.6104206", "0.6085079", "0.6075348", "0.60604626", "0.603487", "0.60215795", "0.6007288", "0.60045743", "0.5999271", "0.59873307", "0.59807664", "0.5968673", "0.59467167", "0.5944107", "0.5943844", "0.59420955", "0.5938119", "0.59373695", "0.5932982", "0.5930772", "0.5929617", "0.59256184", "0.59227943", "0.59227943", "0.5920516", "0.5919113", "0.5912171", "0.59064233", "0.5905241", "0.5904168", "0.5904168", "0.5893483", "0.58933765", "0.58926576", "0.5890029", "0.5877673", "0.58758354", "0.5875551", "0.5869816", "0.5867495", "0.58586955", "0.5856724" ]
0.6104498
58
Produce HTML for this PO, populated by the project information that the user wants to edit
public String showEditPage(String errorMsg) throws HttpPresentationException, webschedulePresentationException { String proj_name = this.getComms().request.getParameter(PROJ_NAME); String personID = this.getComms().request.getParameter(PERSONID); String discrib = this.getComms().request.getParameter(DISCRIB); String indexnum = this.getComms().request.getParameter(INDEXNUM); String thours = this.getComms().request.getParameter(THOURS); String dhours = this.getComms().request.getParameter(DHOURS); String projectID = this.getComms().request.getParameter(PROJ_ID); String password = this.getComms().request.getParameter(PASSWORD); String codeofpay = this.getComms().request.getParameter(CODEOFPAY); String contactname = this.getComms().request.getParameter(CONTACTNAME); String contactphone = this.getComms().request.getParameter(CONTACTPHONE); String billaddr1 = this.getComms().request.getParameter(BILLADDR1); String billaddr2 = this.getComms().request.getParameter(BILLADDR2); String billaddr3 = this.getComms().request.getParameter(BILLADDR3); String city = this.getComms().request.getParameter(CITY); String state = this.getComms().request.getParameter(STATE); String zip = this.getComms().request.getParameter(ZIP); String accountid = this.getComms().request.getParameter(ACCOUNTID); String outside = this.getComms().request.getParameter(OUTSIDE); String exp = this.getComms().request.getParameter(EXP); String expday = this.getComms().request.getParameter(EXPDAY); String expmonth = this.getComms().request.getParameter(EXPMONTH); String expyear = this.getComms().request.getParameter(EXPYEAR); String notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT); // Instantiate the page object EditHTML page = new EditHTML(); Project project = null; String userID = null; System.out.println("project Id at show edit page "+projectID); try { project = ProjectFactory.findProjectByID(projectID); userID = project.getUserID(); // Catch any possible database exception in findProjectByID() } catch(webscheduleBusinessException ex) { this.getSessionData().setUserMessage("Please choose a valid project to edit"); throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE); } try { // If we received a valid projectID then try to show the project's contents, // otherwise try to use the HTML input parameters page.getElementProjID().setValue(project.getHandle()); if(null != proj_name && proj_name.length() != 0) { page.getElementProj_name().setValue(proj_name); } else { page.getElementProj_name().setValue(project.getProj_name()); } HTMLOptionElement templateOption = page.getElementTemplateOption(); Node PersonSelect = templateOption.getParentNode(); templateOption.removeAttribute("id"); templateOption.removeChild(templateOption.getFirstChild()); try { Person[] PersonList = PersonFactory.getPersonsList(); for (int numPersons = 0; numPersons < PersonList.length; numPersons++) { Person currentPerson = PersonList[numPersons] ; HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true); clonedOption.setValue(currentPerson.getHandle()); Node optionTextNode = clonedOption.getOwnerDocument(). createTextNode(currentPerson.getFirstname() + " " + currentPerson.getLastname()); if ((currentPerson.getHandle()).equals(userID)) clonedOption.setSelected(true); else clonedOption.setSelected(false); clonedOption.appendChild(optionTextNode); // Do only a shallow copy of the option as we don't want the text child // of the node option PersonSelect.appendChild(clonedOption); // Alternative way to insert nodes below // insertBefore(newNode, oldNode); // ProjSelect.insertBefore(clonedOption, templateOption); } } catch(Exception ex) { this.writeDebugMsg("Error populating Persons List: " + ex); throw new webschedulePresentationException("Error getting Persons List: ", ex); } templateOption.getParentNode().removeChild(templateOption); /* if (personID.equals(INVALID_ID)){ page.getElementPersonList().setValue(project.getUserID()); }else { page.getElementPersonList().setValue(personID); } */ if(null != password && password.length() != 0) { page.getElementPassword().setValue(password); } else { page.getElementPassword().setValue(project.getPassword()); } if(null != discrib && discrib.length() != 0) { page.getElementDiscrib().setValue(discrib); } else { page.getElementDiscrib().setValue(project.getDescription()); } if(null != indexnum && indexnum.length() != 0) { page.getElementIndexnum().setValue(indexnum); } else { page.getElementIndexnum().setValue(project.getIndexnum()); } if(null != thours && thours.length() != 0) { page.getElementThours().setValue(thours); } else { page.getElementThours().setValue(Double.toString(project.getTotalhours())); } if(null != dhours && dhours.length() != 0) { page.getElementDhours().setValue(dhours); } else { page.getElementDhours().setValue(Double.toString(project.getDonehours())); } if(null != codeofpay && codeofpay.length() != 0) { page.getElementCodeofpay().setValue(codeofpay); } else { page.getElementCodeofpay().setValue(Integer.toString(project.getCodeofpay())); } if(null != contactname && contactname.length() != 0) { page.getElementContactname().setValue(contactname); } else { page.getElementContactname().setValue(project.getContactname()); } if(null != billaddr1 && billaddr1.length() != 0) { page.getElementBilladdr1().setValue(billaddr1); } else { page.getElementBilladdr1().setValue(project.getBilladdr1()); } if(null != billaddr2 && billaddr2.length() != 0) { page.getElementBilladdr2().setValue(billaddr2); } else { page.getElementBilladdr2().setValue(project.getBilladdr2()); } if(null != billaddr3 && billaddr3.length() != 0) { page.getElementBilladdr3().setValue(billaddr3); } else { page.getElementBilladdr3().setValue(project.getBilladdr3()); } if(null != city && city.length() != 0) { page.getElementCity().setValue(city); } else { page.getElementCity().setValue(project.getCity()); } if(null != state && state.length() != 0) { page.getElementState().setValue(state); } else { page.getElementState().setValue(project.getState()); } if(null != zip && zip.length() != 0) { page.getElementZip().setValue(zip); } else { page.getElementZip().setValue(project.getZip()); } if(null != accountid && accountid.length() != 0) { page.getElementAccountid().setValue(accountid); } else { page.getElementAccountid().setValue(project.getAccountid()); } if(null != this.getComms().request.getParameter(OUTSIDE)) { page.getElementOutsideBox().setChecked(true); } else { page.getElementOutsideBox().setChecked(project.isOutside()); } if(null != this.getComms().request.getParameter(EXP)) { page.getElementExpBox().setChecked(true); } else { page.getElementExpBox().setChecked(project.isExp()); } if(null != expday && expday.length() != 0) { page.getElementExpday().setValue(expday); } else { page.getElementExpday().setValue(Integer.toString(project.getExpday())); } if(null != expmonth && expmonth.length() != 0) { page.getElementExpmonth().setValue(expmonth); } else { page.getElementExpmonth().setValue(Integer.toString(project.getExpmonth())); } if(null != expyear && expyear.length() != 0) { page.getElementExpyear().setValue(expyear); } else { page.getElementExpyear().setValue(Integer.toString(project.getExpyear())); } if(null != notifycontact && notifycontact.length() != 0) { page.getElementNotifycontact().setValue(notifycontact); } else { page.getElementNotifycontact().setValue(project.getNotifycontact()); } if(null == errorMsg) { page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText()); } else { page.setTextErrorText(errorMsg); } } catch(webscheduleBusinessException ex) { throw new webschedulePresentationException("Error populating page for project editing", ex); } page.getElementEventValue().setValue(EDIT_COMMAND); return page.toDocument(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String handleEdit()\n throws webschedulePresentationException, HttpPresentationException\n {\t\t \n \n Project project = null;\n\n \n \n // Try to get the proj by its ID\n try {\n\t project = ProjectFactory.findProjectByID(this.getProjectID());\n\t \n\t String title = project.getProj_name();\n\t System.out.println(\"project title: \"+title);\n\t\n } catch(Exception ex) {\n this.getSessionData().setUserMessage(\"Please choose a valid PROJECT to edit\");\n throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE);\n }\n \n // If we got a valid project then try to save it\n // If any fields were missing then redisplay the edit page, \n // otherwise redirect to the project catalog page\n try {\n saveProject(project);\n throw new ClientPageRedirectException(UCSDPROJECTSEDIT_PAGE);\n } catch(Exception ex) {\n return showPage(\"You must fill out all fields to edit this project\");\n } \n }", "public String handleEdit()\n throws webschedulePresentationException, HttpPresentationException\n {\t\t \n String projID = this.getComms().request.getParameter(PROJ_ID);\n Project project = null;\n\n System.out.println(\" trying to edit a project \"+ projID);\n \n // Try to get the proj by its ID\n try {\n\t project = ProjectFactory.findProjectByID(projID);\n\t System.out.println(\" trying to edit a project 2\"+ projID);\n\t String title = project.getProj_name();\n\t System.out.println(\"project title: \"+title);\n\t\n } catch(Exception ex) {\n this.getSessionData().setUserMessage(\"Please choose a valid PROJECT to edit\");\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n }\n \n // If we got a valid project then try to save it\n // If any fields were missing then redisplay the edit page, \n // otherwise redirect to the project catalog page\n try {\n saveProject(project);\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n } catch(Exception ex) {\n return showEditPage(\"You must fill out all fields to edit this project\");\n } \n }", "public String getHTMLPage() {\r\n String s = \"<html><body>\" + MySystem.lineBreak;\r\n s += \"<h1>Room Control module</h1>\" + MySystem.lineBreak;\r\n s += \"<p>This module controls any on/off-node connected to ARNE bus.</p>\" + MySystem.lineBreak;\r\n s += \"<h2>Controls:</h2>\";\r\n s += \"<center><p><table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\">\";\r\n Iterator it = roomObjects.keySet().iterator();\r\n while (it.hasNext()) {\r\n GenRoomObject o = (GenRoomObject)roomObjects.get(it.next());\r\n if (o!=null) {\r\n if (o.displHTML) { //if display this object (configured in modGenRoomControl.xml)\r\n s += \"<tr><td>\" + o.name + \"</td><td>[<a href=\\\"toggle:\" + o.name + \"\\\">toggle</a>]</td><td>[<a href=\\\"on:\" + o.name + \"\\\">ON</a>]</td><td>[<a href=\\\"off:\" + o.name + \"\\\">OFF</a>]</td></tr></tr>\";\r\n }\r\n }\r\n }\r\n s += \"</table></center>\";\r\n s += \"</body></html>\";\r\n return s;\r\n }", "public Project() {\n this.name = \"Paper plane\";\n this.description = \" It's made of paper.\";\n }", "private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }", "public JPanel buildProjectProperties()\n\t{\n\t\tprojectProperties.setPreferredSize(new Dimension(200, 190)); //Set the size of the window\n \tprojectProperties.setBorder (projectTitle); //Add a border around the window\n \t\n \treturn projectProperties;\n\t}", "public ProjectsPage() {\n\t\tthis.driver = DriverManager.getDriver();\n\t\tElementFactory.initElements(driver, this);\n\t\t// sets the name of the project to add, with a random integer ending for slight\n\t\t// ease on multiple test runs\n\t\tnameOfProject = \"testz2018\" + (int) Math.random() * 500;\n\t}", "public void setFieldDetails(){\n if (this.project != null){\n projectTitleField.setText( project.getTitle() );\n projectDescriptionField.setText( project.getDescription() );\n colorThemeField.setValue( Color.valueOf(project.getColorTheme()) );\n dueDateField.setValue( project.getDueDate() );\n createProjectBtn.setText( \"Update Project\" );\n }\n\n }", "@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}", "@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}", "public void displayProject(Project project) {\n\t\tSystem.out.println(project.getID() + \" \"\n\t\t\t\t+ project.getProjectName() + \" \"\n\t\t\t\t+ project.getStartDate() + \" \"\n\t\t\t\t+ project.getEndDate() + \" \"\n\t\t\t\t+ project.getPriority());\n\t}", "@Override\n public String getProjectURL(ProjectPojo pojo) {\n String bomUrl = serverBean.getServerName()\n + \"/protex/ProtexIPIdentifyFolderBillOfMaterialsContainer?isAtTop=true&ProtexIPProjectId=\"\n + pojo.getProjectKey()\n + \"&ProtexIPIdentifyFileViewLevel=folder&ProtexIPIdentifyFileId=-1\";\n\n log.debug(\"Built URL for project: \" + bomUrl);\n\n return bomUrl;\n }", "private void printBoardAndCandidatesHtmlFile() {\n printBoardAndCandidatesHtmlFile(\"java-implementation/target/classes/sudokuBoard.html\", sudokuBoard);\n }", "public java.lang.String toString() {\n return \"Project name=\" + name;\n }", "public String fillEditPage() {\n\t\t\n\t\ttry{\n\t\t\t// Putting attribute of playlist inside the page to view it \n\t\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"playlist\", service.viewPlaylist());\n\t\t\t\n\t\t\t// Send user to EditPlaylistPage\n\t\t\treturn \"EditPlaylistPage\";\n\t\t}\n\t\t// Catch exceptions and send to ErrorPage\n\t\tcatch(Exception e) {\n\t\t\treturn \"ErrorPage.xhtml\";\n\t\t}\n\t}", "@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}", "public String create()\n {\n return createHtml();\n }", "@GetMapping(path = \"/detail/\")\n\tpublic String viewProjectDetail() {\n\t\treturn \"sprint-detail\";\n\t}", "@GET\n @Path(\"/configEditorAsTable/{project_id}\")\n @Produces(MediaType.TEXT_HTML)\n public String getConfigEditorAsTable(@PathParam(\"project_id\") Integer projectId) {\n HttpSession session = request.getSession();\n Object username = session.getAttribute(\"user\");\n\n if (username == null) {\n throw new UnauthorizedRequestException(\"You must be this project's admin in order to edit its configuration\");\n }\n\n projectMinter project = new projectMinter();\n String response = project.getProjectConfigEditorAsTable(projectId, username.toString());\n project.close();\n return response;\n }", "@GetMapping(value = \"/project\")\n\tpublic String project(final Model model) {\n\t\tfinal Flux<Project> projectStream = this.projectRepository.findAll().log();\n\t\t\n\t\t// No need to fully resolve the Publisher! We will just let it drive (the \"projects\" variable can be a Publisher<X>, in which case it will drive the execution of the engine and Thymeleaf will be executed as a part of the data flow)\n // Create a data-driver context variable that sets Thymeleaf in data-driven mode,\n // rendering HTML (iterations) as items are produced in a reactive-friendly manner.\n // This object also works as wrapper that avoids Spring WebFlux trying to resolve\n // it completely before rendering the HTML.\n\t\tmodel.addAttribute(\"projects\", new ReactiveDataDriverContextVariable(projectStream, 1000));\n\n\t\t// Will use the same \"sse\" template, but only a fragment: #projectTableBody\n\t\treturn \"sse :: #projectTableBody\";\n\t}", "private String rowFor(GitHubProject project) {\n return PROJECT_LINE_TEMPLATE\n .replace(\"%NAME%\", nameOf(project))\n .replace(\"%STATUS%\", statusOf(project))\n .replace(\"%NUMBER_OF_VIOLATED_RULES%\", numberOfViolatedRulesIn(project));\n }", "public void updateDirectorCovHtml() {\n\n Connection dbConnection = connectToDb();\n String selectIdStmt = \"SELECT id, testposition, directory_cov_html FROM testruns ORDER BY id DESC\";\n System.out.println(selectIdStmt);\n try {\n PreparedStatement selectId = dbConnection\n .prepareStatement(selectIdStmt);\n ResultSet rs = selectId.executeQuery();\n while (rs.next()) {\n Integer testrunId = rs.getInt(\"id\");\n Integer testPosition = rs.getInt(\"testposition\");\n String directory_cov_html = rs.getString(\"directory_cov_html\");\n if (null == directory_cov_html) {\n String directoryFuncCovCsv = \"directoryFuncCov_\"+testPosition +\"__\"+testrunId +\".csv\";\n generateDirectoryFuncCovCsv(sourceDirFilename,\n directoryFuncCovCsv, testrunId, testPosition);\n String outputHTMLFilename= \"function_coverage_\"+testPosition +\"__\"+testrunId +\".html\";\n generateHtmlFromFsTree(outputHTMLFilename);\n addHtmlDocToDb(outputHTMLFilename, testrunId);\n } else {\n System.err\n .println(\"WARNING: directory_cov_html already set for testrunId \"\n + testrunId + \". Skipping testrunId.\");\n }\n }\n rs.close();\n selectId.close();\n } catch (SQLException e) {\n\n myExit(e);\n }\n }", "public String getProjectName(){\n return projectModel.getProjectName();\n }", "protected String generateEditModeHTML() throws DynamicExtensionsSystemException\r\n\t{\r\n\t\tString defaultValue = (String) this.value;\r\n\t\tif (value == null)\r\n\t\t{\r\n\t\t\tdefaultValue = ControlsUtility.getDefaultValue(this.getAbstractAttribute());\r\n\t\t\tif (defaultValue == null)\r\n\t\t\t{\r\n\t\t\t\tdefaultValue = \"\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tString htmlComponentName = getHTMLComponentName();\r\n String output=null;\r\n\t\t/*String output = \"<input class='\"\r\n\t\t\t\t+ cssClass\r\n\t\t\t\t+ \"' name='\"\r\n\t\t\t\t+ htmlComponentName\r\n\t\t\t\t+ \"' id='\"\r\n\t\t\t\t+ htmlComponentName\r\n\t\t\t\t+ \"' value='\"\r\n\t\t\t\t+ defaultValue\r\n\t\t\t\t+ \"'/>\"\r\n\t\t\t\t+ \"<A onclick=\\\"showCalendar('\"\r\n\t\t\t\t+ htmlComponentName\r\n\t\t\t\t+ \"', \"\r\n\t\t\t\t+ DynamicExtensionsUtility.getCurrentYear()\r\n\t\t\t\t+ \", \"\r\n\t\t\t\t+ DynamicExtensionsUtility.getCurrentMonth()\r\n\t\t\t\t+ \", \"\r\n\t\t\t\t+ DynamicExtensionsUtility.getCurrentDay()\r\n\t\t\t\t+ \", 'MM-dd-yyyy', 'dataEntryForm', '\"\r\n\t\t\t\t+ htmlComponentName\r\n\t\t\t\t+ \"', event, 1900, 2020);\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n\t\t\t\t+ \"<DIV id=slcalcod\"\r\n\t\t\t\t+ htmlComponentName\r\n\t\t\t\t+ \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";*/\r\n \r\n /*String output = \"<input class='\"\r\n + cssClass\r\n + \"' name='\"\r\n + htmlComponentName\r\n + \"' id='\"\r\n + htmlComponentName\r\n + \"' value='\"\r\n + defaultValue\r\n + \"'/>\"\r\n + \"<A onclick=\\\"printMonthYearCalendar('\"\r\n + htmlComponentName\r\n + \"', \"\r\n + DynamicExtensionsUtility.getCurrentMonth()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \");\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n + \"<DIV id=slcalcod\"\r\n + htmlComponentName\r\n + \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";*/\r\n \r\n /*String output = \"<input class='\"\r\n + cssClass\r\n + \"' name='\"\r\n + htmlComponentName\r\n + \"' id='\"\r\n + htmlComponentName\r\n + \"' value='\"\r\n + defaultValue\r\n + \"'/>\"\r\n + \"<A onclick=\\\"printMonthYearCalendar('\"\r\n + htmlComponentName\r\n + \"', \"\r\n + DynamicExtensionsUtility.getCurrentMonth()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \");\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n + \"<DIV id=slcalcod\"\r\n + htmlComponentName\r\n + \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";*/\r\n\t\t/* Obtain the date format */\r\n\t\tAttributeTypeInformationInterface attributeTypeInformationInterface = ((AttributeInterface) this\r\n\t\t\t\t.getAbstractAttribute()).getAttributeTypeInformation();\r\n\t\tString dateFormat = ControlsUtility.getDateFormat(attributeTypeInformationInterface);\r\n\t\tif (dateFormat.equals(ProcessorConstants.DATE_ONLY_FORMAT))\r\n\t\t{\r\n output = \"<input class='\"\r\n + cssClass\r\n + \"' name='\"\r\n + htmlComponentName\r\n + \"' id='\"\r\n + htmlComponentName\r\n + \"' value='\"\r\n + defaultValue\r\n + \"'/>\"\r\n + \"<A onclick=\\\"showCalendar('\"\r\n + htmlComponentName\r\n + \"', \"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentMonth()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentDay()\r\n + \", 'MM-dd-yyyy', 'dataEntryForm', '\"\r\n + htmlComponentName\r\n + \"', event, 1900, 2020);\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n + \"<DIV id=slcalcod\"\r\n + htmlComponentName\r\n + \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";\r\n\t\t\toutput += \"<SCRIPT>printCalendar('\" + htmlComponentName + \"',\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentDay() + \",\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentMonth() + \",\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentYear() + \");</SCRIPT>\" + \"</DIV>\"\r\n\t\t\t\t\t+ \"[MM-DD-YYYY]&nbsp;\";\r\n\t\t}\r\n\t\telse if (dateFormat.equals(ProcessorConstants.DATE_TIME_FORMAT))\r\n\t\t{\r\n output = \"<input class='\"\r\n + cssClass\r\n + \"' name='\"\r\n + htmlComponentName\r\n + \"' id='\"\r\n + htmlComponentName\r\n + \"' value='\"\r\n + defaultValue\r\n + \"'/>\"\r\n + \"<A onclick=\\\"showCalendar('\"\r\n + htmlComponentName\r\n + \"', \"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentMonth()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentDay()\r\n + \", 'MM-dd-yyyy', 'dataEntryForm', '\"\r\n + htmlComponentName\r\n + \"', event, 1900, 2020);\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n + \"<DIV id=slcalcod\"\r\n + htmlComponentName\r\n + \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";\r\n\t\t\toutput += \"<SCRIPT>printTimeCalendar('\" + htmlComponentName + \"',\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentDay() + \",\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentMonth() + \",\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentYear() + \",\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentHours() + \",\"\r\n\t\t\t\t\t+ DynamicExtensionsUtility.getCurrentMinutes() + \");</SCRIPT>\" + \"</DIV>\"\r\n\t\t\t\t\t+ \"[MM-DD-YYYY HH:MM]&nbsp;\";\r\n\t\t}\r\n else if (dateFormat.equals(ProcessorConstants.MONTH_YEAR_FORMAT))\r\n {\r\n output = \"<input class='\"\r\n + cssClass\r\n + \"' name='\"\r\n + htmlComponentName\r\n + \"' id='\"\r\n + htmlComponentName\r\n + \"' value='\"\r\n + defaultValue\r\n + \"'/>\"\r\n + \"<A onclick=\\\"showCalendar('\"\r\n + htmlComponentName\r\n + \"', \"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentMonth()\r\n + \", \"\r\n + 0\r\n + \", 'MM-yyyy', 'dataEntryForm', '\"\r\n + htmlComponentName\r\n + \"', event, 1900, 2020);\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n + \"<DIV id=slcalcod\"\r\n + htmlComponentName\r\n + \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";\r\n /*output = \"<input class='\"\r\n + cssClass\r\n + \"' name='\"\r\n + htmlComponentName\r\n + \"' id='\"\r\n + htmlComponentName\r\n + \"' value='\"\r\n + defaultValue\r\n + \"'/>\"\r\n + \"<A onclick=\\\"printMonthYearCalendar('\"\r\n + htmlComponentName\r\n + \"', \"\r\n + DynamicExtensionsUtility.getCurrentMonth()\r\n + \", \"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \");\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n + \"<DIV id=slcalcod\"\r\n + htmlComponentName\r\n + \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";*/\r\n output += \"<SCRIPT>printMonthYearCalendar('\" + htmlComponentName + \"',\"\r\n + DynamicExtensionsUtility.getCurrentMonth() + \",\"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \");</SCRIPT>\" + \"</DIV>\"\r\n + \"[MM-YYYY]&nbsp;\";\r\n }\r\n else if (dateFormat.equals(ProcessorConstants.YEAR_ONLY_FORMAT))\r\n {\r\n /*output += \"<SCRIPT>printYearCalendar('\" + \"attributeDefaultValue\" + \"',\"\r\n + DynamicExtensionsUtility.getCurrentYear() + \",\"\r\n + \");</SCRIPT>\" + \"</DIV>\"\r\n + \"[YYYY]&nbsp;\";\r\n output += \"<SCRIPT>printYearCalendar('\" + htmlComponentName + \"',\"\r\n + DynamicExtensionsUtility.getCurrentDay() + \",\"\r\n + DynamicExtensionsUtility.getCurrentMonth() + \",\"\r\n + DynamicExtensionsUtility.getCurrentYear() + \",\"\r\n + DynamicExtensionsUtility.getCurrentHours() + \",\"\r\n + DynamicExtensionsUtility.getCurrentMinutes() + \");</SCRIPT>\" + \"</DIV>\"\r\n + \"[MM-DD-YYYY HH:MM]&nbsp;\";*/\r\n output = \"<input class='\"\r\n + cssClass\r\n + \"' name='\"\r\n + htmlComponentName\r\n + \"' id='\"\r\n + htmlComponentName\r\n + \"' value='\"\r\n + defaultValue\r\n + \"'/>\"\r\n + \"<A onclick=\\\"showCalendar('\"\r\n + htmlComponentName\r\n + \"', \"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \", \"\r\n + 0\r\n + \", \"\r\n + 0\r\n + \", 'yyyy', 'dataEntryForm', '\"\r\n + htmlComponentName\r\n + \"', event, 1900, 2020);\\\" href=\\\"javascript://\\\"><IMG alt=\\\"This is a Calendar\\\" src=\\\"images/calendar.gif\\\" border=0 /></A>\"\r\n + \"<DIV id=slcalcod\"\r\n + htmlComponentName\r\n + \" style=\\\"Z-INDEX: 10; LEFT: 100px; VISIBILITY: hidden; POSITION: absolute; TOP: 100px\\\">\";\r\n output += \"<SCRIPT>printYearCalendar('\" + htmlComponentName + \"',\"\r\n + DynamicExtensionsUtility.getCurrentYear()\r\n + \");</SCRIPT>\" + \"</DIV>\"\r\n + \"[YYYY]&nbsp;\";\r\n }\r\n\r\n\t\treturn output;\r\n\t}", "public ProjectViewController(){\n InputStream request = appController.httpRequest(\"http://localhost:8080/project/getProject\", \"GET\");\n try {\n String result = IOUtils.toString(request, StandardCharsets.UTF_8);\n Gson gson = new Gson();\n this.projectModel = gson.fromJson(result, ProjectModel.class);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected String generateProcessEditElement(Element element, String parentName, String targetName) {\n\t\tString elementNameUncapped = ModelLayerHelper.getElementNameUncapped(element);\n\t\t//String targetNameUncapped = NameUtil.uncapName(targetName);\t\t\n\t\t\n\t\tBuf buf = new Buf();\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"<!--\");\n\t\tbuf.putLine4(\" ** processEdit\"+targetName+\"(event)\");\n\t\tbuf.putLine4(\" ** Opens \"+targetName+\" for editing. Goes to the \"+targetName+\" Wizard page.\");\n\t\tbuf.putLine4(\" -->\");\n\t\tbuf.putLine4(\"\t\");\n\t\tbuf.putLine4(\"function processEdit\"+targetName+\"(event) {\");\n\t\tbuf.putLine4(\"\ttry {\");\n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.target);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(event.currentTarget);\"); \n\t\tbuf.putLine4(\"\t\tsetCursorWait(#{rich:element('\"+elementNameUncapped+\"Tree')});\");\n\t\tif (parentName != null) {\n\t\t\tbuf.putLine4(\"\t\tif (\"+elementNameUncapped+\"TreeState.nodeLabel != null) {\");\n\t\t\tbuf.putLine4(\"\t\t\tvar label = \"+elementNameUncapped+\"TreeState.nodeLabel;\");\n\t\t\tbuf.putLine4(\"\t\t\tshowProgress('Nam', '\"+targetName+\" Records'. 'Opening \"+targetName+\" for \"+parentName+\" \\\\\\\"' + label + '\\\\\\\"...')\");\n\t\t\tbuf.putLine4(\"\t\t} else showProgress('Nam', '\"+targetName+\" Records', 'Opening \"+targetName+\"...');\");\n\t\t} else {\n\t\t\tbuf.putLine4(\"\t\tshowProgress('Nam', '\"+targetName+\" Records', 'Opening \"+targetName+\"...');\");\n\t\t\t//buf.putLine4(\"\tshowProgress('Nam', 'New \"+elementClassName+\"', 'Creating new \"+elementClassName+\"...')\");\n\t\t}\n\t\tbuf.putLine4(\"\t\tedit\"+targetName+\"(event);\");\n\t\tbuf.putLine4(\"\t} catch(e) {\");\n\t\tbuf.putLine4(\"\t\talert(e);\");\n\t\tbuf.putLine4(\"\t}\");\n\t\tbuf.putLine4(\"}\");\n\t\treturn buf.get();\n\t}", "private String renderEditPage(Model model, VMDTO vmdto) {\n\t\tmodel.addAttribute(\"vmDto\", vmdto);\n\t\tmodel.addAttribute(\"availableProviders\", providerService.getAllProviders());\n\t\treturn \"vm/edit\";\n\t}", "public void showPortfolio(){\n System.out.println(\"PORTFOLIO CONTENTS\");\n for(int i = 0; i < this.projects.size(); i++){\n System.out.println(this.projects.get(i).elevatorPitch());\n }\n System.out.println(\"Total Portfolio Cost: $\" + this.getPortfolioCost());\n }", "@GET\n\t@Path(\"/\") \n\t@Produces(MediaType.TEXT_HTML) \n\tpublic String readItems() \n\t { \n\t return itemObj.readProjects(); \n\t }", "private void generateOutputHTML() {\n\n\t\t\n\t\ttry {\n\t\t\tScanner in = new Scanner(new File(\"data/web/template.html\"));\n\t\t\tPrintStream out = new PrintStream(\"data/web/output\"+count+\".html\");\n\t\t\tSystem.setOut(out);\n\t\t\t\n\t\t\twhile (in.hasNext()) {\n\t\t\t\tString line = in.nextLine();\n\t\t\t\tSystem.out.print(line);\n\t\t\t\t\n\t\t\t\tif (line.equals(\"<title>\")) System.out.println(\"Path #\" +count);\n\t\t\t\t\n\t\t\t\n\t\t\t\tif (line.equals(\"<body>\")) { \t\t\t\t// this is where all the good stuff goes..\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"<div class='bodyHeader'>\");\n\t\t\t\t\tSystem.out.println(\"<p><strong>in order path for driver #\" +count+ \" \" + \"</strong></p>\");\n\t\t\t\t\tSystem.out.println(\"</div>\");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"<br><br><hr class='hrStyle'/>\");\n\t\t\t\t\t\n\t\t\t\t\t// Creating info about the path in a table format\n\t\t\t\t\tSystem.out.println(\"<div class='pathInfo'>\");\n\t\t\t\t\tSystem.out.println(\"<table class='infoTable' cellpadding='3' cellspacing='10'>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>City: </td><td> \" + list.get(0).getCity()+ \" - \" + list.get(0).getState() + \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>Number of stops: </td><td> \" + (list.size()-1) + \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>Store: </td><td> \" + list.get(1).getName().toUpperCase()+ \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"</table>\");\n\t\t\t\t\t\n//TODO: get starting address --- System.out.println(\"Starting address: \" + list.get(0).getAddress());\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"</div>\");\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlist.remove(0);\n\t\t\t\t\t\n\t\t\t\t\t//create ordered table/list of path\n\t\t\t\t\tSystem.out.println(\"<div class='pathList'>\");\t\n\t\t\t\t\tSystem.out.println(\"<table class='pathTable' cellspacing='15'>\");\n\t\t\t\t\tSystem.out.println(\"<tr><th>Order</th><th>Address</th><th></th><th>Latitude , Longitude</th></tr>\");\n\t\t\t\t\tint i = 1;\n\t\t\t\t\tfor (Location c: list) {\n\t\t\t\t\t// creating table row for each stop in route\n\t\t\t\t\t\tSystem.out.println(\"<tr>\" + \"<td>\"+(i++)+\"</td>\" + c.toHTMLString() +\"</tr>\");\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"</ol>\");\n\t\t\t\t\tSystem.out.println(\"<br>\");\n\t\t\t\t\tSystem.out.println(\"</div>\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tin.close();\n\t\t\tout.close();\n\t\t\t\n\t\t\t//opening html file to the default browser in the system\n\t\t\tFile htmlFile = new File(\"data/web/output\"+count+\".html\");\n\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\n\t\t}\n\t\t\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(e.getLocalizedMessage());\n\t\t} \n\t}", "public static void finalise() throws IOException {\r\n //Openeing the file and creating a scanner object\r\n File inFile = new File(\"output.txt\");\r\n Scanner sc = new Scanner(inFile);\r\n //Creating empty string to append lines of text file to with a while loop.\r\n String lines = \"\";\r\n while (sc.hasNext()) {\r\n lines += sc.nextLine();\r\n }\r\n //Creating a counter to number the projects printed\r\n int indexCount = 0;\r\n //Creating an array by splitting string by \"#\" which will be written to the text file when a new project is added\r\n String[] lineArr = lines.split(\"#\");\r\n //For loop to print the projects with a counter, which the user will use to select a project to finalise\r\n for (int i = 0; i < lineArr.length; i++) {\r\n indexCount += 1;\r\n String[] projectInfo = lineArr[i].split(\", \");\r\n System.out.println(\"Index number: \" + indexCount);\r\n System.out.println(\"Project name: \" + projectInfo[0]);\r\n System.out.println(\"Project number: \" + projectInfo[1]);\r\n System.out.println(\"Build type: \" + projectInfo[2]);\r\n System.out.println(\"Address: \" + projectInfo[3]);\r\n System.out.println(\"ERF number: \" + projectInfo[4]);\r\n System.out.println(\"Fee: \" + projectInfo[5]);\r\n System.out.println(\"Paid to date: \" + projectInfo[6]);\r\n System.out.println(\"Due date: \" + projectInfo[7] + \"\\n\");\r\n }\r\n sc.close();\r\n finaliseEdit();\r\n }", "public String showAddPage(String errorMsg) \n throws HttpPresentationException, webschedulePresentationException\n { \n\n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String password = this.getComms().request.getParameter(PASSWORD);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n\tString contactname = this.getComms().request.getParameter(CONTACTNAME);\n\tString contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n\tString billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n\tString billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n\tString billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n\tString city = this.getComms().request.getParameter(CITY);\n\tString state = this.getComms().request.getParameter(STATE);\n\tString zip = this.getComms().request.getParameter(ZIP);\n\tString accountid = this.getComms().request.getParameter(ACCOUNTID);\n\tString isoutside = this.getComms().request.getParameter(OUTSIDE);\n\tString exp = this.getComms().request.getParameter(EXP);\n\tString expday = this.getComms().request.getParameter(EXPDAY);\n\tString expmonth = this.getComms().request.getParameter(EXPMONTH);\n\tString expyear = this.getComms().request.getParameter(EXPYEAR);\n\tString notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\n\n\t // Instantiate the page object\n\t EditHTML page = new EditHTML();\n\n\tHTMLOptionElement templateOption = page.getElementTemplateOption();\n Node PersonSelect = templateOption.getParentNode();\n templateOption.removeAttribute(\"id\");\n templateOption.removeChild(templateOption.getFirstChild());\n\n if(null != this.getComms().request.getParameter(PROJ_NAME)) {\n page.getElementProj_name().setValue(this.getComms().request.getParameter(PROJ_NAME));\n }\n\n try {\n \tPerson[] PersonList = PersonFactory.getPersonsList();\n \tfor (int numPersons = 0; numPersons < PersonList.length; numPersons++) {\n \t Person currentPerson = PersonList[numPersons] ;\n \t HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true);\n clonedOption.setValue(currentPerson.getHandle());\n Node optionTextNode = clonedOption.getOwnerDocument().\n createTextNode(currentPerson.getFirstname() + \" \" +\n currentPerson.getLastname());\n clonedOption.appendChild(optionTextNode);\n // Do only a shallow copy of the option as we don't want the text child\n // of the node option\n PersonSelect.appendChild(clonedOption);\n // Alternative way to insert nodes below\n // insertBefore(newNode, oldNode);\n // ProjSelect.insertBefore(clonedOption, templateOption);\n\t }\n\t } catch(Exception ex) {\n\t this.writeDebugMsg(\"Error populating Persons List: \" + ex);\n throw new webschedulePresentationException(\"Error getting Persons List: \", ex);\n\t }\n\t\n templateOption.getParentNode().removeChild(templateOption);\n\n if(null != this.getComms().request.getParameter(PASSWORD)) {\n page.getElementPassword().setValue(this.getComms().request.getParameter(PASSWORD));\n }\n\n if(null != this.getComms().request.getParameter(DISCRIB)) {\n page.getElementDiscrib().setValue(this.getComms().request.getParameter(DISCRIB));\n }\n if(null != this.getComms().request.getParameter(INDEXNUM)) {\n page.getElementIndexnum().setValue(this.getComms().request.getParameter(INDEXNUM));\n }\n\n if(null != this.getComms().request.getParameter(THOURS)) {\n page.getElementThours().setValue(this.getComms().request.getParameter(THOURS));\n }\n\n if(null != this.getComms().request.getParameter(DHOURS)) {\n page.getElementDhours().setValue(this.getComms().request.getParameter(DHOURS));\n }\n\n if(null != this.getComms().request.getParameter(CODEOFPAY)) {\n page.getElementCodeofpay().setValue(this.getComms().request.getParameter(CODEOFPAY));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTNAME)) {\n page.getElementContactname().setValue(this.getComms().request.getParameter(CONTACTNAME));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTPHONE)) {\n \npage.getElementContactphone().setValue(this.getComms().request.getParameter(CONTACTPHONE));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR1)) {\n \npage.getElementBilladdr1().setValue(this.getComms().request.getParameter(BILLADDR1));\n }\n\n\n\nif(null != this.getComms().request.getParameter(BILLADDR2)) {\n \npage.getElementBilladdr2().setValue(this.getComms().request.getParameter(BILLADDR2));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR3)) {\n \npage.getElementBilladdr3().setValue(this.getComms().request.getParameter(BILLADDR3));\n }\n\nif(null != this.getComms().request.getParameter(STATE)) {\n \npage.getElementState().setValue(this.getComms().request.getParameter(STATE));\n }\n\nif(null != this.getComms().request.getParameter(ZIP)) {\n \npage.getElementZip().setValue(this.getComms().request.getParameter(ZIP));\n }\n\n if(null != this.getComms().request.getParameter(OUTSIDE)) {\n page.getElementOutsideBox().setChecked(true);\n } else {\n page.getElementOutsideBox().setChecked(false);\n }\n\t\nif(null != this.getComms().request.getParameter(EXP)) {\n page.getElementExpBox().setChecked(true);\n } else {\n page.getElementExpBox().setChecked(false);\n }\t\n\t\nif(null != this.getComms().request.getParameter(ACCOUNTID)) {\n \npage.getElementAccountid().setValue(this.getComms().request.getParameter(ACCOUNTID));\n }\n\t\n\t\nif(null != this.getComms().request.getParameter(EXPDAY)) {\n \npage.getElementExpday().setValue(this.getComms().request.getParameter(EXPDAY));\n }\n\n\nif(null != this.getComms().request.getParameter(EXPMONTH)) {\n \npage.getElementExpmonth().setValue(this.getComms().request.getParameter(EXPMONTH));\n }\nif(null != this.getComms().request.getParameter(EXPYEAR)) {\n \npage.getElementExpyear().setValue(this.getComms().request.getParameter(EXPYEAR));\n }\n\n if(null != this.getComms().request.getParameter(NOTIFYCONTACT)) {\n page.getElementNotifycontact().setValue(this.getComms().request.getParameter(NOTIFYCONTACT));\n }\n\n if(null == errorMsg) { \n\t page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText());\n } else {\n page.setTextErrorText(errorMsg);\n }\n \n\t return page.toDocument();\n }", "private String getReleaseNotesHtml() {\r\n\t\tString pkgName = _act.getPackageName();\r\n\t\tResources res = _act.getResources();\r\n\t\tint resId = res.getIdentifier(releaseNotesXml, \"xml\", pkgName);\r\n\t\tXmlResourceParser parser = res.getXml(resId);\r\n\r\n\t\tString html = \"<html><head>\" + css + \"</head><body>\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint eventType = parser.getEventType();\r\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\r\n\t\t\t\tif ((eventType == XmlPullParser.START_TAG) && (parser.getName().equals(\"release\"))){\r\n\t\t\t\t\thtml = html + parseReleaseNotesXML(parser);\r\n\t\t\t\t}\r\n\t\t\t\teventType = parser.next();\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (XmlPullParserException e)\r\n\t\t{\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tparser.close();\r\n\t\t}\r\n\t\thtml = html + \"</body></html>\";\r\n\t\treturn html;\r\n\t}", "public void renderChangeSet() {\n\t\t\n\t\tint saveScope = changeLog.scope; //IMPORTANT\n\t\t\n\t\tchangeLog.scope = attachScope;\t\t\n//\t\tif (attachType==MY_ATTACHMENT) changeHTML += \"<u>Current Committed Changes:</u><br><br>\";\n//\t\telse changeHTML += \"<u>Changes in Annotation Message:</u><br><br>\";\n\t\tJEditorPane[] changePanes = new JEditorPane[changeSet.size()];\n\t\trenderedChangeSet = new ArrayList();\n\t\t\n\t\tint ctr = 0;\n\t\tfor (Iterator iter = changeSet.iterator(); iter.hasNext();) {\n\t\t\t\n\t\t\t// create dynamic jeditorpane\n\t\t\tchangePanes[ctr] = new JEditorPane();\n\t\t\tchangePanes[ctr].setContentType(\"text/html\");\n\t\t\tchangePanes[ctr].setEditable(false);\n\t\t\tchangePanes[ctr].addHyperlinkListener(this);\n\t\t\t\n\t\t\tString changeHTML = \"<FONT FACE=\\\"\"+changeLog.swoopModel.getFontFace()+\"\\\" SIZE=\"+changeLog.swoopModel.getFontSize()+\">\";\n\t\t\tOntologyChange change = (OntologyChange) iter.next();\n\t\t\t\n\t\t\t// skip SaveCheckpointChange(s)\n\t\t\tif (change instanceof SaveCheckpointChange || change instanceof RevertCheckpointChange) continue;\n\t\t\t\n\t\t\tString html = changeLog.getChangeInformation(change, ChangeLog.CHANGE_DESCRIPTION, null, new ArrayList(), null).toString();\n\t\t\tif (!html.trim().equals(\"\")) {\n\t\t\t\trenderedChangeSet.add(ctr, change);\n\t\t\t\tchangeHTML += html;\n\t\t\t\tchangeHTML = changeHTML.replaceAll(\"Undo\", String.valueOf(ctr+1));\n\t\t\t\tchangePanes[ctr].setText(changeHTML);\n\t\t\t\tchangePanes[ctr].setCaretPosition(0);\n\t\t\t\tctr++;\n\t\t\t}\t\t\t\n\t\t}\n\t\tContainer content = this.getContentPane();\n\t\tcontent.removeAll();\n\t\tJPanel centerPane = new JPanel();\n\t\tcenterPane.setLayout(new GridLayout(ctr,1));\n\t\tchecks = new JCheckBox[ctr];\n\t\t\n\t\tfor (int i=0; i<ctr; i++) {\n\t\t\tJPanel singleChangePane = new JPanel();\n\t\t\tsingleChangePane.setLayout(new BorderLayout());\n\t\t\tsingleChangePane.add(new JScrollPane(changePanes[i]), \"Center\");\n\t\t\tchecks[i] = new JCheckBox();\n\t\t\tif (alreadyAttached.contains((OntologyChange) renderedChangeSet.get(i))) checks[i].setSelected(true);\n\t\t\tsingleChangePane.add(checks[i], \"West\");\n\t\t\tcenterPane.add(singleChangePane);\n\t\t}\n\t\tcontent.setLayout(new BorderLayout());\n\t\tcontent.add(scopePanel, \"North\");\n\t\tcontent.add(new JScrollPane(centerPane), \"Center\");\n\t\tcontent.add(toolbar, \"South\");\n\t\tcontent.repaint();\t\t\n\t\tshow();\n\t\t\n\t\tchangeLog.scope = saveScope; //IMPORTANT\n\t}", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "private void createProjectComposite() {\r\n\t\tGridLayout gridLayout2 = new GridLayout();\r\n\t\tgridLayout2.numColumns = 2;\r\n\t\tprojectComposite = new Composite(composite, SWT.NONE);\r\n\t\tprojectComposite.setLayout(gridLayout2);\r\n\t\tprojectComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\t\toutputChooserTreeViewer = new TreeViewer(projectComposite, SWT.BORDER);\r\n\t\toutputChooserTreeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n\t\toutputChooserTreeViewer.setContentProvider(new ProjectContentProvider());\r\n\t\toutputChooserTreeViewer.setLabelProvider(new DecoratingLabelProvider(\r\n\t\t\t\t\t\t\t\tnew WorkbenchLabelProvider(), \r\n\t\t\t\t\t\t\t\tPlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator()));\r\n\t\toutputChooserTreeViewer.setInput(ResourcesPlugin.getWorkspace().getRoot());\r\n\t\toutputChooserTreeViewer.getTree().addSelectionListener(new SelectionListener() {\r\n\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent arg0) {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\t\r\n\t\t\t\tvalidatePage();\r\n\t\t\t}\r\n\t\t});\r\n\t\toutputChooserTreeViewer.addSelectionChangedListener(new ISelectionChangedListener() {\r\n\r\n\t\t\tpublic void selectionChanged(SelectionChangedEvent arg0) {\r\n\t\t\t\tTreeSelection selection = (TreeSelection) outputChooserTreeViewer.getSelection();\r\n\t\t\t\tif (selection != null) {\r\n\t\t\t\t\tObject selected = selection.getFirstElement();\r\n\t\t\t\t\tif (selected != null) {\r\n\t\t\t\t\t\tif (selected instanceof IContainer) {\r\n\t\t\t\t\t\t\tNewPIWizardSettings.getInstance().outputContainer = (IContainer) selected;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tcreateButtonComposite();\r\n\t}", "public void editProjectAction() throws IOException {\n\t\tfinal List<Project> projects = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (projects.size() == 1) {\n\t\t\tfinal Project project = projects.get(0);\n\t\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_AddProjectDialog.fxml\");\n\t\t\tdialog.initOwner(addProject.getScene().getWindow());\n\t\t\t((AddProjectDialogController) loader.getController()).getContentController().setProjectToEdit(project);\n\t\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\t\tif (result.isPresent()) {\n\t\t\t\tlogger.trace(\"dialog 'edit project' result: {}\", result::get);\n\t\t\t\tupdateProjectList();\n\t\t\t}\n\t\t}\n\t}", "private void saveProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showSaveDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the output streams\n\t\t\t\tFileOutputStream fileOutput = new FileOutputStream(file.getAbsolutePath());\n\t\t\t\tObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput);\n\t\t\t\n\t\t\t\t// Write the objects\n\t\t\t\tfor(int i = 0; i < cards.size(); i++) {\n\t\t\t\t\tobjectOutput.writeObject(cards.get(i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the output streams\n\t\t\t\tobjectOutput.close();\n\t\t\t\tfileOutput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the file name\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not save the file.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\r\n protected void doCreate(boolean update) throws IOException, ServletException, Descriptor.FormException, InvalidProjectFileException {\r\n // Read the manage project file\r\n FileItem fileItem = getRequest().getFileItem(\"manageProject\");\r\n if (fileItem == null) {\r\n return;\r\n }\r\n\r\n manageFile = fileItem.getString();\r\n manageProject = new ManageProject(manageFile);\r\n manageProject.parse();\r\n\r\n getTopProject().setDescription(\"Top-level multi job to run the manage project: \" + getManageProjectName());\r\n String tmpLabel = getNodeLabel();\r\n if (tmpLabel == null || tmpLabel.isEmpty()) {\r\n tmpLabel = \"master\";\r\n }\r\n Label label = new LabelAtom(tmpLabel);\r\n getTopProject().setAssignedLabel(label);\r\n \r\n // Build actions...\r\n addSetup(getTopProject());\r\n // Add multi-job phases\r\n // Building...\r\n List<PhaseJobsConfig> phaseJobs = new ArrayList<>();\r\n \r\n projectsAdded = new ArrayList<>();\r\n projectsNeeded = new ArrayList<>();\r\n projectsExisting = new ArrayList<>();\r\n \r\n projectsAdded.add(getTopProject().getFullName());\n \r\n String baseName = getBaseName();\r\n if (getJobName() != null && !getJobName().isEmpty()) {\r\n baseName = getJobName();\r\n }\r\n\n String folderName = getTopProject().getParent().getFullName();\n if (folderName != null && !folderName.isEmpty()) {\n folderName = folderName + \"/\";\n }\n\n for (MultiJobDetail detail : manageProject.getJobs()) {\r\n String name = folderName + baseName + \"_\" + detail.getProjectName();\n projectsNeeded.add(name);\r\n PhaseJobsConfig phase = new PhaseJobsConfig(name, \r\n /*jobproperties*/\"\", \r\n /*currParams*/true, \r\n /*configs*/null, \r\n PhaseJobsConfig.KillPhaseOnJobResultCondition.NEVER, \r\n /*disablejob*/false, \r\n /*enableretrystrategy*/false, \r\n /*parsingrulespath*/null, \r\n /*retries*/0, \r\n /*enablecondition*/false, \r\n /*abort*/false, \r\n /*condition*/\"\", \r\n /*buildonly if scm changes*/false,\r\n /*applycond if no scm changes*/false);\r\n phaseJobs.add(phase);\r\n }\r\n MultiJobBuilder multiJobBuilder = new MultiJobBuilder(\"Build, Execute and Report\", phaseJobs, MultiJobBuilder.ContinuationCondition.COMPLETED);\r\n getTopProject().getBuildersList().add(multiJobBuilder);\r\n\r\n // Copy artifacts per building project\r\n for (MultiJobDetail detail : manageProject.getJobs()) {\r\n String name = folderName + baseName + \"_\" + detail.getProjectName();\n String tarFile = \"\";\r\n if (isUsingSCM()) {\r\n tarFile = \", \" + getBaseName() + \"_\" + detail.getProjectName() + \"_build.tar\";\r\n }\r\n CopyArtifact copyArtifact = new CopyArtifact(name);\r\n copyArtifact.setOptional(true);\r\n copyArtifact.setFilter(\"**/*_rebuild*,\" +\r\n \"execution/*.html, \" +\r\n \"management/*.html, \" +\r\n \"xml_data/**\" +\r\n tarFile);\r\n copyArtifact.setFingerprintArtifacts(false);\r\n BuildSelector bs = new WorkspaceSelector();\r\n copyArtifact.setSelector(bs);\r\n getTopProject().getBuildersList().add(copyArtifact);\r\n }\r\n addMultiJobBuildCommand();\r\n \r\n // Post-build actions if doing reporting\r\n if (getOptionUseReporting()) {\r\n addArchiveArtifacts(getTopProject());\r\n addXunit(getTopProject());\r\n addVCCoverage(getTopProject());\r\n addGroovyScriptMultiJob();\r\n }\r\n \r\n getTopProject().save();\r\n \r\n for (MultiJobDetail detail : manageProject.getJobs()) {\r\n String name = baseName + \"_\" + detail.getProjectName();\n createProjectPair(name, detail, update);\r\n }\r\n }", "private Project compileProject() {\n\t\t\tProject p = null;\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new OngoingProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pDeadline.getText()), Double.parseDouble(pBudget.getText()), Integer.parseInt(pCompletion.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new FinishedProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pEndDate.getText()), Double.parseDouble(pTotalCost.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t\treturn p;\n\t\t}", "@Given(\"I am on the Project Contact Details Page\")\n public void i_am_on_the_project_contact_details_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n i_click_on_create_a_new_project();\n\n }", "public String createHtml()\n {\n StringBuffer strEditor = new StringBuffer();\n\n strEditor.append(\"<div>\");\n String encodedValue = escapeXml(value.replaceAll(\"((\\r?\\n)+|\\t*)\", \"\"));\n\n if (check(request.getHeader(\"user-agent\")))\n {\n strEditor.append(createInputForVariable(instanceName, instanceName, encodedValue));\n // create config html\n String configStr = config.getUrlParams();\n if (configStr != null && configStr.length() > 0)\n {\n configStr = configStr.substring(1);\n strEditor.append(createInputForVariable(null, instanceName.concat(\"___Config\"), configStr));\n }\n\n // create IFrame\n String sLink = basePath.concat(\"/editor/fckeditor.html?InstanceName=\").concat(instanceName);\n if (toolbarSet != null && toolbarSet.length() > 0)\n {\n sLink += \"&Toolbar=\".concat(toolbarSet);\n }\n XHtmlTagTool iframeTag = new XHtmlTagTool(\"iframe\", XHtmlTagTool.SPACE);\n iframeTag.addAttribute(\"id\", instanceName.concat(\"___Frame\"));\n iframeTag.addAttribute(\"src\", sLink);\n iframeTag.addAttribute(\"width\", width);\n iframeTag.addAttribute(\"height\", height);\n iframeTag.addAttribute(\"frameborder\", \"no\");\n iframeTag.addAttribute(\"scrolling\", \"no\");\n strEditor.append(iframeTag);\n\n }\n else\n {\n XHtmlTagTool textareaTag = new XHtmlTagTool(\"textarea\", encodedValue);\n textareaTag.addAttribute(\"name\", instanceName);\n textareaTag.addAttribute(\"rows\", \"4\");\n textareaTag.addAttribute(\"cols\", \"40\");\n textareaTag.addAttribute(\"wrap\", \"virtual\");\n textareaTag.addAttribute(\"style\", \"width: \".concat(width).concat(\"; height: \").concat(height));\n }\n strEditor.append(\"</div>\");\n return strEditor.toString();\n }", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "public String getProjectTeamName(){\n return \"The name of the project of this researcher is \"+\n name_of_project_team +\n \"\\n*******\\n\";\n }", "@Override\r\n public void onSubmit() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n \r\n // check if any field is missing\r\n boolean hasAllFields = true;\r\n if (this.projectName == null) {\r\n hasAllFields = false;\r\n error(\"Project name is required.\");\r\n }\r\n if (this.ownerName == null) {\r\n hasAllFields = false;\r\n error(\"Owner name is required.\");\r\n }\r\n if (this.password == null) {\r\n hasAllFields = false;\r\n error(\"Password is required.\");\r\n }\r\n if (this.svnUrl == null) {\r\n hasAllFields = false;\r\n error(\"The repository URL is required.\");\r\n }\r\n \r\n if (hasAllFields) {\r\n try {\r\n // check if the owner is a valid hackystat user\r\n String host = app.getSensorBaseHost();\r\n SensorBaseClient client = new SensorBaseClient(host, this.ownerName, this.password);\r\n client.authenticate();\r\n }\r\n catch (SensorBaseClientException e) {\r\n error(\"Owner is not valid Hackystat user or password does not match.\");\r\n }\r\n \r\n try {\r\n // check if the svn url is a valid google host url\r\n WebConversation wc = new WebConversation();\r\n WebResponse response = wc.getResponse(this.svnUrl);\r\n if (!response.getTitle().contains(\"Revision\")) {\r\n error(\"The repository URL is not a valid Google host repository URL.\");\r\n }\r\n }\r\n catch (Exception e) {\r\n error(\"Cannot connect to the repository URL.\");\r\n }\r\n \r\n // if there is no error, create the project and go back to the home page\r\n if (!hasError() && createProject()) {\r\n // redirect to the projects page\r\n setResponsePage(ProjectsPage.class);\r\n }\r\n else {\r\n error(\"The project cannot be created. \" +\r\n \"A project with the same name already exists, or some information are invalid.\");\r\n }\r\n }\r\n \r\n }", "@SneakyThrows\n private void editProject(MouseEvent event) {\n final Project project = table.getSelectionModel().getSelectedItem();\n if (project == null) {\n NotificationUtil.warningAlert(\"Warning\", \"Select project first\", NotificationUtil.SHORT);\n return;\n }\n final FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"/entity/update/UpdateProject.fxml\"));\n Parent parent = fxmlLoader.load();\n UpdateProjectController updateProjectController = fxmlLoader.getController();\n updateProjectController.editCurrentProject(project);\n\n final Stage stage = new Stage();\n Scene value = new Scene(parent);\n value.getStylesheets().add(\"css/main.css\");\n stage.setScene(value);\n stage.initModality(Modality.WINDOW_MODAL);\n Window window = ((Node) event.getSource()).getScene().getWindow();\n stage.initOwner(window);\n stage.show();\n\n stage.setOnHiding(e -> loadProjects());\n }", "public String getProjectTitle()\r\n {\r\n return (m_projectTitle);\r\n }", "private void renderObjetos() {\n \tcpPrincipal.add(_cPrincipal);\n\n _cPrincipal.add(rPrincipal);\n rPrincipal.add(cLabels);\n rPrincipal.add(cTexts);\n \n //rPrincipal.setBorder(new Border(1, Color.BLUE,Border.STYLE_DASHED));\n \n _cPrincipal.add(rMensaje);\n _cPrincipal.add(rBotones); \n \n cLabels.add(lApellido);\n cLabels.add(lNombres);\n cLabels.add(lDocNum);\n cLabels.add(lTelefono);\n cLabels.add(lCelular);\n //cLabels.add(lRazonSocial);\n \n cTexts.add(tApellido);\n cTexts.add(tNombres); \n cTexts.add(tDoc);\n cTexts.add(tTelefono);\n cTexts.add(tCelular);\n //cTexts.add(tRazonSocial); \n \n rMensaje.add(lMensaje);\n\n ApplicationInstance.getActive().setFocusedComponent(tApellido);\n \n }", "public OutputSummary() throws IOException\n\t{\n\t\tsetBorder(BorderFactory.createRaisedBevelBorder());\n\t\tthis.setPreferredSize(new Dimension(500, 600));\n\t\tthis.setVisible(true);\n\t\teditorPane = new JEditorPane();\n\t\teditorPane.setText(\"<output here>\");\n\t\teditorPane.setContentType(\"text/html\");\n\t\tJScrollPane editorScrollPane = new JScrollPane(editorPane);\n\t\teditorScrollPane.setVerticalScrollBarPolicy(\n\t\t JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\teditorScrollPane.setPreferredSize(new Dimension(490, 600));\n\t\tthis.add(editorScrollPane);\n\t}", "public void generateDetailHtml(String filename)\n {\n\tString htmlFileName = \"ddetail.html\";\n\tString panelSection = null;\n\tFileWriter writer = null;\n\tif (filename != null)\n htmlFileName = filename;\n\ttry \n\t {\n\t writer = new FileWriter(htmlFileName);\n\t writer.write(\"<HTML><BODY>\\n\");\n\t Iterator panelIter = panelTable.values().iterator();\n while (panelIter.hasNext())\n\t {\n\t\tPanelInfo panel = (PanelInfo) panelIter.next();\n\t\tif (panel.isPrimary())\n\t\t {\n\t\t panelSection = generatePanelDetails(panel);\n\t\t writer.write(panelSection);\n\t\t }\n\t\t}\n\t writer.write(\"</BODY></HTML>\\n\");\n\t writer.close();\n\t }\n\n\tcatch (IOException ioe)\n\t {\n\t System.out.println(\"Error creating or writing to \" + htmlFileName);\n\t ioe.printStackTrace();\n\t }\n\t}", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "@GET\r\n @Produces(\"text/html\")\r\n public String getHtml() {\r\n return \"<html><body>the solution is :</body></html> \";\r\n }", "private static JEditorPane editorPane()\n {\n try\n {\n JEditorPane editor = new JEditorPane(); //this will be the editor returned\n editor.setPage(Resources.getResource(filename)); //gives the editor the URL of the HTML file\n editor.setEditable(false); //prevents the about page from being edited\n return editor; //return the editor which is now displaying the HTML file\n } catch(Exception e){\n e.printStackTrace();\n JOptionPane.showMessageDialog(null, \"ERROR: could not access about.HTML file\");\n return null; //if the editor could not be built\n }\n }", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "@Override\n public String getHelpFile() {\n final String filePath = \"/descriptor/au.com.centrumsystems.hudson.plugin.buildpipeline.trigger.BuildPipelineTrigger/help\";\n final String fileName = \"buildPipeline.html\";\n return String.format(\"%s/%s\", filePath, fileName);\n }", "public String getProjectTitle() {\n\n\t\tif (projectTitle != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"project_title\" + TAB + projectTitle;\n\t\treturn null;\n\t}", "public void updateDescriptionText() {\n \n String toolTipText = new String(\"<html>\");\n \n if (!m_OptionsWereValid) {\n \n toolTipText += \"<font COLOR=\\\"#FF0000\\\">\"\n\t+ \"<b>Invalid Model:</b><br>\" + m_ErrorText + \"<br></font>\";\n }\n \n toolTipText += \"<TABLE>\";\n \n PropertyDescriptor properties[] = null;\n MethodDescriptor methods[] = null;\n \n try {\n BeanInfo bi = Introspector.getBeanInfo(m_Classifier.getClass());\n properties = bi.getPropertyDescriptors();\n methods = bi.getMethodDescriptors();\n } catch (IntrospectionException ex) {\n System.err.println(\"LibraryModel: Couldn't introspect\");\n return;\n }\n \n for (int i = 0; i < properties.length; i++) {\n \n if (properties[i].isHidden() || properties[i].isExpert()) {\n\tcontinue;\n }\n \n String name = properties[i].getDisplayName();\n Class type = properties[i].getPropertyType();\n Method getter = properties[i].getReadMethod();\n Method setter = properties[i].getWriteMethod();\n \n // Only display read/write properties.\n if (getter == null || setter == null) {\n\tcontinue;\n }\n \n try {\n\tObject args[] = {};\n\tObject value = getter.invoke(m_Classifier, args);\n\t\n\tPropertyEditor editor = null;\n\tClass pec = properties[i].getPropertyEditorClass();\n\tif (pec != null) {\n\t try {\n\t editor = (PropertyEditor) pec.newInstance();\n\t } catch (Exception ex) {\n\t // Drop through.\n\t }\n\t}\n\tif (editor == null) {\n\t editor = PropertyEditorManager.findEditor(type);\n\t}\n\t//editors[i] = editor;\n\t\n\t// If we can't edit this component, skip it.\n\tif (editor == null) {\n\t continue;\n\t}\n\tif (editor instanceof GenericObjectEditor) {\n\t ((GenericObjectEditor) editor).setClassType(type);\n\t}\n\t\n\t// Don't try to set null values:\n\tif (value == null) {\n\t continue;\n\t}\n\t\n\ttoolTipText += \"<TR><TD>\" + name + \"</TD><TD>\"\n\t+ value.toString() + \"</TD></TR>\";\n\t\n } catch (InvocationTargetException ex) {\n\tSystem.err.println(\"Skipping property \" + name\n\t + \" ; exception on target: \" + ex.getTargetException());\n\tex.getTargetException().printStackTrace();\n\tcontinue;\n } catch (Exception ex) {\n\tSystem.err.println(\"Skipping property \" + name\n\t + \" ; exception: \" + ex);\n\tex.printStackTrace();\n\tcontinue;\n }\n }\n \n toolTipText += \"</TABLE>\";\n toolTipText += \"</html>\";\n m_DescriptionText = toolTipText;\n }", "@SuppressWarnings(\"serial\")\n\tpublic ProjectPage() {\n\t\tagregarForm();\n\t}", "void showTodoViewToEdit(Task task);", "public CreateProjectPanel() {\n isFinished = true;\n }", "public abstract ProjectBean getSystemProject();", "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "public AbstractProjectTaskPanel(String title, Model model, int width, int height, Color colour) {\n this.model = model;\n setLayout(null);\n this.setSize(width, height);\n this.setBorder(BorderFactory.createLineBorder(colour));\n\n JLabel panelLabel = new JLabel(title, SwingConstants.CENTER);\n panelLabel.setBounds(0, 2, width, 15);\n panelLabel.setForeground(colour);\n panelLabel.setFocusable(false);\n this.add(panelLabel);\n\n JLabel titleLabel = new JLabel(\"Title:\");\n titleLabel.setBounds(5, 22, FIELD_START - 2, 15);\n titleLabel.setFocusable(false);\n this.add(titleLabel);\n titleEntry = new JTextField();\n titleEntry.setBounds(FIELD_START, 18, 240, 20);\n this.add(titleEntry);\n \n JLabel descriptionLabel = new JLabel(\"Description:\");\n descriptionLabel.setBounds(5, 40, FIELD_START - 2, 15);\n descriptionLabel.setFocusable(false);\n this.add(descriptionLabel);\n descriptionEntry = new JTextField();\n descriptionEntry.setBounds(FIELD_START, 38, 340, 20);\n this.add(descriptionEntry);\n\n JLabel parentLabel = new JLabel(\"Parent: \");\n parentLabel.setBounds(5, 60, FIELD_START - 2, 15);\n parentLabel.setFocusable(false);\n this.add(parentLabel);\n parentEntry = new JComboBox<>();\n parentEntry.setModel(model.getProjectComboBoxModel());\n parentEntry.setBounds(FIELD_START, 58, 240, 20);\n this.add(parentEntry);\n\n JLabel due_Date = new JLabel(\"Due Date: \");\n due_Date.setBounds(5, 80, FIELD_START - 2, 15);\n due_Date.setFocusable(false);\n this.add(due_Date);\n\n dueDateModel = new UtilCalendarModel();\n JDatePanelImpl dueDatePanel = new JDatePanelImpl(dueDateModel);\n JDatePickerImpl dueDatePicker = new JDatePickerImpl(dueDatePanel);\n dueDatePicker.setBounds(FIELD_START, 74, 150, 22);\n this.add(dueDatePicker);\n\n addButton = new JButton(\"Add\");\n addButton.setBounds(width - 65, height - 25, 60, 20);\n addButton.setEnabled(true);\n addButton.addActionListener(this::addProjectTask);\n this.add(addButton);\n\n modifyButton = new JButton(\"Modify\");\n modifyButton.setBounds(width - 65, height - 25, 60, 20);\n modifyButton.setEnabled(false);\n modifyButton.setVisible(false);\n modifyButton.addActionListener(this::modifyProjectTask);\n this.add(modifyButton);\n \n model.addSelectionListener(this::treeSelectionChanged);\n }", "public String getProjectno() {\r\n return projectno;\r\n }", "private void createGUI() {\n myPanel.setLayout(new GridBagLayout());\n\n // Save\n bSave = new JButton(\"Save\");\n bSave.setMnemonic(KeyEvent.VK_S);\n bSave.setEnabled(false);\n bSave.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Document doc = view.getDocument();\n try {\n FileWriter w =\n new FileWriter(view.getPage().getFile());\n w.write(view.getText(), 0, view.getText().length());\n w.close();\n }\n catch (IOException ex) {\n // Debug\n ex.printStackTrace();\n }\n setDirty(false);\n }\n });\n bSave.setToolTipText(\"Save changes\");\n\n\t// View\n\tview = new PrintPane();\n view.setEditorKit(view.getEditorKitForContentType(\"text/html\"));\n view.setEditable(false);\n view.setMargin(new Insets(10,10,10,10));\n view.addCaretListener(new CaretListener() {\n public void caretUpdate(CaretEvent e) {\n if (!indocListener.inwork)\n indocListener.setStart(e.getMark());\n }\n });\n\tview.addHyperlinkListener(new HyperlinkListener() {\n\t\tpublic void hyperlinkUpdate(HyperlinkEvent e) {\n\t\t if (e.getEventType() == ACTIVATED) {\n\t\t\ttry {\n String key = myData.getKey(e.getURL().toString());\n if (key.equals(\"---\")) {\n view.setPage(e.getURL());\n title.setText(key);\n }\n else {\n TreePath tp = getTreePath(key);\n indexTree.addSelectionPath(tp);\n }\n\t\t\t}\n\t\t\tcatch(Exception ex) {\n\t\t\t ex.printStackTrace();\n\t\t\t}\n\t\t }\n\t\t}\n\t });\n view.setToolTipText(\"Use popup to print page\");\n\n\t// Index\n indexTree = new JTree();\n indexTree.addTreeSelectionListener(new TreeSelectionListener() {\n public void valueChanged(TreeSelectionEvent e) {\n TreePath p = e.getNewLeadSelectionPath();\n if (p == null) return;\n Object oa[] = p.getPath();\n MutableTreeNode tn = (MutableTreeNode) oa[oa.length - 1];\n if (tn != null && tn.isLeaf()) {\n String key = \"\";\n for (int i = 1; i < oa.length; i++)\n key += \"/\" + oa[i].toString();\n key = key.substring(1);\n String s = myData.getFile(key);\n if (s == null) return;\n try {\n if (s.indexOf(\"pdf:\") == 0) {\n s = s.substring(4);\n Runtime.getRuntime().exec\n (System.getProperty(\"pdf\") + \" \" + myPath + s);\n }\n else {\n URL url = view.getPage();\n if (url != null && !myData.getKey(url.toString()).equals(\"---\")) {\n history.add(url);\n if (!linear) future.clear();\n }\n view.setPage(new URL(\"file:\" + myPath + s));\n title.setText(key);\n }\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n myData.getLocation(key).inform();\n // Other selections\n indexTree.scrollPathToVisible(p);\n }\n }\n });\n\tindexTree.getSelectionModel().setSelectionMode\n (TreeSelectionModel.SINGLE_TREE_SELECTION);\n indexTree.setEditable(false);\n\n search = new JTextField();\n inindListener = new IncSearchDocListener(search, indexTree);\n fullListener = new MyFullListener();\n indocListener = new MyDocListener();\n\n curListener = inindListener;\n search.getDocument().addDocumentListener(curListener);\n search.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (curListener == inindListener) {\n inindListener.increment();\n inindListener.work(search.getDocument());\n }\n if (curListener == fullListener) {\n fullListener.work(search.getDocument());\n }\n if (curListener == indocListener) {\n indocListener.increment();\n indocListener.work(search.getDocument());\n }\n }\n });\n\n indexTree.addTreeSelectionListener(new TreeSelectionListener() {\n public void valueChanged(TreeSelectionEvent e) {\n TreePath p = e.getNewLeadSelectionPath();\n DefaultMutableTreeNode tn = null;\n if (p != null)\n tn = (DefaultMutableTreeNode) p.getLastPathComponent();\n if (tn != null) {\n inindListener.setStart(tn.getFirstLeaf());\n indocListener.setStart(0);\n }\n }\n });\n\n // History buttons\n forward = new JButton(\"Forward\");\n forward.setMnemonic(KeyEvent.VK_F);\n forward.setEnabled(false);\n forward.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (future.size() > 0) {\n try {\n String key = myData.getKey(future.getLast().toString());\n TreePath tp = getTreePath(key);\n linear = true;\n indexTree.addSelectionPath(tp);\n linear = false;\n future.removeLast();\n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n forward.setToolTipText(\"Forward a page in view history\");\n\n back = new JButton(\"Back\");\n back.setMnemonic(KeyEvent.VK_B);\n back.setEnabled(false);\n back.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (history.size() > 0) {\n try {\n String key = myData.getKey(history.getLast().toString());\n TreePath tp = getTreePath(key);\n linear = true;\n indexTree.addSelectionPath(tp);\n linear = false;\n future.add(history.getLast().toString());\n history.removeLast();\n history.removeLast(); \n }\n catch(Exception ex) {\n ex.printStackTrace();\n }\n }\n }\n });\n back.setToolTipText(\"Back a page in view history\");\n\n pMenuHI = new JPopupMenu();\n JMenuItem mi1 = new JMenuItem(\"Locate\");\n pMenuHI.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n TreePath tp = indexTree.getPathForLocation(gx, gy);\n if (tp == null) return;\n Object[] oa = tp.getPath();\n if (tp.getPath().length < 4) return;\n String entry = \"\";\n for (int i = 1; i < 4; i++)\n entry += \"/\" + oa[i].toString();\n MyLocation loc = myData.getLocation(entry.substring(1));\n loc.locate();\n }\n\t });\n mi1 = new JMenuItem(\"Sound Trigger\");\n pMenuHI.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n TreePath tp = indexTree.getPathForLocation(gx, gy);\n if (tp == null) return;\n Object[] oa = tp.getPath();\n String entry = oa[oa.length - 1].toString();\n if (oa.length > 1)\n entry = oa[oa.length - 2].toString() + \"/\" + entry;\n if (oa.length > 2)\n entry = oa[oa.length - 3].toString() + \"/\" + entry;\n MyLocation loc = myData.getLocation(entry);\n if (myData.getSoundBank() != null)\n myData.getSoundBank().addLocation(loc);\n }\n\t });\n\n indexTree.addMouseListener(new MouseAdapter() {\n public void mousePressed(MouseEvent e) { popup(e); }\n public void mouseReleased(MouseEvent e) { popup(e); }\n private void popup(MouseEvent e) {\n if (e.isPopupTrigger()) {\n gx = e.getX(); gy = e.getY();\n pMenuHI.show(e.getComponent(), gx, gy);\n }\n }\n });\n\n pMenuV = new JPopupMenu();\n mi1 = new JMenuItem(\"Boldface\");\n pMenuV.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n int b = view.getSelectionStart();\n String txt = view.getSelectedText();\n view.replaceSelection(\"\");\n try {\n HTMLDocument doc = (HTMLDocument)view.getDocument();\n ((HTMLEditorKit)view.getEditorKit()).insertHTML\n (doc, b, \"<b>\" + txt + \"</b>\", 0, 0, HTML.Tag.B);\n }\n catch (Exception ex) {\n // Debug\n ex.printStackTrace();\n }\n }\n });\n JMenuItem mi2 = new JMenuItem(\"Italics\");\n pMenuV.add(mi2);\n mi2.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n int b = view.getSelectionStart();\n String txt = view.getSelectedText();\n view.replaceSelection(\"\");\n try {\n HTMLDocument doc = (HTMLDocument)view.getDocument();\n ((HTMLEditorKit)view.getEditorKit()).insertHTML\n (doc, b, \"<i>\" + txt + \"</i>\", 0, 0, HTML.Tag.I);\n }\n catch (Exception ex) {\n // Debug\n ex.printStackTrace();\n }\n }\n });\n\n view.addMouseListener(new MouseAdapter() {\n public void mousePressed(MouseEvent e) { popup(e); }\n public void mouseReleased(MouseEvent e) { popup(e); }\n private void popup(MouseEvent e) {\n if (e.isPopupTrigger()) {\n if (editor != null) {\n gx = e.getX(); gy = e.getY();\n pMenuV.show(e.getComponent(), gx, gy);\n }\n else {\n pPrint.show(e.getComponent(), e.getX(), e.getY());\n }\n }\n }\n });\n pPrint = new JPopupMenu();\n mi1 = new JMenuItem(\"Print\");\n pPrint.add(mi1);\n mi1.addActionListener(new ActionListener() {\n\t\tpublic void actionPerformed(ActionEvent e) {\n PrinterJob job = PrinterJob.getPrinterJob();\n job.setPrintable(view);\n if (job.printDialog()) {\n try {\n job.print();\n }\n catch (PrinterException ex) {\n // Debug\n ex.printStackTrace();\n }\n }\n }\n });\n\n // Panels\n\tJScrollPane sview = new JScrollPane(view);\n sview.getVerticalScrollBar().setUnitIncrement(10);\n sview.getHorizontalScrollBar().setUnitIncrement(10);\n\tJScrollPane sindex = new JScrollPane(indexTree);\n sindex.getVerticalScrollBar().setUnitIncrement(10);\n sindex.getHorizontalScrollBar().setUnitIncrement(10);\n\tresults = new JPanel(new GridBagLayout());\n\tsresults = new JScrollPane(results);\n sresults.getVerticalScrollBar().setUnitIncrement(10);\n sresults.getHorizontalScrollBar().setUnitIncrement(10);\n JSplitPane sp = new JSplitPane\n (JSplitPane.VERTICAL_SPLIT, sview, sresults);\n sp.setResizeWeight(.9);\n\n final JCheckBox full = new JCheckBox(\"Full\");\n full.setToolTipText(\"Full database search (non-incremental)\");\n final JCheckBox inind = new JCheckBox(\"Index\");\n inind.setSelected(true);\n inind.setToolTipText(\"Index search (incremental)\");\n final JCheckBox indoc = new JCheckBox(\"Page\");\n indoc.setToolTipText(\"Search shown page (incremental)\");\n Box three = new Box(BoxLayout.X_AXIS);\n three.add(full);\n three.add(inind);\n three.add(indoc);\n ButtonGroup bg = new ButtonGroup();\n bg.add(full);\n bg.add(inind);\n bg.add(indoc);\n ItemListener il = new ItemListener() {\n public void itemStateChanged(ItemEvent e) {\n if (e.getStateChange() != ItemEvent.SELECTED) return;\n String mod = ((JCheckBox)e.getItem()).getText();\n search.getDocument().removeDocumentListener(curListener);\n if (e.getItem() == full)\n curListener = fullListener;\n if (e.getItem() == inind)\n curListener = inindListener;\n if (e.getItem() == indoc)\n curListener = indocListener;\n results.removeAll();\n results.repaint();\n search.getDocument().addDocumentListener(curListener);\n }\n };\n full.addItemListener(il);\n inind.addItemListener(il);\n indoc.addItemListener(il);\n\n\tGridBagConstraints constr1 = new GridBagConstraints();\n\tconstr1.gridx = 0;\n\tconstr1.weightx = 1;\n\tconstr1.fill = GridBagConstraints.BOTH;\n\n\tJPanel p1 = new JPanel(new GridBagLayout());\n p1.add(back, constr1);\n p1.add(forward, constr1);\n p1.add(bSave, constr1);\n\tconstr1.weighty = 1;\n p1.add(sindex, constr1);\n constr1.weighty = 0;\n p1.add(three, constr1);\n p1.add(search, constr1);\n\n\tGridBagConstraints constr3 = new GridBagConstraints();\n\tconstr3.gridx = constr3.gridy = 0;\n\tconstr3.weightx = 1;\n constr3.weighty = 0;\n\tconstr3.fill = GridBagConstraints.HORIZONTAL;\n\n tp = new JPanel(new GridBagLayout());\n title = new JTextField();\n title.setEnabled(false);\n tp.add(title, constr3);\n\tconstr3.gridy = 1;\n constr3.weighty = 1;\n\tconstr3.fill = GridBagConstraints.BOTH;\n tp.add(sp, constr3);\n\n\tJSplitPane sp4 = new JSplitPane\n (JSplitPane.HORIZONTAL_SPLIT, p1, tp);\n sp4.setResizeWeight(.2);\n\t\n\tconstr1.weighty = 1;\n\tmyPanel.add(sp4, constr1);\n\n\t// If someone turned these value into non-Integers, we throw up\n\tint w = Integer.parseInt(myProps.getProperty(\"display.width\"));\n\tint h = Integer.parseInt(myProps.getProperty(\"display.height\"));\n\tview.setPreferredSize(new Dimension(w, h));\n }", "private void addObjectInformation(MarkupContainer container, final DccdSB dccdHit)\n\t{\n\t\tString objectTitleStr = \"\";\n\t\tif (dccdHit.hasTridasObjectTitle())\n\t\t\tobjectTitleStr = dccdHit.getTridasObjectTitle().get(0);//tridasObject.getTitle();\n // Make a link to the project view page\n\t\t// using the object title as link text\n Link viewLink = new Link(\"project_view\")//, new Model(resultItem))\n {\n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\t// now navigate to view page with given project;\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}\n };\n container.add(viewLink);\n viewLink.add(new Label(\"object_title_link\",objectTitleStr));\n\n container.add(new Label(\"object_type\", getObjectTypeString(dccdHit)));\n\t}", "@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public static void main(String[] args) {\n\n Project project = new Project();\n project.setId(2L);\n project.setTitle(\"Title\");\n System.out.println(project);\n }", "@Override\r\n\tprotected Control createContents(Composite parent) {\n\t\tIProject project = (IProject) getElement().getAdapter(IProject.class);\r\n\t\tdfc = new DeepFileChanger(project.getLocation()\t+ \"/\" + project.getName() + \".deep\");\r\n\r\n\t\tlibPath = dfc.getContent(\"libpath\");\r\n\t\tif (!libPath.equals(\"not available\")) libPath = libPath.substring(1, libPath.length()-1);\r\n\t\tboard = dfc.getContent(\"boardtype\");\r\n\t\tprogrammer = dfc.getContent(\"programmertype\");\r\n\t\tos = dfc.getContent(\"ostype\");\r\n\t\trootclasses = dfc.getContent(\"rootclasses\");\r\n\t\timglocation = dfc.getContent(\"imgfile\");\r\n\t\timgformat = dfc.getContent(\"imgformat\");\r\n\t\tif(imglocation.equalsIgnoreCase(\"not available\") && imgformat.equalsIgnoreCase(\"not available\")){\r\n\t\t\tcreateImgFile = false;\r\n\t\t\tlastImgPathChoice = project.getLocation().toString();\r\n\t\t\tlastImgPathChoice = lastImgPathChoice.replace('/', '\\\\');\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcreateImgFile = true;\r\n\t\t\tlastImgPathChoice = imglocation.replace('/', '\\\\');\r\n\t\t\tlastImgPathChoice = lastImgPathChoice.substring(1,lastImgPathChoice.length() -1 );\r\n\t\t\tint indexOfProjectName = lastImgPathChoice.lastIndexOf(\"\\\\\");\r\n\t\t\tlastImgPathChoice = lastImgPathChoice.substring(0, indexOfProjectName);\r\n\t\t\tlastImgFormatChoice = imgformat;\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(dfc.fileContent.toString());\t\t\r\n//\t\tSystem.out.println(libPath);\r\n//\t\tSystem.out.println(board);\r\n//\t\tSystem.out.println(programmer);\r\n//\t\tSystem.out.println(os);\r\n//\t\tSystem.out.println(rootclasses);\r\n//\t\tSystem.out.println(lastImgPathChoice);\r\n//\t\tSystem.out.println(lastImgFormatChoice);\r\n//\t\tSystem.out.println(\"\");\r\n\r\n\t\t// read project preferences\r\n\t\tpref = getPref();\r\n\t\t\r\n\t\t// build control\r\n\t\tComposite composite = new Composite(parent, SWT.NONE);\r\n\t\tcomposite.setLayout(new GridLayout(2, false));\r\n\t\r\n\t\tGroup groupLib = new Group(composite, SWT.NONE);\r\n\t\tgroupLib.setText(\"Target Library\");\r\n\t\tGridLayout gridLayout2 = new GridLayout(2, false);\r\n\t\tgroupLib.setLayout(gridLayout2);\r\n\t\tGridData gridData = new GridData(SWT.FILL, SWT.CENTER, true, false);\r\n\t\tgridData.horizontalSpan = 2;\r\n\t\tgroupLib.setLayoutData(gridData);\r\n\t\tLabel label1 = new Label(groupLib,SWT.NONE);\r\n\t\tlabel1.setText(\"Pleace specify the target library you want to use for this project.\");\r\n\t\tlabel1.setLayoutData(gridData);\r\n\t\tLabel dummy = new Label(groupLib, SWT.NONE);\r\n\t\tdummy.setLayoutData(gridData);\r\n\t\tcheck = new Button(groupLib, SWT.CHECK);\r\n\t\tcheck.setText(\"Use default library path\");\r\n\t\tcheck.setSelection(libPath.equals(defaultPath));\r\n\t\tcheck.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tif (e.widget.equals(check)) {\r\n\t\t\t\t\tif (check.getSelection()) {\r\n\t\t\t\t\t\tpath.setEnabled(false);\r\n\t\t\t\t\t\tpath.setText(defaultPath);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tpath.setEnabled(true);\r\n\t\t\t\t\t\tpath.setText(lastChoice);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlibPath = path.getText();\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcheck.setLayoutData(gridData);\r\n\t\tpath = new Text(groupLib, SWT.SINGLE | SWT.BORDER);\r\n\t\tGridData gridData2 = new GridData();\r\n\t\tgridData2.horizontalAlignment = SWT.FILL;\r\n\t\tgridData2.grabExcessHorizontalSpace = true;\r\n\t\tpath.setLayoutData(gridData2);\r\n\t\tpath.setText(libPath);\r\n\t\tpath.setEnabled(!libPath.equals(defaultPath));\r\n\t\tpath.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\tlibPath = path.getText();\r\n\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbrowse = new Button(groupLib, SWT.PUSH);\r\n\t\tbrowse.setText(\"Browse...\");\r\n\t\tbrowse.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tif (!check.getSelection()){\t\r\n\t\t\t\t\topenDirectoryDialog();\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tlibState = new Label(groupLib,SWT.NONE);\r\n\t\tlibState.setLayoutData(gridData);\r\n\r\n//\t\tGroup groupBoard = new Group(composite, SWT.BOTTOM);\r\n\t\tGroup groupBoard = new Group(composite, SWT.NONE);\r\n\t\tgroupBoard.setText(\"Board configuration\");\r\n\t\tGridLayout groupLayout1 = new GridLayout(2, false);\r\n\t\tgroupBoard.setLayout(groupLayout1);\r\n\t\tGridData gridData3 = new GridData();\r\n\t\tgridData3.horizontalAlignment = SWT.FILL;\r\n\t\tgridData3.grabExcessHorizontalSpace = true;\r\n\t\tgridData3.horizontalSpan = 2;\r\n\t\tgroupBoard.setLayoutData(gridData3);\r\n\t\tLabel boardLabel = new Label(groupBoard, SWT.NONE);\r\n\t\tboardLabel.setText(\"Select a board\");\r\n\t\tboardCombo = new Combo(groupBoard, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\tboardCombo.addSelectionListener(listener);\r\n\t\tLabel progLabel = new Label(groupBoard, SWT.NONE);\r\n\t\tprogLabel.setText(\"Select a programmer\");\r\n\t\tprogrammerCombo = new Combo(groupBoard, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\tprogrammerCombo.addSelectionListener(listener);\r\n\r\n//\t\tGroup groupOS = new Group(composite, SWT.BOTTOM);\r\n\t\tGroup groupOS = new Group(composite, SWT.NONE);\r\n\t\tgroupOS.setText(\"Runtime system\");\r\n\t\tGridLayout groupLayout2 = new GridLayout(2, false);\r\n\t\tgroupOS.setLayout(groupLayout2);\r\n\t\tGridData gridData4 = new GridData();\r\n\t\tgridData4.horizontalAlignment = SWT.FILL;\r\n\t\tgridData4.grabExcessHorizontalSpace = true;\r\n\t\tgridData4.horizontalSpan = 2;\r\n\t\tgroupOS.setLayoutData(gridData4);\r\n\t\tLabel osLabel = new Label(groupOS,SWT.NONE);\r\n\t\tosLabel.setText(\"Select a operating system\");\r\n\t\tosCombo = new Combo(groupOS, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\tosCombo.addSelectionListener(listener);\r\n\r\n\t\tGroup groupImg = new Group(composite, SWT.NONE);\r\n\t\tgroupImg.setText(\"Image file creation\");\r\n\t\tGridLayout gridLayoutImg = new GridLayout(2,false);\r\n\t\tgroupImg.setLayout(gridLayoutImg);\r\n\t\tGridData gridDataImg = new GridData(SWT.FILL, SWT.CENTER, true, false);\r\n\t\tgridDataImg.horizontalSpan = 2;\t\t\r\n\t\tcheckImg = new Button(groupImg, SWT.CHECK);\r\n\t\tcheckImg.setText(\"Create image file\");\r\n\t\tcheckImg.setSelection(false);\r\n\t\tcheckImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tif(e.widget.equals(checkImg)) {\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t\tif(checkImg.getSelection()) {\r\n\t\t\t\t\t\tpathImg.setEnabled(true);\r\n\t\t\t\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\t\t\t\tbrowseImg.setEnabled(true);\r\n\t\t\t\t\t\timgFormatCombo.setEnabled(true);\r\n\t\t\t\t\t\tindexImgFormat = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < Configuration.formatMnemonics.length; i++) {\r\n\t\t\t\t\t\t\tif (lastImgFormatChoice.equalsIgnoreCase(Configuration.formatMnemonics[i])) indexImgFormat = i;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\timgFormatCombo.select(indexImgFormat);\r\n\t\t\t\t\t\tcreateImgFile = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpathImg.setEnabled(false);\r\n\t\t\t\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\t\t\t\tbrowseImg.setEnabled(false);\r\n\t\t\t\t\t\timgFormatCombo.setEnabled(false);\r\n\t\t\t\t\t\tindexImgFormat = 0;\r\n\t\t\t\t\t\tfor (int i = 0; i < Configuration.formatMnemonics.length; i++) {\r\n\t\t\t\t\t\t\tif (lastImgFormatChoice.equalsIgnoreCase(Configuration.formatMnemonics[i])) indexImgFormat = i;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\timgFormatCombo.select(indexImgFormat);\r\n\t\t\t\t\t\tcreateImgFile = 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\tcheckImg.setLayoutData(gridDataImg);\r\n\t\t\r\n\t\tGridData gridDataImg2 = new GridData(SWT.FILL, SWT.FILL, true, false);\r\n\t\tpathImg = new Text(groupImg, SWT.SINGLE | SWT.BORDER);\r\n\t\tpathImg.setLayoutData(gridDataImg2);\r\n\t\tpathImg.setEnabled(false);\r\n\t\tpathImg.addModifyListener(new ModifyListener() {\r\n\t\t\tpublic void modifyText(ModifyEvent e) {\r\n\t\t\t\timglocation = pathImg.getText();\r\n\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbrowseImg = new Button(groupImg, SWT.PUSH);\r\n\t\tbrowseImg.setText(\"Browse...\");\r\n\t\tbrowseImg.setEnabled(false);\r\n\t\tbrowseImg.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent e){\r\n\t\t\t\tif (checkImg.getSelection()) {\t\r\n\t\t\t\t\topenImgDirectoryDialog();\r\n\t\t\t\t\tif (checkLibPath()) readLib();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\t\r\n\t\tGridData gridDataImg3 = new GridData(SWT.FILL, SWT.FILL, true, false);\r\n\t\tgridDataImg3.horizontalSpan = 2;\r\n\t\tLabel imgFormatLabel = new Label(groupImg,SWT.NONE);\r\n\t\timgFormatLabel.setText(\"Select image file format\");\r\n\t\timgFormatCombo = new Combo(groupImg, SWT.VERTICAL | SWT.DROP_DOWN | SWT.BORDER | SWT.READ_ONLY);\r\n\t\timgFormatCombo.setEnabled(false);\r\n\t\timgFormatCombo.setLayoutData(gridDataImg3);\r\n\t\timgFormatCombo.addSelectionListener(listener);\r\n\t\tindexImgFormat = 0;\r\n\t\tfor (int i = 0; i < Configuration.formatMnemonics.length; i++) {\r\n\t\t\tif (lastImgFormatChoice.equalsIgnoreCase(Configuration.formatMnemonics[i])) indexImgFormat = i;\r\n\t\t}\r\n\t\timgFormatCombo.select(indexImgFormat);\r\n\t\t\r\n\t\t//initial values of Image file creation\r\n\t\tif(createImgFile){\r\n\t\t\tcheckImg.setSelection(true);\r\n\t\t\tpathImg.setEnabled(true);\r\n\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\tbrowseImg.setEnabled(true);\r\n\t\t\timgFormatCombo.setEnabled(true);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tcheckImg.setSelection(false);\r\n\t\t\tpathImg.setEnabled(false);\r\n\t\t\tpathImg.setText(lastImgPathChoice);\r\n\t\t\tbrowseImg.setEnabled(false);\r\n\t\t\timgFormatCombo.setEnabled(false);\r\n\t\t}\r\n\t\t\r\n\t\tif (checkLibPath()) readLib(); else libPath = \"not available\";\r\n\t\treturn composite;\r\n\t}", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "@Override\n public void showActionsInformation() {\n System.out.println(\"\");\n System.out.println(\"To add a new task, please follow the instructions and press ENTER:\");\n System.out.println(\"IP.TodoListApplication.App.Task ID, IP.TodoListApplication.App.Task Title, Due Date (format: dd-mm-yyyy), IP.TodoListApplication.App.Task Status, Project Name\");\n System.out.println(\"\");\n System.out.println(\"Enter 0 to RETURN\");\n }", "private static String projectLine(double project, String projectDescription)\n {\n String temp = DEC_FORMAT.format(project) + \" - \" + projectDescription;\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, PROJECT_STR, temp);\n }", "public static void main(String[] args) {\n\t\tint i = 0;\r\n\t\tif( i == 0) {\r\n\t\t\tSystem.out.println(\"HTML_Template\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Italic String\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Underline, select, UL & OL\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Button\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Button value Special Characters\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Blank\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Special Chars\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Radio & Checkbox\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Blank Commit Msg \");\r\n\t\t\tSystem.out.println(\"HTML_Template : Image Check New\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira at 11.07AM\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira at 11.07AM SyncBack\");\r\n\t\t\tSystem.out.println(\"HTML_Template : TP-134\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Any Random Key\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Test Flowqqq\");\r\n\t\t}\r\n\t}", "@Then(\"^Validate project table against pivotal project$\")\n public void allInformationOfPivotalTrackerProjectsShouldBeDisplayedInProjectTableWidgetOfMach() {\n JsonPath jsonPath = resources.getResponse().jsonPath();\n// assertEquals(jsonPath.get(\"name\"), tableProjectValues.get(\"name\"));\n// assertEquals(jsonPath.get(\"current_iteration_number\"), tableProjectValues.get(\"current_iteration\"));\n// assertEquals(jsonPath.get(\"week_start_day\"), tableProjectValues.get(\"week_start_date\"));\n assertEquals(jsonPath.get(\"name\"), \"AT01 project-01\");\n assertEquals(jsonPath.get(\"week_start_day\"), \"Monday\");\n }", "@RequestMapping(value= {\"/projects/{projectId}\"}, method= RequestMethod.GET)\r\n\tpublic String project(Model model, @PathVariable Long projectId) {\r\n\t\tProject project = projectService.getProject(projectId);\r\n\t\tif(project==null) { return \"redirect:/projects\"; }\r\n\t\t\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\t\r\n\t\tList<User> members = userService.getMembers(project);\r\n\t\tList<Credentials> credentialsMembers = this.credentialsService.getCredentialsByUsers(members);\r\n\t\t\r\n\t\tif(!project.getOwner().equals(loggedUser) && !members.contains(loggedUser)) {\r\n\t\t\treturn \"redirect:/projects\";\r\n\t\t}\r\n\t\t\r\n\t\tmodel.addAttribute(\"credentialsService\", this.credentialsService);\r\n\t\tmodel.addAttribute(\"credentialsMembers\", credentialsMembers);\r\n\t\tmodel.addAttribute(\"ownerCredentials\", this.credentialsService.getCredentialsByUserId(project.getOwner().getId()));\r\n\t\tmodel.addAttribute(\"loggedCredentials\", sessionData.getLoggedCredentials());\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"project\", project);\r\n\t\t\r\n\t\treturn \"project\";\r\n\t}", "private void modifyProjectTask(ActionEvent actionEvent) {\n Calendar dueDate = dueDateModel.getValue();\n String title = titleEntry.getText();\n String description = descriptionEntry.getText();\n Project parent = (Project) parentEntry.getSelectedItem();\n modifyProjectTask(title, description, parent, dueDate);\n }", "public String getProjectDescription() {\n\t\tif (projectShortDescription != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"project_description\" + TAB + projectShortDescription;\n\t\treturn null;\n\t}", "@Override\r\n\tString getProjectName();", "private String html(final TableFacade tableFacade, final HttpServletRequest request) {\r\n\t\ttableFacade.setColumnProperties(\"id.invPexProductosExistencia.invArtArticulo.artCodigo\",\r\n\t\t\t\t\"id.invPexProductosExistencia.invArtArticulo.artNombre\",\r\n\t\t\t\t\"eboCantidadProducto\",\"eboSaldo\",\"audFechaCreacion\");\r\n\t\tTable table = tableFacade.getTable();\r\n\t\t\r\n\t\t//---- Titulo de la tabla\r\n\t\ttable.setCaptionKey(\"tbl.abo.caption\");\r\n\t\t\r\n\t\tRow row = table.getRow();\r\n\t\tColumn nombreColumna = row.getColumn(\"id.invPexProductosExistencia.invArtArticulo.artCodigo\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.id.invArtArticulo.artCodigo\");\r\n\r\n\t\tnombreColumna = row.getColumn(\"id.invPexProductosExistencia.invArtArticulo.artNombre\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.id.invArtArticulo.artNombre\");\r\n\t\t\r\n\t\tnombreColumna = row.getColumn(\"eboCantidadProducto\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.eboCantidadProducto\");\r\n\t\t\r\n\t\tnombreColumna = row.getColumn(\"eboSaldo\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.eboSaldo\");\r\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor() {\r\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\r\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property,\r\n\t\t\t\t\t\trowcount);\r\n\t\t\t\tInvEboExistenciaBodega existenciaBodega = (InvEboExistenciaBodega) item;\r\n\t\t\t\t\r\n\t\t\t\tvalue = \"<div align=\\\"right\\\">\"+Format.formatDinero(existenciaBodega.getEboSaldo())+\"</div>\";\r\n\t\t\t\treturn value;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tnombreColumna = row.getColumn(\"audFechaCreacion\");\r\n\t\tnombreColumna.setTitleKey(\"tbl.abo.acciones\");\r\n\t\tnombreColumna.getCellRenderer().setCellEditor(new CellEditor(){\r\n\r\n\t\t\tpublic Object getValue(Object item, String property, int rowcount) {\r\n\t\t\t\tObject value = new BasicCellEditor().getValue(item, property, rowcount);\r\n\t\t\t\tInvEboExistenciaBodega bodega = (InvEboExistenciaBodega)item;\r\n\t\t\t\t\r\n\t\t\t\tHtmlBuilder html = new HtmlBuilder();\r\n\t\t\t\tvalue = \"Movimientos\";\r\n\t\t\t\tString link = tableFacade.getWebContext().getContextPath();\r\n\t\t\t\tlink += \"/inventario/movimiento.do?accion=lista&bodega=\" + bodega.getId().getInvBodBodegas().getBodId() + \"&artCod=\" + bodega.getId().getInvPexProductosExistencia().getArtCodigo();\r\n\t\t\t\thtml.a().href().quote().append(link).quote().append(\"class=\\\"linkMovimientoBod\\\"\").title(value.toString()).close();\r\n\t\t\t\t//html.a().href(link).close();\r\n\t\t\t\t//html.append(value);\r\n\t\t\t\thtml.aEnd();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\treturn html.toString();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\treturn tableFacade.render();\r\n\t}", "private static void add_project() {\r\n\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\t//List of building types\r\n\t\t\tString[] building_types = new String[] {\"House\", \"Apartment Block\", \"Commercial Property\", \"Industrial Property\", \"Agricultural Building\"};\r\n\t\t\t\r\n\t\t\t// Variables that are needed\r\n\t\t\tint project_id = 0;\r\n\t\t\tString project_name = \"\";\r\n\t\t\tString building_type = \"\";\r\n\t\t\tString physical_address = \"\";\r\n\t\t\tint erf_num = 0;\r\n\t\t\tString cust_surname = \"\";\r\n\t\t\tDate deadline_date = null;\r\n\t\t\tint charged = 0;\r\n\t\t\t\r\n\t\t\t// Allows for user input\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//So first we need to select the correct customer\r\n\t\t\tString strSelect = \"SELECT * FROM people WHERE type = 'Customer'\";\r\n\t\t\tResultSet rset = stmt . executeQuery ( strSelect );\r\n\t\t\t\r\n\t\t\t// Loops through available customers from the people table so that the user can select one\r\n\t\t\tSystem.out.println(\"\\nSelect a customer for the project by typing the customers number.\");\r\n\t\t\t// This creates a list of customer ids to check that the user only selects an available one\r\n\t\t\tArrayList<Integer> cust_id_list = new ArrayList<Integer>(); \r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\tSystem.out.println ( \r\n\t\t\t\t\t\t\"Customer Num: \" + rset.getInt(\"person_id\") + \", Fullname: \" + rset.getString(\"name\") + \" \" + rset.getString(\"surname\"));\r\n\t\t\t\tcust_id_list.add(rset.getInt(\"person_id\"));\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a customer\r\n\t\t\tBoolean select_cust = true;\r\n\t\t\tint customer_id = 0;\r\n\t\t\twhile (select_cust == true) {\r\n\t\t\t\tSystem.out.println(\"Customer No: \");\r\n\t\t\t\tString customer_id_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcustomer_id = Integer.parseInt(customer_id_str);\r\n\t\t\t\t\tfor (int i = 0; i < cust_id_list.size(); i ++) {\r\n\t\t\t\t\t\tif (customer_id == cust_id_list.get(i)) { \r\n\t\t\t\t\t\t\tselect_cust = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (select_cust == true) {\r\n\t\t\t\t\t\tSystem.out.println(\"Please only select an available customer id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for customer id is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The customer number cannot contain letters or symbols. Please try again\");\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// Prints out all available building types form the building type list\r\n\t\t\tSystem.out.print(\"Select a building type by typing the number: \\n\");\r\n\t\t\tfor (int i=0; i < 5; i ++) {\r\n\t\t\t\tSystem.out.println((i + 1) + \": \" + building_types[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a building type\r\n\t\t\tBoolean select_building = true;\r\n\t\t\tint building_index = 0;\r\n\t\t\twhile (select_building == true) {\r\n\t\t\t\tSystem.out.println(\"Building type no: \");\r\n\t\t\t\tString building_type_select_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbuilding_index = Integer.parseInt(building_type_select_str) - 1;\r\n\t\t\t\t\tbuilding_type = building_types[building_index];\r\n\t\t\t\t\tselect_building = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for building type is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The building type number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// User gets to decide whether they want an automatically generated name.\r\n\t\t\tBoolean select_project_name = true;\r\n\t\t\twhile (select_project_name == true) {\r\n\t\t\t\tSystem.out.println(\"Would you like to have the project automatically named (y or n)?\");\r\n\t\t\t\tString customer_project_name_choice = input.nextLine();\r\n\t\t\t\tif (customer_project_name_choice.equals(\"y\")){\r\n\t\t\t\t\t// Gets the customers surname for the project name\r\n\t\t\t\t\tString strSelectCustSurname = String.format(\"SELECT surname FROM people WHERE person_id = '%s'\", customer_id);\r\n\t\t\t\t\tResultSet cust_surname_rset = stmt . executeQuery ( strSelectCustSurname );\r\n\t\t\t\t\twhile (cust_surname_rset.next()) {\r\n\t\t\t\t\t\tcust_surname = cust_surname_rset.getString(\"surname\");\r\n\t\t\t\t\t\tproject_name = building_type + \" \" + cust_surname;\r\n\t\t\t\t\t\tSystem.out.println(\"Project name: \" + project_name);\r\n\t\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (customer_project_name_choice.equals(\"n\")) {\r\n\t\t\t\t\tSystem.out.println(\"Provide project name: \");\r\n\t\t\t\t\tproject_name = input.nextLine();\r\n\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!customer_project_name_choice.equals(\"y\") && !customer_project_name_choice.equals(\"n\")){\r\n\t\t\t\t\tSystem.out.println(\"You can only select either y or n. Please try again\");\r\n\t\t\t\t\tselect_project_name = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter an erf number\r\n\t\t\tBoolean select_erf_num = true;\r\n\t\t\twhile (select_erf_num == true) {\r\n\t\t\t\tSystem.out.print(\"ERF number: \");\r\n\t\t\t\tString erf_num_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\terf_num = Integer.parseInt(erf_num_str);\r\n\t\t\t\t\tselect_erf_num = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for erf number is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The erf number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a physical address\r\n\t\t\tSystem.out.print(\"Physical Address: \");\r\n\t\t\tphysical_address = input.nextLine();\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a date\r\n\t\t\tBoolean select_deadline_date = true;\r\n\t\t\twhile (select_deadline_date == true) {\r\n\t\t\t\tSystem.out.print(\"Deadline Date (YYYY-MM-DD): \");\r\n\t\t\t\tString deadline_date_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdeadline_date= Date.valueOf(deadline_date_str);\r\n\t\t\t\t\tselect_deadline_date = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for deadline date is not in the correct format\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The date must be in the format YYYY-MM-DD (eg. 2013-01-13). Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter a charged amount \r\n\t\t\tBoolean select_charged = true;\r\n\t\t\twhile (select_charged == true) {\r\n\t\t\t\tSystem.out.print(\"Total Cost: R \");\r\n\t\t\t\tString charged_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcharged = Integer.parseInt(charged_str);\r\n\t\t\t\t\tselect_charged = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for the charged amount is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The charged amount cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the projects table\r\n PreparedStatement ps = conn.prepareStatement(\"INSERT INTO projects (project_name , building_type, physical_address, erf_num) VALUES(?,?,?,?)\");\r\n ps.setString(1, project_name);\r\n ps.setString(2, building_type);\r\n ps.setString(3, physical_address);\r\n ps.setInt(4, erf_num);\r\n \r\n // Executes the statement\r\n ps.executeUpdate();\r\n \r\n // This gets the created project's table id to use to update the people and project_statuses tables \r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects WHERE project_name = '%s'\", project_name);\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_rset.next()) {\r\n\t\t\t\tproject_id = project_rset.getInt(\"project_id\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the people table\r\n\t\t\tPreparedStatement ps_customer = conn.prepareStatement(\r\n\t\t\t\t\t\"UPDATE people SET projects = ? WHERE person_id = ?;\");\r\n\t\t\tps_customer.setInt(1, project_id);\r\n\t\t\tps_customer.setInt(2, customer_id);\r\n\t\t\tps_customer.executeUpdate();\r\n \r\n\t\t\t// This adds all the values to a prepared statement to update the project_statuses table\r\n PreparedStatement ps_status = conn.prepareStatement(\"INSERT INTO project_statuses (charged , deadline_date, project_id) VALUES(?,?,?)\");\r\n ps_status.setInt(1, charged);\r\n ps_status.setDate(2, deadline_date);\r\n ps_status.setInt(3, project_id);\r\n ps_status.executeUpdate();\r\n\r\n // Once everything has been added to the tables the project that has been added gets printed out\r\n\t\t\tResultSet project_added_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_added_rset.next()){\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"\\nProjects Added: \\n\" +\r\n\t\t\t\t\t\t\"Project Sys ID: \" + project_added_rset.getInt(\"project_id\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Project Name: \" + project_added_rset.getString(\"project_name\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Building Type: \" + project_added_rset.getString(\"building_type\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Physical Address: \" + project_added_rset.getString(\"physical_address\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Erf Number: \" + project_added_rset.getInt(\"erf_num\") + \"\\n\");\r\n\t\t\t}\r\n\t\t/**\r\n\t\t * @exception If any of the table entries cannot be created due to database constrains then the SQLException is thrown\r\n\t\t */\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "private void edit() {\n\n\t}", "public void getProject(){\n\t\n\t String getList[] = clientFacade.GetProjects().split(\"\\n\");\n\t DefaultComboBoxModel addPro = new DefaultComboBoxModel();\n\t\tfor(int i=1; i<getList.length; i+=2) \n\t\t\t addPro.addElement(getList[i]);\n\t\t\t \n\t\tcPro.setModel(addPro);\t\n\t}", "public SelectProjectWizardPage build() {\r\n return new SelectProjectWizardPage(this);\r\n }", "@Override\r\n\tpublic String shortProjectDescr() {\n\t\treturn null;\r\n\t}", "private void buildOutput() {\n\t\tsalesSlip.addName(itemField.getText());\n\t\tsalesSlip.addPrice(Double.parseDouble(costField.getText()), Integer.parseInt(quantityField.getText()));\n\t\tsalesSlip.addQuantity(Integer.parseInt(quantityField.getText()));\n\t\tsalesSlip.updatePrice();\n\t\t\n\t\ttextArea.append(salesSlip.generateOutput(salesSlip.numItems-1));\n\t\ttextArea.append(\"\\n\");\n\t\t\n\t\ttotalArea.setText(\"$\" + salesSlip.totalPrice);\n\t}", "@Override\n\tpublic String generateHTML() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString level = \"\\t\";\n\t\tstringBuilder.append(level.repeat(levelCount)+\"<div>\\n\");\n\t\tlevelCount++;\n\t\tfor (HTMLGenerator htmlGenerator : tags) {\n\t\t\tstringBuilder.append(level.repeat(levelCount)+htmlGenerator.generateHTML());\n\t\t}\n\t\tstringBuilder.append(\"</div>\\n\");\n\t\treturn stringBuilder.toString();\n\t}", "public String handleAdd() \n throws HttpPresentationException, webschedulePresentationException\n { \n\t try {\n\t Project project = new Project();\n saveProject(project);\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n\t } catch(Exception ex) {\n return showAddPage(\"You must fill out all fields to add this project\");\n }\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t\tString line = request.getParameter(\"line\");\r\n\t\tString content = request.getParameter(\"content\");\r\n\t\tint Fid = Integer.parseInt(request.getParameter(\"Fid\"));\r\n\t\tint Uid = Integer.parseInt(request.getParameter(\"Uid\"));\r\n\r\n\t\tProject project = (Project) request.getSession()\r\n\t\t\t\t.getAttribute(\"project\");\r\n\r\n\t\tif (project == null) {\r\n\t\t\trequest.setAttribute(\"message\", \"please choose a project first\");\r\n\t\t\tRequestDispatcher dispatcher = request\r\n\t\t\t\t\t.getRequestDispatcher(\"/showMessage.jsp\");\r\n\t\t\tdispatcher.forward(request, response);\r\n\t\t} else {\r\n\t\t\tFile file = new File(project.getProjectItem(Fid).getPath());\r\n\t\t\tif (file.exists()) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tOutputStream out = new FileOutputStream(file);\r\n\t\t\t\tBufferedWriter rd = new BufferedWriter(new OutputStreamWriter(\r\n\t\t\t\t\t\tout, \"utf-8\"));\r\n\t\t\t\trd.write(content);\r\n\t\t\t\trd.close();\r\n\t\t\t\tout.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tRequestDispatcher dispatcher = request\r\n\t\t\t\t\t.getRequestDispatcher(\"/ProjectDetail.do?Pid=\"\r\n\t\t\t\t\t\t\t+ project.getId());\r\n\t\t\tdispatcher.forward(request, response);\r\n\t\t}\r\n\t}", "@GetMapping(\"/edit\")\r\n public String editView() {\r\n return \"modify\";\r\n }", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "private void createContents() {\r\n this.shell = new Shell(this.getParent(), this.getStyle());\r\n this.shell.setText(\"自動プロキシ構成スクリプトファイル生成\");\r\n this.shell.setLayout(new GridLayout(1, false));\r\n\r\n Composite composite = new Composite(this.shell, SWT.NONE);\r\n composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n composite.setLayout(new GridLayout(1, false));\r\n\r\n Label labelTitle = new Label(composite, SWT.NONE);\r\n labelTitle.setText(\"自動プロキシ構成スクリプトファイルを生成します\");\r\n\r\n String server = Filter.getServerName();\r\n if (server == null) {\r\n Group manualgroup = new Group(composite, SWT.NONE);\r\n manualgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n manualgroup.setLayout(new GridLayout(2, false));\r\n manualgroup.setText(\"鎮守府サーバーが未検出です。IPアドレスを入力して下さい。\");\r\n\r\n Label iplabel = new Label(manualgroup, SWT.NONE);\r\n iplabel.setText(\"IPアドレス:\");\r\n\r\n final Text text = new Text(manualgroup, SWT.BORDER);\r\n GridData gdip = new GridData(SWT.LEFT, SWT.CENTER, false, false, 1, 1);\r\n gdip.widthHint = SwtUtils.DPIAwareWidth(150);\r\n text.setLayoutData(gdip);\r\n text.setText(\"0.0.0.0\");\r\n text.addModifyListener(new ModifyListener() {\r\n @Override\r\n public void modifyText(ModifyEvent e) {\r\n CreatePacFileDialog.this.server = text.getText();\r\n }\r\n });\r\n\r\n this.server = \"0.0.0.0\";\r\n } else {\r\n this.server = server;\r\n }\r\n\r\n Button storeButton = new Button(composite, SWT.NONE);\r\n storeButton.setText(\"保存先を選択...\");\r\n storeButton.addSelectionListener(new FileSelectionAdapter(this));\r\n\r\n Group addrgroup = new Group(composite, SWT.NONE);\r\n addrgroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n addrgroup.setLayout(new GridLayout(2, false));\r\n addrgroup.setText(\"アドレス(保存先のアドレスより生成されます)\");\r\n\r\n Label ieAddrLabel = new Label(addrgroup, SWT.NONE);\r\n ieAddrLabel.setText(\"IE用:\");\r\n\r\n this.iePath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdIePath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdIePath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.iePath.setLayoutData(gdIePath);\r\n\r\n Label fxAddrLabel = new Label(addrgroup, SWT.NONE);\r\n fxAddrLabel.setText(\"Firefox用:\");\r\n\r\n this.firefoxPath = new Text(addrgroup, SWT.BORDER);\r\n GridData gdFxPath = new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1);\r\n gdFxPath.widthHint = SwtUtils.DPIAwareWidth(380);\r\n this.firefoxPath.setLayoutData(gdFxPath);\r\n\r\n this.shell.pack();\r\n }", "public String getProjectDescribe() {\n return projectDescribe;\n }", "public void showProjectContext(@NonNull final Project project) {\n Picasso.with(getApplicationContext()).load(project.photo().full())\n .into(projectPhotoImageView);\n projectNameTextView.setText(project.name());\n creatorNameTextView.setText(project.creator().name());\n }", "@Override //编辑通知\n\tpublic void editPoInfo(PageData pd) throws Exception {\n\t\tdao.update(\"PoInfoMapper.editPoInfo\", pd);\n\t\t\n\t}", "public String returnXml() {\n String result = String.format(\n \"<projects>\"\n + \"<id_pr>%s</id_pr>\"\n + \"<name_project>%s</name_project>\"\n + \"<description_project>%s</description_project>\"\n + \"<code_project>%s</code_project>\"\n + \"<creationdate_project>%s</creationdate_project>\"\n + \"</projects>\",\n getId_pr(), getName_project(), getDescription_project(), getCode_project(), getCreationdate_project());\n return result;\n }", "private static String projectLine(double project)\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, PROJECT_STR, \n DEC_FORMAT.format(project));\n }", "@Override\r\n\tprotected String getProjectHelpId() {\n\t\treturn null;\r\n\t}", "private void updateTexts( DocumentEvent e ) {\n Document doc = e.getDocument();\n if (doc == projectNameTextField.getDocument() || doc == projectLocationTextField.getDocument()) {\n String projectName = projectNameTextField.getText();\n \n if (doc == projectLocationTextField.getDocument()) {\n if (projectName.equals(generatedProjectName)) {\n File f = new File(projectLocationTextField.getText().trim());\n generatedProjectNameIndex = getValidProjectNameIndex(nameFormatter, generatedProjectNameIndex, f);\n } else {\n generatedProjectNameIndex = 0;\n }\n generatedProjectName = generatedProjectNameIndex > 0 ? getProjectName(nameFormatter, generatedProjectNameIndex) : null;\n if(generatedProjectNameIndex > 0) {\n projectName = generatedProjectName;\n projectNameTextField.setText(generatedProjectName);\n projectNameTextField.selectAll();\n }\n }\n \n String projectFolder = projectLocationTextField.getText();\n String projFolderPath = FileUtil.normalizeFile(new File(projectFolder)).getAbsolutePath();\n if (projFolderPath.endsWith(File.separator)) {\n createdFolderTextField.setText(projFolderPath + projectName);\n } else {\n createdFolderTextField.setText(projFolderPath + File.separator + projectName);\n }\n }\n wizard.fireChangeEvent();\n }", "public interface ProjectPropertiesView extends View<ProjectPropertiesView.ActionDelegate> {\n \n public interface ActionDelegate {\n /** Performs any actions appropriate in response to the user having pressed the Add button. */\n void onAddClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Edit button. */\n void onEditClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Delete button. */\n void onDeleteClicked();\n \n /** Performs any actions appropriate in response to the user having pressed the Save button. */\n void onSaveClicked();\n\n /** Performs any actions appropriate in response to the user having pressed the Cancel button. */\n void onCancelClicked();\n \n /** Returns selected property. */\n void selectedProperty(Property property);\n }\n \n /**\n * Sets whether Edit button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setEditButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Delete button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setDeleteButtonEnabled(boolean isEnabled);\n \n /**\n * Sets whether Save button is enabled.\n *\n * @param isEnabled\n * <code>true</code> to enable the button, <code>false</code> to disable it\n */\n void setSaveButtonEnabled(boolean isEnabled);\n\n /**\n * Sets properties.\n *\n * @param projects\n */\n void setProperties(Array<Property> properties);\n \n /** Close dialog. */\n void close();\n\n /** Show dialog. */\n void showDialog();\n}" ]
[ "0.62257355", "0.60319984", "0.5614885", "0.548139", "0.54569626", "0.5437005", "0.5388807", "0.5375733", "0.53648525", "0.53648525", "0.53402585", "0.52962726", "0.5292831", "0.52854484", "0.52490443", "0.52184284", "0.52015406", "0.51719254", "0.51625067", "0.51455593", "0.5126727", "0.51225024", "0.5119671", "0.51120913", "0.5085164", "0.508121", "0.5080867", "0.50693053", "0.50590396", "0.50564134", "0.50561625", "0.5033038", "0.5016288", "0.50081265", "0.50066274", "0.50005925", "0.49816927", "0.49751422", "0.49739796", "0.495241", "0.49460223", "0.49455687", "0.49389288", "0.49361274", "0.4935805", "0.4930759", "0.49300435", "0.49295095", "0.49267134", "0.49250662", "0.48961535", "0.48960748", "0.4893346", "0.48931062", "0.4890843", "0.48873478", "0.48854557", "0.48748145", "0.48708978", "0.4870225", "0.487014", "0.48689792", "0.48676232", "0.48673704", "0.4865895", "0.48641706", "0.48613575", "0.48594773", "0.4856837", "0.48533785", "0.48508632", "0.4847712", "0.48421463", "0.48400342", "0.48385045", "0.48380375", "0.48312798", "0.48292634", "0.4816853", "0.48146883", "0.480889", "0.48020855", "0.4801865", "0.4798672", "0.4791917", "0.47882712", "0.47861576", "0.4778217", "0.4775834", "0.4775799", "0.477307", "0.47698823", "0.47691837", "0.4768653", "0.4766496", "0.47642478", "0.47629642", "0.4762805", "0.47623968", "0.4762153" ]
0.58912146
2
Produce HTML for this PO
public String showAddPage(String errorMsg) throws HttpPresentationException, webschedulePresentationException { String proj_name = this.getComms().request.getParameter(PROJ_NAME); String password = this.getComms().request.getParameter(PASSWORD); String discrib = this.getComms().request.getParameter(DISCRIB); String indexnum = this.getComms().request.getParameter(INDEXNUM); String thours = this.getComms().request.getParameter(THOURS); String dhours = this.getComms().request.getParameter(DHOURS); String projectID = this.getComms().request.getParameter(PROJ_ID); String codeofpay = this.getComms().request.getParameter(CODEOFPAY); String contactname = this.getComms().request.getParameter(CONTACTNAME); String contactphone = this.getComms().request.getParameter(CONTACTPHONE); String billaddr1 = this.getComms().request.getParameter(BILLADDR1); String billaddr2 = this.getComms().request.getParameter(BILLADDR2); String billaddr3 = this.getComms().request.getParameter(BILLADDR3); String city = this.getComms().request.getParameter(CITY); String state = this.getComms().request.getParameter(STATE); String zip = this.getComms().request.getParameter(ZIP); String accountid = this.getComms().request.getParameter(ACCOUNTID); String isoutside = this.getComms().request.getParameter(OUTSIDE); String exp = this.getComms().request.getParameter(EXP); String expday = this.getComms().request.getParameter(EXPDAY); String expmonth = this.getComms().request.getParameter(EXPMONTH); String expyear = this.getComms().request.getParameter(EXPYEAR); String notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT); // Instantiate the page object EditHTML page = new EditHTML(); HTMLOptionElement templateOption = page.getElementTemplateOption(); Node PersonSelect = templateOption.getParentNode(); templateOption.removeAttribute("id"); templateOption.removeChild(templateOption.getFirstChild()); if(null != this.getComms().request.getParameter(PROJ_NAME)) { page.getElementProj_name().setValue(this.getComms().request.getParameter(PROJ_NAME)); } try { Person[] PersonList = PersonFactory.getPersonsList(); for (int numPersons = 0; numPersons < PersonList.length; numPersons++) { Person currentPerson = PersonList[numPersons] ; HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true); clonedOption.setValue(currentPerson.getHandle()); Node optionTextNode = clonedOption.getOwnerDocument(). createTextNode(currentPerson.getFirstname() + " " + currentPerson.getLastname()); clonedOption.appendChild(optionTextNode); // Do only a shallow copy of the option as we don't want the text child // of the node option PersonSelect.appendChild(clonedOption); // Alternative way to insert nodes below // insertBefore(newNode, oldNode); // ProjSelect.insertBefore(clonedOption, templateOption); } } catch(Exception ex) { this.writeDebugMsg("Error populating Persons List: " + ex); throw new webschedulePresentationException("Error getting Persons List: ", ex); } templateOption.getParentNode().removeChild(templateOption); if(null != this.getComms().request.getParameter(PASSWORD)) { page.getElementPassword().setValue(this.getComms().request.getParameter(PASSWORD)); } if(null != this.getComms().request.getParameter(DISCRIB)) { page.getElementDiscrib().setValue(this.getComms().request.getParameter(DISCRIB)); } if(null != this.getComms().request.getParameter(INDEXNUM)) { page.getElementIndexnum().setValue(this.getComms().request.getParameter(INDEXNUM)); } if(null != this.getComms().request.getParameter(THOURS)) { page.getElementThours().setValue(this.getComms().request.getParameter(THOURS)); } if(null != this.getComms().request.getParameter(DHOURS)) { page.getElementDhours().setValue(this.getComms().request.getParameter(DHOURS)); } if(null != this.getComms().request.getParameter(CODEOFPAY)) { page.getElementCodeofpay().setValue(this.getComms().request.getParameter(CODEOFPAY)); } if(null != this.getComms().request.getParameter(CONTACTNAME)) { page.getElementContactname().setValue(this.getComms().request.getParameter(CONTACTNAME)); } if(null != this.getComms().request.getParameter(CONTACTPHONE)) { page.getElementContactphone().setValue(this.getComms().request.getParameter(CONTACTPHONE)); } if(null != this.getComms().request.getParameter(BILLADDR1)) { page.getElementBilladdr1().setValue(this.getComms().request.getParameter(BILLADDR1)); } if(null != this.getComms().request.getParameter(BILLADDR2)) { page.getElementBilladdr2().setValue(this.getComms().request.getParameter(BILLADDR2)); } if(null != this.getComms().request.getParameter(BILLADDR3)) { page.getElementBilladdr3().setValue(this.getComms().request.getParameter(BILLADDR3)); } if(null != this.getComms().request.getParameter(STATE)) { page.getElementState().setValue(this.getComms().request.getParameter(STATE)); } if(null != this.getComms().request.getParameter(ZIP)) { page.getElementZip().setValue(this.getComms().request.getParameter(ZIP)); } if(null != this.getComms().request.getParameter(OUTSIDE)) { page.getElementOutsideBox().setChecked(true); } else { page.getElementOutsideBox().setChecked(false); } if(null != this.getComms().request.getParameter(EXP)) { page.getElementExpBox().setChecked(true); } else { page.getElementExpBox().setChecked(false); } if(null != this.getComms().request.getParameter(ACCOUNTID)) { page.getElementAccountid().setValue(this.getComms().request.getParameter(ACCOUNTID)); } if(null != this.getComms().request.getParameter(EXPDAY)) { page.getElementExpday().setValue(this.getComms().request.getParameter(EXPDAY)); } if(null != this.getComms().request.getParameter(EXPMONTH)) { page.getElementExpmonth().setValue(this.getComms().request.getParameter(EXPMONTH)); } if(null != this.getComms().request.getParameter(EXPYEAR)) { page.getElementExpyear().setValue(this.getComms().request.getParameter(EXPYEAR)); } if(null != this.getComms().request.getParameter(NOTIFYCONTACT)) { page.getElementNotifycontact().setValue(this.getComms().request.getParameter(NOTIFYCONTACT)); } if(null == errorMsg) { page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText()); } else { page.setTextErrorText(errorMsg); } return page.toDocument(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String generateHTML() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tString level = \"\\t\";\n\t\tstringBuilder.append(level.repeat(levelCount)+\"<div>\\n\");\n\t\tlevelCount++;\n\t\tfor (HTMLGenerator htmlGenerator : tags) {\n\t\t\tstringBuilder.append(level.repeat(levelCount)+htmlGenerator.generateHTML());\n\t\t}\n\t\tstringBuilder.append(\"</div>\\n\");\n\t\treturn stringBuilder.toString();\n\t}", "public String getHTMLPage() {\r\n String s = \"<html><body>\" + MySystem.lineBreak;\r\n s += \"<h1>Room Control module</h1>\" + MySystem.lineBreak;\r\n s += \"<p>This module controls any on/off-node connected to ARNE bus.</p>\" + MySystem.lineBreak;\r\n s += \"<h2>Controls:</h2>\";\r\n s += \"<center><p><table border=\\\"1\\\" cellpadding=\\\"3\\\" cellspacing=\\\"0\\\">\";\r\n Iterator it = roomObjects.keySet().iterator();\r\n while (it.hasNext()) {\r\n GenRoomObject o = (GenRoomObject)roomObjects.get(it.next());\r\n if (o!=null) {\r\n if (o.displHTML) { //if display this object (configured in modGenRoomControl.xml)\r\n s += \"<tr><td>\" + o.name + \"</td><td>[<a href=\\\"toggle:\" + o.name + \"\\\">toggle</a>]</td><td>[<a href=\\\"on:\" + o.name + \"\\\">ON</a>]</td><td>[<a href=\\\"off:\" + o.name + \"\\\">OFF</a>]</td></tr></tr>\";\r\n }\r\n }\r\n }\r\n s += \"</table></center>\";\r\n s += \"</body></html>\";\r\n return s;\r\n }", "HTML createHTML();", "public String create()\n {\n return createHtml();\n }", "private void generateOutputHTML() {\n\n\t\t\n\t\ttry {\n\t\t\tScanner in = new Scanner(new File(\"data/web/template.html\"));\n\t\t\tPrintStream out = new PrintStream(\"data/web/output\"+count+\".html\");\n\t\t\tSystem.setOut(out);\n\t\t\t\n\t\t\twhile (in.hasNext()) {\n\t\t\t\tString line = in.nextLine();\n\t\t\t\tSystem.out.print(line);\n\t\t\t\t\n\t\t\t\tif (line.equals(\"<title>\")) System.out.println(\"Path #\" +count);\n\t\t\t\t\n\t\t\t\n\t\t\t\tif (line.equals(\"<body>\")) { \t\t\t\t// this is where all the good stuff goes..\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"<div class='bodyHeader'>\");\n\t\t\t\t\tSystem.out.println(\"<p><strong>in order path for driver #\" +count+ \" \" + \"</strong></p>\");\n\t\t\t\t\tSystem.out.println(\"</div>\");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"<br><br><hr class='hrStyle'/>\");\n\t\t\t\t\t\n\t\t\t\t\t// Creating info about the path in a table format\n\t\t\t\t\tSystem.out.println(\"<div class='pathInfo'>\");\n\t\t\t\t\tSystem.out.println(\"<table class='infoTable' cellpadding='3' cellspacing='10'>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>City: </td><td> \" + list.get(0).getCity()+ \" - \" + list.get(0).getState() + \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>Number of stops: </td><td> \" + (list.size()-1) + \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>Store: </td><td> \" + list.get(1).getName().toUpperCase()+ \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"</table>\");\n\t\t\t\t\t\n//TODO: get starting address --- System.out.println(\"Starting address: \" + list.get(0).getAddress());\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"</div>\");\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlist.remove(0);\n\t\t\t\t\t\n\t\t\t\t\t//create ordered table/list of path\n\t\t\t\t\tSystem.out.println(\"<div class='pathList'>\");\t\n\t\t\t\t\tSystem.out.println(\"<table class='pathTable' cellspacing='15'>\");\n\t\t\t\t\tSystem.out.println(\"<tr><th>Order</th><th>Address</th><th></th><th>Latitude , Longitude</th></tr>\");\n\t\t\t\t\tint i = 1;\n\t\t\t\t\tfor (Location c: list) {\n\t\t\t\t\t// creating table row for each stop in route\n\t\t\t\t\t\tSystem.out.println(\"<tr>\" + \"<td>\"+(i++)+\"</td>\" + c.toHTMLString() +\"</tr>\");\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"</ol>\");\n\t\t\t\t\tSystem.out.println(\"<br>\");\n\t\t\t\t\tSystem.out.println(\"</div>\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tin.close();\n\t\t\tout.close();\n\t\t\t\n\t\t\t//opening html file to the default browser in the system\n\t\t\tFile htmlFile = new File(\"data/web/output\"+count+\".html\");\n\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\n\t\t}\n\t\t\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(e.getLocalizedMessage());\n\t\t} \n\t}", "@GET\r\n @Produces(\"text/html\")\r\n public String getHtml() {\r\n return \"<html><body>the solution is :</body></html> \";\r\n }", "public String toString()\n {\n return getHtml();\n }", "public String toString(){\n String html = \"<html>\\n<head>\\n</head>\\n<body>\";\n for (int i=0; i< dom.size(); i++){\n html+= dom.get(i);\n }\n /* TODO\nLoop through the elemments of the dom and append them to html */\n return html+\"</body>\\n</html>\";\n }", "public static String getPollsHTML() {\r\n\t\tPollsController pc = new PollsController(PC.filterPolls(\"\", true, 0));\r\n\t\treturn xmlToHTML(\"/WEB-INF/PollsMainTransform.xsl\", pc,\r\n\t\t\t\tPollsController.class);\r\n\t}", "public String toHTML () {\n // TODO barely more than a stub\n // TODO should use CSS rather than header tags\n StringBuffer ret = new StringBuffer ( );\n ret.append (\"<div class=\\\"comment\\\"\" +\n \"style=\\\"margin-left: \" +\n Integer.toString (nestLevel * 24) +\n \"pt\\\">\\n\");\n ret.append (\"<span class=\\\"cmtcredit\\\">Posted by \" + poster + \n \" at \" + date + \"</span><br>\");\n if (subject != null) {\n ret.append (\"<span class=\\\"cmtsubj\\\">\" + subject + \"</span><br>\\n\");\n }\n ret.append (\"<div class=\\\"cmtbody\\\">\" + body + \"</div>\\n\");\n String ipaddr = properties.get (\"poster_ip\");\n if (ipaddr != null) {\n ret.append (\"<br>&nbsp;<br>IP address: \" + ipaddr + \"<br>\\n\");\n }\n if (!replies.isEmpty ()) {\n ret.append (\"<p class=\\\"fill2\\\"></p>\\n\");\n }\n for (Comment rep : replies) {\n ret.append (rep.toHTML());\n }\n ret.append (\"<p class=\\\"fill2\\\"></p>\\n\");\n ret.append (\"</div>\"); // Close div class comment\n return ret.toString();\n }", "public static HashMap<String, String> OutputHtml() {\n\t\treturn methodMap(\"html\");\n\t}", "private HTMLElement generateHTMLElement() {\n \t\t// this is the outermost element, so it has no indent\n \t\tint indentLevel = 0;\n \t\tHTMLElement html = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_HTML, indentLevel, true);\n \t\tHTMLElement head = generateHeadElement(indentLevel + 1);\n \t\tHTMLElement body = generateBodyElement(indentLevel + 1);\n \t\thtml.addContent(head);\n \t\thtml.addContent(body);\n \t\treturn html;\n \t}", "public void generate() {\n\t\t// Print generation stamp\n\t\tcontext.getNaming().putStamp(elementInterface, out);\n\t\t// Print the code\n\t\t// Print header\n\t\tout.println(\"package \"+modelPackage+\";\");\n\t\tout.println();\n\t\tout.println(\"public interface \"+elementInterface);\n\t\tif (context.isGenerateVisitor()) {\n\t\t\tout.println(indent+\"extends \"+context.getNaming().getVisitableInterface(modelName));\n\t\t}\n\t\tout.println(\"{\");\n\t\tif (context.isGenerateID()) {\n\t\t\tout.println(indent+\"/** Get the id */\");\n\t\t\tout.println(indent+\"public String getId();\");\n\t\t\tout.println(indent+\"/** Set the id */\");\n\t\t\tout.println(indent+\"public void setId(String id);\");\n\t\t\tout.println();\n\t\t}\n\t\tif (context.isGenerateBidirectional()) {\n\t\t\tout.println(indent+\"/** Delete */\");\n\t\t\tout.println(indent+\"public void delete();\");\n\t\t}\n\t\tout.println(indent+\"/** Override toString */\");\n\t\tout.println(indent+\"public String toString();\");\n//\t\tif (context.isGenerateInvariant()) {\n//\t\t\tout.println();\n//\t\t\tout.println(indent+\"/** Parse all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean parseInvariants(ILog log);\");\n//\t\t\tout.println(indent+\"/** Evaluate all invariants */\");\n//\t\t\tout.println(indent+\"public Boolean evaluateInvariants(ILog log);\");\n//\t\t}\n\t\tout.println(\"}\");\n\t}", "String renderHTML();", "public String getHtml() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(StringContainer sc : container) {\n\t\t\tsb.append(sc.getString());\n\t\t}\n\t\treturn \"<html><body>\"+sb.toString()+\"</body></html>\";\n\t}", "private void startHtmlPage(PrintWriter out,ITestResult result)\r\n\t{\r\n\t\tout.println(\"<html>\");\r\n\t\tout.println(\"<head>\");\r\n\t\tout.println(\"<meta content=\\\"text/html; charset=UTF-8\\\" http-equiv=\\\"content-type\\\"/><meta content=\\\"cache-control\\\" http-equiv=\\\"no-cache\\\"/><meta content=\\\"pragma\\\" http-equiv=\\\"no-cache\\\"/>\");\r\n\t\tout.println(\"<style type=\\\"text/css\\\">\");\r\n\t\tout.println(\"body, table {\");\r\n\t\tout.println(\"font-family: Verdana, Arial, sans-serif;\");\r\n\t\tout.println(\"font-size: 12;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"table {\");\r\n\t\tout.println(\"border-collapse: collapse;\");\r\n\t\tout.println(\"border: 1px solid #ccc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"th, td {\");\r\n\t\tout.println(\"padding-left: 0.3em;\");\r\n\t\tout.println(\"padding-right: 0.3em;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\"a {\");\r\n\t\tout.println(\"text-decoration: none;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".title {\");\r\n\t\tout.println(\"font-style: italic;\");\r\n\t\tout.println(\"background-color: #B2ACAC;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".selected {\");\r\n\t\tout.println(\"background-color: #ffffcc;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t\tout.println(\".status_done {\");\r\n\t\tout.println(\"background-color: #eeffee;\");\r\n\t\tout.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_passed {\");\r\n\t out.println(\"background-color: #ccffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_failed {\");\r\n\t out.println(\"background-color: #ffcccc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".status_maybefailed {\");\r\n\t out.println(\"background-color: #ffffcc;\");\r\n\t out.println(\"}\");\r\n\t\t\r\n\t out.println(\".breakpoint {\");\r\n\t out.println(\"background-color: #cccccc;\");\r\n\t out.println(\"border: 1px solid black;\");\r\n\t out.println(\"}\");\r\n\t out.println(\"</style>\");\r\n\t out.println(\"<title>Test results</title>\");\r\n\t out.println(\"</head>\");\r\n\t out.println(\"<body>\");\r\n\t out.println(\"<h1>Test results </h1>\");\r\n\t out.println(\"<h2>Test Name: \"+className+\".\"+result.getName()+\"</h2>\");\r\n\t \r\n\t out.println(\"<table border=\\\"1\\\">\");\r\n\t out.println(\"<tbody>\");\r\n\t out.println(\"<tr>\");\r\n\t out.println(\"<td><b>Selenium-Command</b></td>\");\r\n\t out.println(\"<td><b>Parameter-1</b></td>\");\r\n\t\tout.println(\"<td><b>Parameter-2</b></td>\");\r\n\t\tout.println(\"<td><b>Status</b></td>\");\r\n\t\tout.println(\"<td><b>Screenshot</b></td>\");\r\n\t\tout.println(\"<td><b>Calling-Class with Linenumber</b></td>\");\r\n\t\tout.println(\"</tr>\");\r\n\t\t\r\n\t}", "public String getHtmlString() {\r\n\t\tString getHtmlString = \"\";\r\n\t\tgetHtmlString += \"<h1>\" + this.title + \"</h1>\";\r\n\t\tfor (int i = 0; i < portfolioSize; i++) {\r\n\t\t\tgetHtmlString += stockStatus[i].getHtmlDescription();\r\n\t\t}\r\n\t\tgetHtmlString += \"<br>Total portfolio value: \"\r\n\t\t\t\t+ getStocksValue(stockStatus) + \"$, Total Stocks value: \"\r\n\t\t\t\t+ getTotalValue(stockStatus) + \"$, Balnce :\" + getBalance()\r\n\t\t\t\t+ \"$ </br>\";\r\n\t\treturn getHtmlString;\r\n\t}", "public String toHTML() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<tr>\");\n sb.append(\"<td>\");\n sb.append(this.name);\n sb.append(\"</td>\");\n sb.append(\"<td>\");\n sb.append(this.nextAlarm);\n sb.append(\"</td>\");\n sb.append(\"</tr>\");\n return sb.toString();\n }", "private String getReleaseNotesHtml() {\r\n\t\tString pkgName = _act.getPackageName();\r\n\t\tResources res = _act.getResources();\r\n\t\tint resId = res.getIdentifier(releaseNotesXml, \"xml\", pkgName);\r\n\t\tXmlResourceParser parser = res.getXml(resId);\r\n\r\n\t\tString html = \"<html><head>\" + css + \"</head><body>\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint eventType = parser.getEventType();\r\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\r\n\t\t\t\tif ((eventType == XmlPullParser.START_TAG) && (parser.getName().equals(\"release\"))){\r\n\t\t\t\t\thtml = html + parseReleaseNotesXML(parser);\r\n\t\t\t\t}\r\n\t\t\t\teventType = parser.next();\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (XmlPullParserException e)\r\n\t\t{\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tparser.close();\r\n\t\t}\r\n\t\thtml = html + \"</body></html>\";\r\n\t\treturn html;\r\n\t}", "String getHtml() {\n Map<String, Object> context = new HashMap<>();\n context.put(\"tileRows\", mTileRows);\n context.put(\"rows\", mRows);\n context.put(\"columns\", Lists.newArrayList(mColumnsByStartMillis.values()));\n context.put(\"numColumnsPerDay\", getSegmentStartTimes().length);\n context.put(\"nowColumnStart\", mNowColumn.start);\n context.put(\"nowDate\", mNow.toLocalDate());\n context.put(\"orders\", mOrders);\n context.put(\"dataCellsByConceptId\", getJsonDataDump());\n return renderTemplate(\"assets/chart.html\", context);\n }", "public String getHtmlRepresentation() {\n\t\treturn getHtmlRepresentation(constraintSets);\n\t}", "private String formatEventsAsHtml() {\n StringBuffer html = new StringBuffer();\n\n html.append(\"<b><u>Build events:</u></b><br>\\n\");\n html.append(\"<table border=0 cellspacing=0 cellpadding=1 width=\\\"100%\\\">\\n\");\n for (int idx = 0; idx < events.size(); idx++) {\n BuildEvent currentEvent = (BuildEvent) events.get(idx);\n html.append(formatEventAsHtml(currentEvent));\n }\n html.append(\"</table>\\n\");\n\n return html.toString();\n }", "TemplateOutputStream getOutput();", "protected void BuildHtmlHeader(PrintWriter out, String title) throws IOException\n {\n out.println(\"<HTML>\");\n out.println(\"<head>\");\n out.println(\"<link rel=\\\"stylesheet\\\" href=\\\"/css/nny.css\\\" type=\\\"text/css\\\">\");\n out.println(\"<TITLE>\");\n out.println(title);\n out.println(\"</TITLE>\");\n out.println(\"<SCRIPT LANGUAGE=\\\"JavaScript\\\" SRC=\\\"/javascript/data_validation.js\\\"></SCRIPT>\");\n out.println(\"</head>\");\n /*\n if (navbarTemplate != null)\n {\n if (header_tp == null)\n {\n header_tp = new TemplateProcessor(template_path_ + navbarTemplate);\n }\n out.println(header_tp.process().toString());\n }*/\n out.flush();\n }", "public String html() {\n\t\treturn HtmlFunction.html(this);\n\t}", "public String generateHtmlReport() {\n try {\n LogManager.suitLogger.info(\"Generating HTML report...\");\n writer = createWriter();\n writer.println(new String(api.core.htmlreport()));\n writer.flush();\n writer.close();\n Thread.sleep(2000);\n return new File(Config.getReportsLocation() + File.separator + \"penetration-test-report.html\").getAbsolutePath();\n } catch (Exception e) {\n LogManager.suitLogger.error(\"Failed to generate penetration test html report. \", e);\n }\n return null;\n }", "public String toString() {\r\n HtmlTable htmlTable= createHtmlTable();\r\n String html= htmlTable.toString();\r\n if (StringUtils.isBlank(height) && StringUtils.isBlank(width)) {\r\n return html;\r\n }\r\n String outer= StringUtils.trimToEmpty(cssClassOuterTable);\r\n if (StringUtils.isNotEmpty(outer)) {\r\n outer= \"class='\" + outer + \"' \";\r\n }\r\n \r\n html= Printf.p(HTML_SIZE_CONTROL_TABLE, outer, height, width, html);\r\n return html;\r\n }", "public void doTag() throws JspException, IOException {\n\t\tgetJspContext().getOut().write(\"<p><strong>\" + name + \"</strong></p>\");\n\t}", "@Override\n\tpublic Html makeHtml(Map<String, String> attributes, Head headObj, Body bodyObj) {\n\t\treturn new Html( attributes, headObj, bodyObj );\n\t}", "public void foreachResultCreateHTML(ParameterHelper _aParam)\n {\n // TODO: auslagern in eine function, die ein Interface annimmt.\n String sInputPath = _aParam.getInputPath();\n File aInputPath = new File(sInputPath);\n// if (!aInputPath.exists())\n// {\n// GlobalLogWriter.println(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\");\n// assure(\"Error, InputPath or File in InputPath doesn't exists. Please check: '\" + sInputPath + \"'\", false);\n// }\n\n // call for a single ini file\n if (sInputPath.toLowerCase().endsWith(\".ini\") )\n {\n callEntry(sInputPath, _aParam);\n }\n else\n {\n // check if there exists an ini file\n String sPath = FileHelper.getPath(sInputPath); \n String sBasename = FileHelper.getBasename(sInputPath);\n\n runThroughEveryReportInIndex(sPath, sBasename, _aParam);\n \n // Create a HTML page which shows locally to all files in .odb\n if (sInputPath.toLowerCase().endsWith(\".odb\"))\n {\n String sIndexFile = FileHelper.appendPath(sPath, \"index.ini\");\n File aIndexFile = new File(sIndexFile);\n if (aIndexFile.exists())\n { \n IniFile aIniFile = new IniFile(sIndexFile);\n\n if (aIniFile.hasSection(sBasename))\n {\n // special case for odb files\n int nFileCount = aIniFile.getIntValue(sBasename, \"reportcount\", 0);\n ArrayList<String> aList = new ArrayList<String>();\n for (int i=0;i<nFileCount;i++)\n {\n String sValue = aIniFile.getValue(sBasename, \"report\" + i);\n\n String sPSorPDFName = getPSorPDFNameFromIniFile(aIniFile, sValue);\n if (sPSorPDFName.length() > 0)\n {\n aList.add(sPSorPDFName);\n }\n }\n if (aList.size() > 0)\n {\n // HTML output for the odb file, shows only all other documents.\n HTMLResult aOutputter = new HTMLResult(sPath, sBasename + \".ps.html\" );\n aOutputter.header(\"content of DB file: \" + sBasename);\n aOutputter.indexSection(sBasename);\n \n for (int i=0;i<aList.size();i++)\n {\n String sPSFile = aList.get(i);\n\n // Read information out of the ini files\n String sIndexFile2 = FileHelper.appendPath(sPath, sPSFile + \".ini\");\n IniFile aIniFile2 = new IniFile(sIndexFile2);\n String sStatusRunThrough = aIniFile2.getValue(\"global\", \"state\");\n String sStatusMessage = \"\"; // aIniFile2.getValue(\"global\", \"info\");\n aIniFile2.close();\n\n\n String sHTMLFile = sPSFile + \".html\";\n aOutputter.indexLine(sHTMLFile, sPSFile, sStatusRunThrough, sStatusMessage);\n }\n aOutputter.close();\n\n// String sHTMLFile = FileHelper.appendPath(sPath, sBasename + \".ps.html\");\n// try\n// {\n//\n// FileOutputStream out2 = new FileOutputStream(sHTMLFile);\n// PrintStream out = new PrintStream(out2);\n//\n// out.println(\"<HTML>\");\n// out.println(\"<BODY>\");\n// for (int i=0;i<aList.size();i++)\n// {\n// // <A href=\"link\">blah</A>\n// String sPSFile = (String)aList.get(i);\n// out.print(\"<A href=\\\"\");\n// out.print(sPSFile + \".html\");\n// out.print(\"\\\">\");\n// out.print(sPSFile);\n// out.println(\"</A>\");\n// out.println(\"<BR>\");\n// }\n// out.println(\"</BODY></HTML>\");\n// out.close();\n// out2.close();\n// }\n// catch (java.io.IOException e)\n// {\n// \n// }\n }\n }\n aIniFile.close();\n }\n\n }\n }\n }", "@Override\r\n\tprotected void generateToc() {\r\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\t//Builds the html looking string.\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"<\").append(type.toString().toLowerCase());\n\t\tfor(Entry<String, String> attrEntry : attributes.entrySet())\n\t\t{\n\t\t\tbuilder.append(\" \")\n\t\t\t\t.append(attrEntry.getKey())\n\t\t\t\t.append(\"=\")\n\t\t\t\t.append(attrEntry.getValue());\n\t\t}\n\t\tbuilder.append(\">\");\n\t\tif(getText() != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n\").append(getText()).append(\"\\n\");\n\t\t}\n\t\t//Append each of the children.\n\t\tfor(HtmlTag child : getChildren())\n\t\t{\n\t\t\tbuilder.append(child.toString().replaceAll(\"(?m)^\", \" \"));\n\t\t}\n\t\t//Append the closing tag.\n\t\tbuilder.append(\"\\n</\").append(type.toString().toLowerCase()).append(\">\");\n\t\treturn builder.toString();\n\t}", "@GET\n\t@Produces(MediaType.TEXT_HTML)\n\tpublic String getHtml() {\n\t\treturn OpenstackNetProxyConstants.HTML_RESOURCE_MESSAGE_PORT;\n\t}", "public String render() {\n\t\tresetOutput();\n\t\trenderBorder();\n\t\trenderPlayerWalls();\n\t\trenderTargetTiles();\n\t\trenderPlayers();\n\n\t\treturn this.buildOutput();\n\t}", "public OutputSummary() throws IOException\n\t{\n\t\tsetBorder(BorderFactory.createRaisedBevelBorder());\n\t\tthis.setPreferredSize(new Dimension(500, 600));\n\t\tthis.setVisible(true);\n\t\teditorPane = new JEditorPane();\n\t\teditorPane.setText(\"<output here>\");\n\t\teditorPane.setContentType(\"text/html\");\n\t\tJScrollPane editorScrollPane = new JScrollPane(editorPane);\n\t\teditorScrollPane.setVerticalScrollBarPolicy(\n\t\t JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\teditorScrollPane.setPreferredSize(new Dimension(490, 600));\n\t\tthis.add(editorScrollPane);\n\t}", "public void generateDetailHtml(String filename)\n {\n\tString htmlFileName = \"ddetail.html\";\n\tString panelSection = null;\n\tFileWriter writer = null;\n\tif (filename != null)\n htmlFileName = filename;\n\ttry \n\t {\n\t writer = new FileWriter(htmlFileName);\n\t writer.write(\"<HTML><BODY>\\n\");\n\t Iterator panelIter = panelTable.values().iterator();\n while (panelIter.hasNext())\n\t {\n\t\tPanelInfo panel = (PanelInfo) panelIter.next();\n\t\tif (panel.isPrimary())\n\t\t {\n\t\t panelSection = generatePanelDetails(panel);\n\t\t writer.write(panelSection);\n\t\t }\n\t\t}\n\t writer.write(\"</BODY></HTML>\\n\");\n\t writer.close();\n\t }\n\n\tcatch (IOException ioe)\n\t {\n\t System.out.println(\"Error creating or writing to \" + htmlFileName);\n\t ioe.printStackTrace();\n\t }\n\t}", "private String generateHtmlLayout(String title, List<HtmlData> data) {\n return html(\n head(\n title(title),\n link().withRel(\"stylesheet\").withHref(\"asciidoctor.css\")\n ),\n body(\n generateHeader(title),\n generateBody(data)\n )\n ).withStyle(\"padding: 10px 30px\").renderFormatted();\n }", "public String toString(){\r\n return \"Title: \" + title + \"\\nBody: \" + body;\r\n }", "private static void writeHtmlBody(SimpleWriter out,\n SortingMachine<Pair<String, Integer>> words, String inputName,\n int n) {\n\n out.println(\"<body>\");\n out.println(\"<h2> Top \" + n + \" words in \" + inputName + \" </h2>\");\n out.println(\"<hr>\");\n\n out.println(\"<div class=\\\"cdiv\\\">\\r\\n\" + \"<p class=\\\"cbox\\\">\");\n\n while (words.size() > 0) {\n Map.Pair<String, Integer> pair = words.removeFirst();\n\n int font = (48 - 11) * (pair.value() - 30);\n font /= (500 - 30);\n font += 11;\n out.println(\"<span style='cursor:default' class=\\\"f\" + font\n + \"\\\" title=\\\"count: \" + pair.value() + \"\\\">\" + pair.key()\n + \" </span>\");\n }\n\n out.println(\"</p>\");\n out.println(\"</div>\");\n\n }", "public String createHtml()\n {\n StringBuffer strEditor = new StringBuffer();\n\n strEditor.append(\"<div>\");\n String encodedValue = escapeXml(value.replaceAll(\"((\\r?\\n)+|\\t*)\", \"\"));\n\n if (check(request.getHeader(\"user-agent\")))\n {\n strEditor.append(createInputForVariable(instanceName, instanceName, encodedValue));\n // create config html\n String configStr = config.getUrlParams();\n if (configStr != null && configStr.length() > 0)\n {\n configStr = configStr.substring(1);\n strEditor.append(createInputForVariable(null, instanceName.concat(\"___Config\"), configStr));\n }\n\n // create IFrame\n String sLink = basePath.concat(\"/editor/fckeditor.html?InstanceName=\").concat(instanceName);\n if (toolbarSet != null && toolbarSet.length() > 0)\n {\n sLink += \"&Toolbar=\".concat(toolbarSet);\n }\n XHtmlTagTool iframeTag = new XHtmlTagTool(\"iframe\", XHtmlTagTool.SPACE);\n iframeTag.addAttribute(\"id\", instanceName.concat(\"___Frame\"));\n iframeTag.addAttribute(\"src\", sLink);\n iframeTag.addAttribute(\"width\", width);\n iframeTag.addAttribute(\"height\", height);\n iframeTag.addAttribute(\"frameborder\", \"no\");\n iframeTag.addAttribute(\"scrolling\", \"no\");\n strEditor.append(iframeTag);\n\n }\n else\n {\n XHtmlTagTool textareaTag = new XHtmlTagTool(\"textarea\", encodedValue);\n textareaTag.addAttribute(\"name\", instanceName);\n textareaTag.addAttribute(\"rows\", \"4\");\n textareaTag.addAttribute(\"cols\", \"40\");\n textareaTag.addAttribute(\"wrap\", \"virtual\");\n textareaTag.addAttribute(\"style\", \"width: \".concat(width).concat(\"; height: \").concat(height));\n }\n strEditor.append(\"</div>\");\n return strEditor.toString();\n }", "public String getHtml(PbReturnObject retObj) {\n\r\n StringBuilder tableBuilder = new StringBuilder();\r\n// \r\n// \r\n //try\r\n {\r\n\r\n // retObj = execSelectSQL(sqlQuery);\r\n if (retObj != null && retObj.getRowCount() > 0) {\r\n tableBuilder = tableBuilder.append(\"<table class=\\\"tablesorter\\\" border =1 cellpadding=1 cellspacing=1> \");\r\n tableBuilder.append(\"<tr>\");\r\n for (int iloop = 0; iloop < CrossTabfinalOrder.size(); iloop++) {\r\n tableBuilder = tableBuilder.append(\"<td>\").append(CrossTabfinalOrder.get(iloop)).append(\"</td>\");\r\n }\r\n tableBuilder.append(\"</tr>\");\r\n for (int iloop = 0; iloop < finalColViewSortedValues.length; iloop++) {\r\n tableBuilder.append(\"<tr>\");\r\n for (int k = 0; k < rowViewCount; k++) {\r\n// ArrayList a =nonViewByMapNew.get(retObj.getColumnNames()[k]);\r\n// if(a!=null){\r\n// tableBuilder=tableBuilder.append(\"<td>\").append(a.toString()).append(\"</td>\");\r\n// }else\r\n tableBuilder = tableBuilder.append(\"<td>\").append(retObj.getColumnNames()[k]).append(\"</td>\");\r\n }\r\n\r\n for (int k = 0; k < finalColViewSortedValues[iloop].size(); k++) {\r\n if (finalColViewSortedValues[iloop].get(k) != null) {\r\n tableBuilder = tableBuilder.append(\"<td>\").append(finalColViewSortedValues[iloop].get(k)).append(\"</td>\");\r\n } else {\r\n tableBuilder = tableBuilder.append(\"<td>\").append(\"SubTotal\").append(\"</td>\");\r\n }\r\n }\r\n// for(int k=rowViewCount+finalColViewSortedValues[0].size();k<retObj.getColumnCount();k++){\r\n// tableBuilder=tableBuilder.append(\"<td>\").append(retObj.getColumnNames()[k]).append(\"</td>\");\r\n// }\r\n\r\n tableBuilder.append(\"</tr>\");\r\n }\r\n// \r\n for (int i = 0; i < retObj.getRowCount(); i++) {\r\n tableBuilder.append(\"<tr>\");\r\n for (int j = 0; j < CrossTabfinalOrder.size() + rowViewCount; j++) {\r\n if (retObj.getFieldValue(i, j) != null) {\r\n if (j < rowViewCount) {\r\n tableBuilder.append(\"<td>\").append(retObj.getFieldValueString(i, j)).append(\"</td>\");\r\n } else {\r\n //\r\n tableBuilder.append(\"<td>\").append(retObj.getFieldValueString(i, CrossTabfinalOrder.get(j - rowViewCount).toString())).append(\"</td>\");\r\n\r\n }\r\n } else {\r\n tableBuilder.append(\"<td>\").append(\"--\").append(\"</td>\");\r\n }\r\n\r\n }\r\n tableBuilder.append(\"</tr>\");\r\n }\r\n tableBuilder.append(\"</table>\");\r\n }\r\n }\r\n// catch (Exception ex) {\r\n// logger.error(\"Exception:\",ex);\r\n// \r\n// }\r\n// \r\n return tableBuilder.toString();\r\n }", "@Override\n\tpublic byte[] generateOutput() {\n\t\tthis.plainOut = new PlainOutputConversion();\n\n\t\tString output = \"\";\n\t\ttry {\n\t\t\toutput = constructTextfromXML(this.rootXML, true);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn output.getBytes();\n\t}", "@Override\n String produce(DBO object) throws TransformerException;", "@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn String.format(\"#%1$d *%2$s* (%3$s@doc): %4$s\\n%5$s\",\n\t\t\t id, poster_name, poster_uid, title,\n\t\t\t mlong.replaceAll(\"</?(br|BR)( ?/)?>\", \"\").replaceAll(\"</?(p|P) ( ?/)?>\", \"\\n\")\n\t\t\t);\n\t\t}", "private String buildHTMLForType(final int typeRequest)\n {\n \n final StringBuilder b = new StringBuilder(32);\n int startSize = 0;\n \n if (typeRequest == OTHER) {\n b.append(\"&nbsp;<b><font color=gray>Merge sources:</font></b>\");\n startSize = b.length();\n buildHTMLForMergeSources(b);\n } else {\n buildHTMLFilteredAndOrganized(b, typeRequest);\n // attempting to force a tiny last-line height to push rollover bottom edge down by a few pixels:\n // b.append(\"<font size=-14 color=gray>---\"); // can't get small enough: font size has floor on it\n }\n if (DEBUG.Enabled) {\n Log.debug(\"got HTMLforType \" + typeRequest + \" [\" + b + \"]\");\n if (b.length() == startSize) {\n Log.debug(\"no html added, building debug html...\");\n b.append(buildDebugHTML(typeRequest));\n }\n }\n \n return b.toString();\n }", "@Override\n public String report() {\n String license = \"License Plate No.: \" + getLicensePlate();\n String destination = \"Destination: \" + getZipDest();\n String weight = \"Weight Load: \" + getCurrentWeight() + \"/\" + getMaxWeight();\n String profit = String.format(\"Net Profit: ($%.2f)\", getProfit());\n String labels = \"=====Shipping Labels=====\\n\";\n for (int i = 0; i < getPackages().size(); i++) {\n labels += getPackages().get(i).shippingLabel();\n }\n labels = labels.concat(\"==============================\");\n String report = \"======== Cargo Plane Report =======\\n\"\n + license + \"\\n\" + destination + \"\\n\" + weight + \"\\n\" + profit + \"\\n\" + labels;\n return report;\n\n }", "public String toString(){\n\t\tFileHandler fw = new FileHandler(); //Create new object for file write\n \tformatText(title);\n \tformatText(snippet);\n \tsnippet = removeLineBreak(snippet);\n \t\n \t//Print out contents to screen\n \tSystem.out.println(urlLabel + link);\n \tSystem.out.println(titleLabel + title);\n\t\tSystem.out.println(snippetLabel + snippet);\n\t\t\n\t\t//Write contents to file\n\t\tfw.writeToFile(urlLabel, link, fw.file, false);\n\t\tfw.writeToFile(titleLabel, title, fw.file, false);\n\t\tfw.writeToFile(snippetLabel, snippet, fw.file, false);\n\t\tfw.writeToFile(\"---------- END OF RESULT -----------\",\"\", fw.file, false);\n\t return \"\";\n\t}", "public static String getHTML() {\n if (create()) {\n return tag.getInnerHTML();\n }\n return \"\";\n }", "protected abstract void renderControlOn(KmHtmlBuilder out);", "private ConfigurationHTMLPrinter prologue(final String title) {\n println(\"<html>\").incrementIndent().println(\"<head>\").incrementIndent();\n print(\"<title>\").print(title).println(\"</title>\");\n println(\"<link rel='stylesheet' type='text/css' href='https://www.jppf.org/jppf.css' title='Style'>\");\n println(\"<link rel='shortcut icon' href='https://www.jppf.org/images/jppf-icon.ico' type='image/x-icon'>\");\n println(\"<style>\").incrementIndent();\n println(\"h1, h2, h3 , h4, h5 { font-family: Arial, Verdana, sans-serif; color: white }\");\n println(\"h1, h2, h3 { margin: 0pt }\");\n println(\"table, td, th { border: solid 1px #6D78B6 }\");\n println(\"table { border-bottom: solid 2px #6D78B6; border-right: solid 2px #6D78B6; width: 100% }\");\n println(\"td, th { padding: 3px }\");\n println(\"td { border-bottom: none; border-right: none }\");\n println(\"th, .header_cell { text-align: left; font-weight: bold; background-color: #C5D0F0; color: #6D78B6; white-space: nowrap; border-color: white }\");\n println(\".tag_cell { border-left: none; border-top: solid 1px white; background-color: #6D78B6; border-color: #6D78B6; border-top-width: 2px; border-left-width: 2px }\");\n println(\".deprecated { text-decoration: line-through }\");\n decrementIndent().println(\"</style>\");\n return decrementIndent().println(\"</head>\").println(\"<body>\").incrementIndent().startTable();\n }", "@GET\n @Produces(MediaType.TEXT_HTML)\n public String sayHtmlHello() {\n return \"<html> \" + \"<title>\" + \"Hello Jersey\" + \"</title>\"\n + \"<body><h1>\" + \"Hello Jersey\" + \"</body></h1>\" + \"</html> \";\n }", "public String getHtml() {\n return html;\n }", "public void generateComponentHTML(JspWriter p) throws IOException\r\n\t{\r\n\t\tJspLink link = (JspLink) getHelper().getController().getComponent(getName());\r\n\t\tif (link == null)\r\n\t\t\treturn;\r\n\t\tHtmlComponent comp = getHelper().getComponent();\r\n\t\tint startRow = -1;\r\n\t\tif (_title != null)\r\n\t\t\tlink.setTitle(_title);\r\n DataTableTag dt = getHelper().getDataTableTag();\r\n ListTag l = getHelper().getListTag();\r\n if (l!=null && dt!= null && (DataTableTag) findAncestorWithClass(l, DataTableTag.class) == dt)\r\n {\r\n dt=null;\r\n }\r\n\t\tif (dt != null)\r\n\t\t{\r\n\t\t\tstartRow = dt.getStartRow();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (l != null)\r\n\t\t\t{\r\n\t\t\t\tstartRow = l.getRow();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (comp != null)\r\n\t\t{\r\n\t\t\tTagWriter w = getTagWriter();\r\n\t\t\tw.setWriter(p);\r\n\t\t\tlink.generateHTML(w, _box, startRow);\r\n\t\t}\r\n\t}", "public static String display(Object obj) throws JspTagException {\n if (obj == null) return \"\"; \n if (obj instanceof String) return obj.toString();\n /*\n if (obj instanceof Collection) {\n return \"FIXME\";\n }\n if (obj instanceof Map) {\n return \"FIXME\";\n } \n if (obj instanceof Iterator) {\n Iterator iter = (Iterator)obj;\n while (iter.hasNext()) {\n iter.next();\n }\n return \"FIXME\";\n } \n if (obj instanceof Enumeration) {\n Enumeration enum = (Enumeration)obj;\n while (enum.hasMoreElements()) {\n enum.nextElement();\n }\n return \"FIXME\";\n }\n */\n try {\n StringBuffer buf = new StringBuffer();\n int count = Array.getLength(obj);\n for (int i=0; i<count; i++) {\n buf.append(Array.get(obj, i).toString());\n if (i<count-1) buf.append(\"<font color='red'> &#149; </font>\");\n }\n return buf.toString();\n } catch (IllegalArgumentException ex) {}\n throw new JspTagException(\"Bad Item\"); \n }", "@Override\n\tpublic void createHtml(ModelItemList list) {\n\t\t\n\t}", "@Override\n public void doTag() throws JspException, IOException {\n setAttributes();\n\n String layout = getBodyContent();\n jspContext.getOut().write(layout);\n }", "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }", "private void printBoardAndCandidatesHtmlFile() {\n printBoardAndCandidatesHtmlFile(\"java-implementation/target/classes/sudokuBoard.html\", sudokuBoard);\n }", "public String printToList() {\n\t\tif (hierarchy.equals(\"n\")) {\n\t\t\treturn \"<HTML>\" + visability + \" class \" + className\n\t\t\t\t\t+ \"{ <BR> <BR>\";\n\t\t} else if (isFinished == true) {\n\n\t\t\treturn \"}\";\n\t\t} else {\n\t\t\treturn \"<HTML>\" + visability + \" \" + hierarchy + \" class \"\n\t\t\t\t\t+ className + \"{ <BR> <BR>\";\n\t\t}\n\t}", "private String renderBody() {\n return \"\";\n }", "private String renderStatusHtml() {\n\t\tString ret = \"\";\n\t\tif (model.getLastErrorTs()!= null) {\n\t\t\tret += String.format(template1, \n\t\t\t\t\tmodel.getLastErrorTs(), model.getLastErrorMessage());\n\t\t}\n\t\tif (model.getLastCheckTs()!= null) {\n\t\t\tret += String.format(template2,\n\t\t\t\t\tmodel.getLastCheckTs(), model.getLastCheckMessage());\n\t\t}\n\t\tif (model.getLastDownloadTs()!= null) {\n\t\t\tret += String.format(template3,\n\t\t\t\t\tmodel.getLastDownloadTs(), model.getLastDownloadMessage());\n\t\t}\n\t\tif (ret.length() == 0) {\n\t\t\tret = \"<br/><em>There are no updates to report yet</em><br>\";\n\t\t}\n\t\treturn ret;\n\t}", "@Override\n public String toString() {\n for (String require : requires) {\n writeToHead(require);\n }\n\n //write header to placeholder...\n int index = out.indexOf(HEADER_PLACEHOLDER); //TODO optimize by scanning upto <body> only (if no head)\n\n String output = out.toString();\n\n if (index > 0) {\n output = output.replaceFirst(HEADER_PLACEHOLDER, head.toString());\n }\n\n return output;\n }", "public String outputTemplatePetMail() throws IOException {\n\t\tVelocityEngine ve = new VelocityEngine();\n\t\tve.setProperty(RuntimeConstants.RESOURCE_LOADER, \"classpath\");\n\t\tve.setProperty(\"classpath.resource.loader.class\",\n\t\t\t\tClasspathResourceLoader.class.getName());\n\n\t\tve.init();\n\t\t/* next, get the Template */\n\t\tTemplate t = ve.getTemplate(\"de/velocityTest/petEmail.vm\");\n\t\t/* create a context and add data */\n\t\tArrayList list = new ArrayList();\n\t\tMap map = new HashMap();\n\t\tmap.put(\"name\", \"horse\");\n\t\tmap.put(\"price\", \"00.00\");\n\t\tlist.add(map);\n\n\t\tmap = new HashMap();\n\t\tmap.put(\"name\", \"dog\");\n\t\tmap.put(\"price\", \"9.99\");\n\t\tlist.add(map);\n\t\tmap = new HashMap();\n\t\tmap.put(\"name\", \"bear\");\n\t\tmap.put(\"price\", \".99\");\n\t\tlist.add(map);\n\t\t/* add that list to a VelocityContext */\n\t\tVelocityContext context = new VelocityContext();\n\t\tcontext.put(\"petList\", list);\n\t\t\n\t\tFile file = new File(\"./petMail.txt\");\n\t\tFileWriter out = new FileWriter(file);\n\t\tBufferedWriter w = new BufferedWriter(out);\n\t\tStringWriter writer = new StringWriter();\n\t\tt.merge(context, w);\n\t\tw.flush();\n\t\t/* show the World */\n\t\treturn w.toString();\n\t}", "public abstract String visualizar();", "public String output( boolean includeMeta )\n {\n String output = \"\";\n\n // http://docutils.sourceforge.net/docs/ref/rst/roles.html#raw\n if ( includeMeta && rawInlineHtmlEnabled )\n {\n output += \".. role:: raw-html(raw)\\n\";\n output += \" :format: html\\n\";\n output += \"\\n\";\n }\n\n // Remove whitespace at the end of the document\n output += this.rst.replaceAll( \"\\\\s+$\", \"\" );\n\n return output;\n }", "public String makeHTML(String DataLine) {\n\t\tDataLine = \"<HTML><BODY>\" + \"<b>\" + DataLine + \"</b>\" + \"</BODY></HTML>\";\n\n\n\t\treturn DataLine;\n\t}", "public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "public String getHtmlDescription() {\n return \"<html>\" + getName() + \"</html>\";\n }", "public static void main(String[] args) {\n\t\tint i = 0;\r\n\t\tif( i == 0) {\r\n\t\t\tSystem.out.println(\"HTML_Template\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Italic String\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Underline, select, UL & OL\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Button\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Button value Special Characters\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Blank\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Textbox, Special Chars\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Radio & Checkbox\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Blank Commit Msg \");\r\n\t\t\tSystem.out.println(\"HTML_Template : Image Check New\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira at 11.07AM\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Kovair To Jira at 11.07AM SyncBack\");\r\n\t\t\tSystem.out.println(\"HTML_Template : TP-134\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Any Random Key\");\r\n\t\t\tSystem.out.println(\"HTML_Template : Test Flowqqq\");\r\n\t\t}\r\n\t}", "@GET\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\tpublic String getMoviesHTML() {\r\n\t\tListMovies movies = new ListMovies();\r\n\t\tmovies.addAll(TodoDao.instance.getMovies().values());\r\n\t\treturn \"\" + movies;\r\n\t}", "private void buildOutput() {\n\t\tsalesSlip.addName(itemField.getText());\n\t\tsalesSlip.addPrice(Double.parseDouble(costField.getText()), Integer.parseInt(quantityField.getText()));\n\t\tsalesSlip.addQuantity(Integer.parseInt(quantityField.getText()));\n\t\tsalesSlip.updatePrice();\n\t\t\n\t\ttextArea.append(salesSlip.generateOutput(salesSlip.numItems-1));\n\t\ttextArea.append(\"\\n\");\n\t\t\n\t\ttotalArea.setText(\"$\" + salesSlip.totalPrice);\n\t}", "private void createHTML(BufferedWriter writer) throws IOException {\r\n\t\tString startHead = \"<html><head>\" // I have used roberto font,Please\r\n\t\t\t\t\t\t\t\t\t\t\t// link the appropriate font\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>\"\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'>\"\r\n\t\t\t\t+ cssFileForHtml()\r\n\t\t\t\t+ \"</head><script src='https://d3js.org/d3.v4.min.js'></script><body style=' background-color: #F5F5F5'>\";\r\n\t\twriter.write(startHead);\r\n\t}", "private void generarDocP(){\n generarPdf(this.getNombre());\n }", "private ConfigurationHTMLPrinter epilogue() {\n return endTable().decrementIndent().println(\"</body\").decrementIndent().println(\"</html>\");\n }", "private void printHtml(MessageBroker msgBroker, \r\n PrintWriter writer,\r\n SearchResultRecord record,\r\n String [] styleUrl) throws SearchException {\r\n String sLang = msgBroker.getLocale().getLanguage();\r\n \r\n writer.println(\"<!DOCTYPE HTML PUBLIC \\\"-//W3C//DTD HTML 4.01//EN\\\" \\\"http://www.w3.org/TR/html4/strict.dtd\\\">\");\r\n writer.println(\"<html lang=\\\"\" +sLang+ \"\\\">\");\r\n \r\n writer.println(\"<head>\");\r\n writer.println(\"<title>\" +record.getTitle()+ \"</title>\");\r\n for (String style : styleUrl) {\r\n style = Val.chkStr(style);\r\n if (style.length()>0) {\r\n writer.println(\"<link rel=\\\"stylesheet\\\" type=\\\"text/css\\\" href=\\\"\" +style+ \"\\\"/>\");\r\n }\r\n }\r\n writer.println(\"<meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html; charset=UTF-8\\\"/>\");\r\n writer.println(\"</head>\");\r\n writer.println(\"<body>\");\r\n printHtmlFragment(msgBroker, writer, record);\r\n writer.println(\"</body>\");\r\n writer.println(\"</html>\");\r\n}", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "public String report() {\n if (getCurrentWeight() != 0) {\n String output = \"\\n==========Cargo Plane Report==========\\n\";\n output += String.format(\"License Plate No.: %s\\n\" +\n \"Destination: %d\\n\" +\n \"Weight Load: %.2f/%.2f\\n\", getLicensePlate(), getZipDest(),\n getCurrentWeight(), getMaxWeight());\n if (getProfit() < 0) {\n output += String.format(\"Net Profit: ($%.2f)\\n\", -1 * getProfit());\n } else {\n output += String.format(\"Net Profit: $%.2f\\n\", getProfit());\n }\n for (Package packa : getPackages()) {\n output += \"=====Shipping Labels=====\\n\";\n output += packa.shippingLabel();\n }\n output += \"\\n==============================\\n\";\n return output;\n\n } else {\n return \"\";\n }\n }", "public void generateHTML(java.io.PrintWriter p, int rowNo) throws Exception {\r\n if (!_visible)\r\n return;\r\n\r\n if (!getEnabled()) {\r\n String out = getValue(rowNo, true);\r\n if (out != null) \r\n out = fixSpecialHTMLCharacters(out);\r\n else\r\n out = \"\";\r\n\r\n // Code added in an attempt to remove unsightly '&nbsp;' in the HtmlTelephonecomponent and\r\n // HtmlSSNComponent.\r\n // The premise is that the '&nbsp;' was introduced to provide for the case when the field\r\n // is disabled and when the string is empty or null\r\n // The IF statement is introduced to do as much without impacting non-null and non-empty strings\r\n if ((out == null) || ((out != null) && (out.equals(\"\"))))\r\n out += \"&nbsp;\";\r\n\r\n if (_disabledFontStartTag != null)\r\n p.print(_disabledFontStartTag + out + _disabledFontEndTag);\r\n else\r\n p.print(out);\r\n return;\r\n }\r\n\r\n String name = getName();\r\n if (rowNo > -1)\r\n name += \"_\" + rowNo;\r\n String tag = \"<input type=\\\"text\\\" id=\\\"\" + name + \"\\\" name=\\\"\" + name +\"\\\"\";\r\n\r\n if (_maxLength > 0)\r\n tag += \" maxlength=\\\"\" + _maxLength + \"\\\"\";\r\n\r\n if (_size > 0) {\r\n int size = _size;\r\n tag += \" size=\\\"\" + size + \"\\\"\";\r\n }\r\n\r\n\r\n String value = getValue(rowNo, true);\r\n\r\n if (value != null)\r\n tag += \" value=\\\"\" + fixSpecialHTMLCharacters(value) + \"\\\"\";\r\n\r\n\r\n if (_class != null)\r\n tag += \" class=\\\"\" + _class + \"\\\"\";\r\n\r\n if (_format != null)\r\n tag += \" format=\\\"\" + _format + \"\\\"\";\r\n\r\n if (_emptyok)\r\n tag += \" emptyok=\\\"True\\\"\";\r\n\r\n if (_tabindex > -1)\r\n tag += \" tabindex=\\\"\" + _tabindex + \"\\\"\";\r\n\r\n if (_title != null)\r\n tag += \" title=\\\"\" + _title + \"\\\"\";\r\n\r\n tag += \"/>\";\r\n\r\n\r\n p.print(tag);\r\n }", "public static void makeHtmlFile(String s,PrintWriter pw,String first,String second,String third)\n \t{\n \t pw.println(\"<!DOCTYPE html><html lang=\\\"en\\\"><head><meta charset=\\\"UTF-8\\\"><title>\"+s+\"</title><link rel=\\\"stylesheet\\\" href=\\\"https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css\\\"></head>\");\n \t pw.println(\"<body id=\\\"body\\\"><div class=main id=\\\"main\\\"> </div>\");\n \t pw.println(\"<div id=\\\"\"+ first+\"\\\" class=\"+\"\\\"#\"+first+\"\\\"><h3>\"+first+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+second+\"\\\" class=\\\"#\"+second+\"\\\"><h3>\"+second+\"</h3></div>\");\n \t pw.println(\"<div id=\\\"\"+third+\"\\\" class=\\\"#\"+third+\"\\\"><h3>\"+third+\"</h3></div>\");\n \t pw.println(\"<script src=\\\"Main.js\\\"></script>\");\n \t pw.println(\"</body></html>\");\n\t \t pw.close();\n\t }", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "private void printStatusHtmlBody\n\t\t(PrintWriter out,\n\t\t long now)\n\t\t{\n\t\tout.println (\"<P>\");\n\t\tout.println (\"<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>\");\n\t\tout.println (\"<TR>\");\n\t\tout.println (\"<TD ALIGN=\\\"center\\\" VALIGN=\\\"top\\\">\");\n\n\t\tout.println (\"Nodes\");\n\t\tout.println (\"<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\");\n\t\tout.println (\"<TR>\");\n\t\tout.println (\"<TD ALIGN=\\\"left\\\" VALIGN=\\\"top\\\">\");\n\n\t\tout.println (\"<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0>\");\n\t\tprintBackendLabels (out);\n\t\tint i = 0;\n\t\tfor (BackendInfo backend : myBackendInfo)\n\t\t\t{\n\t\t\tprintBackendInfo (out, now, backend, i);\n\t\t\t++ i;\n\t\t\t}\n\t\tout.println (\"</TABLE>\");\n\n\t\tout.println (\"</TD>\");\n\t\tout.println (\"</TR>\");\n\t\tout.println (\"</TABLE>\");\n\n\t\tout.println (\"</TD>\");\n\t\tout.println (\"<TD WIDTH=40> </TD>\");\n\t\tout.println (\"<TD ALIGN=\\\"center\\\" VALIGN=\\\"top\\\">\");\n\n\t\tout.println (\"Jobs\");\n\t\tout.println (\"<TABLE BORDER=1 CELLPADDING=3 CELLSPACING=0>\");\n\t\tout.println (\"<TR>\");\n\t\tout.println (\"<TD ALIGN=\\\"left\\\" VALIGN=\\\"top\\\">\");\n\n\t\tout.println (\"<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0>\");\n\t\tprintJobLabels (out);\n\t\ti = 0;\n\t\tfor (JobInfo job : myRunningJobList)\n\t\t\t{\n\t\t\tprintJobInfo (out, now, job, i);\n\t\t\t++ i;\n\t\t\t}\n\t\tfor (JobInfo job : myWaitingJobList)\n\t\t\t{\n\t\t\tprintJobInfo (out, now, job, i);\n\t\t\t++ i;\n\t\t\t}\n\t\tout.println (\"</TABLE>\");\n\n\t\tout.println (\"</TD>\");\n\t\tout.println (\"</TR>\");\n\t\tout.println (\"</TABLE>\");\n\n\t\tprintTotalComputeTime (out);\n\t\tout.print (\"<BR>\");\n\t\tprintJobCount (out);\n\t\tout.println (\"<BR>Since \" + new Date (myStartDateTime));\n\n\t\tout.println (\"</TD>\");\n\t\tout.println (\"</TR>\");\n\t\tout.println (\"</TABLE>\");\n\t\t}", "void genReport() {\n\n current_part.save_state(); \n\n JTextArea ta = text;\n\n ta.setText(\"\");\n\n if (!t_foil_name.equals(\"Test\"))\n ta.append(\"Hydrofoil: \" + t_foil_name);\n\n java.util.Date date = new java.util.Date();\n ta.append(\"\\n Date: \" + date);\n \n wing.print( \"Main Wing\", ta);\n stab.print( \"Stabilizer Wing\", ta);\n strut.print(\"Mast (a.k.a. Strut)\", ta);\n fuse.print( \"Fuselage\", ta);\n\n ta.append( \"\\n\\n\");\n // tail volume is LAElev * AreaElev / (MACWing * AreaWing)\n // LAElev : The elevator's Lever Arm measured at the wing's and elevator's quarter chord point\n double LAElev = stab.xpos + stab.chord_xoffs + 0.25*stab.chord - (wing.xpos + wing.chord_xoffs + 0.25*wing.chord);\n // MAC : The main wing's Mean Aerodynamic Chord\n // AreaWing : The main wing's area\n // AreaElev : The elevator's area\n \n ta.append( \"\\nTail Voulume: \" + LAElev*stab.span*stab.chord/(wing.chord*wing.chord*wing.span));\n \n\n ta.append( \"\\n\\n\");\n switch (planet) {\n case 0: { \n ta.append( \"\\n Standard Earth Atmosphere\" );\n break;\n }\n case 1: { \n ta.append( \"\\n Martian Atmosphere\" );\n break;\n }\n case 2: { \n ta.append( \"\\n Water\" );\n break;\n }\n case 3: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n case 4: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n }\n\n // ta.append( \"\\n Altitude = \" + filter0(alt_val) );\n // if (lunits == IMPERIAL) ta.append( \" ft ,\" );\n // else /*METRIC*/ ta.append( \" m ,\" );\n \n switch (lunits) {\n case 0: { /* English */\n ta.append( \"\\n Density = \" + filter5(rho_EN) );\n ta.append( \"slug/cu ft\" );\n ta.append( \"\\n Pressure = \" + filter3(ps0/144.) );\n ta.append( \"lb/sq in,\" );\n ta.append( \" Temperature = \" + filter0(ts0 - 460.) );\n ta.append( \"F,\" );\n break;\n }\n case 1: { /* Metric */\n ta.append( \" Density = \" + filter3(rho_EN*515.4) );\n ta.append( \"kg/cu m\" );\n ta.append( \"\\n Pressure = \" + filter3(101.3/14.7*ps0/144.) );\n ta.append( \"kPa,\" );\n ta.append( \" Temperature = \" + filter0(ts0*5.0/9.0 - 273.1) );\n ta.append( \"C,\" );\n break;\n }\n }\n\n ta.append( \"\\n Speed = \" + filter1(velocity * (lunits==IMPERIAL? 0.868976 : 0.539957 )) + \"Kts, or\" );\n ta.append( \" \" + filter1(velocity) );\n if (lunits == IMPERIAL) ta.append( \" mph ,\" );\n else /*METRIC*/ ta.append( \" km/hr ,\" );\n\n // if (out_aux_idx == 1)\n // ta.append( \"\\n Lift Coefficient = \" + filter3(current_part.cl) );\n // if (out_aux_idx == 0) {\n // if (Math.abs(lift) <= 10.0) ta.append( \"\\n Lift = \" + filter3(lift) );\n // if (Math.abs(lift) > 10.0) ta.append( \"\\n Lift = \" + filter0(lift) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n // if ( polarOut == 1)\n // ta.append( \"\\n Drag Coefficient = \" + filter3(current_part.cd) );\n // if (out_aux_idx == 0) {\n // ta.append( \"\\n Drag = \" + filter0(drag) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n\n ta.append( \"\\n Lift = \" + dash.outTotalLift.getText());\n ta.append( \"\\n Drag = \" + dash.outTotalDrag.getText());\n\n if (min_takeoff_speed_info != null) \n ta.append( \"\\n\\n\" + min_takeoff_speed_info);\n\n if (cruising_info != null) \n ta.append( \"\\n\\n\" + cruising_info);\n\n if (max_speed_info != null) \n ta.append( \"\\n\\n\" + max_speed_info);\n\n // ensure end ta.setCaretPosition(ta.getText().length());\n // ensure start\n ta.setCaretPosition(0);\n }", "@Override\n public String generateMail() {\n return \"<HTML> Don`t call us Nikolas</HTML>\";\n }", "private static String header() {\r\n String output = \"\";\r\n output += \"\\\\documentclass[a4paper,10pt]{article}\\n\";\r\n output += \"\\\\title{Wilcoxon Signed Ranks test.}\\n\";\r\n output += \"\\\\date{\\\\today}\\n\\\\author{KEEL non-parametric statistical module}\\n\\\\begin{document}\\n\\n\\\\pagestyle{empty}\\n\\\\maketitle\\n\\\\thispagestyle{empty}\\n\\n\";\r\n\r\n return output;\r\n\r\n }", "public void generateHtml(String title, List<HtmlData> data, FilePathToUrl filePathToUrl)\n throws IOException {\n String content = generateHtmlLayout(title, data);\n createFile(filePathToUrl.getFilePath(), content);\n FileUtil.saveResource(getClass().getResourceAsStream(\"/docs/stylesheets/asciidoctor.css\"),\n \"asciidoctor.css\", false);\n }", "static public String generateHeaderAndBodyLineForPrinting(Imprimable imprimable)\r\n\t{\r\n\t\tStringBuffer buf = new StringBuffer();\r\n\t\t\r\n\t\tbuf.append(\"<!DOCTYPE html>\");\r\n\t\tbuf.append(\"<html>\");\r\n\t\tbuf.append(\"<head>\");\r\n\t\tbuf.append(\"<meta charset=\\\"utf-8\\\">\");\r\n\t\tbuf.append(\"<title></title>\");\r\n\t\tbuf.append(\"</head>\");\r\n\t\tbuf.append(generateBodyLineForPrinting(imprimable));\r\n\t\t\r\n\t\treturn buf.toString();\r\n\t}", "@GET\n\t@Produces( { MediaType.TEXT_XML })\n\tpublic UserXML getHTML() {\n\t\tUserXML user = new UserXML();\n\t\tuser.setName(\"Sagar Prasad\");\n\t\tuser.setDescription(\"Some Description\");\n\t\treturn user;\n\t}", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "protected void onRender(Writer w_p) throws Exception\r\n {\r\n // === render \r\n w_p.write(m_theFieldManager.renderErrors());\r\n\r\n w_p.write(\"<div style=\\\"clear:both\\\" class=\\\"OwObjectPropertyView\\\">\");\r\n\r\n w_p.write(\"<table class='OwObjectPropertyView'>\");\r\n\r\n w_p.write(\"<tr><td>\");\r\n\r\n renderRegion(w_p, MAIN_REGION);\r\n\r\n w_p.write(\"</td></tr>\");\r\n\r\n w_p.write(\"<tr><td class='OwObjectPropertyView_MENU OwInlineMenu'>\");\r\n\r\n renderRegion(w_p, MENU_REGION);\r\n\r\n w_p.write(\"</td></tr>\");\r\n\r\n w_p.write(\"</table>\");\r\n\r\n w_p.write(\"</div>\");\r\n }", "public String toFullHTML() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<tr>\");\n sb.append(\"<td>\");\n sb.append(this.name);\n sb.append(\"</td>\");\n sb.append(\"<td>\");\n sb.append(this.nextAlarm);\n sb.append(\"</td>\");\n sb.append(\"<td>\");\n sb.append(this.minute);\n sb.append(\"</td>\");\n sb.append(\"<td>\");\n sb.append(this.hour);\n sb.append(\"</td>\");\n sb.append(\"<td>\");\n sb.append(this.dayOfMonth);\n sb.append(\"</td>\");\n sb.append(\"<td>\");\n sb.append(this.month);\n sb.append(\"</td>\");\n sb.append(\"<td>\");\n sb.append(this.dayOfWeek);\n sb.append(\"</td>\");\n sb.append(\"</tr>\");\n return sb.toString();\n }", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "@GET\r\n @Produces(\"application/xml\")\r\n public String getHtml() {\r\n // TODO return proper representation object\r\n \tString sql = \"SELECT GENDER, COUNT( PATIENT_ID ) AS NUMBEROFPATIENTS \" +\r\n \t\t\t\"FROM clinicaldetection, patient \" +\r\n \t\t\t\"WHERE clinicaldetection.PATIENT_ID = patient.PID \" +\r\n \t\t\t\"AND TIMES =1 \" +\r\n \t\t\t\"AND HBSAG =0 \" +\r\n \t\t\t\"AND PATIENT_ID \" +\r\n \t\t\t\"IN ( \" +\r\n \t\t\t\"SELECT PATIENT_ID \" +\r\n \t\t\t\"FROM CLINICALDETECTION \" + \r\n \t\t\t\"WHERE TIMES =3 \" +\r\n \t\t\t\"AND ANTIHBS =0 \" +\r\n \t\t\t\") \" +\r\n \t\t\t\"GROUP BY GENDER \";\r\n\r\n \t\r\n \treturn bean.query(sql);\r\n }", "public void writeToHTML(Match match) {\n ArrayList<String> template = new ArrayList<>();\n ArrayList<String> html = new ArrayList<>();\n ArrayList<Player> roster = new ArrayList<>();\n roster.addAll(match.getRoster().getAllPlayers());\n \n Scanner read = null;\n String fileTemplate = \"template.html\";\n String filePrint = match.getDate().toStringShort() \n + \"_\" + match.getOpponent() + \".html\";\n \n try {\n FileInputStream fileIn = new FileInputStream(fileTemplate);\n read = new Scanner(fileIn);\n }\n catch(FileNotFoundException e) {\n displayErrorMessage(\"File not found\", filePrint);\n }\n while(read.hasNext()) {\n template.add(read.nextLine());\n }\n read.close();\n \n String line = \"\";\n \n for(int i=0; i<template.size(); i++) {\n line = template.get(i);\n \n // Check match for null values\n String date, opponent, start, location, type;\n if(match.getDate().toStringShort().equals(\"0-00-00\")) {\n date = \"\"; \n } else {\n date = match.getDate().toStringShort();\n }\n if(match.getOpponent() == null) {\n opponent = \"\";\n } else {\n opponent = match.getOpponent();\n }\n if(match.getDate().toStringTime().equals(\"00:00\")) {\n start = \"\";\n } else {\n start = match.getDate().toStringTime();\n }\n if(match.getLocation() == null) {\n location = \"\";\n } else {\n location = match.getLocation();\n }\n if(match.getMatchType() == MatchType.none) {\n type = \"\";\n } else {\n type = match.getMatchType().toString();\n }\n \n // Replace values\n if(line.contains(\"$match\")) {\n line = line.replace(\"$match\",\n date + \" - \" + opponent);\n html.add(line);\n } else if(line.contains(\"$start\")) {\n line = line.replace(\"$start\", start);\n html.add(line);\n } else if(line.contains(\"$location\")) {\n line = line.replace(\"$location\", location);\n html.add(line);\n } else if(line.contains(\"$type\")) {\n line = line.replace(\"$type\", type);\n html.add(line);\n } else if(line.contains(\"$number\")) {\n \n // Replace values for each player\n for(int j=0; j<roster.size(); j++) {\n String temp = line;\n Player player = roster.get(j);\n String number, firstName=null, lastName, name=\"\", position;\n \n // Check player for null values\n if(player.getNumber() < 0) {\n number = \"\";\n } else {\n number = Integer.toString(player.getNumber());\n }\n if(player.getLastname() == null) {\n lastName = \"\"; \n } else {\n lastName = player.getLastname();\n name += lastName;\n }\n if(player.getFirstname() == null) {\n firstName = \"\";\n } else {\n firstName = String.valueOf(player.getFirstname().charAt(0));\n if(!(lastName.equals(\"\"))) {\n name += \", \";\n }\n name += firstName + \".\";\n }\n if(player.getPreferredPosition() == PositionType.none) {\n position = \"\";\n } else {\n position = player.getPreferredPosition().toString();\n }\n \n // Replace values in temp line\n temp = temp.replace(\"$number\", number);\n temp = temp.replace(\"$name\", name);\n temp = temp.replace(\"$position\",position);\n \n html.add(temp);\n } \n } else {\n html.add(line);\n }\n }\n PrintWriter write = null;\n try {\n FileOutputStream fileOut = new FileOutputStream(filePrint);\n write = new PrintWriter(fileOut);\n \n for(int i=0; i < html.size(); i++) {\n write.println(html.get(i));\n }\n }\n catch(FileNotFoundException e)\n {\n displayErrorMessage(\"File not found\", filePrint);\n }\n write.close();\n \n Alert printAlert = new Alert(Alert.AlertType.INFORMATION, filePrint + \" is ready for printing\", ButtonType.OK);\n printAlert.setTitle(\"Print Information\");\n printAlert.setHeaderText(null);\n printAlert.showAndWait();\n if(printAlert.getResult() == ButtonType.OK);\n }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public void writeReport() {\n\t\tint gridSize = 55; // Total character spaces between the borders\n\t\tprint(\"+-------------------------------------------------------+\");\n\t\tprint(String.format(\"|%s|\", centerName(gridSize)));\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t/*\n\t\t * Loops through each room in the hotel and prints out the relevant\n\t\t * information on a new line And draws southern, eastern and western\n\t\t * borders to allow it to connect up to the main table.\n\t\t */\n\t\tfor (int i = 0; i < myHotel.getSize(); i++) {\n\t\t\tprint(formatRooms(i).toUpperCase());\n\t\t\tprint(formatAmount(i).toUpperCase());\n\t\t\tprint(formatSleepAmount(i).toUpperCase());\n\t\t\tprint(formatOccupied(i).toUpperCase());\n\t\t\tprint(\"+---------------+---------------------------------------+\");\n\t\t}\n\t\t/*\n\t\t * After every hotel room's information has been displayed The overall\n\t\t * hotel information is displayed such as total occupancy, if there is a\n\t\t * vacancy. And if there is a vacancy, the total amount of free rooms\n\t\t * and beds.\n\t\t */\n\t\tprint(String.format(\"| Hotel\\t\\t|\\tTotal Occupancy:\\t%s\\t|\", getHotel().getTotalOccupancy()).toUpperCase());\n\t\tprint(String.format(\"| information:\\t|\\tHas Vacancies:\\t\\t%s\\t|\", convertBoolean(getHotel().getVacancies()))\n\t\t\t\t.toUpperCase());\n\t\tif (getHotel().getVacancies()) {\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Rooms:\\t\\t%s\\t|\", getHotel().getEmptyRooms()).toUpperCase());\n\t\t\tprint(String.format(\"|\\t\\t|\\tVacant Beds:\\t\\t%s\\t|\", getHotel().getTotalVacancy()).toUpperCase());\n\t\t}\n\t\t/*\n\t\t * Draws a final southern border to close the table\n\t\t */\n\t\tprint(\"+---------------+---------------------------------------+\");\n\t}", "public ContainerTag generateBody(List<HtmlData> data) {\n return div();\n }", "protected String generateAdvisoryHTML(SecurityAdvisory securityAdvisory) throws AdvisoryToolException {\n TypeToken<Map<String, Object>> typeToken = new TypeToken<Map<String, Object>>() {\n };\n Gson gson = new Gson();\n String htmlString;\n\n try {\n TemplateLoader loader = new ClassPathTemplateLoader();\n loader.setPrefix(Constants.SECURITY_ADVISORY_HTML_TEMPLATE_DIRECTORY);\n loader.setSuffix(\".hbs\");\n Handlebars handlebars = new Handlebars(loader);\n Template template = handlebars.compile(Constants.SECURITY_ADVISORY_HTML_TEMPLATE);\n\n String jsonString = gson.toJson(securityAdvisory);\n Map<String, Object> pdfInfoMap = gson.fromJson(jsonString, typeToken.getType());\n\n Context context = Context.newBuilder(pdfInfoMap).build();\n htmlString = template.apply(context);\n } catch (IOException e) {\n throw new AdvisoryToolException(\"Failed to generate the Security Advisory HTML.\", e);\n }\n return htmlString;\n }", "@Override\n public String print() {\n return this.text + \"\\n\" + \"1. \" + this.option1.text + \"\\n\" + \"2. \" + this.option2.text;\n }", "private static void outputHeaderMainPage(SimpleWriter out) {\n out.print(\"<html>\\n\" + \"<head>\\n\" + \"\\t<title>\" + \"Index\" + \"</title>\\n\"\n + \"<font size = '10' >\" + \"Glossary Homepage\" + \"</font>\"\n + \"</head>\\n\" + \"<body>\\n\" + \"<head>\\n\" + \"\\t<h1>\\n\"\n + \"<font size = '6' >\" + \"Index\" + \"</font>\" + \"\\t</h1>\\n\"\n + \"</head>\\n\" + \"</body>\\n\" + \"</html>\");\n }", "public void fnWriteToHtmlOutput(String strDescription, String strExpectedValue, String strObtainedValue, String strResult) {\r\n \tString sStep;\r\n \tif (Dictionary.containsKey(\"STEP\")){\r\n \t\tsStep = Dictionary.get(\"STEP\") + \"<NS>\" + strDescription + \"<ND>\" + strExpectedValue + \"<ND>\" + strObtainedValue + \"<ND>\" + strResult;\r\n \t\tDictionary.remove(\"STEP\");\r\n \t}else{\r\n \t\tsStep = strDescription + \"<ND>\" + strExpectedValue + \"<ND>\" + strObtainedValue + \"<ND>\" + strResult;\r\n \t}\r\n \t\t\r\n \tDictionary.put(\"STEP\", sStep);\r\n \t\r\n //Declaring Variables\r\n String snapshotFilePath,sRowColor;\r\n\r\n //Open the test case report for writing\r\n //Open the HTML file\r\n\t\t//Open the report file to write the report\r\n\t\ttry {\r\n\t\t\tfoutStrm = new FileOutputStream(g_strTestCaseReport, true);\r\n\r\n\t\t} catch (FileNotFoundException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n \r\n //Increment the Operation Count\r\n g_OperationCount = g_OperationCount + 1;\r\n \r\n //Row Color\r\n if (g_OperationCount % 2 == 0)\r\n {\r\n sRowColor = \"#EEEEEE\";\r\n }\r\n else\r\n {\r\n sRowColor = \"#D3D3D3\";\r\n \r\n }\r\n \r\n //Check if the result is Pass or Fail\r\n if (strResult.toUpperCase().equals(\"PASS\")){ \r\n //Increment the Pass Count\r\n g_iPassCount++;\r\n //Increment the snapshot count\r\n g_iSnapshotCount++;\r\n //Get the Full path of the snapshot\r\n snapshotFilePath = g_strSnapshotFolderName + \"\\\\SS_\" + g_iSnapshotCount + \".png\";\r\n \r\n //Capture the Snapshot\r\n fTakeScreenshot(snapshotFilePath);\r\n \r\n //Write the result into the file\r\n //new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>\" + strResult + \"</B></FONT></TD></TR>\");\r\n new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 ><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><A HREF='\" + snapshotFilePath + \"'><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>\" + strResult + \" </B></FONT></A></TD></TR>\");\r\n }\r\n else\r\n {\r\n if (strResult.toUpperCase().equals(\"FAIL\")){\r\n //Increment the SnapShot count\r\n g_iSnapshotCount++ ;\r\n\r\n //Increment the Fail Count\r\n g_iFailCount++;\r\n\r\n //Get the Full path of the snapshot\r\n snapshotFilePath = g_strSnapshotFolderName + \"\\\\SS_\" + g_iSnapshotCount + \".png\";\r\n\r\n //Capture the Snapshot\r\n fTakeScreenshot(snapshotFilePath);\r\n \r\n //Write the result into the file\r\n new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 ><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><A HREF='\" + snapshotFilePath + \"'><FONT FACE=VERDANA SIZE=2 COLOR=RED><B>\" + strResult + \" </B></FONT></A></TD></TR>\");\r\n \r\n }else if (strResult.toUpperCase().equals(\"DONE\")){ \r\n \tstrResult = \"Pass\";\r\n //Write Results into the file\r\n \tnew PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2><B>\" + g_OperationCount +\"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\"+ strDescription +\"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue + \"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\"+ strObtainedValue +\"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 COLOR=LimeGreen><B>\"+ strResult +\"</B></FONT></TD></TR>\");\r\n }\r\n \r\n }\r\n try\r\n {\t\t\t\r\n \t//Close File stream\r\n\t\t\tfoutStrm.close();\r\n\t\t\t\r\n\t\t} catch (IOException io) {\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n }" ]
[ "0.676849", "0.6683776", "0.61651754", "0.6119086", "0.60002184", "0.59864265", "0.58350235", "0.57834667", "0.5746081", "0.5716947", "0.5649792", "0.56459063", "0.56299424", "0.56069344", "0.5598403", "0.55311394", "0.55277175", "0.54814917", "0.54716796", "0.5460617", "0.54544693", "0.5453917", "0.5449226", "0.5441314", "0.54365474", "0.5425387", "0.5422071", "0.54184073", "0.5414809", "0.54064757", "0.54021657", "0.5385525", "0.5383718", "0.53587615", "0.535073", "0.5331155", "0.5293185", "0.52507776", "0.52504027", "0.52484524", "0.52469695", "0.52390975", "0.52375895", "0.5227301", "0.5220624", "0.5217679", "0.52135783", "0.5210558", "0.5210313", "0.5208873", "0.5197407", "0.5182856", "0.5168275", "0.5163747", "0.5162931", "0.51624614", "0.5159536", "0.51553106", "0.51491106", "0.5143163", "0.51216656", "0.51153105", "0.5104525", "0.5093893", "0.50860745", "0.50818765", "0.5081276", "0.5081095", "0.5080942", "0.507007", "0.50695646", "0.5063911", "0.50551146", "0.5052879", "0.5049471", "0.50440574", "0.5038654", "0.5034959", "0.5032399", "0.502089", "0.50163066", "0.5013026", "0.5007643", "0.500716", "0.50050265", "0.5001657", "0.49973074", "0.49968895", "0.49968052", "0.49950576", "0.49921143", "0.49908325", "0.4990141", "0.49868608", "0.49807414", "0.49805382", "0.49751207", "0.49726868", "0.49657115", "0.4965577", "0.49654552" ]
0.0
-1
Method to save a new or existing project to the database
protected void saveProject(Project theProject) throws HttpPresentationException, webschedulePresentationException { String proj_name = this.getComms().request.getParameter(PROJ_NAME); String personID = this.getComms().request.getParameter(PERSONID); String password = this.getComms().request.getParameter(PASSWORD); String discrib = this.getComms().request.getParameter(DISCRIB); String indexnum = this.getComms().request.getParameter(INDEXNUM); String thours = this.getComms().request.getParameter(THOURS); String dhours = this.getComms().request.getParameter(DHOURS); String codeofpay = this.getComms().request.getParameter(CODEOFPAY); String contactname = this.getComms().request.getParameter(CONTACTNAME); String contactphone = this.getComms().request.getParameter(CONTACTPHONE); String billaddr1 = this.getComms().request.getParameter(BILLADDR1); String billaddr2 = this.getComms().request.getParameter(BILLADDR2); String billaddr3 = this.getComms().request.getParameter(BILLADDR3); String city = this.getComms().request.getParameter(CITY); String state = this.getComms().request.getParameter(STATE); String zip = this.getComms().request.getParameter(ZIP); String accountid = this.getComms().request.getParameter(ACCOUNTID); String isoutside = this.getComms().request.getParameter(OUTSIDE); String exp = this.getComms().request.getParameter(EXP); String expday = this.getComms().request.getParameter(EXPDAY); String expmonth = this.getComms().request.getParameter(EXPMONTH); String expyear = this.getComms().request.getParameter(EXPYEAR); String notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT); try { System.out.println(" trying to saving a project one "+ proj_name); theProject.setProj_name(proj_name); System.out.println(" trying to saving a project one "+ proj_name); theProject.setPassword(password); theProject.setDescription(discrib); theProject.setIndexnum(indexnum); theProject.setTotalhours(Double.parseDouble(thours)); theProject.setDonehours(Double.parseDouble(dhours)); theProject.setCodeofpay(Integer.parseInt(codeofpay)); theProject.setContactname(contactname); theProject.setContactphone(contactphone); theProject.setBilladdr1(billaddr1); theProject.setBilladdr2(billaddr2); theProject.setBilladdr3(billaddr3); theProject.setCity(city); theProject.setState(state); theProject.setZip(zip); theProject.setAccountid(accountid); theProject.setNotifycontact(notifycontact); if(null != this.getComms().request.getParameter(OUTSIDE)) { theProject.setOutside(true); } else { theProject.setOutside(false); } if(null != this.getComms().request.getParameter(EXP)) { theProject.setExp(true); } else { theProject.setExp(false); } theProject.setExpday(Integer.parseInt(expday)); theProject.setExpmonth(Integer.parseInt(expmonth)); theProject.setExpyear(Integer.parseInt(expyear)); theProject.setOwner(PersonFactory.findPersonByID(personID)); theProject.setInstitute("UCSD"); theProject.setFpemail(" "); theProject.setPOnum("0"); theProject.setPOexpdate(java.sql.Date.valueOf("2010-09-31")); theProject.setPOhours(0); theProject.setIACUCDate(java.sql.Date.valueOf("2010-01-01")); theProject.setModifiedby("Ghobrial"); theProject.setModDate(java.sql.Date.valueOf("2010-04-30")); theProject.setNotes("*"); theProject.setIRBnum("0"); //theProject.set(); System.out.println(" Person ID "+ personID); System.out.println(" contactname "+ contactname); System.out.println(" contact phone"+ contactphone); System.out.println(" isoutside "+ isoutside); System.out.println(" exp day "+expday); System.out.println(" exp month "+ expmonth); System.out.println(" expyear "+ expyear); System.out.println(" trying to saving a project two "+ proj_name); theProject.save(); System.out.println(" trying to saving a project three "+ proj_name); } catch(Exception ex) { throw new webschedulePresentationException("Error adding project", ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveNewProject(){\n String pn = tGUI.ProjectTextField2.getText();\n String pd = tGUI.ProjectTextArea1.getText();\n String statusID = tGUI.StatusComboBox.getSelectedItem().toString();\n String customerID = tGUI.CustomerComboBox.getSelectedItem().toString();\n\n int sstatusID = getStatusID(statusID);\n int ccustomerID = getCustomerID(customerID);\n\n try {\n pstat = cn.prepareStatement (\"insert into projects (project_name, project_description, project_status_id, customer_id) VALUES (?,?,?,?)\");\n pstat.setString(1, pn);\n pstat.setString(2,pd);\n pstat.setInt(3, sstatusID);\n pstat.setInt(4, ccustomerID);\n pstat.executeUpdate();\n\n }catch (SQLException ex) {\n Logger.getLogger(ProjectMethods.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void save(Project project) {\n\t\tcreate(project);\n\t}", "public void store() throws IOException, SQLException {\r\n \r\n /* Project section */\r\n final HashMap<Object, Object> projectdata = new HashMap<Object, Object>(8);\r\n \r\n if(project == null){\r\n \t// The title \r\n projectdata.put(ProjectAccessor.TITLE, title);\r\n // Create the project database object.\r\n final ProjectAccessor newProject = new ProjectAccessor(projectdata);\r\n newProject.persist(conn);\r\n projectid = (Long) newProject.getGeneratedKeys()[0];\r\n } else {\r\n \tprojectid = project.getProjectid();\r\n }\r\n }", "public void saveProject(Project project) {\n\t\tContentValues vals = new ContentValues();\n\t\tProject existing = getProjectById(project.getId());\n\n\t\t// update\n\t\tif (existing != null) {\n\t\t\tvals.put(Constants.COLUMN_STARRED, project.isStarred() ? 1 : 0);\n\t\t\tvals.put(Constants.COLUMN_SHARED, project.isShared() ? 1 : 0);\n\t\t\tvals.put(Constants.COLUMN_TITLE, project.getTitle());\n\t\t\tvals.put(Constants.COLUMN_HISTORY, project.getSerializedHistory());\n\t\t\tString where = Constants.COLUMN_ID + \" = ?\";\n\t\t\tString[] args = new String[] { project.getId() };\n\n\t\t\tdatabase.update(Constants.TABLE_PROJECTS, vals, where, args);\n\n\t\t\treturn;\n\t\t}\n\n\t\t// add\n\t\tvals.put(Constants.COLUMN_ID, project.getId());\n\t\tvals.put(Constants.COLUMN_TITLE, project.getTitle());\n\t\tvals.put(Constants.COLUMN_STARRED, project.isStarred() ? 1 : 0);\n\t\tvals.put(Constants.COLUMN_SHARED, project.isShared() ? 1 : 0);\n\t\tvals.put(Constants.COLUMN_HISTORY, project.getSerializedHistory());\n\t\tdatabase.insert(Constants.TABLE_PROJECTS, null, vals);\n\t}", "public void save() throws InvalidIDException, SQLException {\r\n\t\t// Whether or not this is a new project being added to the database\r\n\t\tboolean newProject;\r\n\r\n\t\tif (super.id == 0) { newProject = true; }\r\n\t\telse { newProject = false; }\r\n\r\n\t\t// Call save in the Project class first. This will save general project data.\r\n\t\tsuper.save();\r\n\r\n\t\t// Get our connection to the database.\r\n\t\tConnection conn = DBConnectionManager.getPrConnection();\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\r\n\t\t\t// Get our updatable result set\r\n\t\t\tString sqlStr = \"SELECT * FROM tblTechnology WHERE projectID = \" + super.id;\r\n\t\t\trs = stmt.executeQuery(sqlStr);\r\n\r\n\t\t\t// See if we're updating a row or adding a new row.\r\n\t\t\tif (newProject == false) {\r\n\r\n\t\t\t\t// Make sure this row is actually in the database. This shouldn't ever happen.\r\n\t\t\t\tif (!rs.next()) {\r\n\t\t\t\t\tthrow new InvalidIDException(\"ID was set in Technology, but not found in database on save()\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Make sure the result set is set up w/ current values from this object\r\n\t\t\t\tif (this.groups == null) { rs.updateNull(\"techGroups\"); }\r\n\t\t\t\telse { rs.updateString(\"techGroups\", StringUtils.join(this.groups.toArray(), \",\")); }\r\n\r\n\t\t\t\t// Update the row\r\n\t\t\t\trs.updateRow();\r\n\r\n\t\t\t} else {\r\n\t\t\t\t// We're adding a new row.\r\n\r\n\t\t\t\trs.moveToInsertRow();\r\n\r\n\t\t\t\trs.updateInt(\"projectID\", super.id);\r\n\r\n\t\t\t\tif (this.groups == null) { rs.updateNull(\"techGroups\"); }\r\n\t\t\t\telse { rs.updateString(\"techGroups\", StringUtils.join(this.groups.toArray(), \",\")); }\r\n\r\n\t\t\t\trs.insertRow();\r\n\t\t\t}\r\n\r\n\t\t\trs.close();\r\n\t\t\trs = null;\r\n\t\t\t\r\n\t\t\tstmt.close();\r\n\t\t\tstmt = null;\r\n\t\t\t\r\n\t\t\tconn.close();\r\n\t\t\tconn = null;\r\n\t\t}\r\n\t\tcatch(SQLException e) { throw e; }\r\n\t\tcatch(InvalidIDException e) { throw e; }\r\n\t\tfinally {\r\n\r\n\t\t\t// Always make sure result sets and statements are closed,\r\n\t\t\t// and the connection is returned to the pool\r\n\t\t\tif (rs != null) {\r\n\t\t\t\ttry { rs.close(); } catch (SQLException e) { ; }\r\n\t\t\t\trs = null;\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\ttry { stmt.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tstmt = null;\r\n\t\t\t}\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry { conn.close(); } catch (SQLException e) { ; }\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean insertProject(Project project) throws EmployeeManagementException;", "@Test\n\tpublic void saveProjects() throws ParseException {\n\t\tproject.setEstimates(5);\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tDate parsed = format.parse(\"20110210\");\n\t\tjava.sql.Date sql = new java.sql.Date(parsed.getTime());\n\t\tproject.setdRequested(sql);\n\t\tproject.setdRequired(sql);\n\t\tproject.setCritical(true);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tProjectKeyContacts contacts = new ProjectKeyContacts();\n\t\tcontacts.setEmail(\"assdasd.gmail.com\");\n\t\tcontacts.setFname(\"sdsd\");\n\t\tcontacts.setLname(\"asdasd\");\n\t\tcontacts.setPhone(\"asd\");\n\t\tcontacts.setRole(\"asda\");\n\t\tcontacts.setTeam(\"saad\");\n\t\tproject.setContacts(contacts);\n\t\tProjectDetails det = new ProjectDetails();\n\t\tdet.setDescription(\"asdsd\");\n\t\tdet.setName(\"asd\");\n\t\tdet.setName(\"asdad\");\n\t\tdet.setSummary(\"asdd\");\n\t\tproject.setProjectDetails(det);\n\t\tproject.setType(\"DOCSMANAGE\");\n\t\tassertEquals(controller.saveProject(project).getStatusCode(), HttpStatus.CREATED);\n\t}", "public void createProject(Project newProject);", "@PostMapping\n public ResponseEntity<Project> createNewProject(@Valid @RequestBody Project project) {\n\n Project project1 = projectService.saveOrUpdateProject(project);\n return new ResponseEntity<Project>(project1, HttpStatus.CREATED);\n }", "@Override\n public void onClick(View view) {\n String projectName = etProjectName.getText().toString();\n String projectOwner = etProjectOwner.getText().toString();\n String projectDescription = etProjectDescription.getText().toString();\n long projectId = 0; // This is just to give some value. Not used when saving new project because auto-increment in DB for this value.\n\n\n // USerid and projectname are mandatory parameters\n if( userId != 0 && projectName != null) {\n newProject = new Project(projectId, userId, projectName, projectOwner, projectDescription);\n dbHelper.saveProject(newProject);\n// showToast(\"NewprojectId:\" + newProject.projectId+ \"-->UserId: \"+ userId + \"--> ProjectName\" + newProject.projectName +\"->Owner\"+newProject.projectOwner);\n dbHelper.close();\n\n // SIIRRYTÄÄN PROJEKTILISTAUKSEEN\n Intent newProjectList = new Intent( NewProject.this, ProjectListActivity.class);\n newProjectList.putExtra(\"userId\", userId);\n startActivity(newProjectList);\n }\n\n }", "private AppTProject populateAndSaveProjectDetails(Project project, boolean isNewProject) {\r\n\t\t// Project Details\r\n\t\tAppTProject appTProject = null;\r\n\t\tif (isNewProject) {\r\n\t\t\t// Creates a new Project Entity\r\n\t\t\tappTProject = new AppTProject();\r\n\t\t\tappTProject.setCreatedDate(new Date(System.currentTimeMillis()));\r\n\t\t} else {\r\n\t\t\t// Retrieves the existing Project Entity \r\n\t\t\tappTProject = projectRepository.getOne(project.getProjectId());\r\n\t\t\tappTProject.setModifiedDate(new Date(System.currentTimeMillis()));\r\n\t\t}\r\n\t\tappTProject.setProjectName(project.getProjectName());\r\n\t\tappTProject.setPriority(project.getPriority());\r\n\t\tappTProject.setStartDate(project.getStartDate());\r\n\t\tappTProject.setEndDate(project.getEndDate());\r\n\t\tappTProject.setActive(project.getActive());\r\n\t\tif (null != project.getUser()) {\r\n\t\t\tAppTUser appTUser = new AppTUser();\r\n\t\t\tBeanUtils.copyProperties(project.getUser(), appTUser);\r\n\t\t\tappTProject.setUser(appTUser);\r\n\t\t}\r\n\t\treturn projectRepository.save(appTProject);\r\n\t}", "int insert(Project record);", "@Override\n\tpublic int saveProject(Project project) \n\t\t\tthrows DuplicateKeyException, Exception {\n\t\ttry {\n\t\t\tint numObjectUpdated = saveDomainObject(project);\n\t\t\tif (numObjectUpdated == 0) {\n\t\t\t\tthrow new Exception(\"Fail to update the Project obejct\");\n\t\t\t}\n\t\t\treturn numObjectUpdated;\n\t\t}\n\t\tcatch (MustOverrideException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.saveProject MustOverrideException: \" + e.getMessage());\n\t\t\treturn -1;\n\t\t}\n\t\tcatch (DuplicateKeyException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.saveProject DuplicateKeyException: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.saveProject Exception: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "public void save();", "public void save();", "public void save();", "public void save();", "public void addNewProject(final String name) {\n Project p = new Project(name);\n ApplicationWideData.addNewProject(p);\n\n Callback<Response> responseCallback = new Callback<Response>() {\n @Override\n public void success(Response response, Response response2) {\n context.refreshLists();\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(\"RetrofitError\", \"Actions: AddNewProject: \"+error.getMessage());\n }\n };\n\n// boolean success = LocalDataSaver.addProject(p);\n// if (success) {\n// Toast.makeText(context, \"Successful adding of new project: \" + name + \" to local database\", Toast.LENGTH_LONG).show();\n// }\n if (!ApplicationWideData.getManualSync()) {\n service.addNewProject(p, userID, responseCallback);\n }\n else{\n LocalDataSaver.addNewSelectable(p, \"Project\");\n context.refreshLists();\n }\n LocalDataSaver.saveProject(p);\n Log.wtf(\"Added project\", \"to added table\");\n\n\n Log.wtf(\"Size of added table\", LocalDataRetriver.getAllAdded().size() + \"\");\n\n }", "@ApiMethod(\n \t\tname = \"createProject\", \n \t\tpath = \"createProject\", \n \t\thttpMethod = HttpMethod.POST)\n public Project createProject(final ProjectForm projectForm) {\n\n final Key<Project> projectKey = factory().allocateId(Project.class);\n final long projectId = projectKey.getId();\n final Queue queue = QueueFactory.getDefaultQueue();\n \n // Start transactions\n Project project = ofy().transact(new Work<Project>(){\n \t@Override\n \tpublic Project run(){\n \t\tProject project = new Project(projectId, projectForm);\n ofy().save().entities(project).now();\n \n return project;\n \t}\n }); \n return project;\n }", "@PostMapping(value = \"/project\", consumes = \"application/json\", produces = \"application/json\")\n public ResponseEntity<?> addNewProject(@Valid @RequestBody Project newProject) throws URISyntaxException\n {\n newProject.setProjectid(0);\n newProject = projectService.save(newProject);\n\n // set the location header for the newly created resource\n HttpHeaders responseHeaders = new HttpHeaders();\n URI newProjectURI = ServletUriComponentsBuilder.fromCurrentRequest()\n .path(\"/{projectid}\")\n .buildAndExpand(newProject.getProjectid())\n .toUri();\n responseHeaders.setLocation(newProjectURI);\n\n return new ResponseEntity<>(null, responseHeaders, HttpStatus.CREATED);\n }", "private void add_proj_DATABASE(Project project) {\n }", "private void setProject()\n\t{\n\t\tproject.setName(tf0.getValue().toString());\n \t\tproject.setDescription(tf8.getValue().toString());\n \t\tproject.setEndDate(df4.getValue());\n \t\tif (sf6.getValue().toString().equals(\"yes\"))project.setActive(true);\n \t\telse project.setActive(false);\n \t\tif (!tf7.getValue().toString().equals(\"\"))project.setBudget(Float.parseFloat(tf7.getValue().toString()));\n \t\telse project.setBudget(-1);\n \t\tproject.setNextDeadline(df5.getValue());\n \t\tproject.setStartDate(df3.getValue());\n \t\ttry \n \t\t{\n \t\t\t\tif (sf1.getValue()!=null)\n\t\t\t\tproject.setCustomerID(db.selectCustomerforName( sf1.getValue().toString()));\n\t\t}\n \t\tcatch (SQLException|java.lang.NullPointerException e) \n \t\t{\n \t\t\tErrorWindow wind = new ErrorWindow(e); \n \t UI.getCurrent().addWindow(wind);\t\t\n \t e.printStackTrace();\n\t\t\t}\n \t\tproject.setInserted_by(\"Grigoris\");\n \t\tproject.setModified_by(\"Grigoris\");\n \t\tproject.setRowversion(1);\n \t\tif (sf2.getValue()!=null)project.setProjectType(sf2.getValue().toString());\n \t\telse project.setProjectType(null);\n\t }", "@Override\n\tpublic void createProjects(Projects proj) {\n\t\tString sql = \"INSERT INTO projects VALUES (?,?,?,?,?,?,now(),now(),?)\";\n\t\t\n\t\tthis.getJdbcTemplate().update(sql, new Object[] { \n\t\t\t\tproj.getProj_id(),\n\t\t\t\tproj.getProj_name(),\n\t\t\t\tproj.getProj_desc(),\n\t\t\t\tproj.getFile_id(),\n\t\t\t\tproj.getCus_id(),\n\t\t\t\tproj.getCretd_usr(),\n\t\t\t\tproj.getProj_currency()\n\t\t});\n\t\t\n\t\tUserDetailsApp user = UserLoginDetail.getUser();\n\t\t\n\t\tCustomer cus = new Customer();\n\t\tcus = getJdbcTemplate().queryForObject(\"select * from customer where cus_id=\"+proj.getCus_id(), new BeanPropertyRowMapper<Customer>(Customer.class));\n\t\tString file_name = \"\";\n\t\tif(proj.getFile_id() != 0){\n\t\t\tFileModel myFile = new FileModel();\n\t\t\tmyFile = getJdbcTemplate().queryForObject(\"select * from file where file_id=\"+proj.getFile_id(), new BeanPropertyRowMapper<FileModel>(FileModel.class));\n\t\t\tfile_name = myFile.getFile_name();\n\t\t}\n\t\t\n\t\tString audit = \"INSERT INTO audit_logging (aud_id,parent_id,parent_object,commit_by,commit_date,commit_desc,parent_ref) VALUES (default,?,?,?,now(),?,?)\";\n\t\tthis.getJdbcTemplate().update(audit, new Object[]{\n\t\t\t\t\n\t\t\t\tproj.getProj_id(),\n\t\t\t\t\"Projects\",\n\t\t\t\tuser.getUserModel().getUsr_name(),\n\t\t\t\t\"Created row on Projects name=\"+proj.getProj_name()+\", desc=\"+proj.getProj_desc()+\", file_name=\"+file_name\n\t\t\t\t+\", customer=\"+cus.getCus_code()+\", proj_currency=\"+proj.getProj_currency(),\n\t\t\t\tproj.getProj_name()\n\t\t});\n\t}", "Project createProject();", "Project createProject();", "Project createProject();", "@Override\n\tpublic void save(Object o) {\n\t\tem.getTransaction().begin();\n\t\tem.persist((Projecttask) o);\n\t\tem.getTransaction().commit();\n\n\t}", "private boolean createProject() {\r\n ProjectOverviewerApplication app = (ProjectOverviewerApplication)getApplication();\r\n Projects projects = app.getProjects();\r\n String userHome = System.getProperty(\"user.home\");\r\n // master file for projects management\r\n File projectsFile = new File(userHome + \"/.hackystat/projectoverviewer/projects.xml\");\r\n \r\n // create new project and add it to the projects\r\n Project project = new Project();\r\n project.setProjectName(this.projectName);\r\n project.setOwner(this.ownerName);\r\n project.setPassword(this.password);\r\n project.setSvnUrl(this.svnUrl);\r\n for (Project existingProject : projects.getProject()) {\r\n if (existingProject.getProjectName().equalsIgnoreCase(this.projectName)) {\r\n return false;\r\n }\r\n }\r\n projects.getProject().add(project);\r\n \r\n try {\r\n // create the specific tm3 file and xml file for the new project\r\n File tm3File = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".tm3\");\r\n File xmlFile = new File(userHome + \r\n \"/.hackystat/projectoverviewer/\" + this.projectName + \".xml\");\r\n tm3File.createNewFile();\r\n \r\n // initialize the data for the file\r\n SensorDataCollector collector = new SensorDataCollector(app.getSensorBaseHost(), \r\n this.ownerName, \r\n this.password);\r\n collector.getRepository(this.svnUrl, this.projectName);\r\n collector.write(tm3File, xmlFile);\r\n } \r\n catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n // write the projects.xml file with the new project added\r\n String packageName = \"org.hackystat.iw.projectoverviewer.jaxb.projects\";\r\n return XmlConverter.objectToXml(projects, projectsFile, packageName);\r\n }", "public boolean save();", "public boolean updateProject(Project project);", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "@Override\n\tpublic Integer addProject(ProjectInfo project) {\n\t\treturn sqlSession.insert(\"cn.sep.samp2.project.addProject\", project);\n\t}", "@Override\n\tpublic void createProject(ProjectCreate project) {\n\t\tprojectDao.createProject(project);\n\t}", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "protected void saveProject(Project theProject)\n throws HttpPresentationException, webschedulePresentationException\n { \n\n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String personID = this.getComms().request.getParameter(PERSONID);\n String password = this.getComms().request.getParameter(PASSWORD);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n\nString contactname = this.getComms().request.getParameter(CONTACTNAME);\n\tString contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n\tString contactemail = this.getComms().request.getParameter(CONTACTEMAIL);\n\tString billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n\tString billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n\tString billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n\tString city = this.getComms().request.getParameter(CITY);\n\tString state = this.getComms().request.getParameter(STATE);\n\tString zip = this.getComms().request.getParameter(ZIP);\n\t//String accountid = this.getComms().request.getParameter(ACCOUNTID);\n\t//String isoutside = this.getComms().request.getParameter(OUTSIDE);\n\t//String exp = this.getComms().request.getParameter(EXP);\n\tString expday = this.getComms().request.getParameter(EXPDAY);\n\tString expmonth = this.getComms().request.getParameter(EXPMONTH);\n\tString expyear = this.getComms().request.getParameter(EXPYEAR);\n\t\n\tString iexpday = this.getComms().request.getParameter(IEXPDAY);\n\tString iexpmonth = this.getComms().request.getParameter(IEXPMONTH);\n\tString iexpyear = this.getComms().request.getParameter(IEXPYEAR);\n\t\n\tString notes = this.getComms().request.getParameter(NOTES);\n\n String irbnum = this.getComms().request.getParameter(IRBNUM);\n\n System.out.println(\" Notes off save module \"+ notes);\n\nString notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\n\njava.sql.Date moddatesql;\n //calculation for the time right now\n \tCalendar cancelinfo = Calendar.getInstance();\n \tint todaydate = cancelinfo.get(cancelinfo.DAY_OF_MONTH);\n \tint todaymonth = cancelinfo.get(cancelinfo.MONTH);\n\ttodaymonth= todaymonth+1;\n \tint todayyear = cancelinfo.get(cancelinfo.YEAR);\n\tString tempmod = todayyear+\"-\"+todaymonth+\"-\"+todaydate;\nmoddatesql=java.sql.Date.valueOf(tempmod);\n\njava.sql.Date iacucsql,didate;\n\nString tempiacuc = iexpyear+\"-\"+iexpmonth+\"-\"+iexpday;\niacucsql=java.sql.Date.valueOf(tempiacuc);\n//get old project information\n// Write to the modification file, format Date, Scanner, Who\n//Which project Header, Proj_name,Description, \n// Old project record\n//New project record\n\ndouble dthours;\n\n String dproj_name,dindex,dcname, dcphone, dfemail, dbilladdr1, dbilladdr3,dcity,dstate, dzip,dnemail;\nint dcode, dexpday, dexpmonth,dexpyear;\n\n\n//f.close(); \n try {\n dproj_name=theProject.getProj_name();\n \t dindex=theProject.getIndexnum();\n\t dthours=theProject.getTotalhours();\n\t dcode=theProject.getCodeofpay();\n\t dcname=theProject.getContactname();\n\t dcphone=theProject.getContactphone();\n\t dfemail=theProject.getFpemail();\n\t dbilladdr1=theProject.getBilladdr1();\n // theProject.setBilladdr2(theProject.getBilladdr2());\n dbilladdr3=theProject.getBilladdr3();\n \n dcity=theProject.getCity();\n dstate=theProject.getState();\n dzip=theProject.getZip();\n //theProject.setAccountid(theProject.getAccountid());\n dnemail=theProject.getNotifycontact();\n\t dexpday=theProject.getExpday();\n\t dexpmonth=\ttheProject.getExpmonth();\t\t\t \n\tdexpyear = theProject.getExpyear();\t\t\t\t \n\n\n\t \ndidate= theProject.getIACUCDate();\n\n } catch(Exception ex) {\n throw new webschedulePresentationException(\"Error adding project\", ex);\n } \n\n\n\nString s = \"\\n proj_name,TotalHours,SchEmail,Code,FCName,FCPhone,FCEmail,BillingAddress,Index,ExpDate,IRBDate\";\n\ntry {\nFileOutputStream f = new FileOutputStream (\"/home/emang/webschlog/projmodlog.txt\",true);\nfor (int i = 0; i < s.length(); ++i)\nf.write(s.charAt(i));\nString s2=\"\\n\"+dproj_name+\",\"+Double.toString(dthours)+\",\"+dnemail+\",\"+Integer.toString(dcode)+\",\"+dcname+\",\"+dcphone+\",\"+dfemail+\",\"+dbilladdr1+\" \"+dbilladdr3+\" \"+dcity+\" \"+dstate+\" \"+dzip+\",\"+dindex+\",\"+\",\";\nfor (int j = 0; j < s2.length(); ++j)\nf.write(s2.charAt(j));\nf.close();\n} catch (IOException ioe) {\n\tSystem.out.println(\"IO Exception\");\n\t}\n\t\n try {\n\tSystem.out.println(\" trying to saving a project one \"+ proj_name);\n theProject.setProj_name(proj_name);\n System.out.println(\" trying to saving a project one \"+ proj_name);\n theProject.setPassword( theProject.getPassword());\n\t theProject.setDescription(discrib);\n\t theProject.setIndexnum(indexnum);\n\t theProject.setTotalhours(Double.parseDouble(thours));\n\t theProject.setDonehours( theProject.getDonehours());\n theProject.setCodeofpay(Integer.parseInt(codeofpay));\n\t\n\t theProject.setContactname(contactname);\n\t theProject.setContactphone(contactphone);\n\t theProject.setFpemail(contactemail);\n\t theProject.setBilladdr1(billaddr1);\n theProject.setBilladdr2(theProject.getBilladdr2());\n\n theProject.setBilladdr3(billaddr3);\n theProject.setCity(city);\n theProject.setState(state);\n theProject.setZip(zip);\n theProject.setAccountid(theProject.getAccountid());\n theProject.setNotifycontact(notifycontact);\n\t theProject.setOutside(false);\n\t theProject.setExp(false);\n\t theProject.setInstitute(\"UCSD\");\n\t theProject.setNotes(notes);\ntheProject.setIRBnum(irbnum);\n\n//theProject.setCancredit(theProject.getCancredit());\n/*\t if(null != this.getComms().request.getParameter(OUTSIDE)) {\n \ttheProject.setOutside(true);\n \t } else {\n \ttheProject.setOutside(false);\n \t }\n if(null != this.getComms().request.getParameter(EXP)) {\n \ttheProject.setExp(true);\n \t } else {\n \ttheProject.setExp(false);\n\t\t\t \t }*/\n\t\t\t\t\t \n\t\t\t\t\t \ntheProject.setExpday(Integer.parseInt(expday));\ntheProject.setExpmonth(Integer.parseInt(expmonth));\ntheProject.setExpyear(Integer.parseInt(expyear));\n\n\t personID = theProject.getOwner().getHandle(); \n\t\ttheProject.setOwner(PersonFactory.findPersonByID(personID));\n\t\t\n//theProject.setOwner(theProject.getOwner());\n\n\ntheProject.setModDate(moddatesql);\n\ntheProject.setIACUCDate(iacucsql);\ntheProject.setModifiedby(this.getUser().getLastname());\n\n\n\nSystem.out.println(\" trying to saving a project two \"+ proj_name);\n\t theProject.save();\t\nSystem.out.println(\" trying to saving a project three \"+ proj_name);\n\t } catch(Exception ex) {\n throw new webschedulePresentationException(\"Error adding project\", ex);\n } \n }", "@Transactional\n public Long persist(ProjectDto project) {\n Objects.requireNonNull(project);\n Objects.requireNonNull(project.getName());\n if(project.getOrganizationId() == null) throw new EarException(\"Organization ID must be specified\");\n\n User user = userService.getSecurityUser();\n\n // name must not be empty\n if (project.getName().isEmpty()) throw new ValidationException(\"Name of the project can not be empty\");\n\n // project must not exist\n Project foundProject = dao.findByName(project.getName());\n if (foundProject != null) throw new AlreadyExistsException(\"Project with this name already exists\");\n\n Organization foundOrganization = organizationDao.find(project.getOrganizationId());\n if (foundOrganization == null) throw new AlreadyExistsException(\"Organization with this id doesnt exist\");\n\n if (!foundOrganization.isUserPM(user.getId())) {\n throw new ValidationException(\"Not enough rights\");\n }\n Project newProject = project.buildNewProject();\n newProject.setOrganization(foundOrganization);\n dao.persist(newProject);\n\n // Add user to project\n ProjectUser projectUser = new ProjectUser(user, newProject);\n projectUserDao.persist(projectUser);\n\n return newProject.getId();\n }", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public boolean addProject(Project p) {\n try {\n String insert = \"INSERT INTO PROJECTS\"\n + \"(CLIENT,DESCRIPTION,HOURS,STARTDATE,DUEDATE,INVOICESENT,CLIENT_ID,PROJECT_ID) \"\n + \"VALUES(?,?,?,?,?,?,?,PROJECTS_SEQ.NEXTVAL)\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(insert);\n ps.setString(1, p.getClientId());\n ps.setString(2, p.getDescription());\n ps.setString(3, p.getHours());\n ps.setString(4, p.getStartdate());\n ps.setString(5, p.getDuedate());\n ps.setString(6, p.getInvoicesent());\n ps.setString(7, p.getClientId());\n\n ps.executeUpdate();\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "@RequestMapping(value = \"/create/project/{projectId}\", method = RequestMethod.GET)\r\n public ModelAndView create(@PathVariable(\"projectId\") String projectId) {\r\n ModelAndView mav = new ModelAndView(\"creates2\");\r\n int pid = -1;\r\n try {\r\n pid = Integer.parseInt(projectId);\r\n } catch (Exception e) {\r\n LOG.error(e);\r\n }\r\n User loggedIn = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\r\n User user = hibernateTemplate.get(User.class, loggedIn.getUsername());\r\n Project project = hibernateTemplate.get(Project.class, pid);\r\n if (!dataAccessService.isProjectAvailableToUser(project, user)) {\r\n return accessdenied();\r\n }\r\n List<SubProject> subProjects = dataAccessService.getResearcherSubProjectsForUserInProject(user, project);\r\n mav.addObject(\"projectId\", projectId);\r\n mav.addObject(\"methods\", project.getMethods());\r\n mav.addObject(\"subProjects\", subProjects);\r\n return mav;\r\n }", "public int DSAddProject(String ProjectName, String ProjectLocation);", "@Override\r\n\tpublic int insertProject(Project p) throws MyException {\n\t\tlogger.debug(\"프로젝트 생성전no:\"+p.getProjectNo());\r\n\t\tint result=dao.insertProject(session, p);\r\n\t\tif(result==0) {\r\n\t\t\tthrow new MyException(\"프로젝트 삽입에러\");\r\n\t\t}\r\n\t\tlogger.debug(\"프로젝트 생성후no:\"+p.getProjectNo());\r\n\t\t\r\n\t\tp.setProjectNo(p.getProjectNo());\r\n\t\tresult=dao.insertProjectMember(session,p);\r\n\t\t\r\n\t\tif(result==0){\r\n\t\t\tthrow new MyException(\"프로젝트멤버 삽입에러\");\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private void saveResult() {\n\t\tBuild newBuild = assembleBuild();\n\t\t\n\t\t// last minute sanity checking on user's input before we write it to the database\n\t\tif (newBuild.getName() == null || newBuild.getName().matches(\"\")) {\n\t\t\t// TODO generate one automatically (Untitled Build #1...)\n\t\t\tshowMessage(R.string.edit_build_no_title_error);\n\t\t\treturn;\n\t\t}\n\t\tif (!newBuild.isWellOrdered()) {\n\t\t\tshowMessage(R.string.edit_build_not_well_ordered_error);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tlong buildId = -1;\n\t\tif (mCreatingNewBuild) {\n\t\t\t// set creation time\n\t\t\tDate now = new Date();\n\t\t\tnewBuild.setCreated(now);\n\t\t\tnewBuild.setModified(now);\n\t\t} else {\n\t\t\tif (userMadeChanges(newBuild)) {\n\t\t\t\t// set last modified time\n\t\t\t\tnewBuild.setModified(new Date());\t// current time\n\t\t\t\t\n\t\t\t\tbuildId = mBuildId;\n\t\t\t} else {\n\t\t\t\tfinish();\t// no changes made, just finish\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// finishes activity if successful\n\t\tnew WriteBuildTask(newBuild, buildId).execute();\n\t}", "@Override\n\tpublic int addProject(Project project) \n\t\t\tthrows DuplicateKeyException, Exception {\n\t\tif (project == null)\n\t\t\tthrow new Exception(\"Missing input project\");\n\t\ttry {\n\t\t\t// insert Project record\n\t\t\tint retId = addDomainObject(project);\n\t\t\tproject.setId(retId);\n\t\t\treturn retId;\n\t\t}\n\t\tcatch (MustOverrideException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.addProject MustOverrideException: \" + e.getMessage());\n\t\t\treturn -1;\n\t\t}\n\t\tcatch (DuplicateKeyException e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.addProject DuplicateKeyException: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"JdbcProjectDao.addProject Exception: \" + e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t}", "@PostMapping(\"/save/{email:.+}\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic @ResponseBody Project saveData(@PathVariable(\"email\") String email, \n\t\t\t@RequestBody Project project)\n\t{\n\t\tSystem.out.println(\"Received HTTP POST\");\n\t\tSystem.out.println(project);\n\t\tSystem.out.println(project.getProjectName());\n\t\tproject.setStatusId(1);\n\t\tUser user = userService.findUserByEmail(email);\n\t projectService.save(project);\n\t userService.saveProject(user, project);\n\t\treturn project;\n\t}", "void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }", "public Project insertProject(Project project, boolean isUndoOrRedo)\n\t\t\tthrows StorageException, ConstraintCheckingException {\n\t\ttry {\n\t\t\tContentValues projectValues = new ContentValues();\n\t\t\tprojectValues.put(\"_ID\", project.get_Id());\n\t\t\tprojectValues.put(\"NAME\", project.getName());\n\t\t\tprojectValues.put(\"DESCRIPTION\", project.getDescription());\n\t\t\tUri uri = contentResolver.insert(LocalStorageContentProvider.PROJECT_URI, projectValues);\n\t\t} catch (Exception e) {\n\t\t\tthrow new StorageException();\n\t\t}\n\t\tif (!isUndoOrRedo) {\n\t\t\tthis.getProjectInsertedList().add(project);\n\t\t}\n\t\treturn project;\n\t}", "private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Progress, progressBar);\n \ttask.set(Task.Attributes.Priority, priorityBox);\n \t\n \t// Save it to the database either as a new task or over an old task\n \tif (editmode) { app.dbman.editTask(id, task); }\n \telse { app.dbman.insertTask(task); }\n \t\n \t// A task has been added or changed, rescedule\n \tapp.schedule();\n \t\n \tapp.toaster(\"NEW / EDITED TASK\");\n \t\n \t// Quit the activity\n \tfinish();\n }", "public static Projects createEntity() {\n Projects projects = new Projects();\n projects = new Projects()\n .name(DEFAULT_NAME)\n .startDate(DEFAULT_START_DATE)\n .endDate(DEFAULT_END_DATE)\n .status(DEFAULT_STATUS);\n return projects;\n }", "private void saveProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showSaveDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the output streams\n\t\t\t\tFileOutputStream fileOutput = new FileOutputStream(file.getAbsolutePath());\n\t\t\t\tObjectOutputStream objectOutput = new ObjectOutputStream(fileOutput);\n\t\t\t\n\t\t\t\t// Write the objects\n\t\t\t\tfor(int i = 0; i < cards.size(); i++) {\n\t\t\t\t\tobjectOutput.writeObject(cards.get(i));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the output streams\n\t\t\t\tobjectOutput.close();\n\t\t\t\tfileOutput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the file name\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not save the file.\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void saveFile(boolean newFile) {\n\t\tif(projectFile == null || newFile)\n\t\t\tprojectFile = fileChooser.showSaveDialog(stage);\n\n\t\tif(projectFile != null){\n\t\t\t//Convert the synth object to JSON format\n\t\t\tString projectJson = gson.toJson(new Project(synth.getInstruments(), synth.getBPM(), synth.getVolume(), noteFrequencies), Project.class);\n\n\t\t\ttry {\n\t\t\t\tFiles.writeString(Path.of(projectFile.getAbsolutePath()), projectJson, StandardOpenOption.CREATE);\n\t\t\t} catch (IOException ignored) {}\n\t\t}\n\t}", "public Long createProject(ProjectTo projectTo) {\n\t\tprojectTo = new ProjectTo();\n\t\tprojectTo.setOrg_id(1L);\n\t\tprojectTo.setOrg_name(\"AP\");\n\t\tprojectTo.setName(\"Menlo\");\n\t\tprojectTo.setShort_name(\"Pioneer Towers\");\n\t\tprojectTo.setOwner_username(\"Madhapur\");\n\n\t\ttry {\n\t\t\tWebResource webResource = getJerseyClient(userOptixURL + \"CreateProject\");\n\t\t\tprojectTo = webResource.type(MediaType.APPLICATION_JSON).post(ProjectTo.class, projectTo);\n\t\t\tif(projectTo != null && projectTo.getProject_id() != null) {\n\t\t\t\treturn projectTo.getProject_id() ;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error in getting the response from REST call CreateProject : \"+e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "void save();", "void save();", "void save();", "int insert(UserOperateProject record);", "private IProject createNewProject() {\r\n\t\tif (newProject != null) {\r\n\t\t\treturn newProject;\r\n\t\t}\r\n\r\n\t\t// get a project handle\r\n\t\tfinal IProject newProjectHandle = mainPage.getProjectHandle();\r\n\r\n\t\t// get a project descriptor\r\n\t\tURI location = mainPage.getLocationURI();\r\n\r\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\r\n\t\tfinal IProjectDescription description = workspace.newProjectDescription(newProjectHandle.getName());\r\n\t\tdescription.setLocationURI(location);\r\n\r\n\t\tlog.info(\"Project name: \" + newProjectHandle.getName());\r\n\t\t//log.info(\"Location: \" + location.toString());\r\n\t\t\r\n\t\t// create the new project operation\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\tCreateProjectOperation op = new CreateProjectOperation(description, ResourceMessages.NewProject_windowTitle);\r\n\t\t\t\ttry {\r\n\t\t\t\t\top.execute(monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell()));\r\n\t\t\t\t} catch (ExecutionException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t// run the new project creation operation\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, true, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tlog.error(\"Project creation failed.\");\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tnewProject = newProjectHandle;\r\n\r\n\t\treturn newProject;\r\n\t}", "public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }", "public void createProject(\n String projectName,\n int teamId,\n String assigneeName,\n LocalDate deadline,\n String description,\n Project.Importance importance)\n throws NoSignedInUserException, SQLException, InexistentUserException,\n InexistentTeamException, DuplicateProjectNameException, InexistentDatabaseEntityException,\n EmptyFieldsException, InvalidDeadlineException {\n if (isMissingProjectData(projectName, assigneeName, deadline)) {\n throw new EmptyFieldsException();\n }\n User currentUser = getMandatoryCurrentUser();\n User assignee = getMandatoryUser(assigneeName);\n Team team = getMandatoryTeam(teamId);\n // check that there is no other project with the same name\n if (projectRepository.getProject(teamId, projectName).isPresent()) {\n throw new DuplicateProjectNameException(projectName, team.getName());\n }\n // check if the new deadline of project is outdated (before the current date)\n if (isOutdatedDate(deadline)) {\n throw new InvalidDeadlineException();\n }\n // save project\n Project.SavableProject project =\n new Project.SavableProject(\n projectName, teamId, deadline, currentUser.getId(), assignee.getId(), importance);\n project.setDescription(description);\n projectRepository.saveProject(project);\n support.firePropertyChange(\n ProjectChangeablePropertyName.CREATE_PROJECT.toString(), OLD_VALUE, NEW_VALUE);\n }", "public interface DAOProject {\n\n void create(Project project);\n boolean update (int projectId, Project project);\n Project read(int projectId);\n boolean delete(int projectId);\n\n}", "@PostMapping(\"/projects\")\n @Timed\n public ResponseEntity<ProjectDTO> createProject(@Valid @RequestBody ProjectDTO projectDto)\n throws URISyntaxException, NotAuthorizedException {\n log.debug(\"REST request to save Project : {}\", projectDto);\n var org = projectDto.getOrganization();\n if (org == null || org.getName() == null) {\n throw new BadRequestException(\"Organization must be provided\",\n ENTITY_NAME, ERR_VALIDATION);\n }\n checkPermissionOnOrganization(token, PROJECT_CREATE, org.getName());\n\n if (projectDto.getId() != null) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"idexists\", \"A new project cannot already have an ID\"))\n .body(null);\n }\n if (projectRepository.findOneWithEagerRelationshipsByName(projectDto.getProjectName())\n .isPresent()) {\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\n ENTITY_NAME, \"nameexists\", \"A project with this name already exists\"))\n .body(null);\n }\n ProjectDTO result = projectService.save(projectDto);\n return ResponseEntity.created(ResourceUriService.getUri(result))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getProjectName()))\n .body(result);\n }", "public void save() {\n }", "protected void saveProjectSite() {\r\n\t\tlog.debug(\"saveing project site\");\r\n\r\n\t\ttry {\r\n\r\n\t\t\tLocation curLocation = new Location(LocationServiceFactory.getLocationService().getLocation()), lastLocation = site.getLastLocation();\r\n\r\n\t\t\tif (lastLocation == null || (curLocation.getX() != lastLocation.getX() && curLocation.getY() != lastLocation.getY())) {\r\n\t\t\t\tsite.setLastLocation(curLocation);\r\n\r\n\t\t\t\tDao<Location, Integer> locDao = databaseHelper.getDao(Location.class);\r\n\r\n\t\t\t\tif (lastLocation != null) {\r\n\t\t\t\t\t// delete old location\r\n\t\t\t\t\tlocDao.delete(lastLocation);\r\n\t\t\t\t}\r\n\t\t\t\t// and create new one\r\n\t\t\t\tlocDao.create(curLocation);\r\n\r\n\t\t\t}\r\n\r\n\t\t\tfor (MultiTouchDrawable d : map.getSubDrawables()) {\r\n\r\n\t\t\t\tif (d instanceof AccessPointDrawable) {\r\n\t\t\t\t\tAccessPoint ap = ((AccessPointDrawable) d).getAccessPoint();\r\n\t\t\t\t\t// id is not 0, so this location was never saved\r\n\t\t\t\t\tif (!ap.isCalculated() && ap.getLocation() != null) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tdatabaseHelper.getDao(Location.class).create(ap.getLocation());\r\n\t\t\t\t\t\t\tdatabaseHelper.getDao(AccessPoint.class).update(ap);\r\n\t\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t\tlog.error(\"could not save location data for an ap: \" + ap.toString(), e);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tint changed = projectSiteDao.update(site);\r\n\r\n\t\t\tif (changed > 0) {\r\n\t\t\t\tToast.makeText(this, R.string.project_site_saved, Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\r\n\t\t\tprojectSiteDao.refresh(site);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlog.error(\"could not save or refresh project site\", e);\r\n\t\t\tToast.makeText(this, R.string.project_site_save_failed, Toast.LENGTH_LONG).show();\r\n\t\t}\r\n\r\n\t}", "public boolean addTask(Project p) {\n try {\n String update = \"INSERT INTO TASKS (PROJECT_ID,HOURS_ADDED,DESCRIPTION,HOURS) VALUES(?,?,?,?) \";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(update);\n ps.setString(1, p.getProjectId());\n ps.setString(2, p.getHoursadded());\n ps.setString(3, p.getDescription());\n ps.setString(4, p.getHours());\n\n ps.executeUpdate();\n\n ps.close();\n return true;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return false;\n }\n }", "private void saveToDb() {\r\n ContentValues values = new ContentValues();\r\n values.put(DbAdapter.KEY_DATE, mTime);\r\n if (mPayeeText != null && mPayeeText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_PAYEE, mPayeeText.getText().toString());\r\n if (mAmountText != null && mAmountText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_AMOUNT, mAmountText.getText().toString());\r\n if (mCategoryText != null && mCategoryText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_CATEGORY, mCategoryText.getText().toString());\r\n if (mMemoText != null && mMemoText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_MEMO, mMemoText.getText().toString());\r\n if (mTagText != null && mTagText.getText() != null)\r\n \tvalues.put(DbAdapter.KEY_TAG, mTagText.getText().toString());\r\n\r\n \tif (Utils.validate(values)) {\r\n \t\tmDbHelper.open();\r\n \t\tif (mRowId == null) {\r\n \t\t\tlong id = mDbHelper.create(values);\r\n \t\t\tif (id > 0) {\r\n \t\t\t\tmRowId = id;\r\n \t\t\t}\r\n \t\t} else {\r\n \t\t\tmDbHelper.update(mRowId, values);\r\n \t\t}\r\n \t\tmDbHelper.close();\r\n \t}\r\n\t}", "public void save() throws IOException {\r\n\t\tprojectDir.mkdirs();\r\n\t\tWriter writer = null;\r\n\t\ttry {\r\n\t\t\twriter = new FileWriter(new File(projectDir, TERN_PROJECT));\r\n\t\t\tsuper.writeJSONString(writer);\r\n\t\t} finally {\r\n\t\t\tif (writer != null) {\r\n\t\t\t\tIOUtils.closeQuietly(writer);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void save() {\n Saver.saveTeam(team);\n }", "public AddProject() {\n try\n {\n infDB = new InfDB(\"\\\\Users\\\\Oliver\\\\Documents\\\\Skola\\\\Mini_sup\\\\Realisering\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n \n try\n {\n infDB = new InfDB(\"C:\\\\Users\\\\TP300LA-C4034\\\\Desktop\\\\Delkurs 4, Lill-supen\\\\InformatikDB\\\\MICEDB.FDB\");\n System.out.println(\"Uppkopplingen lyckades\");\n }\n catch(InfException e)\n {\n System.out.println(e.getMessage());\n }\n getPlatforms();\n initComponents();\n setLocationRelativeTo(null);\n \n }", "private void saveProject() {\n File f = new File(getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS), projectName + File.separator + \"render.cfg\");\n\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"frames\", frames);\n json.put(\"a\", a);\n json.put(\"b\", b);\n json.put(\"P\", P);\n } catch (JSONException e) {\n Log.v(\"RenderSettings\", \"saveProject failed with a JSON Exception: \" + e.getMessage());\n }\n\n try (FileWriter file = new FileWriter(f)) {\n file.write(json.toString());\n } catch (IOException e) {\n Log.v(\"RenderSettings\", \"saveProject failed with a IO Exception: \" + e.getMessage());\n }\n }", "@Override\r\n\tpublic Project updateProjectById(Project projectId) {\n\t\treturn projectDAO.updateProjectById(projectId);\r\n\t}", "private static void add_project() {\r\n\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\t//List of building types\r\n\t\t\tString[] building_types = new String[] {\"House\", \"Apartment Block\", \"Commercial Property\", \"Industrial Property\", \"Agricultural Building\"};\r\n\t\t\t\r\n\t\t\t// Variables that are needed\r\n\t\t\tint project_id = 0;\r\n\t\t\tString project_name = \"\";\r\n\t\t\tString building_type = \"\";\r\n\t\t\tString physical_address = \"\";\r\n\t\t\tint erf_num = 0;\r\n\t\t\tString cust_surname = \"\";\r\n\t\t\tDate deadline_date = null;\r\n\t\t\tint charged = 0;\r\n\t\t\t\r\n\t\t\t// Allows for user input\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\t\r\n\t\t\t//So first we need to select the correct customer\r\n\t\t\tString strSelect = \"SELECT * FROM people WHERE type = 'Customer'\";\r\n\t\t\tResultSet rset = stmt . executeQuery ( strSelect );\r\n\t\t\t\r\n\t\t\t// Loops through available customers from the people table so that the user can select one\r\n\t\t\tSystem.out.println(\"\\nSelect a customer for the project by typing the customers number.\");\r\n\t\t\t// This creates a list of customer ids to check that the user only selects an available one\r\n\t\t\tArrayList<Integer> cust_id_list = new ArrayList<Integer>(); \r\n\t\t\twhile (rset.next()) {\r\n\t\t\t\tSystem.out.println ( \r\n\t\t\t\t\t\t\"Customer Num: \" + rset.getInt(\"person_id\") + \", Fullname: \" + rset.getString(\"name\") + \" \" + rset.getString(\"surname\"));\r\n\t\t\t\tcust_id_list.add(rset.getInt(\"person_id\"));\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a customer\r\n\t\t\tBoolean select_cust = true;\r\n\t\t\tint customer_id = 0;\r\n\t\t\twhile (select_cust == true) {\r\n\t\t\t\tSystem.out.println(\"Customer No: \");\r\n\t\t\t\tString customer_id_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcustomer_id = Integer.parseInt(customer_id_str);\r\n\t\t\t\t\tfor (int i = 0; i < cust_id_list.size(); i ++) {\r\n\t\t\t\t\t\tif (customer_id == cust_id_list.get(i)) { \r\n\t\t\t\t\t\t\tselect_cust = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (select_cust == true) {\r\n\t\t\t\t\t\tSystem.out.println(\"Please only select an available customer id.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for customer id is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The customer number cannot contain letters or symbols. Please try again\");\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// Prints out all available building types form the building type list\r\n\t\t\tSystem.out.print(\"Select a building type by typing the number: \\n\");\r\n\t\t\tfor (int i=0; i < 5; i ++) {\r\n\t\t\t\tSystem.out.println((i + 1) + \": \" + building_types[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to select a building type\r\n\t\t\tBoolean select_building = true;\r\n\t\t\tint building_index = 0;\r\n\t\t\twhile (select_building == true) {\r\n\t\t\t\tSystem.out.println(\"Building type no: \");\r\n\t\t\t\tString building_type_select_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbuilding_index = Integer.parseInt(building_type_select_str) - 1;\r\n\t\t\t\t\tbuilding_type = building_types[building_index];\r\n\t\t\t\t\tselect_building = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for building type is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The building type number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// User gets to decide whether they want an automatically generated name.\r\n\t\t\tBoolean select_project_name = true;\r\n\t\t\twhile (select_project_name == true) {\r\n\t\t\t\tSystem.out.println(\"Would you like to have the project automatically named (y or n)?\");\r\n\t\t\t\tString customer_project_name_choice = input.nextLine();\r\n\t\t\t\tif (customer_project_name_choice.equals(\"y\")){\r\n\t\t\t\t\t// Gets the customers surname for the project name\r\n\t\t\t\t\tString strSelectCustSurname = String.format(\"SELECT surname FROM people WHERE person_id = '%s'\", customer_id);\r\n\t\t\t\t\tResultSet cust_surname_rset = stmt . executeQuery ( strSelectCustSurname );\r\n\t\t\t\t\twhile (cust_surname_rset.next()) {\r\n\t\t\t\t\t\tcust_surname = cust_surname_rset.getString(\"surname\");\r\n\t\t\t\t\t\tproject_name = building_type + \" \" + cust_surname;\r\n\t\t\t\t\t\tSystem.out.println(\"Project name: \" + project_name);\r\n\t\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (customer_project_name_choice.equals(\"n\")) {\r\n\t\t\t\t\tSystem.out.println(\"Provide project name: \");\r\n\t\t\t\t\tproject_name = input.nextLine();\r\n\t\t\t\t\tselect_project_name = false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!customer_project_name_choice.equals(\"y\") && !customer_project_name_choice.equals(\"n\")){\r\n\t\t\t\t\tSystem.out.println(\"You can only select either y or n. Please try again\");\r\n\t\t\t\t\tselect_project_name = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter an erf number\r\n\t\t\tBoolean select_erf_num = true;\r\n\t\t\twhile (select_erf_num == true) {\r\n\t\t\t\tSystem.out.print(\"ERF number: \");\r\n\t\t\t\tString erf_num_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\terf_num = Integer.parseInt(erf_num_str);\r\n\t\t\t\t\tselect_erf_num = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for erf number is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The erf number cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a physical address\r\n\t\t\tSystem.out.print(\"Physical Address: \");\r\n\t\t\tphysical_address = input.nextLine();\r\n\t\t\t\r\n\t\t\t// Allows the user to enter a date\r\n\t\t\tBoolean select_deadline_date = true;\r\n\t\t\twhile (select_deadline_date == true) {\r\n\t\t\t\tSystem.out.print(\"Deadline Date (YYYY-MM-DD): \");\r\n\t\t\t\tString deadline_date_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdeadline_date= Date.valueOf(deadline_date_str);\r\n\t\t\t\t\tselect_deadline_date = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for deadline date is not in the correct format\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The date must be in the format YYYY-MM-DD (eg. 2013-01-13). Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This allows the user to enter a charged amount \r\n\t\t\tBoolean select_charged = true;\r\n\t\t\twhile (select_charged == true) {\r\n\t\t\t\tSystem.out.print(\"Total Cost: R \");\r\n\t\t\t\tString charged_str = input.nextLine();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcharged = Integer.parseInt(charged_str);\r\n\t\t\t\t\tselect_charged = false;\r\n\t\t\t\t}\r\n\t\t\t\t/**\r\n\t\t\t\t * @exception Throws exception if the users input for the charged amount is not a number\r\n\t\t\t\t */\r\n\t\t\t\tcatch(Exception e) {\r\n\t\t\t\t\t System.out.println(\"The charged amount cannot contain letters or symbols. Please try again\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the projects table\r\n PreparedStatement ps = conn.prepareStatement(\"INSERT INTO projects (project_name , building_type, physical_address, erf_num) VALUES(?,?,?,?)\");\r\n ps.setString(1, project_name);\r\n ps.setString(2, building_type);\r\n ps.setString(3, physical_address);\r\n ps.setInt(4, erf_num);\r\n \r\n // Executes the statement\r\n ps.executeUpdate();\r\n \r\n // This gets the created project's table id to use to update the people and project_statuses tables \r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects WHERE project_name = '%s'\", project_name);\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_rset.next()) {\r\n\t\t\t\tproject_id = project_rset.getInt(\"project_id\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// This adds all the values to a prepared statement to update the people table\r\n\t\t\tPreparedStatement ps_customer = conn.prepareStatement(\r\n\t\t\t\t\t\"UPDATE people SET projects = ? WHERE person_id = ?;\");\r\n\t\t\tps_customer.setInt(1, project_id);\r\n\t\t\tps_customer.setInt(2, customer_id);\r\n\t\t\tps_customer.executeUpdate();\r\n \r\n\t\t\t// This adds all the values to a prepared statement to update the project_statuses table\r\n PreparedStatement ps_status = conn.prepareStatement(\"INSERT INTO project_statuses (charged , deadline_date, project_id) VALUES(?,?,?)\");\r\n ps_status.setInt(1, charged);\r\n ps_status.setDate(2, deadline_date);\r\n ps_status.setInt(3, project_id);\r\n ps_status.executeUpdate();\r\n\r\n // Once everything has been added to the tables the project that has been added gets printed out\r\n\t\t\tResultSet project_added_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\twhile (project_added_rset.next()){\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"\\nProjects Added: \\n\" +\r\n\t\t\t\t\t\t\"Project Sys ID: \" + project_added_rset.getInt(\"project_id\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Project Name: \" + project_added_rset.getString(\"project_name\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Building Type: \" + project_added_rset.getString(\"building_type\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Physical Address: \" + project_added_rset.getString(\"physical_address\") + \"\\n\"\r\n\t\t\t\t\t\t+ \"Erf Number: \" + project_added_rset.getInt(\"erf_num\") + \"\\n\");\r\n\t\t\t}\r\n\t\t/**\r\n\t\t * @exception If any of the table entries cannot be created due to database constrains then the SQLException is thrown\r\n\t\t */\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "public void addProj() {\n\t\tbtnAdd.click();\n\t}", "public boolean projectSet(String name, String q1, String q2, String q3){\n\tString projectSet = \"insert into projects values(?, ?, ?, ?)\";\n\tPreparedStatement pSet = null;\n\ttry{\n\t\tpSet = conn.prepareStatement(projectSet);\n\t\tpSet.setString(1, name);\n\t\tpSet.setString(2, q1);\n\t\tpSet.setString(3, q2);\n\t\tpSet.setString(4, q3);\n\t\tif(pSet.executeUpdate() ==1){\n\t\t\treturn true;\n\t\t}\n\t}catch (SQLException e){\n\t\tSystem.out.println(e.getMessage());\n\t\treturn false;\n\t}\n\treturn false;\n\t}", "int insert(CliStaffProject record);", "public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}", "Project findProjectById(String projectId);", "public void createDB(){\r\n\t\t\r\n\t\t Connection connection = null;\r\n\t try\r\n\t {\r\n\t // create a database connection\r\n\t connection = DriverManager.getConnection(\"jdbc:sqlite:project.sqlite\");\r\n\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\r\n\t statement.executeUpdate(\"drop table if exists task\");\r\n\t statement.executeUpdate(\"create table task (taskId integer primary key asc, description string, status string, createDate datetime default current_timestamp)\");\r\n\t statement.executeUpdate(\"insert into task values(1, 'leo', 'Active', null)\");\r\n\t statement.executeUpdate(\"insert into task values(2, 'yui', 'Complete', null)\");\r\n\t }\r\n\t catch(SQLException ex){\r\n\t \tthrow new RuntimeException(ex);\r\n\t }\r\n\t\t\r\n\t}", "public void newProjectAction() throws IOException {\n\t\tfinal FXMLSpringLoader loader = new FXMLSpringLoader(appContext);\n\t\tfinal Dialog<Project> dialog = loader.load(\"classpath:view/Home_NewProjectDialog.fxml\");\n\t\tdialog.initOwner(newProject.getScene().getWindow());\n\t\tfinal Optional<Project> result = dialog.showAndWait();\n\t\tif (result.isPresent()) {\n\t\t\tlogger.trace(\"dialog 'new project' result: {}\", result::get);\n\t\t\tprojectsObservable.add(result.get());\n\t\t}\n\t}", "public interface ProjectDAO {\n Project insert(Project project);\n void delete(Project project);\n Project findById(int id);\n List<Project> findByUserId(int id);\n}", "public Participacao createParticipacao(Participacao model) {\n return participacaoRepository.save(model);\n}", "private void save() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null) ) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.insert(nama_pasien2,\n nama_dokter2,\n tgl_pengobatanField.getText().toString().trim(),\n waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),\n hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }", "@Test\r\n\tpublic void saveTeamProgram() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamProgram \r\n\t\tInteger teamId_1 = 0;\r\n\t\tProgram related_program = new wsdm.domain.Program();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamProgram(teamId_1, related_program);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamProgram\r\n\t}", "int modifyProject(Project project) throws WrongIDException, WrongDurationException;", "Product save(Product product);", "@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}", "public void saveStudyLanguage(StudyLanguage studyLanguage) {\r\n\t\tQuery query = getSession()\r\n\t\t\t\t.createSQLQuery(\"INSERT INTO study_language (id_project, id_language) VALUES (:valor1, :valor2)\");\r\n\t\tquery.setParameter(\"valor1\", studyLanguage.getProject().getIdProject());\r\n\t\tquery.setParameter(\"valor2\", studyLanguage.getLanguage().getIdLanguage());\r\n\t\tquery.executeUpdate();\r\n\r\n\t}", "@RequestMapping(value = \"/hrProjectInfos\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<HrProjectInfo> createHrProjectInfo(@Valid @RequestBody HrProjectInfo hrProjectInfo) throws URISyntaxException {\n log.debug(\"REST request to save HrProjectInfo : {}\", hrProjectInfo);\n if (hrProjectInfo.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"hrProjectInfo\", \"idexists\", \"A new hrProjectInfo cannot already have an ID\")).body(null);\n }\n HrProjectInfo result = hrProjectInfoRepository.save(hrProjectInfo);\n hrProjectInfoSearchRepository.save(result);\n return ResponseEntity.created(new URI(\"/api/hrProjectInfos/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"hrProjectInfo\", result.getId().toString()))\n .body(result);\n }", "public void addProject(){\n AlertDialog.Builder projectBuilder = new AlertDialog.Builder(mainActivity);\n projectBuilder.setTitle(\"New Project Name:\");\n\n final EditText projectNameInput = new EditText(mainActivity);\n\n projectNameInput.setInputType(InputType.TYPE_TEXT_FLAG_CAP_WORDS);\n projectBuilder.setView(projectNameInput);\n\n projectBuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String projectName = projectNameInput.getText().toString();\n projectList.add(projectName);\n\n HashSet<String> projectListSet = new HashSet<>(projectList);\n\n SharedPreferences.Editor listPrefsEditor = projectListPrefs.edit();\n listPrefsEditor.putStringSet(\"projectList\", projectListSet);\n listPrefsEditor.apply();\n\n mainActivity.codeStopwatch.pause();\n mainActivity.researchStopwatch.pause();\n final Button codingButton = mainActivity.findViewById(R.id.btn_coding_start);\n codingButton.setText(R.string.start);\n final Button researchButton = mainActivity.findViewById(R.id.btn_research_start);\n researchButton.setText(R.string.start);\n\n if (!selectedProjectName.equals(\"\")){\n mainActivity.manageClocks.saveClocks(selectedProjectName);\n }\n mainActivity.codeStopwatch.reset();\n mainActivity.researchStopwatch.reset();\n\n mainActivity.manageClocks.saveClocks(projectName);\n mainActivity.manageClocks.loadClocks(projectName);\n\n Spinner projectsSpinner = mainActivity.findViewById(R.id.projects_spinner);\n ArrayAdapter<String> projectsArrayAdapter = new ArrayAdapter<String>(\n mainActivity, android.R.layout.simple_spinner_item, projectList);\n projectsArrayAdapter.setDropDownViewResource(\n android.R.layout.simple_spinner_dropdown_item);\n projectsSpinner.setAdapter(projectsArrayAdapter);\n projectsSpinner.setSelection(projectsArrayAdapter.getPosition(projectName));\n\n selectedProjectName = projectName;\n SharedPreferences.Editor selectedProjectPrefsEditor = selectedProjectPrefs.edit();\n selectedProjectPrefsEditor.putString(\"selectedProjectName\", selectedProjectName);\n selectedProjectPrefsEditor.apply();\n }\n });\n projectBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n projectBuilder.show();\n }", "public void create(Connection conn, Object object) \r\n\t\tthrows DAOException {\r\n\r\n\t\tif (!(object instanceof ProjectInfo))\r\n\t\t\tthrow new DAOException (\"invalid.object.projdao\",\r\n\t\t\t\t\tnull, DAOException.ERROR, true);\r\n\t\t\t\r\n\t\t\r\n\t\tString sqlstmt = DAOConstants.PROJ_CREATE;\r\n\t\tProjectInfo project = (ProjectInfo) object;\r\n\r\n\t\tif(project.getProjectId() == null)\r\n\t\t\tthrow new DAOException (\"invalid.object.projdao\",\r\n\t\t\t\t\tnull, DAOException.ERROR, true);\r\n\t\t\t\r\n\t\t\t\r\n\t\tlog.debug(\"creating ProjectInfo entry\");\r\n\t\ttry{\r\n\t\t\tif (conn == null || conn.isClosed())\r\n\t\t\t\tconn = dbAccess.getConnection();\r\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sqlstmt);\r\n\t\t\tProjectAssembler.getPreparedStatement(project, stmt);\r\n\t\t\tstmt.executeUpdate();\r\n\t\t\tlog.debug(\"created ProjectInfo entry\");\r\n\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new DAOException (\"sql.create.exception.projdao\",\r\n\t\t\te, DAOException.ERROR, true);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new DAOException (\"create.exception.projdao\",\r\n\t\t\te.getCause(), DAOException.ERROR, true);\r\n \r\n\t\t} \r\n\t}", "@Test\n @org.junit.Ignore\n public void testProject_1()\n throws Exception {\n\n Project result = new Project();\n\n assertNotNull(result);\n assertEquals(null, result.getName());\n assertEquals(null, result.getWorkloadNames());\n assertEquals(null, result.getProductName());\n assertEquals(null, result.getComments());\n assertEquals(null, result.getCreator());\n assertEquals(0, result.getId());\n assertEquals(null, result.getModified());\n assertEquals(null, result.getCreated());\n }", "public void save() throws EntityPersistenceException {\n\n }", "public void insertEmpProject(String projectID, String employeeId) {\n\t\tString query=\"INSERT INTO TA_EMPLOYEE_PROJECT(PROJECT_ID,EMPLOYEE_ID) VALUES('\" + projectID + \"','\" + employeeId +\"')\";\r\n\t\tjdbcTemplate.update(query);\r\n\t}", "public boolean save(Product product);", "public static Project createProject() throws ParseException {\n System.out.println(\"Please enter the project number: \");\n int projNum = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the project name: \");\n String projName = input.nextLine();\n\n System.out.println(\"Please enter the type of building: \");\n String buildingType = input.nextLine();\n\n System.out.println(\"Please enter the physical address for the project: \");\n String address = input.nextLine();\n\n System.out.println(\"Please enter the ERF number: \");\n String erfNum = input.nextLine();\n\n System.out.println(\"Please enter the total fee for the project: \");\n int totalFee = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the total amount paid to date: \");\n int amountPaid = input.nextInt();\n input.nextLine();\n\n System.out.println(\"Please enter the deadline for the project (dd/MM/yyyy): \");\n String sdeadline = input.nextLine();\n Date deadline = dateformat.parse(sdeadline);\n\n Person architect = createPerson(\"architect\", input);\n Person contractor = createPerson(\"contractor\", input);\n Person client = createPerson(\"client\", input);\n\n // If the user did not enter a name for the project, then the program will\n // concatenate the building type and the client's surname as the new project\n // name.\n\n if (projName == \"\") {\n String[] clientname = client.name.split(\" \");\n String lastname = clientname[clientname.length - 1];\n projName = buildingType + \" \" + lastname;\n }\n\n return new Project(projNum, projName, buildingType, address, erfNum, totalFee, amountPaid, deadline, contractor,\n architect, client);\n\n }", "@PostMapping(\"/project\")\n public Object doPost(@RequestBody ProjectLongId[] projectsLongId) throws PrimaryKeyViolationException, NoSuchFieldException, RequiredFieldMissingException {\n service.createAllProjects(projectsLongId);\n return new ResponseTemplate(true, null);\n }", "@Override\n\tpublic void run(String... args) throws Exception {\n\n\t\tiProjectService.save(new Project(1L, \"Training Allocation to New Joinees\", \n\t\t\t\tLocalDate.of(2021, Month.JANUARY, 25)));\n\t\t\n\t\tiProjectService.save(new Project(2L, \"Machine Allocations and Transport\", \n\t\t\t\tLocalDate.of(2021, Month.JANUARY, 10)));\n\t\t\n\t\tOptional<Project> optional = iProjectService.findById(1L);\n\t\t\n\t\t if(optional.isPresent()) {\n\t\t\t Project project = optional.get();\n\t\t\t System.out.println(\"Project Details - \" + project.getId() + \" \" + project.getName());\n\t \t \n\t\t }\n\n\t}", "public String handleAdd() \n throws HttpPresentationException, webschedulePresentationException\n { \n\t try {\n\t Project project = new Project();\n saveProject(project);\n throw new ClientPageRedirectException(PROJECT_ADMIN_PAGE);\n\t } catch(Exception ex) {\n return showAddPage(\"You must fill out all fields to add this project\");\n }\n }", "public CreateProject() {\n\t\tsuper();\n\t}", "LectureProject createLectureProject();", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "public void onSaveButtonClicked() {\n String description = mEditText.getText().toString();\n Date date = new Date();\n\n final DiaryEntry entry = new DiaryEntry(description, date);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n if (mEntryId == DEFAULT_ENTRY_ID) {\n // insert new task\n mDb.entryDao().insertEntry(entry);\n } else {\n //update task\n entry.setId(mEntryId);\n mDb.entryDao().updateEntry(entry);\n }\n finish();\n }\n });\n }" ]
[ "0.76566976", "0.73723423", "0.73622715", "0.7200788", "0.7126367", "0.7021382", "0.6822222", "0.6789324", "0.677932", "0.67360115", "0.65250266", "0.6474642", "0.6459506", "0.6418917", "0.6418917", "0.6418917", "0.6418917", "0.640616", "0.63802755", "0.6346262", "0.6289316", "0.6280683", "0.6251624", "0.6248428", "0.6248428", "0.6248428", "0.62287086", "0.6195745", "0.6191356", "0.6186831", "0.6180888", "0.61767876", "0.61721045", "0.6137397", "0.6128503", "0.61251044", "0.6113029", "0.6107926", "0.6105291", "0.60945386", "0.60506207", "0.60446745", "0.595073", "0.59487617", "0.5931515", "0.5904529", "0.5887892", "0.58714545", "0.58600175", "0.5847803", "0.58379257", "0.5837234", "0.5837234", "0.5837234", "0.5833311", "0.5820244", "0.5815222", "0.58081484", "0.5805077", "0.5785797", "0.57828975", "0.5754696", "0.5754256", "0.5745439", "0.5744056", "0.5709101", "0.57061917", "0.56978214", "0.5692076", "0.568808", "0.56807506", "0.56786144", "0.56669915", "0.56529105", "0.5633489", "0.562874", "0.5624784", "0.5623354", "0.56204396", "0.5604181", "0.56023175", "0.5558387", "0.5556826", "0.5553634", "0.55467826", "0.5541859", "0.5534327", "0.5530095", "0.55224156", "0.55173707", "0.5512879", "0.5511282", "0.5507788", "0.5503784", "0.54993063", "0.549711", "0.5491524", "0.5488272", "0.5486104", "0.54757905" ]
0.6205644
27
TODO Autogenerated method stub
@Override public void simpleOperation() { System.out.println("I'm building house"); }
{ "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
name is temporary. "keys" is unavailable.
Iterable<K> inputs();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n List<String> keys();", "StringList keys();", "public void setKeys(String keys) {\r\n this.keys = keys;\r\n }", "List<String> getKeys();", "public abstract List<String> getAllKeys();", "public abstract Enumeration keys();", "public Enumeration<Object> keys ();", "@VisibleForTesting\n List<Object> getKeysForTest() {\n return keys;\n }", "public String[] getKeys() {\n\t\treturn _keys;\n\t}", "public String getKeys() {\r\n return keys;\r\n }", "public Iterable<String> keys()\r\n { return keysWithPrefix(\"\"); }", "String[] supportedKeys();", "public Iterator<Key> keys() ;", "public List<String> keys()\n {\n return new ArrayList<String>(keys);\n }", "public List<String> getKeys(){\n return Collections.unmodifiableList(keys);\n }", "@Override\n\t\t\tpublic Set<String> getKeys() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\r\n\t\t\t\t\t\tpublic Enumeration<String> getKeys() {\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}", "@Test\n\tpublic void getMyKeyNames() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tks.createNewMyKeyPair(\"never\");\n\t\tks.createNewMyKeyPair(\"gonna\");\n\t\tks.createNewMyKeyPair(\"give\");\n\t\tks.createNewMyKeyPair(\"you\");\n\t\tks.createNewMyKeyPair(\"up\");\n\t\tSet<String> names = ks.getMyKeyNames();\n\t\tassertTrue(\"incorrect number of names\", names.size() == 5);\n\t\tassertTrue(\"should contain name\", names.contains(\"never\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"gonna\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"give\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"you\"));\n\t\tassertTrue(\"should contain name\", names.contains(\"up\"));\n\t}", "protected Enumeration<String> handleGetKeys()\n/* */ {\n/* 1467 */ return Collections.enumeration(handleKeySet());\n/* */ }", "public KeySet getKeys();", "public List<K> keys();", "Set<String> getKeys();", "public Iterable<String> keys() { return keysWithPrefix(\"\"); }", "private List<String> putKeysInList() {\n List<String> stringList = new LinkedList<>();\n for (String node : registeredNodes.keySet()) {\n stringList.add(node);\n }\n return stringList;\n }", "@ZenCodeType.Method\n @ZenCodeType.Getter(\"keys\")\n default Set<String> getKeys() {\n \n return doesNot(\"is not indexable by keys\");\n }", "public Iterable<Key> keys();", "public Iterable<Key> keys();", "void keys() {\n for (int i = 0; i < size; i++) {\n System.out.println(keys[i] + \" \" + values[i]);\n }\n }", "@Override\n\tpublic Iterable<K> keys() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Enumeration<String> getKeys() {\n\t\treturn null;\n\t}", "public Object getKey() { return name; }", "private Set<String> getKeys() {\n return bookDB.keySet();\n }", "public String[] fetchAllKeys();", "public ArrayList getKeys() {\r\n return this.keys;\r\n }", "String[] getPropertyKeys();", "default Set<String> getSubkeys() {\n return Collections.emptySet();\n }", "static String[] getKey() {\n return key;\n }", "public List<NeonKey> getKeys();", "public Set keyNames() {\n return new LinkedHashSet<>( asList( idName() ) );\n }", "@Override\n public Set<K> keySet() {\n return keys;\n }", "public final Enumeration getKeys() {\n/* 130 */ return getBundle().getKeys();\n/* */ }", "public ABLKeys Keys() {\r\n\t\treturn new ABLKeys(BrickFinder.getDefault().getKeys());\r\n\t}", "public K[] getKeys() {\n return keys.clone();\n }", "public IIterator getKeys()\r\n {\r\n return new VectorIterator(m_keys);\r\n }", "Map<String, String> getKeys(GetKeysOptions opts) throws P4JavaException;", "@Override\n\tpublic Set<String> keySet() {\n\t\treturn null;\n\t}", "protected Object getKeyArray()\n/* */ {\n/* 91 */ return this.m_keyTable;\n/* */ }", "public KeyPeg[] getKeys() {\n return this.keys;\n }", "ApiKeys listKeys();", "public List<String> getKeys()\n\t{\n\t\treturn new ArrayList<>(pairs.keySet());\n\t}", "public Iterable<K> keys();", "public interface Keys {\n\n String PUBLIC_REPOS = \"repos\";\n String USER = \"user\";\n String ID = \"id\";\n}", "public Set<String> keySet() {\r\n return keys.keySet();\r\n }", "@Override\n\tpublic Set<K> keySet() {\n\t\treturn keys;\n\t}", "public Set<Object> getKeysByServerName(String name) {\n Server server = serverMap.get(name);\n if(server == null) {\n return null;\n }\n Set<Object> keys = new HashSet<Object>();\n Set<Integer> nodes = server.getNodes();\n for(Integer nodeHash : nodes) {\n keys.addAll(nodesMap.get(nodeHash).getEntrySet());\n }\n return keys;\n }", "Set<K> keys();", "public boolean hasKeys();", "Integer[] getKeys();", "public K[] keys(){\n\t\tK[] output = (K[]) new Object[howMany];\n\t\tint j = 0;\n\t\tfor (int i = 0; keys.length > i; i++)\n\t\t\tif (keys[i] != null){\n\t\t\t\toutput[j] = keys[i];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\treturn output;\n\t}", "public String[] getKeyNames() \n {\n DBField f[] = this.getKeyFields();\n String kn[] = new String[f.length];\n for (int i = 0; i < f.length; i++) {\n kn[i] = f[i].getName();\n }\n return kn;\n }", "public Iterator<K> keys();", "public Iterator<K> keys();", "public Set<Key<?>> keysForTest() {\n return Collections.unmodifiableSet(this.data.keySet());\n }", "public List<KeyInner> keys() {\n return this.keys;\n }", "public Enumeration getKeys() {\n // Not yet implemented -sorta\n return m_sql_bundle.getKeys();\n }", "@Override\n public Collection<? extends Object> getKeys() {\n return yamlMap.keySet();\n }", "public WeatherKey[] getKeys() {\n return this.keys;\n }", "public List<String> getKeys() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }", "@Override public IndexKey[] getNodeKeys() {\n return listOfKeys.toArray(new IndexKey[listOfKeys.size()]);\n }", "public Iterable keys() {\n Queue K = new Queue();\n for(int i = 0; i < size; i++) {\n K.enqueue(keys[i]);\n }\n return K;\n }", "public Iterable<String> getPropertyKeys();", "private void setKey() {\n\t\t \n\t}", "@Override\n\tpublic Map<Serializable, Serializable> gets(String name, List<Serializable> keys)\n\t\t\tthrows CacheException {\n\t\treturn null;\n\t}", "public Iterable<Key> Keys()\n\t{\n\t\tQueue<Key> q=new Queue<>();\n\t\tInorder(root,q);\n\t\treturn q;\n\t}", "public Enumeration getKeys() throws AspException\n {\n throw new AspNotImplementedException(\"getKeys\");\n }", "@Override\n public synchronized Enumeration keys() {\n if ((System.currentTimeMillis() - this.lastCheck) > this.CACHE_TIME) {\n update();\n }\n return super.keys();\n }", "@Override\n\tpublic HashSet<K> getAllKeys() {\n\t\treturn null;\n\t}", "@Override\r\n public Set<K> getKeySet() throws IOException\r\n {\r\n final HashSet<K> keys = new HashSet<>();\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n keys.addAll(this.keyHash.keySet());\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return keys;\r\n }", "String getNameKeySpace();", "List<QueryKey> listQueryKeys();", "public Set<String> keySet()\r\n/* 421: */ {\r\n/* 422:584 */ return this.headers.keySet();\r\n/* 423: */ }", "public java.lang.String getKey(){\n return localKey;\n }", "@Test\n public void testCoh3710_keySetContainsAll()\n {\n doExpiryOpTest(new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(getCacheName0());\n\n assertFalse(cache.keySet().containsAll(\n Collections.singleton(Integer.valueOf(1))));\n validateIndex(cache);\n }\n });\n }", "public getKeys_args(getKeys_args other) {\n }", "String key();", "PathKeys getPathKeys();", "public Set<FieldInfo> getKeyFieldInfos() {\n return new LinkedHashSet<FieldInfo>(_keys);\n }", "@Override\n public String getKey() {\n return key;\n }", "@Override\n\tpublic Iterator getKeyIterator() {\n\t\treturn new KeyIterator();\n\t}", "@Override\r\n\tpublic Iterator<K> iterator() {\n\t\treturn keys.iterator();\r\n\t}", "@Override\n public String toString() {\n return \"MultiKey\" + Arrays.toString(keys);\n }", "public synchronized Enumeration<Short> keys() {\n return new Enumerator(KEYS);\n }", "public Set<String> getKeys() {\n return Collections.unmodifiableSet(data.keySet());\n }", "public Set<String> keySet()\n\t{\n\t\tverifyParseState();\n\t\t\n\t\treturn values.keySet();\n\t}", "@Test public void keyDefinition() {\n fail( \"Not yet implemented\" );\n }", "public interface Keys {\n String VIEW_PAGER_INDEX = \"view_pager_index\";\n String LOCAL_MUSIC_POSITION = \"local_music_position\";\n String LOCAL_MUSIC_OFFSET = \"local_music_offset\";\n String PLAYLIST_POSITION = \"playlist_position\";\n String PLAYLIST_OFFSET = \"playlist_offset\";\n}", "public java.util.ArrayList<java.lang.String> onGetKeys() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.mediatek.internal.telephony.uicc.SsIccFileFetcher.onGetKeys():java.util.ArrayList<java.lang.String>, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.uicc.SsIccFileFetcher.onGetKeys():java.util.ArrayList<java.lang.String>\");\n }", "protected void loadKeys() {\n\t\tArrayList<String> lines = ContentLoader.getAllLinesOptList(this.keyfile);\n\t\tfor (String line : lines) {\n\t\t\tString[] parts = line.split(\"=\");\n\t\t\ttry {\n\t\t\t\tint fileID = Integer.parseInt(parts[0].trim());\n\t\t\t\tString restLine = parts[1].trim();\n\t\t\t\tString ccMethodName = restLine;\n\t\t\t\tif (restLine.indexOf('/') > 0) {\n\t\t\t\t\tint leftHashIndex = restLine.indexOf('/');\n\t\t\t\t\tccMethodName = restLine.substring(0, leftHashIndex).trim();\n\t\t\t\t}\n\t\t\t\t// String key = parts[0] + \".java\";\n\t\t\t\tkeyMap.put(fileID, ccMethodName);\n\t\t\t} catch (Exception exc) {\n\t\t\t\tSystem.err.println(line);\n\t\t\t}\n\t\t}\n\t}", "private void setKeySet(OwnSet<K> st){\n this.keySet = st; \n }", "String getRetrieveKeysQuery();", "public String[] getKeys() {\n Set keySet;\n if( defaultValues != null ) {\n keySet = defaultValues.keySet();\n } else {\n keySet = values.keySet();\n }\n return ( String[] )keySet.toArray( new String[ keySet.size() ] );\n }" ]
[ "0.7172041", "0.69081825", "0.67374307", "0.67249185", "0.6706276", "0.6683956", "0.66564286", "0.6622052", "0.65884334", "0.6488154", "0.64875674", "0.6476578", "0.6463852", "0.6460238", "0.6436329", "0.64207256", "0.63944286", "0.6385571", "0.63811415", "0.6356968", "0.63456446", "0.6322049", "0.6282359", "0.6270813", "0.6233947", "0.6201687", "0.6201687", "0.61894757", "0.6188264", "0.6179039", "0.6177456", "0.61763626", "0.61627984", "0.61471766", "0.61429363", "0.60995233", "0.6093087", "0.6090227", "0.6058402", "0.60534954", "0.6050526", "0.6041218", "0.60208845", "0.6019924", "0.60002303", "0.5990693", "0.5971126", "0.5966764", "0.59613705", "0.5956556", "0.59552383", "0.5951325", "0.5946337", "0.59454715", "0.5935867", "0.59350735", "0.5930332", "0.59265405", "0.5925535", "0.58942", "0.58526105", "0.58526105", "0.582835", "0.5824717", "0.58207667", "0.581664", "0.5816491", "0.58000654", "0.5799335", "0.57918465", "0.57854426", "0.5782535", "0.57730347", "0.5766067", "0.5745474", "0.5739797", "0.573441", "0.5733968", "0.5722682", "0.57110345", "0.57105273", "0.5705771", "0.57046753", "0.56874293", "0.56870365", "0.5686414", "0.5677047", "0.56597376", "0.5647572", "0.56446123", "0.5642411", "0.56411374", "0.5617946", "0.56174165", "0.56155825", "0.5604317", "0.560376", "0.56035966", "0.56007653", "0.5598697", "0.5596044" ]
0.0
-1
NOTE: the implementation can return another element if getFirst() is expensive
public static <K, V> BiValue<K, V> getAny(MapStream<K, V> s) { return s.getFirst(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public A getFirst() { return first; }", "public Item getFirst();", "public E getFirst();", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "public T getFirst();", "public T getFirst();", "public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n else\n return first.getValue();\n }", "public Object firstElement();", "public E first() {\n if (isEmpty()) return null;\n return first.item;\n }", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }", "public Object getFirst()\n {\n if(first == null){\n throw new NoSuchElementException();}\n \n \n \n return first.data;\n }", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}", "@Override\r\n\tpublic E getFirst() {\n\t\treturn null;\r\n\t}", "@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}", "@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}", "public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }", "public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }", "public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }", "public T getFirst() {\n return this.getHelper(this.indexCorrespondingToTheFirstElement).data;\n }", "@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}", "public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}", "public E getFirst() {\n return peek();\n }", "public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}", "public E getFirst(){\n return head.getNext().getElement();\n }", "public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }", "public A first() {\n return first;\n }", "public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }", "public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }", "@Override\n public int element() {\n isEmptyList();\n return first.value;\n }", "public Object getFirst() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\treturn get(1);\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getFirst on an empty list\");\r\n\t\t}\r\n\t}", "public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }", "public T first() throws EmptyCollectionException;", "public T first() throws EmptyCollectionException;", "public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }", "public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}", "public U getFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(0);\r\n\t }", "@Override\n public E getFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[head];\n }", "public int getFirst();", "@Override\r\n\tpublic T first() {\n\t\treturn head.content;\r\n\t}", "public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }", "public Optional<T> getFirstItem() {\n return getData().stream().findFirst();\n }", "public E getFirst() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}", "public T getFirst()\n\t{\n\t\treturn head.getData();\n\t}", "public K getFirst() {\r\n\t\treturn first;\r\n\t}", "public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}", "Node getFirst() {\n return this.first;\n }", "public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }", "public T1 getFirst() {\n\t\treturn first;\n\t}", "public T getFirst() {\n return t;\n }", "public T getFirst()\n\t{\n\t\treturn getFirstNode().getData();\n\t}", "public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }", "public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }", "@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }", "@NotNull\n public F getFirst() {\n return first;\n }", "T first();", "public Element first() {\n if(isEmpty()) return null;\n else return header.getNextNode().getContent();\n }", "public T getFirst() {\n\t\t//if the head is not empty\n\t\tif (head!= null) {\n\t\t\t//return the data in the head node of the list\n\t\t\treturn head.getData();\n\t\t}\n\t\t//otherwise return null\n\t\telse { return null; }\n\t}", "public Object getFirstObject()\n {\n \tcurrentObject = firstObject;\n\n if (firstObject == null)\n \treturn null;\n else\n \treturn AL.get(0);\n }", "public JspElement getFirst() {\r\n\treturn _first;\r\n}", "public Object firstElement() {\n return _queue.firstElement();\n }", "public Node getFirst()\n {\n return this.first;\n }", "public T first(int x)throws EmptyCollectionException, \n InvalidArgumentException;", "public E getFirst()// you finish (part of HW#4)\n\t{\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasLeftChild())\n\t\t\titeratorNode = iteratorNode.getLeftChild();\n\t\treturn iteratorNode.getData();\n\t}", "public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}", "public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n Object element = first.data;\n first = first.next;\n return element ;\n }", "@Override\n\tpublic E first() {\n\t\treturn queue[pos];\n\t}", "public F first() {\n return this.first;\n }", "public String getFirst(){ return this.first; }", "public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn iterator().next();\n\t}", "public static <T> T getFirstElement(final Iterable<T> elements) {\n\t\treturn elements.iterator().next();\n\t}", "public SeleniumQueryObject first() {\n\t\treturn FirstFunction.first(this, this.elements);\n\t}", "public T getFirst() {\n\treturn _front.getCargo();\n }", "public T removeFirst( ){\r\n\t\t//calls remove onfirst\r\n\t\tT toRemove = getFirst();\r\n\t\treturn remove(toRemove);\r\n\t}", "public Node<T> getFirst() {\r\n\t\treturn first;\r\n\t}", "public Object getFirst()\n {\n return ((Node)nodes.elementAt(0)).data;\n }", "@Override\n public Persona First() {\n return array.get(0);\n }", "public int getFirstElement() {\n\t\tif( head == null) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse {\n\t\t\treturn head.data;\n\t\t}\n\t}", "public Item getFirst() {\n Node removed = head.next;\n head.next = removed.next;\n removed.next = null;\n size--;\n return removed.item;\n }", "public String getFirst() {\n if(first == null) return null;\n return first.data;\n }", "public T first() {\n \t\n \tT firstData = (T) this.front.data;\n \t\n \treturn firstData;\n \t\n }", "@MethodContract(post = @Expression(\"result != null ? contains(result\"))\n public PropertyException getAnElement() {\n if (isEmpty()) {\n return null;\n }\n else {\n Iterator<Set<PropertyException>> iter1 = getElementExceptions().values().iterator();\n Set<PropertyException> s = iter1.next();\n Iterator<PropertyException> iter2 = s.iterator();\n return iter2.next();\n }\n }", "public int getFirst() {\n return first;\n }", "public E removeFirst();", "public PileupElement getFirst() { return PE1; }", "public String getFirst(){\n return this.first;\n }", "public double getFirst()\n {\n return first;\n }", "protected T getFirstValue(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(0) : null;\n\t}", "public abstract PaginatedResult<T> first() throws AblyException;", "public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }", "@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}", "@Override\r\n\tpublic E peekFirst() {\n\t\treturn peek();\r\n\t}", "public E returnMinElement(){\r\n if (theData.size() <= 0) return null;\r\n\r\n E min = theData.get(0).getData();\r\n\r\n for (int i = 0; i< theData.size() ; i++){\r\n if (min.compareTo(theData.get(i).getData()) > 0 ){\r\n min = theData.get(i).getData();\r\n }\r\n }\r\n return min;\r\n }", "public RTContainer container_element(RTContainer a, boolean first){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0){\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompGoals().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompGoals().getLast(); \n\t\t}else{\n\t\t\tif(first)\n\t\t\t\treturn a.getDecompPlans().getFirst();\n\t\t\telse\n\t\t\t\treturn a.getDecompPlans().getLast();\n\t\t}\n\t}", "public Jode first() {\n return children().first();\n }", "public E peekFirst();", "Optional<X> elem();", "public static IDescribable getFirst( Collection<? extends IDescribable> results )\r\n\t{\r\n\t if(( results == null ) || ( results.size() == 0 ))\r\n\t return null;\r\n\t return results.iterator().next();\r\n\t}", "public final Node<N> first() {\n throw new UnsupportedOperationException();\n }", "public Pageable first() {\n\t\t\t\treturn null;\r\n\t\t\t}" ]
[ "0.79305905", "0.7893442", "0.7853797", "0.78153443", "0.7793471", "0.7793471", "0.77886647", "0.76899606", "0.7664191", "0.75637966", "0.75512236", "0.755082", "0.75384575", "0.75384575", "0.74443895", "0.7432785", "0.7378376", "0.73783225", "0.73683846", "0.736599", "0.7362341", "0.73229706", "0.7318214", "0.7281628", "0.7272654", "0.725131", "0.72285897", "0.71838456", "0.71651083", "0.7137784", "0.7132835", "0.71301943", "0.7118751", "0.7108449", "0.7108449", "0.7102507", "0.7088288", "0.7086366", "0.7077267", "0.704615", "0.7023586", "0.7009712", "0.7002293", "0.6987772", "0.69717824", "0.6967913", "0.694767", "0.69456434", "0.69307417", "0.6914848", "0.6901609", "0.68837935", "0.68796736", "0.68792135", "0.6874676", "0.6864871", "0.6819985", "0.6804377", "0.6797882", "0.6789682", "0.67896", "0.6782159", "0.6763723", "0.6744278", "0.6730732", "0.67163616", "0.6710355", "0.67047524", "0.6701982", "0.66850764", "0.6654912", "0.6654867", "0.66545206", "0.6653724", "0.665205", "0.65876836", "0.65278286", "0.6524184", "0.6521033", "0.6510765", "0.6507942", "0.64793813", "0.6460354", "0.64382803", "0.64333993", "0.6420678", "0.6410356", "0.6396139", "0.63917327", "0.63911813", "0.63898516", "0.6385248", "0.6382736", "0.63710946", "0.6360693", "0.6355045", "0.6347935", "0.6343921", "0.6333096", "0.63275343", "0.6324719" ]
0.0
-1
Interface EntityOrAssetRule defines the rules that can be linked to an Entity or Asset.
public interface EntityOrAssetRule extends Rule { /** * Return the component id of the Entity or Asset that this rule should * belong to. * @return The component id. */ public String getComponentId(); /** * Given a mission objective and a system, find the corresponding component * to this rule, and add this rule to that component. * @param objective The mission objective. * @param system The system containing the component for this rule. */ public void addToComponent(String objective, OpSystem system); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final EObject entryRuleOr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOr = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3823:2: (iv_ruleOr= ruleOr EOF )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3824:2: iv_ruleOr= ruleOr EOF\n {\n newCompositeNode(grammarAccess.getOrRule()); \n pushFollow(FOLLOW_ruleOr_in_entryRuleOr8552);\n iv_ruleOr=ruleOr();\n\n state._fsp--;\n\n current =iv_ruleOr; \n match(input,EOF,FOLLOW_EOF_in_entryRuleOr8562); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "private Rule toRule(RuleEntity entity) {\n Rule rule = new Rule();\n RuleIf ruleIf = new RuleIf();\n RuleThen ruleThen = new RuleThen();\n RuleThenAwardPoints ruleThenAwardPoints = new RuleThenAwardPoints();\n ruleThenAwardPoints.setAmount(entity.get_then().getAwardPoints().getAmount());\n ruleThenAwardPoints.setPointScale(URI.create(entity.get_then().getAwardPoints().getPointScale()));\n ruleThen.setAwardPoints(ruleThenAwardPoints);\n ruleThen.setAwardBadge(URI.create(entity.get_then().getAwardBadge()));\n ruleIf.setType(entity.get_if().getType());\n rule.setIf(ruleIf);\n rule.setThen(ruleThen);\n return rule;\n }", "com.google.ads.googleads.v6.resources.AssetOrBuilder getAssetOrBuilder();", "public final EObject entryRuleLogicalOrExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleLogicalOrExpression = null;\n\n\n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3287:2: (iv_ruleLogicalOrExpression= ruleLogicalOrExpression EOF )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3288:2: iv_ruleLogicalOrExpression= ruleLogicalOrExpression EOF\n {\n currentNode = createCompositeNode(grammarAccess.getLogicalOrExpressionRule(), currentNode); \n pushFollow(FOLLOW_ruleLogicalOrExpression_in_entryRuleLogicalOrExpression5637);\n iv_ruleLogicalOrExpression=ruleLogicalOrExpression();\n _fsp--;\n\n current =iv_ruleLogicalOrExpression; \n match(input,EOF,FOLLOW_EOF_in_entryRuleLogicalOrExpression5647); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final EObject entryRuleLogicalOrExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleLogicalOrExpression = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2568:2: (iv_ruleLogicalOrExpression= ruleLogicalOrExpression EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2569:2: iv_ruleLogicalOrExpression= ruleLogicalOrExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getLogicalOrExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleLogicalOrExpression_in_entryRuleLogicalOrExpression5845);\r\n iv_ruleLogicalOrExpression=ruleLogicalOrExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleLogicalOrExpression; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleLogicalOrExpression5855); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public final EObject entryRuleOrExpr() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleOrExpr = null;\n\n\n try {\n // InternalSafetyParser.g:7325:47: (iv_ruleOrExpr= ruleOrExpr EOF )\n // InternalSafetyParser.g:7326:2: iv_ruleOrExpr= ruleOrExpr EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getOrExprRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleOrExpr=ruleOrExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleOrExpr; \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final EObject entryRuleOrOperator() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleOrOperator = null;\r\n\r\n\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4385:2: (iv_ruleOrOperator= ruleOrOperator EOF )\r\n // ../eu.artist.postmigration.nfrvt.lang.gml/src-gen/eu/artist/postmigration/nfrvt/lang/gml/parser/antlr/internal/InternalGML.g:4386:2: iv_ruleOrOperator= ruleOrOperator EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getOrOperatorRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOrOperator_in_entryRuleOrOperator9469);\r\n iv_ruleOrOperator=ruleOrOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleOrOperator; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOrOperator9479); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "private RuleEntity toRuleEntity(Rule rule) throws ApiException {\n\n //check given rule, see if fields are there\n\n if(rule.getIf().getType() == null || rule.getIf().getType().isEmpty()) {\n throw new ApiException(400, \"Type of If is empty\");\n }\n\n if(rule.getThen().getAwardBadge() == null || rule.getThen().getAwardBadge().toString().isEmpty()) {\n throw new ApiException(400, \"AwardBadge of Then is empty\");\n }\n\n if(rule.getThen().getAwardPoints().getPointScale() == null ||\n rule.getThen().getAwardPoints().getPointScale().toString().isEmpty()) {\n throw new ApiException(400, \"PointScale of AwardPoints of Then is empty\");\n }\n\n if(rule.getThen().getAwardPoints().getAmount() == null || rule.getThen().getAwardPoints().getAmount() == 0) {\n throw new ApiException(400, \"Amount of AwardPoints of Then = 0\");\n }\n\n //checks on URIs, see if they are correct\n\n String badgeUri = rule.getThen().getAwardBadge().toString();\n String pointScaleUri = rule.getThen().getAwardPoints().getPointScale().toString();\n\n if(!badgeUri.startsWith(\"/badges/\")){\n throw new ApiException(400, \"Invalid Uri format for badges\");\n }\n\n if(!pointScaleUri.startsWith(\"/pointScales/\")){\n throw new ApiException(400, \"Invalid Uri format for pointScales\");\n }\n\n //checks on URIs, see if they exist for current application\n try {\n Long badgeID = Long.parseLong(badgeUri.substring(\"/badges/\".length()));\n Long pointScaleID = Long.parseLong(pointScaleUri.substring(\"/pointScales/\".length()));\n\n badgeRepository.findByApiKeyEntityValue_AndId(apiKeyId,badgeID)\n .orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND,\"Badge does not exist\"));\n\n pointScaleRepository.findByApiKeyEntityValue_AndId(apiKeyId,pointScaleID)\n .orElseThrow(() -> new ResponseStatusException(HttpStatus.NOT_FOUND,\"PointScale does not exist\"));\n } catch (NumberFormatException e) {\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, e.toString());\n }\n\n //creating rule\n\n return RuleEntity.builder()\n ._if(RuleEntity.If.builder()\n .type(rule.getIf().getType())\n .build()\n )\n ._then(RuleEntity.Then.builder()\n .awardBadge(rule.getThen().getAwardBadge().toString())\n .awardPoints(RuleEntity.Then.AwardPoints.builder()\n .amount(rule.getThen().getAwardPoints().getAmount())\n .pointScale(rule.getThen().getAwardPoints().getPointScale().toString())\n .build()\n )\n .build()\n )\n .build();\n }", "E3Rule createE3Rule();", "public final void mRULE_OR() throws RecognitionException {\n try {\n int _type = RULE_OR;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12793:9: ( '|' '|' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12793:11: '|' '|'\n {\n match('|'); \n match('|'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final EObject entryRuleConditionalOrExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleConditionalOrExpression = null;\n\n\n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:219:2: (iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:220:2: iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getConditionalOrExpressionRule()); \n }\n pushFollow(FOLLOW_ruleConditionalOrExpression_in_entryRuleConditionalOrExpression442);\n iv_ruleConditionalOrExpression=ruleConditionalOrExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleConditionalOrExpression; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleConditionalOrExpression452); if (state.failed) return current;\n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final EObject ruleExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_Or_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3804:28: (this_Or_0= ruleOr )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3806:5: this_Or_0= ruleOr\n {\n \n newCompositeNode(grammarAccess.getExpressionAccess().getOrParserRuleCall()); \n \n pushFollow(FOLLOW_ruleOr_in_ruleExpression8518);\n this_Or_0=ruleOr();\n\n state._fsp--;\n\n \n current = this_Or_0; \n afterParserOrEnumRuleCall();\n \n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final EObject ruleOr() throws RecognitionException {\n EObject current = null;\n\n Token lv_operator_2_0=null;\n EObject this_And_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3834:28: ( (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3835:1: (this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )* )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3836:5: this_And_0= ruleAnd ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n {\n \n newCompositeNode(grammarAccess.getOrAccess().getAndParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleAnd_in_ruleOr8609);\n this_And_0=ruleAnd();\n\n state._fsp--;\n\n \n current = this_And_0; \n afterParserOrEnumRuleCall();\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) ) )*\n loop34:\n do {\n int alt34=2;\n int LA34_0 = input.LA(1);\n\n if ( (LA34_0==58) ) {\n alt34=1;\n }\n\n\n switch (alt34) {\n \tcase 1 :\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_right_3_0= ruleAnd ) )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3844:2: ()\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3845:5: \n \t {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getOrAccess().getBooleanOperationLeftAction_1_0(),\n \t current);\n \t \n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3850:2: ( (lv_operator_2_0= '||' ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3851:1: (lv_operator_2_0= '||' )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3852:3: lv_operator_2_0= '||'\n \t {\n \t lv_operator_2_0=(Token)match(input,58,FOLLOW_58_in_ruleOr8636); \n\n \t newLeafNode(lv_operator_2_0, grammarAccess.getOrAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());\n \t \n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getOrRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"operator\", lv_operator_2_0, \"||\");\n \t \t \n\n \t }\n\n\n \t }\n\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3865:2: ( (lv_right_3_0= ruleAnd ) )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t {\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3866:1: (lv_right_3_0= ruleAnd )\n \t // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:3867:3: lv_right_3_0= ruleAnd\n \t {\n \t \n \t \t newCompositeNode(grammarAccess.getOrAccess().getRightAndParserRuleCall_1_2_0()); \n \t \t \n \t pushFollow(FOLLOW_ruleAnd_in_ruleOr8670);\n \t lv_right_3_0=ruleAnd();\n\n \t state._fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getOrRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"And\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop34;\n }\n } while (true);\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final EObject entryRuleEntity() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleEntity = null;\r\n\r\n\r\n try {\r\n // InternalNestDsl.g:177:47: (iv_ruleEntity= ruleEntity EOF )\r\n // InternalNestDsl.g:178:2: iv_ruleEntity= ruleEntity EOF\r\n {\r\n newCompositeNode(grammarAccess.getEntityRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleEntity=ruleEntity();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleEntity; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "public final EObject entryRuleEntity() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEntity = null;\n\n\n try {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:137:2: (iv_ruleEntity= ruleEntity EOF )\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:138:2: iv_ruleEntity= ruleEntity EOF\n {\n newCompositeNode(grammarAccess.getEntityRule()); \n pushFollow(FOLLOW_ruleEntity_in_entryRuleEntity226);\n iv_ruleEntity=ruleEntity();\n\n state._fsp--;\n\n current =iv_ruleEntity; \n match(input,EOF,FOLLOW_EOF_in_entryRuleEntity236); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public interface Rule {\n \n /**\n * Determine if a rule meets all of its conditions.\n * @param OpSystem The overall system for this rule.\n * @return true if the rule meets its condition.\n */\n public boolean meetsCondition(OpSystem system);\n}", "public OrRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tsuper(rules);\n\t\t}", "public ExecutionPolicy or(ExecutionPolicy...rules)\n\t{\n\t\treturn new OrRule(makeRuleArray(this, rules));\n\t}", "Rule getRule();", "public interface Rule {\n\n /**\n * Process this security event and detects whether this represents a security breach from the perspective of this rule\n * \n * @param event\n * event to process\n * @return security breach - either a breach or not (could be delayed)\n */\n SecurityBreach isSecurityBreach(SecurityEvent event);\n\n /**\n * Detects whether this rule is applicable in the in-passed security mode. Each rule guarantees to return the very same value of this method at\n * runtime. E.g. if this method returns true for an instance, it is guaranteed it will always return true within the lifecycle of this object\n * \n * @param securityMode\n * security mode to test applicability of this rule against\n * @return true if so, false otherwise\n */\n boolean isApplicable(SecurityMode securityMode);\n\n /**\n * Detects whether this rule is enabled or not\n * \n * @return true if so, false otherwise\n */\n boolean isEnabled();\n\n /**\n * Get human readable description of this rule. It should be a unique string compared to all other rules\n * \n * @return unique description of this rule\n */\n String getDescription();\n\n /**\n * Gets Unique ID of this Rule\n * \n * @return integer identification of this rule\n */\n int getId();\n\n /**\n * Update this rule based on the in-passed rule detail (e.g. whether it is enabled, etc)\n * \n * @param ruleDetail\n * rule detail to use to update this rule\n */\n void updateFrom(RuleDetail ruleDetail);\n}", "Rule createRule();", "Rule createRule();", "Rule createRule();", "@Test\n public void testAndOrRules() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"and_or_rule.drl\")));\n TestCase.assertNotNull(pkg);\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(\"simple_rule\", rule.getName());\n // we will have 3 children under the main And node\n final AndDescr and = rule.getLhs();\n TestCase.assertEquals(3, and.getDescrs().size());\n PatternDescr left = ((PatternDescr) (and.getDescrs().get(0)));\n PatternDescr right = ((PatternDescr) (and.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n ExprConstraintDescr fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n // now the \"||\" part\n final OrDescr or = ((OrDescr) (and.getDescrs().get(2)));\n TestCase.assertEquals(2, or.getDescrs().size());\n left = ((PatternDescr) (or.getDescrs().get(0)));\n right = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", left.getObjectType());\n TestCase.assertEquals(\"Cheese\", right.getObjectType());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"name == \\\"mark\\\"\", fld.getExpression());\n TestCase.assertEquals(1, getDescrs().size());\n fld = ((ExprConstraintDescr) (getDescrs().get(0)));\n TestCase.assertEquals(\"type == \\\"stilton\\\"\", fld.getExpression());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" );\", ((String) (rule.getConsequence())));\n }", "public final void entryRulePredicateOr() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:388:1: ( rulePredicateOr EOF )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:389:1: rulePredicateOr EOF\n {\n before(grammarAccess.getPredicateOrRule()); \n pushFollow(FOLLOW_rulePredicateOr_in_entryRulePredicateOr686);\n rulePredicateOr();\n\n state._fsp--;\n\n after(grammarAccess.getPredicateOrRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRulePredicateOr693); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "boolean canSupportEntity(Entity a);", "public final void ruleOpOr() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:592:2: ( ( '||' ) )\r\n // InternalDroneScript.g:593:2: ( '||' )\r\n {\r\n // InternalDroneScript.g:593:2: ( '||' )\r\n // InternalDroneScript.g:594:3: '||'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \r\n }\r\n match(input,14,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \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 EObject ruleAbstractElement() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject this_Entity_0 = null;\r\n\r\n EObject this_Dto_1 = null;\r\n\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalNestDsl.g:113:2: ( (this_Entity_0= ruleEntity | this_Dto_1= ruleDto ) )\r\n // InternalNestDsl.g:114:2: (this_Entity_0= ruleEntity | this_Dto_1= ruleDto )\r\n {\r\n // InternalNestDsl.g:114:2: (this_Entity_0= ruleEntity | this_Dto_1= ruleDto )\r\n int alt2=2;\r\n switch ( input.LA(1) ) {\r\n case 13:\r\n {\r\n int LA2_1 = input.LA(2);\r\n\r\n if ( (LA2_1==RULE_STRING) ) {\r\n int LA2_4 = input.LA(3);\r\n\r\n if ( (LA2_4==18) ) {\r\n alt2=2;\r\n }\r\n else if ( (LA2_4==14) ) {\r\n alt2=1;\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 4, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n else {\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 1, input);\r\n\r\n throw nvae;\r\n }\r\n }\r\n break;\r\n case 14:\r\n {\r\n alt2=1;\r\n }\r\n break;\r\n case 18:\r\n {\r\n alt2=2;\r\n }\r\n break;\r\n default:\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 2, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt2) {\r\n case 1 :\r\n // InternalNestDsl.g:115:3: this_Entity_0= ruleEntity\r\n {\r\n\r\n \t\t\tnewCompositeNode(grammarAccess.getAbstractElementAccess().getEntityParserRuleCall_0());\r\n \t\t\r\n pushFollow(FOLLOW_2);\r\n this_Entity_0=ruleEntity();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\tcurrent = this_Entity_0;\r\n \t\t\tafterParserOrEnumRuleCall();\r\n \t\t\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalNestDsl.g:124:3: this_Dto_1= ruleDto\r\n {\r\n\r\n \t\t\tnewCompositeNode(grammarAccess.getAbstractElementAccess().getDtoParserRuleCall_1());\r\n \t\t\r\n pushFollow(FOLLOW_2);\r\n this_Dto_1=ruleDto();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\tcurrent = this_Dto_1;\r\n \t\t\tafterParserOrEnumRuleCall();\r\n \t\t\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n \tleaveRule();\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }", "public Rule typeAndOrId()\n \t{\n \t\treturn firstOf(sequence(type(), id()), type()/*, id()*/);\n \t}", "public final EObject entryRuleRule() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleRule = null;\n\n\n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2736:2: (iv_ruleRule= ruleRule EOF )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:2737:2: iv_ruleRule= ruleRule EOF\n {\n newCompositeNode(grammarAccess.getRuleRule()); \n pushFollow(FOLLOW_ruleRule_in_entryRuleRule6136);\n iv_ruleRule=ruleRule();\n\n state._fsp--;\n\n current =iv_ruleRule; \n match(input,EOF,FOLLOW_EOF_in_entryRuleRule6146); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void entryRuleOpOr() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:375:1: ( ruleOpOr EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:376:1: ruleOpOr EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpOrRule()); \n }\n pushFollow(FOLLOW_ruleOpOr_in_entryRuleOpOr730);\n ruleOpOr();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpOrRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpOr737); 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 EObject ruleAbstractType() throws RecognitionException {\n EObject current = null;\n\n EObject this_BooleanType_0 = null;\n\n EObject this_IntType_1 = null;\n\n EObject this_StringType_2 = null;\n\n EObject this_EntityReference_3 = null;\n\n\n enterRule(); \n \n try {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:280:28: ( (this_BooleanType_0= ruleBooleanType | this_IntType_1= ruleIntType | this_StringType_2= ruleStringType | this_EntityReference_3= ruleEntityReference ) )\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:281:1: (this_BooleanType_0= ruleBooleanType | this_IntType_1= ruleIntType | this_StringType_2= ruleStringType | this_EntityReference_3= ruleEntityReference )\n {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:281:1: (this_BooleanType_0= ruleBooleanType | this_IntType_1= ruleIntType | this_StringType_2= ruleStringType | this_EntityReference_3= ruleEntityReference )\n int alt3=4;\n switch ( input.LA(1) ) {\n case 16:\n {\n alt3=1;\n }\n break;\n case 17:\n {\n alt3=2;\n }\n break;\n case 18:\n {\n alt3=3;\n }\n break;\n case RULE_ID:\n {\n alt3=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 3, 0, input);\n\n throw nvae;\n }\n\n switch (alt3) {\n case 1 :\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:282:5: this_BooleanType_0= ruleBooleanType\n {\n \n newCompositeNode(grammarAccess.getAbstractTypeAccess().getBooleanTypeParserRuleCall_0()); \n \n pushFollow(FOLLOW_ruleBooleanType_in_ruleAbstractType562);\n this_BooleanType_0=ruleBooleanType();\n\n state._fsp--;\n\n \n current = this_BooleanType_0; \n afterParserOrEnumRuleCall();\n \n\n }\n break;\n case 2 :\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:292:5: this_IntType_1= ruleIntType\n {\n \n newCompositeNode(grammarAccess.getAbstractTypeAccess().getIntTypeParserRuleCall_1()); \n \n pushFollow(FOLLOW_ruleIntType_in_ruleAbstractType589);\n this_IntType_1=ruleIntType();\n\n state._fsp--;\n\n \n current = this_IntType_1; \n afterParserOrEnumRuleCall();\n \n\n }\n break;\n case 3 :\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:302:5: this_StringType_2= ruleStringType\n {\n \n newCompositeNode(grammarAccess.getAbstractTypeAccess().getStringTypeParserRuleCall_2()); \n \n pushFollow(FOLLOW_ruleStringType_in_ruleAbstractType616);\n this_StringType_2=ruleStringType();\n\n state._fsp--;\n\n \n current = this_StringType_2; \n afterParserOrEnumRuleCall();\n \n\n }\n break;\n case 4 :\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:312:5: this_EntityReference_3= ruleEntityReference\n {\n \n newCompositeNode(grammarAccess.getAbstractTypeAccess().getEntityReferenceParserRuleCall_3()); \n \n pushFollow(FOLLOW_ruleEntityReference_in_ruleAbstractType643);\n this_EntityReference_3=ruleEntityReference();\n\n state._fsp--;\n\n \n current = this_EntityReference_3; \n afterParserOrEnumRuleCall();\n \n\n }\n break;\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public EntityImpl getPermitRuleEO() {\n return (EntityImpl)getEntity(0);\n }", "public final void entryRuleOpOr() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:458:1: ( ruleOpOr EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:459:1: ruleOpOr EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrRule()); \r\n }\r\n pushFollow(FOLLOW_ruleOpOr_in_entryRuleOpOr910);\r\n ruleOpOr();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleOpOr917); 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 entryRuleOpOr() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:580:1: ( ruleOpOr EOF )\r\n // InternalDroneScript.g:581:1: ruleOpOr EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleOpOr();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrRule()); \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 boolean validRule( Rule r ){\n\t\tif( !super.validRule(r) ){\n\t\t\t// rule has failed restrictions of parent grammars\n\t\t\treturn false;\n\t\t}\n\t\t// 3. rhs is null\n\t\tif( r.rhs == null ) {\n\t\t\treturn true;\n\t\t}\n\t\t// 2. rhs is a terminal followed by a variable\n\t\telse if( r.rhs.size() == 2 && Grammar.isTerminal(r.rhs.get(0)) && \n\t\t\t\t\t\t\t\t \t Grammar.isVariable(r.rhs.get(1))) {\n\t\t\treturn true;\n\t\t}\n\t\t// 1. rhs is a single terminal\n\t\telse if( r.rhs.size() == 1 && Grammar.isTerminal(r.rhs.get(0))) {\n\t\t\treturn true;\n\t\t}\n\t\t// rule is not one of the 3 valid forms\n\t\treturn false;\n\t }", "public final EObject ruleImpliesExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_LogicalOrExpression_0 = null;\n\n EObject lv_rightOperand_3_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3224:6: ( (this_LogicalOrExpression_0= ruleLogicalOrExpression ( () '=>' ( (lv_rightOperand_3_0= ruleLogicalOrExpression ) ) )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3225:1: (this_LogicalOrExpression_0= ruleLogicalOrExpression ( () '=>' ( (lv_rightOperand_3_0= ruleLogicalOrExpression ) ) )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3225:1: (this_LogicalOrExpression_0= ruleLogicalOrExpression ( () '=>' ( (lv_rightOperand_3_0= ruleLogicalOrExpression ) ) )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3226:5: this_LogicalOrExpression_0= ruleLogicalOrExpression ( () '=>' ( (lv_rightOperand_3_0= ruleLogicalOrExpression ) ) )?\n {\n \n currentNode=createCompositeNode(grammarAccess.getImpliesExpressionAccess().getLogicalOrExpressionParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_ruleLogicalOrExpression_in_ruleImpliesExpression5559);\n this_LogicalOrExpression_0=ruleLogicalOrExpression();\n _fsp--;\n\n \n current = this_LogicalOrExpression_0; \n currentNode = currentNode.getParent();\n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3234:1: ( () '=>' ( (lv_rightOperand_3_0= ruleLogicalOrExpression ) ) )?\n int alt48=2;\n int LA48_0 = input.LA(1);\n\n if ( (LA48_0==48) ) {\n alt48=1;\n }\n switch (alt48) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3234:2: () '=>' ( (lv_rightOperand_3_0= ruleLogicalOrExpression ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3234:2: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3235:5: \n {\n \n temp=factory.create(grammarAccess.getImpliesExpressionAccess().getImpliesExpressionLeftOperandAction_1_0().getType().getClassifier());\n try {\n \tfactory.set(temp, \"leftOperand\", current, null /*ParserRule*/, currentNode);\n } catch(ValueConverterException vce) {\n \thandleValueConverterException(vce);\n }\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getImpliesExpressionAccess().getImpliesExpressionLeftOperandAction_1_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n match(input,48,FOLLOW_48_in_ruleImpliesExpression5578); \n\n createLeafNode(grammarAccess.getImpliesExpressionAccess().getEqualsSignGreaterThanSignKeyword_1_1(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3254:1: ( (lv_rightOperand_3_0= ruleLogicalOrExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3255:1: (lv_rightOperand_3_0= ruleLogicalOrExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3255:1: (lv_rightOperand_3_0= ruleLogicalOrExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3256:3: lv_rightOperand_3_0= ruleLogicalOrExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getImpliesExpressionAccess().getRightOperandLogicalOrExpressionParserRuleCall_1_2_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleLogicalOrExpression_in_ruleImpliesExpression5599);\n lv_rightOperand_3_0=ruleLogicalOrExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getImpliesExpressionRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"rightOperand\",\n \t \t\tlv_rightOperand_3_0, \n \t \t\t\"LogicalOrExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final void entryRuleAstEntity() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:173:1: ( ruleAstEntity EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:174:1: ruleAstEntity EOF\n {\n before(grammarAccess.getAstEntityRule()); \n pushFollow(FOLLOW_ruleAstEntity_in_entryRuleAstEntity301);\n ruleAstEntity();\n\n state._fsp--;\n\n after(grammarAccess.getAstEntityRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstEntity308); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "com.google.ads.googleads.v6.resources.Asset getAsset();", "public final EObject ruleOrExpr() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_0=null;\n EObject this_AndExpr_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalSafetyParser.g:7338:2: ( (this_AndExpr_0= ruleAndExpr ( ( ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) ) ) ( (lv_right_3_0= ruleAndExpr ) ) )* ) )\n // InternalSafetyParser.g:7339:2: (this_AndExpr_0= ruleAndExpr ( ( ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) ) ) ( (lv_right_3_0= ruleAndExpr ) ) )* )\n {\n // InternalSafetyParser.g:7339:2: (this_AndExpr_0= ruleAndExpr ( ( ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) ) ) ( (lv_right_3_0= ruleAndExpr ) ) )* )\n // InternalSafetyParser.g:7340:3: this_AndExpr_0= ruleAndExpr ( ( ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) ) ) ( (lv_right_3_0= ruleAndExpr ) ) )*\n {\n if ( state.backtracking==0 ) {\n\n \t\t\tnewCompositeNode(grammarAccess.getOrExprAccess().getAndExprParserRuleCall_0());\n \t\t\n }\n pushFollow(FollowSets000.FOLLOW_83);\n this_AndExpr_0=ruleAndExpr();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t\t\tcurrent = this_AndExpr_0;\n \t\t\tafterParserOrEnumRuleCall();\n \t\t\n }\n // InternalSafetyParser.g:7348:3: ( ( ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) ) ) ( (lv_right_3_0= ruleAndExpr ) ) )*\n loop95:\n do {\n int alt95=2;\n int LA95_0 = input.LA(1);\n\n if ( (LA95_0==Or) ) {\n int LA95_2 = input.LA(2);\n\n if ( (synpred22_InternalSafetyParser()) ) {\n alt95=1;\n }\n\n\n }\n\n\n switch (alt95) {\n \tcase 1 :\n \t // InternalSafetyParser.g:7349:4: ( ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) ) ) ( (lv_right_3_0= ruleAndExpr ) )\n \t {\n \t // InternalSafetyParser.g:7349:4: ( ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) ) )\n \t // InternalSafetyParser.g:7350:5: ( ( () ( ( Or ) ) ) )=> ( () ( (lv_op_2_0= Or ) ) )\n \t {\n \t // InternalSafetyParser.g:7360:5: ( () ( (lv_op_2_0= Or ) ) )\n \t // InternalSafetyParser.g:7361:6: () ( (lv_op_2_0= Or ) )\n \t {\n \t // InternalSafetyParser.g:7361:6: ()\n \t // InternalSafetyParser.g:7362:7: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\tcurrent = forceCreateModelElementAndSet(\n \t \t\t\t\t\t\t\t\tgrammarAccess.getOrExprAccess().getBinaryExprLeftAction_1_0_0_0(),\n \t \t\t\t\t\t\t\t\tcurrent);\n \t \t\t\t\t\t\t\n \t }\n\n \t }\n\n \t // InternalSafetyParser.g:7368:6: ( (lv_op_2_0= Or ) )\n \t // InternalSafetyParser.g:7369:7: (lv_op_2_0= Or )\n \t {\n \t // InternalSafetyParser.g:7369:7: (lv_op_2_0= Or )\n \t // InternalSafetyParser.g:7370:8: lv_op_2_0= Or\n \t {\n \t lv_op_2_0=(Token)match(input,Or,FollowSets000.FOLLOW_21); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tnewLeafNode(lv_op_2_0, grammarAccess.getOrExprAccess().getOpOrKeyword_1_0_0_1_0());\n \t \t\t\t\t\t\t\t\n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getOrExprRule());\n \t \t\t\t\t\t\t\t\t}\n \t \t\t\t\t\t\t\t\tsetWithLastConsumed(current, \"op\", lv_op_2_0, \"or\");\n \t \t\t\t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // InternalSafetyParser.g:7384:4: ( (lv_right_3_0= ruleAndExpr ) )\n \t // InternalSafetyParser.g:7385:5: (lv_right_3_0= ruleAndExpr )\n \t {\n \t // InternalSafetyParser.g:7385:5: (lv_right_3_0= ruleAndExpr )\n \t // InternalSafetyParser.g:7386:6: lv_right_3_0= ruleAndExpr\n \t {\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getOrExprAccess().getRightAndExprParserRuleCall_1_1_0());\n \t \t\t\t\t\t\n \t }\n \t pushFollow(FollowSets000.FOLLOW_83);\n \t lv_right_3_0=ruleAndExpr();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t\t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getOrExprRule());\n \t \t\t\t\t\t\t}\n \t \t\t\t\t\t\tset(\n \t \t\t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\t\"right\",\n \t \t\t\t\t\t\t\tlv_right_3_0,\n \t \t\t\t\t\t\t\t\"com.rockwellcollins.atc.agree.Agree.AndExpr\");\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\t\n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop95;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n\n \tleaveRule();\n\n }\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public final void rulePredicateExpression() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:368:2: ( ( rulePredicateOr ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:369:1: ( rulePredicateOr )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:369:1: ( rulePredicateOr )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:370:1: rulePredicateOr\n {\n before(grammarAccess.getPredicateExpressionAccess().getPredicateOrParserRuleCall()); \n pushFollow(FOLLOW_rulePredicateOr_in_rulePredicateExpression655);\n rulePredicateOr();\n\n state._fsp--;\n\n after(grammarAccess.getPredicateExpressionAccess().getPredicateOrParserRuleCall()); \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 \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "public LogicalRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tthis.rules = rules;\n\t\t}", "@Override\n\tpublic void applyRule(DFEntity ent) {\n\t\tString entityName = ent.getEntityName();\n\t\tMapType type = getMapType(entityName);\n\t\tswitch (type) {\n\t\t\tcase ORGANISATION_MAP:\n\t\t\t\tsource.addOrganisation(getOrganisationMap().get(entityName));\n\t\t\t\tbreak;\n\t\t\tcase NAME:\n\t\t\t\tsource.addName(ent.getEntityValue().getStringValue());\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "E2Rule createE2Rule();", "public EAsset() {\n this(DSL.name(\"E_ASSET\"), null);\n }", "public AndRule(ExecutionPolicy...rules)\n\t\t{\n\t\t\tsuper(rules);\n\t\t}", "public interface EntityEffect extends Effect{\n\n}", "private Rule honorRules(InstanceWaypoint context){\n \t\t\n \t\tStyle style = getStyle(context);\n \t\tRule[] rules = SLD.rules(style);\n \t\t\n \t\t//do rules exist?\n \t\t\n \t\tif(rules == null || rules.length == 0){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\t\n \t\t//sort the elserules at the end\n \t\tif(rules.length > 1){\n \t\t\trules = sortRules(rules);\n \t\t}\n \t\t\n \t\t//if rule exists\n \t\tInstanceReference ir = context.getValue();\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\tInstance inst = is.getInstance(ir);\n \t\t\t\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].getFilter() != null){\t\t\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(rules[i].getFilter().evaluate(inst)){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\t//if a rule exist without a filter and without being an else-filter,\n \t\t\t//the found rule applies to all types\n \t\t\telse{\n \t\t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\t\treturn rules[i];\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\n \t\t//if there is no appropriate rule, check if there is an else-rule\n \t\tfor (int i = 0; i < rules.length; i++){\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\treturn rules[i];\n \t\t\t}\n \t\t}\n \t\t\n \t \n \t\t//return null if no rule was found\n \t\treturn null;\n \t\n \t}", "boolean canRender(IModel model, Entity entity);", "void setRule(Rule rule);", "CollisionRule getCollisionRule();", "public final void ruleOpOr() 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:387:2: ( ( '||' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:388:1: ( '||' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:388:1: ( '||' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:389:1: '||'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \n }\n match(input,13,FOLLOW_13_in_ruleOpOr764); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \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 public boolean isValidEntity(Entity entity, IGame game) {\n boolean retVal = false;\n // Null entities don't need to be checked.\n if (null != entity) {\n\n // Any entity in the array is valid.\n // N.B. Stop looking after we've found the match.\n final int entityId = entity.getId();\n for (int index = 0; (index < entityIds.length) && !retVal; index++) {\n if (entityId == entityIds[index]) {\n retVal = true;\n }\n }\n\n } // End entity-isn't-null\n\n return retVal;\n }", "com.google.ads.googleads.v6.resources.CampaignAssetOrBuilder getCampaignAssetOrBuilder();", "@Override\r\n\tpublic boolean contains(ISchedulingRule rule) {\n\t\treturn rule instanceof TraceAndCodeModelRule;\r\n\t}", "public void setMaxRulesPerEntity(java.lang.Integer maxRulesPerEntity) {\n this.maxRulesPerEntity = maxRulesPerEntity;\n }", "public void setRule(IRule rule)\n\t{\n\t\tthis.rule = rule;\n\t}", "public java.lang.Integer getMaxRulesPerEntity() {\n return maxRulesPerEntity;\n }", "public boolean isValidEntity(Entity entity, IGame game) {\n return isValidEntity(entity,game,true);\n }", "StatementRule createStatementRule();", "public URI getAllowedConnector(Rule rule) {\n Constraint constraint = rule.getConstraint().get(0);\n String allowedConnectorAsString = constraint.getRightOperand().getValue();\n return URI.create(allowedConnectorAsString);\n }", "IRequirement or(IRequirement constraint);", "ControlBlockRule createControlBlockRule();", "public boolean isAssetValid(T asset);", "public final EObject entryRuleRuleDeclaration() throws RecognitionException {\n EObject current = null;\n int entryRuleRuleDeclaration_StartIndex = input.index();\n EObject iv_ruleRuleDeclaration = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 9) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:501:2: (iv_ruleRuleDeclaration= ruleRuleDeclaration EOF )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:502:2: iv_ruleRuleDeclaration= ruleRuleDeclaration EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getRuleDeclarationRule()); \n }\n pushFollow(FOLLOW_ruleRuleDeclaration_in_entryRuleRuleDeclaration908);\n iv_ruleRuleDeclaration=ruleRuleDeclaration();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleRuleDeclaration; \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleRuleDeclaration918); if (state.failed) return current;\n\n }\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, 9, entryRuleRuleDeclaration_StartIndex); }\n }\n return current;\n }", "@Override\n public boolean isValid(int playerId, Entity entity, IGame game) {\n return ((null != entity) && (entity.getOwnerId() == playerId) && isValidEntity(\n entity, game));\n }", "public interface LinkOrResource {\n\n\tHalLink asLink();\n\n\tdefault Optional<HalResource> asResource(){\n\t\tif(this instanceof HalResource){\n\t\t\treturn Optional.of((HalResource) this);\n\t\t}else\n\t\t\treturn Optional.empty();\n\t}\n}", "public void add_rule(Rule rule) throws Exception;", "@Test\n public void testOrWithBinding() throws Exception {\n final PackageDescr pkg = ((PackageDescr) (parseResource(\"compilationUnit\", \"or_binding.drl\")));\n TestCase.assertEquals(1, pkg.getRules().size());\n final RuleDescr rule = ((RuleDescr) (pkg.getRules().get(0)));\n TestCase.assertEquals(2, getDescrs().size());\n final OrDescr or = ((OrDescr) (getDescrs().get(0)));\n TestCase.assertEquals(2, or.getDescrs().size());\n final PatternDescr leftPattern = ((PatternDescr) (or.getDescrs().get(0)));\n TestCase.assertEquals(\"Person\", leftPattern.getObjectType());\n TestCase.assertEquals(\"foo\", leftPattern.getIdentifier());\n final PatternDescr rightPattern = ((PatternDescr) (or.getDescrs().get(1)));\n TestCase.assertEquals(\"Person\", rightPattern.getObjectType());\n TestCase.assertEquals(\"foo\", rightPattern.getIdentifier());\n final PatternDescr cheeseDescr = ((PatternDescr) (getDescrs().get(1)));\n TestCase.assertEquals(\"Cheese\", cheeseDescr.getObjectType());\n TestCase.assertEquals(null, cheeseDescr.getIdentifier());\n assertEqualsIgnoreWhitespace(\"System.out.println( \\\"Mark and Michael\\\" + bar );\", ((String) (rule.getConsequence())));\n }", "CaseBlockRule createCaseBlockRule();", "public final void mRULE_BOR() throws RecognitionException {\n try {\n int _type = RULE_BOR;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12821:10: ( '|' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12821:12: '|'\n {\n match('|'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public final void ruleOpOr() 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:470:2: ( ( '||' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:471:1: ( '||' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:471:1: ( '||' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:472:1: '||'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \r\n }\r\n match(input,16,FOLLOW_16_in_ruleOpOr944); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpOrAccess().getVerticalLineVerticalLineKeyword()); \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 EObject entryRuleEntityReference() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleEntityReference = null;\n\n\n try {\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:422:2: (iv_ruleEntityReference= ruleEntityReference EOF )\n // ../org.xtext.example.lmrc.entity/src-gen/org/xtext/example/lmrc/entity/parser/antlr/internal/InternalEntityDsl.g:423:2: iv_ruleEntityReference= ruleEntityReference EOF\n {\n newCompositeNode(grammarAccess.getEntityReferenceRule()); \n pushFollow(FOLLOW_ruleEntityReference_in_entryRuleEntityReference954);\n iv_ruleEntityReference=ruleEntityReference();\n\n state._fsp--;\n\n current =iv_ruleEntityReference; \n match(input,EOF,FOLLOW_EOF_in_entryRuleEntityReference964); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public final EObject entryRuleBitwiseOrExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleBitwiseOrExpression = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2801:2: (iv_ruleBitwiseOrExpression= ruleBitwiseOrExpression EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2802:2: iv_ruleBitwiseOrExpression= ruleBitwiseOrExpression EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getBitwiseOrExpressionRule()); \r\n }\r\n pushFollow(FOLLOW_ruleBitwiseOrExpression_in_entryRuleBitwiseOrExpression6398);\r\n iv_ruleBitwiseOrExpression=ruleBitwiseOrExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleBitwiseOrExpression; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleBitwiseOrExpression6408); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "List<? extends Rule> getRules();", "public interface Entity {\n\n\tpublic abstract Point getCenterPosition();\n\n\tpublic abstract float getHeight();\n\n\tpublic abstract Colliding getHitbox();\n\n\tpublic abstract float getLifetime();\n\n\tpublic abstract String getName();\n\n\tpublic abstract Point getPosition();\n\n\tpublic abstract Team getTeam();\n\n\tpublic abstract float getWidth();\n\n\tpublic abstract boolean hit(Bullet bullet);\n\n\tpublic abstract void render();\n\n\tpublic abstract void renderShapes();\n\n\tpublic abstract void renderText();\n\n\tpublic abstract boolean update();\n}", "boolean isApplicableForAssetType(final AssetType assetType);", "@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n return super.isValidEntity(entity, game, useValidNonInfantryCheck)\n && (entity.getId() == entityId);\n }", "private Optional<Vertex> getAsset(Vertex asset) {\n GraphTraversalSource g = graphFactory.getGraphTraversalSource();\n Object vertexGuid = g.V(asset.id()).elementMap(PROPERTY_KEY_ENTITY_GUID).toList().get(0).get(PROPERTY_KEY_ENTITY_GUID);\n Vertex graphVertex = g.V().has(PROPERTY_KEY_ENTITY_GUID, vertexGuid).next();\n Object vertexId = graphVertex.id();\n Iterator<Vertex> result = null;\n if (RELATIONAL_COLUMN.equalsIgnoreCase(asset.label())) {\n result = g.V(vertexId).emit().repeat(bothE().otherV().simplePath()).times(1).or(hasLabel(RELATIONAL_TABLE));\n }\n if (TABULAR_COLUMN.equalsIgnoreCase(asset.label()) || TABULAR_FILE_COLUMN.equalsIgnoreCase(asset.label())) {\n result = g.V(vertexId).emit().repeat(bothE().otherV().simplePath()).times(2).\n or(hasLabel(P.within(DATA_FILE_AND_SUBTYPES)));\n }\n if (EVENT_SCHEMA_ATTRIBUTE.equalsIgnoreCase(asset.label())) {\n result = g.V(vertexId).emit().repeat(bothE().otherV().simplePath()).times(3).or(hasLabel(TOPIC));\n }\n commitTransaction(g);\n if (result == null) {\n return Optional.empty();\n } else {\n return Optional.of(result.next());\n }\n\n }", "public final void rulePredicateOr() throws RecognitionException {\n\n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:404:2: ( ( ( rule__PredicateOr__Group__0 ) ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:405:1: ( ( rule__PredicateOr__Group__0 ) )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:405:1: ( ( rule__PredicateOr__Group__0 ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:406:1: ( rule__PredicateOr__Group__0 )\n {\n before(grammarAccess.getPredicateOrAccess().getGroup()); \n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:407:1: ( rule__PredicateOr__Group__0 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:407:2: rule__PredicateOr__Group__0\n {\n pushFollow(FOLLOW_rule__PredicateOr__Group__0_in_rulePredicateOr723);\n rule__PredicateOr__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getPredicateOrAccess().getGroup()); \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 \tmyHiddenTokenState.restore();\n\n }\n return ;\n }", "protected boolean applyRuleTransaction(StateRuleTransaction tr) {\t\n\t\tString ruleCode = ((StateRuleTransaction)tr).code;\n\t\tSimpleRule rule = new SimpleRule(ruleCode);\n\t\t\n\t\tboolean isConditionValid = false;\n\t\tfor(AccountInterface account: accounts) {\n\t\t\tif (account.getAddress().equals(rule.account_condition)){\n\t\t\t\tisConditionValid = rule.validateOperand(account.getData()); \n\t\t\t}\n\t\t}\n\n\t\tif (isConditionValid) {\n\t\t\tfor(AccountInterface account: accounts) {\n\t\t\t\tif (account.getAddress().equals(rule.account_effect)){\n\t\t\t\t\taccount.setAssetType(rule.value_effect);\n\t\t\t\t\taccount.increaseNonce();\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\t\n\t}", "public static Asset createEntity(EntityManager em) {\n Asset asset = new Asset()\n .name(DEFAULT_NAME)\n .type(DEFAULT_TYPE)\n .fullPath(DEFAULT_FULL_PATH)\n .comments(DEFAULT_COMMENTS)\n .resourceId(DEFAULT_RESOURCE_ID);\n return asset;\n }", "public interface Entity {\n /**\n * check whether a collision with another entity happened\n * and perform the relevant action.\n * @param e the other entity\n * @return whether the collision happened\n */\n boolean collidedWith(Entity e);\n\n void draw(Graphics g, DisplayWriter d);\n\n void doLogic(long delta);\n\n void move(long delta);\n\n /**\n * whether or not the entity is out of the currently displayed area.\n * @return true if not visible\n */\n boolean outOfSight();\n}", "public final EObject ruleEEntity() throws RecognitionException {\n EObject current = null;\n\n Token lv_entity_0_0=null;\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:9295:2: ( ( (lv_entity_0_0= RULE_ENTITY ) ) )\n // InternalRMParser.g:9296:2: ( (lv_entity_0_0= RULE_ENTITY ) )\n {\n // InternalRMParser.g:9296:2: ( (lv_entity_0_0= RULE_ENTITY ) )\n // InternalRMParser.g:9297:3: (lv_entity_0_0= RULE_ENTITY )\n {\n // InternalRMParser.g:9297:3: (lv_entity_0_0= RULE_ENTITY )\n // InternalRMParser.g:9298:4: lv_entity_0_0= RULE_ENTITY\n {\n lv_entity_0_0=(Token)match(input,RULE_ENTITY,FOLLOW_2); \n\n \t\t\t\tnewLeafNode(lv_entity_0_0, grammarAccess.getEEntityAccess().getEntityENTITYTerminalRuleCall_0());\n \t\t\t\n\n \t\t\t\tif (current==null) {\n \t\t\t\t\tcurrent = createModelElement(grammarAccess.getEEntityRule());\n \t\t\t\t}\n \t\t\t\tsetWithLastConsumed(\n \t\t\t\t\tcurrent,\n \t\t\t\t\t\"entity\",\n \t\t\t\t\tlv_entity_0_0,\n \t\t\t\t\t\"org.sodalite.dsl.RM.ENTITY\");\n \t\t\t\n\n }\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public void setRule(int rule) {\n\t\tthis.rule = rule;\n\t}", "public final EObject ruleLogicalOrExpression() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n EObject this_LogicalAndExpression_0 = null;\r\n\r\n EObject lv_rightOperand_3_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2579:28: ( (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2580:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2580:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )* )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2581:5: this_LogicalAndExpression_0= ruleLogicalAndExpression ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n newCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getLogicalAndExpressionParserRuleCall_0()); \r\n \r\n }\r\n pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5902);\r\n this_LogicalAndExpression_0=ruleLogicalAndExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n current = this_LogicalAndExpression_0; \r\n afterParserOrEnumRuleCall();\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:1: ( () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) ) )*\r\n loop41:\r\n do {\r\n int alt41=2;\r\n int LA41_0 = input.LA(1);\r\n\r\n if ( (LA41_0==47) ) {\r\n alt41=1;\r\n }\r\n\r\n\r\n switch (alt41) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:2: () otherlv_2= '||' ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2589:2: ()\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2590:5: \r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t current = forceCreateModelElementAndSet(\r\n \t grammarAccess.getLogicalOrExpressionAccess().getLogicalOrExpressionLeftOperandAction_1_0(),\r\n \t current);\r\n \t \r\n \t }\r\n\r\n \t }\r\n\r\n \t otherlv_2=(Token)match(input,47,FOLLOW_47_in_ruleLogicalOrExpression5923); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_2, grammarAccess.getLogicalOrExpressionAccess().getVerticalLineVerticalLineKeyword_1_1());\r\n \t \r\n \t }\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2599:1: ( (lv_rightOperand_3_0= ruleLogicalAndExpression ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2600:1: (lv_rightOperand_3_0= ruleLogicalAndExpression )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2600:1: (lv_rightOperand_3_0= ruleLogicalAndExpression )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2601:3: lv_rightOperand_3_0= ruleLogicalAndExpression\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getRightOperandLogicalAndExpressionParserRuleCall_1_2_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5944);\r\n \t lv_rightOperand_3_0=ruleLogicalAndExpression();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getLogicalOrExpressionRule());\r\n \t \t }\r\n \t \t\tset(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"rightOperand\",\r\n \t \t\tlv_rightOperand_3_0, \r\n \t \t\t\"LogicalAndExpression\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop41;\r\n }\r\n } while (true);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "public final void ruleAstEntity() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:185:2: ( ( ( rule__AstEntity__Group__0 ) ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:186:1: ( ( rule__AstEntity__Group__0 ) )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:186:1: ( ( rule__AstEntity__Group__0 ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:187:1: ( rule__AstEntity__Group__0 )\n {\n before(grammarAccess.getAstEntityAccess().getGroup()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:188:1: ( rule__AstEntity__Group__0 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:188:2: rule__AstEntity__Group__0\n {\n pushFollow(FOLLOW_rule__AstEntity__Group__0_in_ruleAstEntity334);\n rule__AstEntity__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getAstEntityAccess().getGroup()); \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 abstract void collideWith(Entity entity);", "private final boolean matchActivity(AbstractArea area, ExecutionEntity entity) {\r\n\t\tboolean expr1 = StringUtils.equals(area.getActivityId(), entity.getActivityId());\r\n\t\tboolean expr2 = StringUtils.equals(area.getProcessId(), entity.getProcessDefinitionId());\r\n\r\n\t\treturn expr1 && expr2;\r\n\t}", "ModelRule createModelRule();", "public final EObject ruleLogicalOrExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_LogicalAndExpression_0 = null;\n\n EObject lv_operands_3_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3300:6: ( (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )? ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3301:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )? )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3301:1: (this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )? )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3302:5: this_LogicalAndExpression_0= ruleLogicalAndExpression ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )?\n {\n \n currentNode=createCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getLogicalAndExpressionParserRuleCall_0(), currentNode); \n \n pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5694);\n this_LogicalAndExpression_0=ruleLogicalAndExpression();\n _fsp--;\n\n \n current = this_LogicalAndExpression_0; \n currentNode = currentNode.getParent();\n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3310:1: ( () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+ )?\n int alt50=2;\n int LA50_0 = input.LA(1);\n\n if ( (LA50_0==49) ) {\n alt50=1;\n }\n switch (alt50) {\n case 1 :\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3310:2: () ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3310:2: ()\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3311:5: \n {\n \n temp=factory.create(grammarAccess.getLogicalOrExpressionAccess().getLogicalOrExpressionOperandsAction_1_0().getType().getClassifier());\n try {\n \tfactory.add(temp, \"operands\", current, null /*ParserRule*/, currentNode);\n } catch(ValueConverterException vce) {\n \thandleValueConverterException(vce);\n }\n current = temp; \n temp = null;\n CompositeNode newNode = createCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getLogicalOrExpressionOperandsAction_1_0(), currentNode.getParent());\n newNode.getChildren().add(currentNode);\n moveLookaheadInfo(currentNode, newNode);\n currentNode = newNode; \n associateNodeWithAstElement(currentNode, current); \n \n\n }\n\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3326:2: ( '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) ) )+\n int cnt49=0;\n loop49:\n do {\n int alt49=2;\n int LA49_0 = input.LA(1);\n\n if ( (LA49_0==49) ) {\n alt49=1;\n }\n\n\n switch (alt49) {\n \tcase 1 :\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3326:4: '||' ( (lv_operands_3_0= ruleLogicalAndExpression ) )\n \t {\n \t match(input,49,FOLLOW_49_in_ruleLogicalOrExpression5714); \n\n \t createLeafNode(grammarAccess.getLogicalOrExpressionAccess().getVerticalLineVerticalLineKeyword_1_1_0(), null); \n \t \n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3330:1: ( (lv_operands_3_0= ruleLogicalAndExpression ) )\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3331:1: (lv_operands_3_0= ruleLogicalAndExpression )\n \t {\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3331:1: (lv_operands_3_0= ruleLogicalAndExpression )\n \t // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3332:3: lv_operands_3_0= ruleLogicalAndExpression\n \t {\n \t \n \t \t currentNode=createCompositeNode(grammarAccess.getLogicalOrExpressionAccess().getOperandsLogicalAndExpressionParserRuleCall_1_1_1_0(), currentNode); \n \t \t \n \t pushFollow(FOLLOW_ruleLogicalAndExpression_in_ruleLogicalOrExpression5735);\n \t lv_operands_3_0=ruleLogicalAndExpression();\n \t _fsp--;\n\n\n \t \t if (current==null) {\n \t \t current = factory.create(grammarAccess.getLogicalOrExpressionRule().getType().getClassifier());\n \t \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t \t }\n \t \t try {\n \t \t \t\tadd(\n \t \t \t\t\tcurrent, \n \t \t \t\t\t\"operands\",\n \t \t \t\tlv_operands_3_0, \n \t \t \t\t\"LogicalAndExpression\", \n \t \t \t\tcurrentNode);\n \t \t } catch (ValueConverterException vce) {\n \t \t\t\t\thandleValueConverterException(vce);\n \t \t }\n \t \t currentNode = currentNode.getParent();\n \t \t \n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt49 >= 1 ) break loop49;\n EarlyExitException eee =\n new EarlyExitException(49, input);\n throw eee;\n }\n cnt49++;\n } while (true);\n\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "@Override\n public boolean isValidEntity(Entity entity, IGame game, \n boolean useValidNonInfantryCheck) {\n // The entity must be in the mask, and pass\n // the requirements of the parent class.\n return ((GameTurn.getClassCode(entity) & mask) != 0)\n && super.isValidEntity(entity, game, \n useValidNonInfantryCheck);\n }", "static List<Rule> parseRule(String rule) {\r\n ArrayList<Rule> list = new ArrayList<>();\r\n\r\n int splitIndex = rule.indexOf(\":\");\r\n String lhs = rule.substring(0, splitIndex).trim();\r\n String rhs = rule.substring(splitIndex + 1).trim();\r\n\r\n String[] split = rhs.split(\"[|]\");\r\n for (String part : split) {\r\n list.add(new Rule(lhs, part.trim()));\r\n }\r\n\r\n return list;\r\n }", "public final void rule__AstAbstractActor__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2614:1: ( ( ruleAstActor ) | ( ruleAstNetwork ) | ( ruleAstExternalActor ) )\n int alt7=3;\n switch ( input.LA(1) ) {\n case 70:\n {\n alt7=1;\n }\n break;\n case 57:\n {\n alt7=2;\n }\n break;\n case 68:\n {\n alt7=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 7, 0, input);\n\n throw nvae;\n }\n\n switch (alt7) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2615:1: ( ruleAstActor )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2615:1: ( ruleAstActor )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2616:1: ruleAstActor\n {\n before(grammarAccess.getAstAbstractActorAccess().getAstActorParserRuleCall_0()); \n pushFollow(FOLLOW_ruleAstActor_in_rule__AstAbstractActor__Alternatives5583);\n ruleAstActor();\n\n state._fsp--;\n\n after(grammarAccess.getAstAbstractActorAccess().getAstActorParserRuleCall_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2621:6: ( ruleAstNetwork )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2621:6: ( ruleAstNetwork )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2622:1: ruleAstNetwork\n {\n before(grammarAccess.getAstAbstractActorAccess().getAstNetworkParserRuleCall_1()); \n pushFollow(FOLLOW_ruleAstNetwork_in_rule__AstAbstractActor__Alternatives5600);\n ruleAstNetwork();\n\n state._fsp--;\n\n after(grammarAccess.getAstAbstractActorAccess().getAstNetworkParserRuleCall_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2627:6: ( ruleAstExternalActor )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2627:6: ( ruleAstExternalActor )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2628:1: ruleAstExternalActor\n {\n before(grammarAccess.getAstAbstractActorAccess().getAstExternalActorParserRuleCall_2()); \n pushFollow(FOLLOW_ruleAstExternalActor_in_rule__AstAbstractActor__Alternatives5617);\n ruleAstExternalActor();\n\n state._fsp--;\n\n after(grammarAccess.getAstAbstractActorAccess().getAstExternalActorParserRuleCall_2()); \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 EObject ruleConditionalOrExpression() throws RecognitionException {\n EObject current = null;\n\n Token lv_op_2_0=null;\n EObject this_ConditionalAndExpression_0 = null;\n\n EObject lv_right_3_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:230:28: ( (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )* ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:231:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )* )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:231:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )* )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:232:5: this_ConditionalAndExpression_0= ruleConditionalAndExpression ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )*\n {\n if ( state.backtracking==0 ) {\n \n newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getConditionalAndExpressionParserRuleCall_0()); \n \n }\n pushFollow(FOLLOW_ruleConditionalAndExpression_in_ruleConditionalOrExpression499);\n this_ConditionalAndExpression_0=ruleConditionalAndExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n \n current = this_ConditionalAndExpression_0; \n afterParserOrEnumRuleCall();\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:1: ( ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) ) )*\n loop3:\n do {\n int alt3=2;\n int LA3_0 = input.LA(1);\n\n if ( (LA3_0==28) ) {\n int LA3_2 = input.LA(2);\n\n if ( (synpred2_InternalJavaJRExpression()) ) {\n alt3=1;\n }\n\n\n }\n\n\n switch (alt3) {\n \tcase 1 :\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:2: ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) ) ( (lv_right_3_0= ruleConditionalAndExpression ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:2: ( ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:240:3: ( ( () ( ( '||' ) ) ) )=> ( () ( (lv_op_2_0= '||' ) ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:247:6: ( () ( (lv_op_2_0= '||' ) ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:247:7: () ( (lv_op_2_0= '||' ) )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:247:7: ()\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:248:5: \n \t {\n \t if ( state.backtracking==0 ) {\n\n \t current = forceCreateModelElementAndSet(\n \t grammarAccess.getConditionalOrExpressionAccess().getBinaryExpressionLeftAction_1_0_0_0(),\n \t current);\n \t \n \t }\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:253:2: ( (lv_op_2_0= '||' ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:254:1: (lv_op_2_0= '||' )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:254:1: (lv_op_2_0= '||' )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:255:3: lv_op_2_0= '||'\n \t {\n \t lv_op_2_0=(Token)match(input,28,FOLLOW_28_in_ruleConditionalOrExpression550); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t newLeafNode(lv_op_2_0, grammarAccess.getConditionalOrExpressionAccess().getOpVerticalLineVerticalLineKeyword_1_0_0_1_0());\n \t \n \t }\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElement(grammarAccess.getConditionalOrExpressionRule());\n \t \t }\n \t \t\tsetWithLastConsumed(current, \"op\", lv_op_2_0, \"||\");\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n\n\n \t }\n\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:268:4: ( (lv_right_3_0= ruleConditionalAndExpression ) )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:269:1: (lv_right_3_0= ruleConditionalAndExpression )\n \t {\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:269:1: (lv_right_3_0= ruleConditionalAndExpression )\n \t // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:270:3: lv_right_3_0= ruleConditionalAndExpression\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getRightConditionalAndExpressionParserRuleCall_1_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleConditionalAndExpression_in_ruleConditionalOrExpression586);\n \t lv_right_3_0=ruleConditionalAndExpression();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule());\n \t \t }\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"right\",\n \t \t\tlv_right_3_0, \n \t \t\t\"ConditionalAndExpression\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop3;\n }\n } while (true);\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }", "public EnumRule getRule() { return rule; }" ]
[ "0.5052246", "0.49508718", "0.49258715", "0.4772964", "0.47605744", "0.4746721", "0.47369936", "0.46318197", "0.46263778", "0.45953417", "0.455146", "0.44961062", "0.44413984", "0.44186577", "0.44105217", "0.43958804", "0.43555728", "0.4325574", "0.43197486", "0.43049493", "0.42981067", "0.42981067", "0.42981067", "0.42802948", "0.42670846", "0.42454898", "0.42433947", "0.42397526", "0.42263547", "0.41967636", "0.41932505", "0.41807052", "0.4166797", "0.41636586", "0.41565135", "0.4136127", "0.4123967", "0.4089418", "0.40885428", "0.40840206", "0.40785417", "0.40713537", "0.40616152", "0.40596104", "0.40583858", "0.405492", "0.40449068", "0.40385404", "0.4025042", "0.4009109", "0.40026793", "0.3993056", "0.39908305", "0.39848116", "0.39830106", "0.39807785", "0.39805877", "0.3975568", "0.3971044", "0.39665818", "0.39654106", "0.39617193", "0.39547268", "0.39546755", "0.3950154", "0.3944934", "0.3934236", "0.39322308", "0.3927585", "0.39077723", "0.39053392", "0.39019507", "0.39006245", "0.38994524", "0.3894285", "0.38879645", "0.3882505", "0.3880203", "0.38790104", "0.3877496", "0.3873619", "0.3867563", "0.3866258", "0.3853042", "0.3846694", "0.38400438", "0.38368452", "0.38310343", "0.38256606", "0.3822191", "0.3820623", "0.37957445", "0.37940887", "0.37931347", "0.3792644", "0.3788332", "0.3788332", "0.3788332", "0.3788332", "0.3788332" ]
0.7060286
0
Return the component id of the Entity or Asset that this rule should belong to.
public String getComponentId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getComponentId() {\n \t\treturn componentId;\n \t}", "public ResourceId component() {\n return this.component;\n }", "public int getComponentID() {\n return COMPONENT_ID;\n }", "public String getRuleID() {\n\t\treturn adaptee.getConstraint().getDescriptor().getId();\n\t}", "public UUID getComponentId();", "private static int getComponentIdFromCompName(String compName){\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"delInd\", 0));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}", "public Integer getRuleId() {\n return (Integer) getAttributeInternal(RULEID);\n }", "public int getRuleID()\n {\n return schema.getRuleID();\n }", "public abstract Integer getCompteId();", "public String getRuleId() {\r\n return (String) getAttributeInternal(RULEID);\r\n }", "public org.apache.axis.types.Token getComponentID() {\n return componentID;\n }", "public String getAssetModuleId();", "public static int getComponentId(final String compName, final String parentCompName) {\n\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcomponentCriteria.createCriteria(\"parentComponent\", \"pc\");\n\t\tcomponentCriteria.add(Restrictions.eq(\"componentName\",compName));\n\t\tcomponentCriteria.add(Restrictions.eq(\"pc.componentName\",parentCompName));\n\t\tcomponentCriteria.setMaxResults(1);\n\t\tComponentEntity com =(ComponentEntity) componentCriteria.uniqueResult();\n\t\tint compId = 0;\n\t\tif(com != null){\n\t\t\tcompId = com.getComponentId();\n\t\t}\n\t\ttxn.commit();\n\t\treturn compId;\n\t}", "public interface EntityOrAssetRule extends Rule {\n /**\n * Return the component id of the Entity or Asset that this rule should\n * belong to.\n * @return The component id.\n */\n public String getComponentId();\n \n /**\n * Given a mission objective and a system, find the corresponding component\n * to this rule, and add this rule to that component.\n * @param objective The mission objective.\n * @param system The system containing the component for this rule.\n */\n public void addToComponent(String objective, OpSystem system);\n}", "public String getRuleId() {\n return ruleId;\n }", "public String getRuleId() {\n return this.RuleId;\n }", "public String getAssetId();", "public String getEntityId() {\r\n\t\treturn EngineTools.getEntityId(getEntityKeys()[2]);\r\n\t}", "public int getRuleId() {\n\t\treturn ruleId;\n\t}", "public Record getComponentIdAndBaseId(Record record);", "String getId(IApiComponent component) throws CoreException {\n StringBuffer buffer = new StringBuffer();\n //$NON-NLS-1$\n buffer.append(component.getSymbolicName()).append(\" \").append('(').append(component.getVersion()).append(')');\n return buffer.toString();\n }", "@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _circulationRuleLocalService.getBeanIdentifier();\n\t}", "public int getId() {\n return parameter.getId();\n }", "public Integer getCompId() {\n return compId;\n }", "String getConstraintSetId();", "public Guid getSplittingRuleId() {\r\n return splittingRuleId;\r\n }", "java.lang.String getConceptId();", "private String getUniqueId(JCas jCas) {\n return ConsumerUtils.getExternalId(getDocumentAnnotation(jCas), contentHashAsId);\n }", "public long checkComponent(String name) {\n\t\tif(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().size()>0){\n\t\t\treturn ((Component)(sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name = ?\").setParameter(0, name).list().get(0))).getId();\n\t\t}\n\t\treturn -1;\n\t}", "public Long getCompId() {\n return compId;\n }", "public Long getCompId() {\n return compId;\n }", "public long getCourseId() {\n return _courseImage.getCourseId();\n }", "String getPipelineId();", "@ApiModelProperty(example = \"null\", value = \"The id of the component.\")\n public String getId() {\n return id;\n }", "public int getId() {\n\t\treturn definition.get().getId();\n\t}", "public String getComponent() {\r\n\t\treturn component;\r\n\t}", "public Entity getComponent() {\n return component;\n }", "public int getId() {\n\t\treturn this.ordinal();\n\t}", "public long getId() {\n\t\treturn graphicFrame.getNvGraphicFramePr().getCNvPr().getId();\n\t}", "public String getObjectId() {\n switch (getObjectType()) {\n case Campaign:\n return campaignId;\n case Ad:\n return adId;\n case AdSet:\n return adSetId;\n case Account:\n return accountId;\n default:\n throw new IllegalArgumentException(\"Unknown object type\");\n }\n }", "public int getEntityId ( ) {\n\t\treturn invokeSafe ( \"getEntityId\" );\n\t}", "public Long getRuleID() {\n return this.RuleID;\n }", "public StrColumn getEntityId() {\n return delegate.getColumn(\"entity_id\", DelegatingStrColumn::new);\n }", "public TerminalRule getIDRule() {\r\n\t\treturn gaXtype.getIDRule();\r\n\t}", "public abstract int getLayoutId();", "public abstract int getLayoutId();", "public abstract int getLayoutId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}", "public TerminalRule getIDRule() {\n\t\treturn gaXtype.getIDRule();\n\t}", "public static int getComponentByNameAndParent(final String name, final int parentId, final int componentTypeId, String platform) {\n\t\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria healthCheckCriteria = session.createCriteria(ComponentEntity.class, \"c\");\n\t\thealthCheckCriteria.createCriteria(\"c.componentType\",\"ct\");\n\t\tif(parentId != 0){\n\t\t\thealthCheckCriteria.createCriteria(\"c.parentComponent\", \"prnt\");\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"prnt.componentId\", parentId));\n\t\t\thealthCheckCriteria.add(Restrictions.eq(\"c.platform\", platform));\n\t\t} else {\n\t\t\thealthCheckCriteria.add(Restrictions.isNull(\"c.parentComponent\"));\n\t\t}\n\t\thealthCheckCriteria.add(Restrictions.eq(\"c.componentName\", name));\n\t\thealthCheckCriteria.add(Restrictions.eq(\"ct.componentTypeId\", componentTypeId));\n\t\t\n\t\thealthCheckCriteria.setMaxResults(1);\n\t\tComponentEntity comp = (ComponentEntity) healthCheckCriteria.uniqueResult();\n\t\ttxn.commit();\n\t\t\n\t\tif(comp == null){\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tif(comp.getDelInd() == 1){\n\t\t\tDBQueryUtil.setDelIndOfComponent(comp.getComponentId(), 0);\n\t\t}\n\t\treturn comp.getComponentId();\n\t}", "public int getId() {\n\t\t\treturn 0;\n\t\t}", "public Rule idExpr()\n \t{\n \t\treturn firstOf(idExprReq(), id());\n \t}", "int getLayoutId();", "public String getComponent() {\n return this.component;\n }", "public int getId() {\n return m_module.getConfiguration().getId();\n }", "public abstract int layoutId();", "public int getId() {\n return instance.getId();\n }", "@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((myComponent == null) ? 0 : myComponent.hashCode());\r\n\t\treturn result;\r\n\t}", "@Override\n public final Long getItsId() {\n return this.manufacture.getItsId();\n }", "private int findComp(Component cmpnt) {\n\n for (int i = 0; i < compList.length; i++) {\n if (compList[i].equals(cmpnt)) {\n return i;\n }\n }\n\n return 0;\n }", "public int getComponentId(int v) {\n return ids[v];\n }", "public int getId() {\n return instance.getId();\n }", "public String getCoda2Component() {\n return coda2Component;\n }", "public String getControlId() throws PixSourceException {\n\t\t\n\t\tSegment seg = getSegments().getByCodeAndIndex(MSA, 1);\n\t\tint fieldIndex = 1;\n\t\t\n\t\ttry {\n\t\t\treturn seg.forceField(fieldIndex).getAsString();\n\t\t} catch (HL7V2Exception e) {\n\t\t\tthrow new PixSourceException(e);\n\t\t}\n\t}", "public String getIdFromRootElement(final String xml) {\r\n String result = null;\r\n // FIXME PATTERN_OBJID_ATTRIBUTE is static field !\r\n // FIXME this pattern does not work for componentId\r\n Pattern patternObjidAttributeJustForThisMethod = Pattern.compile(\"href=\\\"/ir/[^/]+/([^\\\"]*)\\\"\");\r\n Matcher m1 = patternObjidAttributeJustForThisMethod.matcher(xml);\r\n if (m1.find()) {\r\n result = m1.group(1);\r\n }\r\n\r\n return result;\r\n }", "private ModuleMetadataSpec.Identity identity() {\n Map<SoftwareComponent, SoftwareComponent> owners = new HashMap<>();\n collectOwners(publications, owners);\n\n SoftwareComponent owner = owners.get(component.get());\n ComponentData ownerData = owner == null ? null : componentCoordinates.get(owner);\n ComponentData componentData = new ComponentData(publication.getCoordinates(), publication.getAttributes());\n\n return ownerData != null\n ? identityFor(ownerData, relativeUrlTo(componentData.coordinates, ownerData.coordinates))\n : identityFor(componentData, null);\n }", "public int getId() {\n\t\treturn config >> 8;\n\t}", "public long getCourseImageId() {\n return _courseImage.getCourseImageId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getId() {\n return instance.getId();\n }", "public int getCT_CompLifeCycleModel_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_CT_CompLifeCycleModel_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "public long getEntityId();", "public static String getId(NameSpaceContainer container) {\n EntityId entityId;\n switch (container.getType()) {\n case SOURCE:\n entityId = container.getSource().getId();\n break;\n case SPACE:\n entityId = container.getSpace().getId();\n break;\n case HOME:\n entityId = container.getHome().getId();\n break;\n case FOLDER:\n entityId = container.getFolder().getId();\n break;\n case DATASET:\n entityId = container.getDataset().getId();\n break;\n default:\n throw new RuntimeException(\"Invalid container type\");\n }\n\n return entityId != null ? entityId.getId() : null;\n }", "ComponentRuleType createComponentRuleType();", "public int getIdRequirement() {\r\n return idRequirement;\r\n }", "public Integer getElementID()\r\n\t\t{ return element instanceof Schema ? ((Schema)element).getId() : ((SchemaElement)element).getId(); }" ]
[ "0.6675326", "0.6289935", "0.6240872", "0.621939", "0.6167468", "0.5994684", "0.58232754", "0.57597715", "0.5735986", "0.57080615", "0.56925756", "0.5589397", "0.5541113", "0.55382246", "0.5535904", "0.55264413", "0.55098635", "0.5495985", "0.547275", "0.5382775", "0.53365225", "0.5309509", "0.52988076", "0.5298734", "0.52750987", "0.5238849", "0.5228263", "0.5227019", "0.5217244", "0.5216581", "0.5216581", "0.52123797", "0.521178", "0.5172143", "0.5158126", "0.51502675", "0.5131852", "0.51293117", "0.5124249", "0.51200885", "0.508763", "0.5083651", "0.50812495", "0.5078403", "0.5062035", "0.5062035", "0.5062035", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5060891", "0.5052606", "0.5052606", "0.5052112", "0.50480235", "0.5032183", "0.5028856", "0.5017143", "0.49855918", "0.49832848", "0.49769017", "0.497055", "0.4968663", "0.4966774", "0.4948443", "0.49371508", "0.49289694", "0.49229926", "0.49186316", "0.49182713", "0.49171042", "0.4902321", "0.48854348", "0.48854348", "0.48854348", "0.48854348", "0.48854348", "0.48854348", "0.48854348", "0.4884467", "0.48832542", "0.48832235", "0.4882878", "0.48636922", "0.48624888" ]
0.6452751
1
Given a mission objective and a system, find the corresponding component to this rule, and add this rule to that component.
public void addToComponent(String objective, OpSystem system);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EntityOrAssetRule extends Rule {\n /**\n * Return the component id of the Entity or Asset that this rule should\n * belong to.\n * @return The component id.\n */\n public String getComponentId();\n \n /**\n * Given a mission objective and a system, find the corresponding component\n * to this rule, and add this rule to that component.\n * @param objective The mission objective.\n * @param system The system containing the component for this rule.\n */\n public void addToComponent(String objective, OpSystem system);\n}", "private void addObjectTo(Obstacle obj, int l) {\r\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\r\n\t\tif (l == LevelCreator.allTag) {\r\n\t\t\tsharedObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t\telse if (l == LevelCreator.lightTag) {\r\n\t\t\tlightObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}else if (l == LevelCreator.darkTag) {\r\n\t\t\tdarkObjects.add(obj);\r\n\t\t\t//obj.activatePhysics(world);\r\n\t\t}\r\n\t}", "public void add(Problem problem);", "public void addMission(Mission mission) {\n mission.setChallenge(this);\n this.missions.add(mission);\n this.xp += mission.getXp();\n this.level++;\n }", "@SuppressWarnings(\"unchecked\")\n \tvoid addSystem(EntitySystem system) {\n \t\tif (systems.contains(system))\n \t\t\tthrow new RuntimeException(\"System already added\");\n \t\tsystem.id = getNewSystemId();\n \t\tsystem.componentBits = world.getComponentBits(system.components);\n \n \t\tClass<? extends EntitySystem> class1 = system.getClass();\n \t\tdo {\n \t\t\tfor (Field field : class1.getDeclaredFields()) {\n \t\t\t\t// Check for ComponentManager declarations.\n \t\t\t\tif (field.getType() == ComponentMapper.class) {\n \t\t\t\t\tfield.setAccessible(true);\n \t\t\t\t\t// Read the type in the <> of componentmanager\n \t\t\t\t\tType type = ((ParameterizedType) field.getGenericType()).getActualTypeArguments()[0];\n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Set the component manager declaration with the right\n \t\t\t\t\t\t// component manager.\n \t\t\t\t\t\tfield.set(system, world.getComponentMapper((Class<? extends Component>) type));\n \t\t\t\t\t} catch (IllegalArgumentException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t} catch (IllegalAccessException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t// check for EventListener declarations.\n \t\t\t\tif (field.getType() == EventListener.class) {\n \t\t\t\t\tfield.setAccessible(true);\n \t\t\t\t\t// Read the type in the <> of eventListener.\n \t\t\t\t\tType type = ((ParameterizedType) field.getGenericType()).getActualTypeArguments()[0];\n \t\t\t\t\t@SuppressWarnings(\"rawtypes\")\n \t\t\t\t\tEventListener<? extends Event> eventListener = new EventListener();\n \t\t\t\t\tworld.registerEventListener(eventListener, (Class<? extends Event>) type);\n \n \t\t\t\t\ttry {\n \t\t\t\t\t\t// Set the event listener declaration with the right\n \t\t\t\t\t\t// field listener.\n \t\t\t\t\t\tfield.set(system, eventListener);\n \t\t\t\t\t} catch (IllegalArgumentException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t} catch (IllegalAccessException e) {\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tclass1 = (Class<? extends EntitySystem>) class1.getSuperclass();\n \t\t} while (class1 != EntitySystem.class);\n \t\tsystems.add(system);\n \t\tsystemMap.put(system.id, system);\n\t\tsystem.world = world;\n \t}", "public static ISPObsComponent findAOSystem(ISPObservation obs) {\n if (obs != null) {\n Iterator iter = obs.getObsComponents().iterator();\n while (iter.hasNext()) {\n ISPObsComponent obsComp = (ISPObsComponent) iter.next();\n if (isAOInstrument(obsComp)) {\n return obsComp;\n }\n }\n }\n return null;\n }", "protected void addObjective() throws IloException {\n IloLinearNumExpr objective = model.linearNumExpr();\n\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; j++) {\n objective.addTerm(x[i][j], costs[i][j]);\n\n }\n }\n\n IloObjective Obj = model.addObjective(IloObjectiveSense.Minimize, objective);\n }", "private void addSolarSystem(final SolarSystem pSolar)\n \t{\n \t\tif (aTempSolarSystem == null) {\n \t\t\taTempSolarSystem = pSolar;\n \t\t}\n \t\taSolarSystems.put(pSolar.getID(), pSolar);\n \t\t// if new solar system is out of bounds, resize\n \t\taSize = Math.max(aSize, pSolar.getRadius() + (int) pSolar.getPoint3D().getDistanceToOrigin());\n \t}", "public static ExecutionResult lookupSystemRelatioinship(Universe universe, Node person, Node system) {\n ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());\n String query = \"START p=node(\" + person.getId() + \"), s=node(\" + system.getId() + \") MATCH (p)-[r:\" + RelationshipTypes.LIVED_ON + \"]->s RETURN s.name\";\n return engine.execute(query);\n }", "public void createMission(Mission mission) throws IllegalArgumentException;", "public Systems add(System system) {\r\n\t\tif (system != null) {\r\n\t\t\tif (system instanceof InitializeSystem) {\r\n\t\t\t\t__initializeSystems.add((InitializeSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof ExecuteSystem) {\r\n\t\t\t\t__executeSystems.add((ExecuteSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof RenderSystem) {\r\n\t\t\t\t__renderSystems.add((RenderSystem) system);\r\n\t\t\t}\r\n\t\t\tif (system instanceof TearDownSystem) {\r\n\t\t\t\t__tearDownSystems.add((TearDownSystem) system);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "protected void addObject(Obstacle obj) {\n\t\tassert inBounds(obj) : \"Object is not in bounds\";\n\t\tobjects.add(obj);\n\t\tobj.activatePhysics(world);\n\t}", "public void add_rule(Rule rule) throws Exception;", "public void addObjective(String objectiveName, String criteria, DisplaySlot displaySlot, String displayName) {\n Objective objective = scoreboard.registerNewObjective(objectiveName, criteria);\n objective.setDisplaySlot(displaySlot);\n\n if (displayName == null) return;\n objective.setDisplayName(ColorMessage.color(displayName));\n }", "public void updateMission(Mission mission) throws IllegalArgumentException;", "public void addCargoShip(Scanner sc){\n CargoShip cShip = new CargoShip(sc, portMap, shipMap, dockMap);\n if(hashMap.containsKey(cShip.getParent())){\n if(hashMap.get(cShip.getParent()).getIndex()>=10000 && hashMap.get(cShip.getParent()).getIndex() < 20000){\n currentPort = (SeaPort) hashMap.get(cShip.getParent());\n currentPort.setShips(cShip);\n currentPort.setAllShips(cShip);\n }\n else{\n currentDock = (Dock) hashMap.get(cShip.getParent());\n currentDock.addShip(cShip);\n currentPort = (SeaPort) hashMap.get(currentDock.getParent());\n currentPort.setAllShips(cShip);\n }\n \n \n }\n hashMap.put(cShip.getIndex(), cShip);\n shipMap.put(cShip.getIndex(), cShip);\n everything.add(cShip);\n }", "void addCoordinateSystem(CoordinateSystem cs);", "public void add(Object objeto) throws BolsaCompletaException {\r\n\r\n\t\tif (lista.size() < tope) { // chequeamos que la bolsa ya no este llena\r\n\t\t\tlista.add(objeto);// agregamos el objeto a la bolsa\r\n\t\t\tSystem.out.println(\"Se Agrego el objeto a la bolsa\");\r\n\t\t} else {\r\n\r\n\t\t\t throw new BolsaCompletaException(\" Cosas \");//recordar agregar throws\r\n\t\t\t//throw new RuntimeException(\"No Caben Mas elementos\");\r\n\t\t}\r\n\r\n\t}", "public void addSolarSystem(SolarSystem solarSystem) {\n interactor.addSolarSystem(solarSystem);\n }", "public static void bindToObjective(SOS2Primitive prim,Objective obj,Matrix matrix){\n// \t\tprim.getDependent(0).setCoefficientForObjective(prim.objType, 1);\n\t\tint row=matrix.numRows();\n\t\tMatrixRow rowpointer =new MatrixRow(0,0,LPX.LPX_FX,\n\t\t\t\trow,\"Bind\",\"BindingRow\"+prim.objType);\n\t\tmatrix.addRow(rowpointer);\n\t\trow++;\n\t\trowpointer.addElement(new MatrixElement(prim.getDependentColumn(0),-1));\n//\t\tSystem.out.println(\"building binding row with \"+obj.variables().size()+\" \"+obj.type);\n\t\tfor(MatrixVariable var:obj.variables()){\n\t\t\trowpointer.addElement(new MatrixElement(var.column(),var.getCoefficientForObjective(obj.type)));\n\t\t}\n\t\tmatrix.flagForAlwaysRebuild();\n\t}", "public final EObject entryRuleSystem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSystem = null;\n\n\n try {\n // InternalSPDSL.g:64:47: (iv_ruleSystem= ruleSystem EOF )\n // InternalSPDSL.g:65:2: iv_ruleSystem= ruleSystem EOF\n {\n newCompositeNode(grammarAccess.getSystemRule()); \n pushFollow(FOLLOW_1);\n iv_ruleSystem=ruleSystem();\n\n state._fsp--;\n\n current =iv_ruleSystem; \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "public static void buildConstraints(SOS2Primitive constraint,Matrix matrix){\n\t\tint row=matrix.numRows();\n\t\t// First the reference row \t\t\n\t\tMatrixRow rowpointer =new MatrixRow(0,0,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"ReferenceRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(0),-1));\n\t\tfor(int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),constraint.xVals[i]));\n\t\t}\n\t\t\n\t\t// Now the convexity row\n\t\trowpointer =new MatrixRow(1,1,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"ConvexityRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\tfor(int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),1));\n\t\t}\n\t\t\n\t\tint firstBinVarColumn=constraint.xVals.length+1;\n\t\t// Constraint to ensure one and only one non-zero binary variable\n\t\trowpointer =new MatrixRow(1,1,LPX.LPX_FX,\n\t\t\t\trow,constraint.label,\"BinaryNZRow\");\n\t\tmatrix.addRow(rowpointer);\t\t\n\t\trow++;\n\t\tfor(int i=0;i<(constraint.xVals.length-1);i++){\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+firstBinVarColumn),1));\n\t\t}\n\t\t\n\t\t// Now we need several rows to ensure the SOS2 property\n\t\tfor( int i=0;i<constraint.xVals.length;i++){\n\t\t\trowpointer =new MatrixRow(0,0,LPX.LPX_LO,\n\t\t\t\t\trow,constraint.label,\"SOS2Row\"+i);\n\t\t\tmatrix.addRow(rowpointer);\t\t\n\t\t\trow++;\n\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(i+1),-1));\n\t\t\tfor( int b=0;b<2;b++){\n\t\t\t\tint bc=i-b+firstBinVarColumn; // Column index for associated binary variable\n\t\t\t\tif ( bc >=firstBinVarColumn && bc < (firstBinVarColumn+constraint.xVals.length-1)){\n\t\t\t\t\trowpointer.addElement(new MatrixElement(constraint.getDependentColumn(bc),1));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\n\t}", "public void registerAlgorithmSSON(AlgorithmRule rule, ComputingAlgorithmManagerSSON algortithmManager ){\n\t\tif (rule.svec==true){\n\t\t\tsvecAlgorithmListsson.put(new Integer(rule.of), algortithmManager);\n\t\t}\n\t\telse {\n\t\t\tsingleAlgorithmListsson.put(new Integer(rule.of), algortithmManager);\n\t\t}\n\t}", "public void registerAlgorithm(AlgorithmRule rule, ComputingAlgorithmManager algortithmManager ){\n\t\tif (rule.svec==true){\n\t\t\tsvecAlgorithmList.put(new Integer(rule.of), algortithmManager);\n\t\t}\n\t\telse {\n\t\t\tsingleAlgorithmList.put(new Integer(rule.of), algortithmManager);\n\t\t}\n\n\t}", "public Collection<LinearConstraint> createConstraint(MathematicalProgram problem, Scenario scenario, ElectricPowerFlowConnection connection, ElectricPowerModel model) throws NoVariableException, InvalidConstraintException {\n ArrayList<LinearConstraint> constraints = new ArrayList<LinearConstraint>();\n// ElectricPowerModel modelK = (ElectricPowerModel)scenario.getModel();\n int k = scenario.getIndex();\n FlowScenarioVariableFactory flowVariableFactory = new FlowScenarioVariableFactory(scenarios);\n PhaseAngleScenarioVariableFactory phaseAngleVariableFactory = new PhaseAngleScenarioVariableFactory(scenarios);\n\n ElectricPowerNode fNode = model.getFirstNode(connection);\n ElectricPowerNode sNode = model.getSecondNode(connection);\n \n double impedance = connection.getSusceptance();\n LinearConstraint constraint = new LinearConstraintEquals(getFlowConstraintName(connection, k));\n constraint.setRightHandSide(0.0);\n constraint.addVariable(flowVariableFactory.getVariable(problem, connection, scenario), -1.0); \n constraint.addVariable(phaseAngleVariableFactory.getVariable(problem, fNode, scenario), impedance);\n constraint.addVariable(phaseAngleVariableFactory.getVariable(problem, sNode, scenario), -impedance);\n problem.addLinearConstraint(constraint);\n constraints.add(constraint);\n\n \n \n return constraints;\n }", "public void addSolution() {\n\t\tsolvable=true;\n\t\tbuffer.insert(this.toStringArray());\n\t}", "public void addRule(SkeletonJoint from, int relation, int dist, SkeletonJoint to)\n\t{\n\t\tBodyPoseRule rule = new BodyPoseRule(from, relation, dist, to);\n\t\trules.add(rule);\n\t}", "void addCollisionObject(CollisionObjectWrapper co) {\n\tpendingObjects.put(co.getId(), co);\n }", "public void setObjective(Variable v) {\r\n\t\tobjective = v;\r\n\t\tif (v != null) {\r\n\t\t\tadd(v);\r\n\t\t}\r\n\t}", "public ExplanationPipeline<I, F>\n addRuleOptimizer(Optimizer<RuleExplanation, RuleExplanationFactory, ?, ?> toAdd) {\n return addRuleOptimizer(toAdd, false);\n }", "void addComponent(Component component);", "public final EObject entryRuleSystem() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleSystem = null;\n\n\n try {\n // InternalStl.g:64:47: (iv_ruleSystem= ruleSystem EOF )\n // InternalStl.g:65:2: iv_ruleSystem= ruleSystem EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getSystemRule()); \n }\n pushFollow(FOLLOW_1);\n iv_ruleSystem=ruleSystem();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleSystem; \n }\n match(input,EOF,FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }", "private void addSP(OMANode mo, OSUManager osuManager) throws IOException {\n MOTree moTree;\n try (BufferedInputStream in = new BufferedInputStream(new FileInputStream(mPpsFile))) {\n moTree = MOTree.unmarshal(in);\n moTree.getRoot().addChild(mo);\n\n /*\n OMAConstructed ppsRoot = (OMAConstructed)\n moTree.getRoot().addChild(TAG_PerProviderSubscription, \"\", null, null);\n for (OMANode child : mo.getChildren()) {\n ppsRoot.addChild(child);\n if (!child.isLeaf()) {\n moTree.getRoot().addChild(child);\n }\n else if (child.getName().equals(TAG_UpdateIdentifier)) {\n OMANode currentUD = moTree.getRoot().getChild(TAG_UpdateIdentifier);\n if (currentUD != null) {\n moTree.getRoot().replaceNode(currentUD, child);\n }\n else {\n moTree.getRoot().addChild(child);\n }\n }\n }\n */\n }\n writeMO(moTree, mPpsFile, osuManager);\n }", "@Override\n public void updateIndividualObjectivesAndConstraints(\n OptimizationProblem problem,\n Individual individual) {\n double[] x = individual.real;\n // Number of design variables\n int n = x.length;\n // number of objectives\n int m = problem.objectives.length;\n // (g) calculations\n double summation = 0;\n for (int i = m - 1; i < n; i++) {\n summation += Math.pow(x[i] - 0.5, 2);\n }\n double g = summation;\n // Create objective functions\n for (int i = 0; i < m; i++) {\n double objValue = 1 + g;\n for (int j = 0; j < m - i - 1; j++) {\n objValue *= Math.cos(Math.pow(x[j], ALPHA) * Math.PI / 2);\n }\n if (i != 0) {\n objValue *= Math.sin(Math.pow(x[m - i - 1], ALPHA)\n * Math.PI / 2);\n }\n individual.setObjective(i, objValue);\n }\n // Announce that objective function values are valid\n individual.validObjectiveFunctionsValues = true;\n // Update constraint violations if constraints exist\n if (problem.constraints != null) {\n // In C3-DTLZ4, the number of constraints is equal to the number of\n // objectives\n double[] constraints = new double[problem.objectives.length];\n for (int j = 0; j < constraints.length; j++) {\n constraints[j] = Math.pow(individual.getObjective(j), 2)\n / 4 - 1;\n for (int i = 0; i < problem.objectives.length; i++) {\n if (i != j) {\n constraints[j]\n += Math.pow(individual.getObjective(i), 2);\n }\n }\n }\n // Set constraints vilations\n for (int i = 0; i < constraints.length; i++) {\n if (constraints[i] < 0) {\n individual.setConstraintViolation(i, constraints[i]);\n } else {\n individual.setConstraintViolation(i, 0);\n }\n }\n // Announce that objective function values are valid\n individual.validConstraintsViolationValues = true;\n }\n // Increase Evaluations Count by One (counted per individual)\n funEvaCount++;\n }", "public void addDependentJob(IJob job);", "public void addRule(SkeletonJoint from, int relation, SkeletonJoint to)\n\t{\n\t\tBodyPoseRule rule = new BodyPoseRule(from, relation, to);\n\t\trules.add(rule);\n\t}", "@NonNull\n public static ArrayList<Function> solve(\n @NonNull LinearSystem<Numerical, FArray<Numerical>> systemToSolve)\n throws CircuitShortingException {\n\n n = systemToSolve.variablesNumber();\n\n // Solve initial system\n ArrayList<FArray<Numerical>> solution = systemToSolve.getSolution();\n\n RealMatrix A = getRightSideMatrix(solution);\n RealVector constants = getRightSideConstants(solution);\n\n // Set answer if A is getZero\n if (isZeroMatrix(A)) {\n ArrayList<Function> answer = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n answer.add(Functions.constant(constants.getEntry(i)).integrate());\n }\n return answer;\n }\n\n // Evaluate general solution\n Matrix<Function> matrixExponent = MatrixExponent.matrixExponent(A);\n\n // Evaluate particle solution\n Matrix<Function> underIntegralMatrix = MatrixExponent.matrixExponent(A.scalarMultiply(-1))\n .multiply(Matrices.getFunctionMatrix(constants));\n\n Matrix<Function> constPart =\n matrixExponent.multiply(Matrices.integrate(underIntegralMatrix));\n\n // Find constants for initial values\n ArrayList<Numerical> coefficients;\n try {\n coefficients = getCoefficients(matrixExponent, constPart);\n } catch (InconsistentSystemException e) {\n throw new RuntimeException(); // Should never happen\n }\n\n\n // Set answer\n ArrayList<Function> answer = new ArrayList<>();\n for (int i = 0; i < n; i++) {\n Function answerAddition = Functions.zero();\n\n for (int j = 0; j < n; j++) {\n answerAddition = answerAddition.add(matrixExponent.get(i, j)\n .multiplyConstant(coefficients.get(j)));\n }\n\n answerAddition = answerAddition.add(constPart.get(i, 0));\n\n answer.add(answerAddition);\n }\n\n return answer;\n }", "public void addProcess(String name, int time, HashMap<Integer, Integer> listOfInOut, HashMap<Integer, Integer> listOfResource) {\n listOfProcess.add(new Processus(name, time, listOfInOut, listOfResource));\n }", "public void addComponent(Component c);", "private void insert(String component, String feature) {\n\tthis.entities.putIfAbsent(component, new HashSet<String>());\n\tSet<String> componentFeatures = this.entities.get(component);\n\tcomponentFeatures.add(feature);\n\tthis.entities.put(component, componentFeatures);\n\t// From features to components which possess them\n\tthis.features.putIfAbsent(feature, new HashSet<String>());\n\tSet<String> components = this.features.get(feature);\n\tcomponents.add(component);\n\t//LogInfo.logs(\" adding: %s :: %s\", feature, component);\n\tthis.features.put(feature, components);\n }", "protected final void addSpaceDependency(ChessSpace... toAdd){\n\t\tfor(ChessSpace dep: toAdd){\n\t\t\tdependentSpaces.add(dep);\n\t\t\tdep.addDependentMove(this);\n\t\t}\n\t}", "public void addCoordinateSystem(CoordinateSystem cs) {\n if (cs == null)\n throw new RuntimeException(\"Attempted to add null CoordinateSystem to var \" + forVar.getFullName());\n\n if (coordSys == null)\n coordSys = new ArrayList<>(5);\n coordSys.add(cs);\n }", "@Override\n\tpublic void addStore(int timeUnit) {\n if (getVarsEnviromen().size() > 0) {\n\t\t\tfor (AmbientC amb: getVarsEnviromen() ){\n\t\t\t\tif (amb.getUnitTime() == timeUnit){\n int nvar = super.nvarDef(amb);\n switch (nvar) {\n case 1:\n if (super.findVars(amb.getVarname1()) ) {\n Store.addConstra(amb.getConstraint());\n System.out.println(\"Constraint Cargado - \" + amb.getConstraint().getClass().toString());\n }\n break;\n case 2:\n if (super.findVars(amb.getVarname1()) && super.findVars(amb.getVarname2())) {\n Store.addConstra(amb.getConstraint());\n System.out.println(\"Constraint Cargado - \" + amb.getConstraint().getClass().toString());\n }\n break;\n case 3:\n if (super.findVars(amb.getVarname1()) && super.findVars(amb.getVarname2()) && super.findVars(amb.getVarname3()) ) {\n Store.addConstra(amb.getConstraint());\n System.out.println(\"Constraint Cargado - \" + amb.getConstraint().getClass().toString());\n }\n break;\n default: break;\n }\n\t\t\t\t}\n\t\t\t}\n } else {\n System.out.println(\"Ambient- <AddStore> -No existen Elementos en el Ambiente \" );\n }\n\n\t}", "public void addLaboratoryObservation(LaboratoryObservation observation) {\n\t\tgetMdht().addObservation(observation.copy());\n\n\t\tfinal int nb = getMdht().getComponents().size() - 1;\n\t\tgetMdht().getComponents().get(nb).setTypeCode(ActRelationshipHasComponent.COMP);\n\n\t}", "private void setObjective() throws IloException{\n\n IloLinearNumExpr expr = this.cplex.linearNumExpr();\n int i = 0;\n for(IloNumVar xi : x){\n expr.addTerm(xi, this.c[i]);\n i++;\n }\n this.objective = this.cplex.addMinimize(expr);\n }", "IRuleset add(IRuleset rule);", "public void addObstacle(Coord obstacleCoord);", "public void parseAddWorkerToSite(String inpt, int passedCommunicationTurn) {\n\t\tString[] numbers = inpt.split(\" \");\n\t\t\n\t\tint buildingNo = new Integer(numbers[numbers.length-1]).intValue();\n\t\tint[] unitNos = new int[numbers.length-1];\n\t\t\n\t\tfor(int n = 0; n < numbers.length-1; n++){\n\t\t\t\n\t\t\tunitNos[n] = new Integer(numbers[n]).intValue();\n\t\t}\n\t\t\n\t\tMethodParameter parameters = new MethodParameter();\n\t\tparameters.setAddWorkerToSite(buildingNo,unitNos);\n\t\t\n\t\t\n\t\tif(passedCommunicationTurn != -1){\n\t\t\tcommands.add(MethodCallup.ADDWORKERTOSITE, parameters, communicationTurn);\n\t\t}else{\n\t\t\tcommands.add(MethodCallup.ADDWORKERTOSITE, parameters, passedCommunicationTurn);\n\t\t}\n\t}", "public void update(MessageBus bus) {\n \n bus.getMessages().stream().forEach((m) -> {\n if(m.getMessage().equalsIgnoreCase(\"collider\") && !objects.contains((Collider)m.getData()))\n addCollider((Collider) m.getData());\n if(m.getMessage().equalsIgnoreCase(\"init_scene\"))\n objects.clear();\n });\n\n for (int i = 0; i < objects.size(); i++) {\n for (int j = i + 1; j < objects.size(); j++) {\n Collider c1 = objects.get(i);\n Collider c2 = objects.get(j);\n if (c1.transform.getTranslation().x < c2.transform.getTranslation().x + c2.transform.getScale().x\n && c1.transform.getTranslation().x + c1.transform.getScale().x > c2.transform.getTranslation().x\n && c1.transform.getTranslation().y < c2.transform.getTranslation().y + c2.transform.getScale().y\n && c1.transform.getScale().y + c1.transform.getTranslation().y > c2.transform.getTranslation().y) {\n\n bus.addMessage(new Message(-1, \"CollisionWorld\").setMessage(c2.name, c1));\n bus.addMessage(new Message(-1, \"CollisionWorld\").setMessage(c1.name, c2));\n }\n }\n }\n }", "public SiacTCronopElem addSiacTCronopElem(SiacTCronopElem siacTCronopElem) {\n\t\tgetSiacTCronopElems().add(siacTCronopElem);\n\t\tsiacTCronopElem.setSiacTCronopElem(this);\n\n\t\treturn siacTCronopElem;\n\t}", "public final void entryRuleSystem() throws RecognitionException {\n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:145:1: ( ruleSystem EOF )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:146:1: ruleSystem EOF\n {\n before(grammarAccess.getSystemRule()); \n pushFollow(FOLLOW_ruleSystem_in_entryRuleSystem241);\n ruleSystem();\n\n state._fsp--;\n\n after(grammarAccess.getSystemRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleSystem248); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void add(List<IShape> component)\n\t{\n\t\tfilterShapes(component);\n\t\tfilterGroups(component);\n\t}", "public void addLayoutComponent(Component component, Object constraints) { }", "public void addToLinesOfBusiness(entity.AppCritLineOfBusiness element);", "void addSystem(EntitySystem... systems) {\n \t\tfor (EntitySystem s : systems)\n \t\t\taddSystem(s);\n \t}", "public interface Resolver extends AdaptrisComponent {\r\n\r\n /**\r\n * Create facts for insertion into the Rule Engine\r\n * \r\n * @param msg the AdaptrisMessage\r\n * @return a list object which will be passed in to the rule engine.\r\n * @throws RuleException wrapping any underlying exception.\r\n */\r\n Object[] create(AdaptrisMessage msg) throws RuleException;\r\n\r\n /**\r\n * Result result of the rule engine to the AdaptrisMessage\r\n * <p>\r\n * This simply provides the objects previously created with\r\n * {@link #create(AdaptrisMessage)}, so it may have no meaning if your\r\n * concrete implementation maintains its own state.\r\n * </p>\r\n * \r\n * @param result the AdaptrisMessage\r\n * @param src the objects that were inserted into the rule engine.\r\n * @throws RuleException wrapping any underlying exception.\r\n */\r\n void resolve(Object[] src, AdaptrisMessage result) throws RuleException;\r\n}", "synchronized void putWork(PartialSolution sp) {\n\t\ttasks.add(sp);\n\t\t/* anuntam unul dintre workerii care asteptau */\n\t\tthis.notify();\n\n\t}", "static int dynamicProgramming(int problem) {\r\n\t\tint items = problems.get(problem).size();\r\n\t\tint cap = capacities.get(problem);\r\n\r\n\t\tint x = 0;\r\n\t\tfor(int i = 1; i < items + 1; i++, x++) {\r\n\t\t\tweights[i] = problems.get(problem).get(x).weight;\r\n\t\t\tprofits[i] = problems.get(problem).get(x).profit;\r\n\t\t}\r\n\r\n\t\tint[][] P = new int[items + 1][cap + 1];\r\n\r\n\t\tfor(int i = 0; i < items + 1; i++) {\r\n\t\t\tfor(int j = 0; j < cap + 1; j++) {\r\n\t\t\t\tP[i][j] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int c = 0; c < cap + 1; c++) {\r\n\t\t\tP[0][c] = 0;\r\n\t\t}\r\n\r\n\t\tfor(int i = 1; i < items + 1; i++) {\r\n\t\t\tP[i][0] = 0;\r\n\t\t\tfor(int c = 1; c < cap + 1; c++) {\r\n\t\t\t\tif(i >= 2 && c >= 2) {\r\n\t\t\t\t\tP[i-2][c-2] = -1;\r\n\t\t\t\t}\r\n\t\t\t\tif(weights[i] <= c && P[i-1][c-weights[i]] + profits[i] > P[i-1][c]) {\r\n\t\t\t\t\tP[i][c] = P[i-1][c-weights[i]] + profits[i];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tP[i][c] = P[i-1][c];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn P[items][cap];\r\n\t}", "public void add(KnowledgeDTO dto) {\n //for this solution, we choose for each person in result only shortest path\n if (this.knowledgeDTOs.contains(dto)) {\n //Shorter path\n if (this.knowledgeDTOs.get(this.knowledgeDTOs.indexOf(dto)).getTransitiveConceptsURLs().size() > dto.getTransitiveConceptsURLs().size()) {\n //we want to add\n this.knowledgeDTOs.remove(dto);\n this.knowledgeDTOs.add(dto);\n }\n //Same path and lower weight\n if (this.knowledgeDTOs.get(this.knowledgeDTOs.indexOf(dto)).getTransitiveConceptsURLs().size() == dto.getTransitiveConceptsURLs().size()\n && this.knowledgeDTOs.get(this.knowledgeDTOs.indexOf(dto)).getWeightOfKnowledge() < dto.getWeightOfKnowledge()) {\n //we want to replace\n this.knowledgeDTOs.remove(dto);\n this.knowledgeDTOs.add(dto);\n }\n } else {\n this.knowledgeDTOs.add(dto);\n }\n }", "@Override\r\n\tpublic Identifier addRouting(RoutingRule rule) {\n\t\t\r\n\t\tIdentifier i = Identifier.routing(TimeBasedUUID.getUUIDAsString());\r\n\t\troutingTable.put(i, rule);\r\n\t\treturn i;\r\n\t}", "public void addCargo(Item item) {\n\t\tif (item instanceof Perishable) {\n\t\t\tif (((Perishable) item).getMaxTemp() < maxTemp) {\n\t\t\t\tthis.maxTemp = ((Perishable) item).getMaxTemp();\n\t\t\t\tsetCost(maxTemp);\n\t\t\t}\n\t\t}\n\t}", "public<P extends Problem, S extends Solution> S solve(P problem, Class<P> problemClass, Class<S> solutionClass);", "@Override\n public void addEnviroment(String clasname, String parvarn1, Integer parvarn2, Integer unit) throws ClassNotFoundException, SecurityException,\n NoSuchMethodException, IllegalArgumentException,\n InstantiationException, IllegalAccessException,\n InvocationTargetException {\n\n Constraint c = converConstrain(clasname,parvarn1,parvarn2);\n AmbientC varsConst = new AmbientC(); //Campo que implementa la clase AmbienC para transformar los constraint\n varsConst.addAmbientCon(parvarn1, parvarn2,unit,c); //\n super.getVarsEnviromen().add(varsConst);\n\n\n }", "public void process (String st) {\n Scanner sc = new Scanner (st);\n if (!sc.hasNext()){\n return;\n }else{\n switch (sc.next()){\n case \"port\": addPort(sc);\n break;\n case \"dock\": addDock(sc, portMap);\n break;\n case \"pship\": addPassengerShip(sc);\n break;\n case \"cship\": addCargoShip(sc);\n break;\n case \"person\": addPerson(sc);\n break;\n case \"job\": addJob(shipMap,dockMap,portMap,sc, this.jobsBox);\n \n }\n }\n \n }", "protected void addConstraints() throws IloException {\n// Constrain (2)\n for (int i = 0; i < m; i++) {\n IloLinearNumExpr expr_2 = model.linearNumExpr();\n for (int j = 0; j < n; j++) {\n expr_2.addTerm(x[i][j], 1);\n }\n model.addLe(expr_2, supply[i]);\n }\n\n // Constrain (3)\n for (int j = 0; j < n; j++) {\n IloLinearNumExpr expr_3 = model.linearNumExpr();\n for (int i = 0; i < m; i++) {\n expr_3.addTerm(x[i][j], 1);\n }\n model.addEq(expr_3, demands[j]);\n }\n }", "public void agregarProducto(String producto){\n\t\tif (!this.existeProducto(producto)) {\n\t\t\tthis.compras.add(producto);\n\t\t}\n\t}", "public void transferJobsTo(SchedulingAlgorithm otherAlg) \n {\n \totherAlg.addJob(activeJob);\n \tfor(Process p : processes)\n \t\totherAlg.addJob(p);\n \tprocesses.clear();\n \tactiveJob = null;\n }", "public void setConstructingObstacle(Obstacle obstacle);", "void addPermanent(Permanent permanent, int createOrder);", "@Override\n protected void addObjectiveTerms(IloCplex cplex, IloLinearNumExpr objective, int period) throws IloException\n {\n objective.addTerm(90 * hours[period - 1], getVariable(getSimpleName(Variable.RunHA, period)));\n objective.addTerm(150 * hours[period - 1], getVariable(getSimpleName(Variable.RunHB, period)));\n objective.addTerm(1500, getVariable(getSimpleName(Variable.StartHA, period)));\n objective.addTerm(1200, getVariable(getSimpleName(Variable.StartHB, period)));\n\n super.addObjectiveTerms(cplex, objective, period);\n }", "public abstract Objective createObjective(Scoreboard parent,\n String identifier,\n String title);", "public void add(Component c){}", "public void addConstraint(final PgConstraint constraint) {\n constraints.add(constraint);\n }", "public void addPerson(Scanner sc){\n Person person = new Person(sc);\n currentPort = (SeaPort) hashMap.get(person.getParent());\n currentPort.setPerson(person);\n hashMap.put(person.getIndex(), person);\n everything.add(person);\n }", "@Override\n\tprotected boolean addResolverSub(ConstraintNetwork metaVariable,\n\t\t\tConstraintNetwork metaValue) {\n\t\t\n\t\tfor (int i = 0; i < metaValue.getConstraints().length; i++) {\n\t\t\tif(metaValue.getConstraints()[i] instanceof UnaryRectangleConstraint)\n\t\t\t\t//this if will check for unboudned obj in order to create the goal\n\t\t\t\tif(((UnaryRectangleConstraint)metaValue.getConstraints()[i]).getType().equals(UnaryRectangleConstraint.Type.At)) \n\t\t\t\t\tif(((MetaSpatialConstraint2)this.metaConstraints.get(0)).isUnboundedBoundingBox(\n\t\t\t\t\t\t\t((UnaryRectangleConstraint)metaValue.getConstraints()[i]).getBounds()[0], \n\t\t\t\t\t\t\t((UnaryRectangleConstraint)metaValue.getConstraints()[i]).getBounds()[1], \n\t\t\t\t\t\t\t((UnaryRectangleConstraint)metaValue.getConstraints()[i]).getBounds()[2], \n\t\t\t\t\t\t\t((UnaryRectangleConstraint)metaValue.getConstraints()[i]).getBounds()[3]));\n//\t\t\t\t\t\tSystem.out.println(((UnaryRectangleConstraint)metaValue.getConstraints()[i]).getTo());\n\t\t\t\t\t\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "void updateFrom(RuleDetail ruleDetail);", "public void addGameObject(GameObject gameObject) {\n\t\tgameObject.init(this);\n\t\tobjects.add(gameObject);\n\t}", "public abstract void processComponent(T o);", "public void addProblem(final Throwable problem) {\n execution.getProblems().add(problem);\n markAsFailed();\n }", "public void addSolution(SokobanSolution sol) {\n Session session = factory.openSession();\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n session.save(sol);\n tx.commit();\n }\n catch (HibernateException e) {\n if (tx != null)\n tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "private SpaceSystemType searchSpaceSystemsForName(String systemName,\n SpaceSystemType spaceSystem,\n SpaceSystemType foundSystem)\n {\n // Check if the space system hasn't been found\n if (foundSystem == null)\n {\n // Check if the current system's name matches the search name\n if (spaceSystem.getName().equals(systemName))\n {\n // Store the reference to the matching system\n foundSystem = spaceSystem;\n }\n // Check if the space system has subsystems\n else if (!spaceSystem.getSpaceSystem().isEmpty())\n {\n // Step through each subsystem\n for (SpaceSystemType sys : spaceSystem.getSpaceSystem())\n {\n // Search the subsystem (and its subsystems, if any) for a match\n foundSystem = searchSpaceSystemsForName(systemName, sys, foundSystem);\n\n // Check if a system with a matching name was found\n if (foundSystem != null)\n {\n // Stop searching\n break;\n }\n }\n }\n }\n\n return foundSystem;\n }", "public void addLayoutComponent(Component comp, Object constraint) {\n if (constraint instanceof View) {\n if (constraints == null) {\n constraints = new Hashtable<Component, Object>(7);\n }\n constraints.put(comp, constraint);\n }\n }", "public void addPlayer(HeroClass newJob){job.add(newJob);}", "@Override\r\n\tpublic String addProductionOrderProcess(Object obj) {\n\t\ttry\r\n\t\t{\r\n\t\t\r\n\t\tmessage = productionOrderProcessDao.addProductionOrderProcess(obj);\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn message;\r\n\t}", "public ProcessingRule(String namespace, String localName, String description, Phase phase, Topic topic, List<Implementation> dependsOnImplementation, List<OntologyDependency> dependsOnOntologyDependency, String rule) {\n super(namespace, localName, description, phase, topic, dependsOnImplementation, dependsOnOntologyDependency);\n this.rule = rule;\n }", "PuzzleSolver(String inputContent) {\n parseContent(inputContent);\n }", "public void addLayoutComponent(Component comp, Object constraints) {}", "public void addObserver(GameObserver<S, A> o) {\n observers.add(o);\n }", "@Override\n public void addComponent(String name, AbstractProcess component)\n {\n components.add(name, component);\n addProcessToExec(name, component);\n }", "public void addCompte(Compte x) {//je mets la methode dajout ici\n\t compte.add(x);\n\t }", "public void addObject(GameObject gameObject) {\n\t\tobjects.add(gameObject);\n\t\t\n\t}", "Problem (Scanner sc) {\n\t\t\tapproach = sc.nextLine();\n\t\t\tString probsString = sc.nextLine();\n\t\t\tString[] probsStrings = probsString.split(\" \");\n\t\t\tmoveProbs = new double[probsStrings.length];\n\t\t\tfor (int i = 0; i < probsStrings.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tmoveProbs[i] = Double.parseDouble(probsStrings[i]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmap = new ArrayList<ArrayList<String>>();\n\t\t\twhile (sc.hasNextLine()) {\n\t\t\t\tString line = sc.nextLine();\n\t\t\t\tString[] squares = line.split(\" \");\n\t\t\t\tArrayList<String> row = new ArrayList<String>(Arrays.asList(squares));\n\t\t\t\tmap.add(row);\n\t\t\t}\n\t\t}", "public void addJob(Process p) \n {\n \tif(p != null)\n \t\tprocesses.add(p);\n }", "@SubL(source = \"cycl/inference/harness/inference-balanced-tactician-motivation.lisp\", position = 32456) \n public static final SubLObject balanced_strategy_activate_problem_wrt_transformation(SubLObject strategy, SubLObject problem) {\n checkType(strategy, $sym8$BALANCED_STRATEGY_P);\n checkType(problem, $sym22$PROBLEM_P);\n return Numbers.plusp(balanced_strategy_possibly_activate_strategems_wrt_transformation(strategy, problem));\n }", "private void addOperationTo(Map<OperationKey, Operation> ops, Operation op, Map<OperationKey, List<Policy>> conflicts) {\n\t\tOperationKey opKey = op.getOperationKey();\n\t\tif (ops.containsKey(opKey)) {\n\n\t\t\tOperation existingOp = ops.get(opKey);\n\t\t\tint existingOpPriority = existingOp.getTreatment().getPolicy().getAction().getType().ordinal();\n\t\t\tint newOpPriority = op.getTreatment().getPolicy().getAction().getType().ordinal();\n\t\t\tif (newOpPriority >= existingOpPriority) {\n\t\t\t\tops.put(opKey, op);\n\t\t\t}\n\n\t\t\t// log conflict resolution\n\t\t\tif (conflicts != null) {\n\t\t\t\tif (conflicts.containsKey(opKey)) {\n\t\t\t\t\tif (newOpPriority >= existingOpPriority) {\n\t\t\t\t\t\tconflicts.get(opKey).add(0, op.getTreatment().getPolicy()); // add to beginning\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconflicts.get(opKey).add(op.getTreatment().getPolicy()); // add to end\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tList<Policy> list = new ArrayList<Policy>();\n\t\t\t\t\tlist.add(existingOp.getTreatment().getPolicy());\n\t\t\t\t\tlist.add(op.getTreatment().getPolicy());\n\t\t\t\t\tconflicts.put(opKey, list);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tops.put(op.getOperationKey(), op);\n\t\t}\n\t}", "public void addPassengerShip(Scanner sc){\n PassengerShip pShip = new PassengerShip(sc, portMap, shipMap, dockMap);\n if(hashMap.containsKey(pShip.getParent())){\n if(hashMap.get(pShip.getParent()).getIndex()>=10000 && hashMap.get(pShip.getParent()).getIndex() < 20000){\n currentPort = (SeaPort) hashMap.get(pShip.getParent());\n currentPort.setShips(pShip);\n currentPort.setAllShips(pShip);\n \n }\n else{\n currentDock = (Dock) hashMap.get(pShip.getParent());\n currentDock.addShip(pShip);\n currentPort = (SeaPort) hashMap.get(currentDock.getParent());\n currentPort.setAllShips(pShip);\n }\n \n \n }\n hashMap.put(pShip.getIndex(), pShip);\n shipMap.put(pShip.getIndex(), pShip);\n everything.add(pShip);\n }", "private void stampRuleObject(Context context, String strRuleId) throws Exception {\r\n\r\n\t\tDomainObject domObj = DomainObject.newInstance(context, strRuleId);\r\n\r\n//\t\tString strCommand = \"modify bus \" + strRuleId+ \" add interface \\'\"+ INTERFACE_FTRIntermediateObjectMigration + \"\\'\";\r\n//\t\tMqlUtil.mqlCommand(context, strCommand, true);\r\n\t\tString strCommand = \"modify bus $1 add interface $2\";\r\n\t\tMqlUtil.mqlCommand(context, strCommand, true,strRuleId,INTERFACE_FTRIntermediateObjectMigration);\r\n\r\n\t\t/*This means the Rule Object is successfully stamped..\r\n\t\t hence we added the interface and attribute \"Conflict\" value as \"No\" */\r\n\r\n\t\tMap interfaceAttribMap = new HashMap();\r\n\t\tinterfaceAttribMap.put(ATTRIBUTE_FTRMigrationConflict, \"No\");\r\n\t\tmqlLogRequiredInformationWriter(\"Rule Id stamped :: \"+ strRuleId +\"\\n\");\r\n\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this id :: \"+ interfaceAttribMap +\"\\n\\n\");\r\n\t\tdomObj.setAttributeValues(context, interfaceAttribMap);\r\n\r\n\t}", "boolean add( Software s );", "public void addSalvo(Salvo salvo){\n\n salvo.setGamePlayers(this);\n mysalvoes.add(salvo);\n\n }", "public T caseHwSystem(HwSystem object) {\r\n\t\treturn null;\r\n\t}" ]
[ "0.5384419", "0.48485404", "0.4828642", "0.47600612", "0.4716868", "0.46236202", "0.45512265", "0.45302913", "0.44478247", "0.44248584", "0.4386823", "0.43436453", "0.4314245", "0.4274253", "0.42640755", "0.4259848", "0.42573488", "0.41926605", "0.41704908", "0.41652837", "0.41482618", "0.41343188", "0.4113993", "0.40763864", "0.40709898", "0.40608937", "0.405753", "0.40560243", "0.40502843", "0.4031166", "0.40286085", "0.4026551", "0.4005158", "0.40031257", "0.39926258", "0.39881784", "0.39742497", "0.39715007", "0.39710435", "0.39552447", "0.3951708", "0.39413998", "0.39293987", "0.39271182", "0.39075035", "0.39052838", "0.38981113", "0.3886136", "0.38859487", "0.38841212", "0.38783684", "0.3877867", "0.385655", "0.38183984", "0.38147274", "0.38128766", "0.38094378", "0.38093483", "0.38084894", "0.37990686", "0.37966126", "0.37961736", "0.3788387", "0.37873253", "0.3786508", "0.3784591", "0.37754673", "0.37689283", "0.3767625", "0.376501", "0.37627828", "0.37614185", "0.37607208", "0.37583676", "0.37542614", "0.3751019", "0.37492165", "0.37463996", "0.37463397", "0.37448692", "0.37447825", "0.37423944", "0.37381285", "0.37367967", "0.37340084", "0.3730209", "0.3723756", "0.3716504", "0.37147328", "0.37025347", "0.3700641", "0.37003607", "0.36982504", "0.36967948", "0.3694186", "0.36815512", "0.367222", "0.36703515", "0.36700508", "0.36672843" ]
0.7468564
0
To store packed bags so that I can access the items in them later in the code.
public Shopper() { cart = new Carryable[MAX_CART_ITEMS]; numItems = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void packBags() {\r\n GroceryBag[] packedBags = new GroceryBag[numItems];\r\n int bagCount = 0;\r\n\r\n GroceryBag currentBag = new GroceryBag();\r\n for (int i=0; i<numItems; i++) {\r\n GroceryItem item = (GroceryItem) cart[i];\r\n if (item.getWeight() <= GroceryBag.MAX_WEIGHT) {\r\n if (!currentBag.canHold(item)) {\r\n packedBags[bagCount++] = currentBag;\r\n currentBag = new GroceryBag();\r\n }\r\n currentBag.addItem(item);\r\n removeItem(item);\r\n i--;\r\n }\r\n }\r\n // Check this in case there were no bagged items\r\n if (currentBag.getWeight() > 0)\r\n packedBags[bagCount++] = currentBag;\r\n\r\n // Now create a new bag array which is just the right size\r\n pBags = new GroceryBag[bagCount];\r\n for (int i=0; i<bagCount; i++) {\r\n pBags[i] = packedBags[i];\r\n }\r\n\r\n // Add all grocery bags bag into cart\r\n for (int i = 0; i < bagCount; i++) {\r\n addItem(pBags[i]);\r\n }\r\n }", "public Bag[] get_bags() {\r\n return this.bags;\r\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "private void initialiseBags() {\r\n\t\t//Player one bag\r\n\t\taddToBag1(GridSquare.Type.a, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.b, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.c, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.d, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.e, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.f, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.g, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.h, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.i, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.j, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.k, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.l, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.m, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.n, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.o, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.p, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.r, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.s, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.t, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.u, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.v, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.w, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.x, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\t\r\n\t\t//Player two bag\r\n\t\taddToBag2(GridSquare.Type.A, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.B, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.C, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.D, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.E, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.F, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.G, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.H, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.I, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.J, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.K, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.L, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.M, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.N, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.O, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.P, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.Q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.R, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.S, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.T, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.U, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.V, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.W, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.X, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t}", "Pack(Bouquet bouquet)\n {\n this.bouquet = bouquet;\n }", "public Basket(){\r\n\r\n basket = new Hashtable();\r\n keys = new Vector();\r\n }", "@Override\n void pack() {\n }", "ICpPack getPack();", "public interface IBag<T>{\n void add(T t);\n boolean isEmpty();\n}", "public Bag getBag()\n\t{\n\t\treturn m_bag;\n\t}", "ItemStack createItemStack(CompoundTag tag);", "public Bag() {\n\t\tinstances = new ArrayList<double[]>();\n\t\tname = \"\";\n\t}", "protected Basket makeBasket() {\n\t\treturn new Basket();\n\t}", "public final AstValidator.bag_return bag() throws RecognitionException {\n AstValidator.bag_return retval = new AstValidator.bag_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 BAG_VAL434=null;\n AstValidator.tuple_return tuple435 =null;\n\n\n CommonTree BAG_VAL434_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:5: ( ^( BAG_VAL ( tuple )* ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:7: ^( BAG_VAL ( tuple )* )\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 BAG_VAL434=(CommonTree)match(input,BAG_VAL,FOLLOW_BAG_VAL_in_bag3558); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BAG_VAL434_tree = (CommonTree)adaptor.dupNode(BAG_VAL434);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BAG_VAL434_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:18: ( tuple )*\n loop120:\n do {\n int alt120=2;\n int LA120_0 = input.LA(1);\n\n if ( (LA120_0==TUPLE_VAL) ) {\n alt120=1;\n }\n\n\n switch (alt120) {\n \tcase 1 :\n \t // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:670:18: tuple\n \t {\n \t _last = (CommonTree)input.LT(1);\n \t pushFollow(FOLLOW_tuple_in_bag3560);\n \t tuple435=tuple();\n\n \t state._fsp--;\n \t if (state.failed) return retval;\n \t if ( state.backtracking==0 ) \n \t adaptor.addChild(root_1, tuple435.getTree());\n\n\n \t if ( state.backtracking==0 ) {\n \t }\n \t }\n \t break;\n\n \tdefault :\n \t break loop120;\n }\n } while (true);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\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 interface Bag<T>\n{\n // ----------------------------------------------------------\n /**\n * Adds the specified element to the bag.\n *\n * @param element item to be added\n * @precondition parameter element is not null\n */\n public void add(T element);\n\n\n // ----------------------------------------------------------\n /**\n * Removes and returns the specified element from the bag. If multiple\n * copies of the same element appear in the bag, only one is removed.\n *\n * @param target item to be removed\n * @return the item removed or null if not found\n * @precondition parameter target is not null\n * @postcondition returned value x.equals(target)\n */\n public T remove(T target);\n\n\n // ----------------------------------------------------------\n /**\n * Removes and returns a random element from the bag.\n *\n * @return the element removed or null if the bag is empty\n */\n public T removeRandom();\n\n\n // ----------------------------------------------------------\n /**\n * Determines if the bag contains the specified element.\n *\n * @param target element to be found\n * @return true if target is in the collection, false otherwise\n * @precondition parameter target is not null\n */\n public boolean contains(T target);\n\n\n // ----------------------------------------------------------\n /**\n * Determines if the bag contains no elements.\n *\n * @return true if collection is empty, false otherwise\n */\n public boolean isEmpty();\n\n\n // ----------------------------------------------------------\n /**\n * Determines the number of elements currently in the bag.\n *\n * @return the number of elements in the bag\n */\n public int size();\n\n\n // ----------------------------------------------------------\n /**\n * Returns a string representation of this bag. A bag's string\n * representation is written as a comma-separated list of its\n * contents (in some arbitrary order) surrounded by curly braces,\n * like this:\n * <pre>\n * {52, 14, 12, 119, 73, 80, 35}\n * </pre>\n * <p>\n * An empty bag is simply {}.\n * </p>\n *\n * @return a string representation of the bag and its contents\n */\n public String toString();\n}", "public int get_nrBags() {\r\n return this.nr_bags;\r\n }", "public SmartBin() {\n items = new ItemType[7];\n curWeight = 0;\n curArrayIndex = 0;\n binNumber = \"SM\" + generateBinNumber();\n }", "public PACKINGLIST getPack() {\n\t\treturn pack;\n\t}", "public int getPack() {\r\n\t\treturn pack;\r\n\t}", "public void setBag(Bag b)\n\t{\n\t\tm_bag = b;\n\t}", "public interface Packing {\n public String pack();\n}", "public void writeToNBT(NBTTagCompound nbt) {\n\t\tnbt.setInteger(\"xSize\", sizeX);\n\t\tnbt.setInteger(\"ySize\", sizeY);\n\t\tnbt.setInteger(\"zSize\", sizeZ);\n\n\n\t\tIterator<TileEntity> tileEntityIterator = tileEntities.iterator();\n\t\tNBTTagList tileList = new NBTTagList();\n\t\twhile(tileEntityIterator.hasNext()) {\n\t\t\tTileEntity tile = tileEntityIterator.next();\n\t\t\ttry {\n\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\t\t\t\ttile.writeToNBT(tileNbt);\n\t\t\t\ttileList.appendTag(tileNbt);\n\t\t\t} catch(RuntimeException e) {\n\t\t\t\tAdvancedRocketry.logger.warn(\"A tile entity has thrown an error: \" + tile.getClass().getCanonicalName());\n\t\t\t\tblocks[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = Blocks.AIR;\n\t\t\t\tmetas[tile.getPos().getX()][tile.getPos().getY()][tile.getPos().getZ()] = 0;\n\t\t\t\ttileEntityIterator.remove();\n\t\t\t}\n\t\t}\n\n\t\tint[] blockId = new int[sizeX*sizeY*sizeZ];\n\t\tint[] metasId = new int[sizeX*sizeY*sizeZ];\n\t\tfor(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\t\t\t\t\tblockId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = Block.getIdFromBlock(blocks[x][y][z]);\n\t\t\t\t\tmetasId[z + (sizeZ*y) + (sizeZ*sizeY*x)] = (int)metas[x][y][z];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tNBTTagIntArray idList = new NBTTagIntArray(blockId);\n\t\tNBTTagIntArray metaList = new NBTTagIntArray(metasId);\n\n\t\tnbt.setTag(\"idList\", idList);\n\t\tnbt.setTag(\"metaList\", metaList);\n\t\tnbt.setTag(\"tiles\", tileList);\n\n\n\t\t/*for(int x = 0; x < sizeX; x++) {\n\t\t\tfor(int y = 0; y < sizeY; y++) {\n\t\t\t\tfor(int z = 0; z < sizeZ; z++) {\n\n\t\t\t\t\tidList.appendTag(new NBTTagInt(Block.getIdFromBlock(blocks[x][y][z])));\n\t\t\t\t\tmetaList.appendTag(new NBTTagInt(metas[x][y][z]));\n\n\t\t\t\t\t//NBTTagCompound tag = new NBTTagCompound();\n\t\t\t\t\ttag.setInteger(\"block\", Block.getIdFromBlock(blocks[x][y][z]));\n\t\t\t\t\ttag.setShort(\"meta\", metas[x][y][z]);\n\n\t\t\t\t\tNBTTagCompound tileNbtData = null;\n\n\t\t\t\t\tfor(TileEntity tile : tileEntities) {\n\t\t\t\t\t\tNBTTagCompound tileNbt = new NBTTagCompound();\n\n\t\t\t\t\t\ttile.writeToNBT(tileNbt);\n\n\t\t\t\t\t\tif(tileNbt.getInteger(\"x\") == x && tileNbt.getInteger(\"y\") == y && tileNbt.getInteger(\"z\") == z){\n\t\t\t\t\t\t\ttileNbtData = tileNbt;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(tileNbtData != null)\n\t\t\t\t\t\ttag.setTag(\"tile\", tileNbtData);\n\n\t\t\t\t\tnbt.setTag(String.format(\"%d.%d.%d\", x,y,z), tag);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}*/\n\t}", "public void getBackpack()\n {\n itemLimit = 3;\n haveBackpack = true;\n }", "public NBTTagCompound writeToNBT(NBTTagCompound tag)\r\n/* 158: */ {\r\n/* 159:159 */ tag.setByte(\"Id\", (byte)getID());\r\n/* 160:160 */ tag.setByte(\"Amplifier\", (byte)getAmplifier());\r\n/* 161:161 */ tag.setInt(\"Duration\", getDuration());\r\n/* 162:162 */ tag.setBoolean(\"Ambient\", getAmbient());\r\n/* 163:163 */ tag.setBoolean(\"ShowParticles\", getShowParticles());\r\n/* 164:164 */ return tag;\r\n/* 165: */ }", "private void addToBag1(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag1.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}", "public List<Box> packThings (List<Thing> things){\n List<Box> boxes = new ArrayList<Box>();\r\n \r\n for (Thing thing : things){\r\n Box box = new Box(boxesVolume); //creates new box with specified volume\r\n box.addThing(thing); //adds things to the Box\r\n boxes.add(box); //adds box to list of boxes\r\n }\r\n \r\n return boxes;\r\n }", "@Override\n\tpublic String pack() {\n\t\treturn \"Bpxx packingg somjkjhha\";\n\t}", "@Test\n\tpublic void testStorage() {\n\t\tBag<Object> bag = new Bag<>();\n\t\tObject element0 = new Object();\n\t\tObject element1 = new Object();\n\t\tObject element2 = new Object();\n\t\tObject element3 = new Object();\n\t\tObject element4 = new Object();\n\t\tObject element5 = new Object();\n\t\tObject element6 = new Object();\n\t\tObject element7 = new Object();\n\n\t\tbag.set(0, element0);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(null, bag.get(1));\n\t\tassertSame(null, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(1, element1);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(null, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(2, element2);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(3, element3);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(4, element4);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(5, element5);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(element5, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(6, element6);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(element5, bag.get(5));\n\t\tassertSame(element6, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\n\t\tbag.set(7, element7);\n\t\tassertSame(element0, bag.get(0));\n\t\tassertSame(element1, bag.get(1));\n\t\tassertSame(element2, bag.get(2));\n\t\tassertSame(element3, bag.get(3));\n\t\tassertSame(element4, bag.get(4));\n\t\tassertSame(element5, bag.get(5));\n\t\tassertSame(element6, bag.get(6));\n\t\tassertSame(element7, bag.get(7));\n\n\t\tbag.clear();\n\n\t\tassertSame(null, bag.get(0));\n\t\tassertSame(null, bag.get(1));\n\t\tassertSame(null, bag.get(2));\n\t\tassertSame(null, bag.get(3));\n\t\tassertSame(null, bag.get(4));\n\t\tassertSame(null, bag.get(5));\n\t\tassertSame(null, bag.get(6));\n\t\tassertSame(null, bag.get(7));\n\t}", "private void buildBoats() {\n\t\tboats.add(new Boat(\"red\"));\n\t\tboats.add(new Boat(\"pink\"));\n\t\tboats.add(new Boat(\"blue\"));\n\t\tboats.add(new Boat(\"yellow\"));\n\t\tboats.add(new Boat(\"orange\"));\n\t\tboats.add(new Boat(\"green\"));\n\t\tboats.add(new Boat(\"purple\"));\n\t}", "public void writeInventoryToNBT(CompoundNBT tag) {\n IInventory inventory = this;\n ListNBT nbttaglist = new ListNBT();\n\n for (int i = 0; i < inventory.getSizeInventory(); i++) {\n if (!inventory.getStackInSlot(i).isEmpty()) {\n CompoundNBT itemTag = new CompoundNBT();\n itemTag.putByte(TAG_SLOT, (byte) i);\n inventory.getStackInSlot(i).write(itemTag);\n nbttaglist.add(itemTag);\n }\n }\n\n tag.put(TAG_ITEMS, nbttaglist);\n }", "@Override\n public void writeToNBT(NBTTagCompound nbt)\n {\n super.writeToNBT(nbt);\n nbt.setInteger(\"pokedexNb\", pokedexNb);\n nbt.setInteger(\"time\", time);\n NBTTagList itemList = new NBTTagList();\n\n for (int i = 0; i < inventory.length; i++)\n {\n ItemStack stack = inventory[i];\n\n if (stack != null)\n {\n NBTTagCompound tag = new NBTTagCompound();\n tag.setByte(\"Slot\", (byte) i);\n stack.writeToNBT(tag);\n itemList.appendTag(tag);\n }\n }\n nbt.setTag(\"Inventory\", itemList);\n }", "private void addToQueue (Parcel[] packagesAssigned){\n\n }", "public /*@ non_null @*/ JMLObjectBag<E> toBag() {\n JMLObjectBag<E> ret = new JMLObjectBag<E>();\n JMLIterator<E> elems = iterator();\n while (elems.hasNext()) {\n //@ assume elems.moreElements;\n E o = elems.next();\n E e = (o == null ? null : o);\n ret = ret.insert(e);\n }\n return ret;\n }", "public List<Container> pack(Parcel parcel, Item[] items)\n {\n ArrayList<Container> candidates = new ArrayList<>();\n for (Container container : CONTAINERS)\n {\n PackItem[] packItems = new PackItem[items.length];\n for (int i = 0; i < items.length; i++)\n {\n Item item = items[i];\n Dimension dim = new Dimension(item.getWidth(), item.getHeight(), item.getLength());\n double weight = item.getWeight();\n packItems[i] = new PackItem(dim, weight);\n }\n\n Collection<Packing> packings = pack(container, packItems);\n if (packings == null)\n continue;\n\n if (packings.size() == 1)\n candidates.add(container);\n }\n\n return candidates;\n }", "protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}", "public void writeToNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.writeToNBT(par1NBTTagCompound);\n par1NBTTagCompound.setShort(\"Fuel\", (short)this.fuel);\n par1NBTTagCompound.setShort(\"CookTime\", (short)this.furnaceCookTime);\n par1NBTTagCompound.setShort(\"Direction\", (short)this.direction);\n par1NBTTagCompound.setShort(\"TimeBase\", (short)this.furnaceTimeBase);\n par1NBTTagCompound.setShort(\"MaxFuel\", (short)this.maxFuel);\n NBTTagList var2 = new NBTTagList();\n\n for (int var3 = 0; var3 < this.furnaceItemStacks.length; ++var3)\n {\n if (this.furnaceItemStacks[var3] != null)\n {\n NBTTagCompound var4 = new NBTTagCompound();\n var4.setByte(\"Slot\", (byte)var3);\n this.furnaceItemStacks[var3].writeToNBT(var4);\n var2.appendTag(var4);\n }\n }\n\n par1NBTTagCompound.setTag(\"Items\", var2);\n sync();\n }", "private void addToBag2(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag2.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}", "@Override\n public void readFromNBT(NBTTagCompound compound, boolean array) {\n super.readFromNBT(compound, array);\n fuel = DictionaryEntry.readFromNBTSafely(compound.getCompoundTag(\"fuel\"));\n edgeItem = new ItemStack(compound.getCompoundTag(\"edgeItem\"));\n }", "private void placeBombs() {\n\t\tfor (int i = 0; i < NUM_BOMBS; i++) {\n\t\t\tplaceBomb();\n\t\t}\n\t}", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "public void writeToNBT(NBTTagCompound par1NBTTagCompound);", "String serialize(ConcurrentMap<Integer, ItemStack> items) throws IOException;", "public void dumpBag() {\n while (tileBag.size() > 0) {\n System.out.print(tileBag.remove(0) + \" - \");\n }\n }", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "public void fillBasket(_essentialGift[] esGifts, _utilityGift[] uGifts, _luxuryGift[] lGifts) {\r\n \r\n this.gbasket = new _giftBasket();\r\n esGifts = _staticFunctions.sortByCost(esGifts);\r\n uGifts = _staticFunctions.sortByCost(uGifts);\r\n lGifts = _staticFunctions.sortByCost(lGifts);\r\n \r\n int grlBudget = 0;\r\n \r\n switch(this.grlType){\r\n case \"The Chosy\":\r\n grlBudget = this.chGrlfrnd.Budget;\r\n break;\r\n case \"The Normal\":\r\n grlBudget = this.nGrlfrnd.Budget;\r\n break;\r\n case \"The Desperate\":\r\n grlBudget = this.dsGrlfrnd.Budget;\r\n break;\r\n }\r\n \r\n double prc = 0;\r\n int esIdx = 0;\r\n int uIdx = 0;\r\n int lIdx = 0;\r\n int eItIdx = 0;\r\n int uItIdx = 0;\r\n int lItIdx = 0;\r\n \r\n \r\n while(prc < grlBudget && (esIdx < _staticFunctions.length(esGifts) || uIdx < _staticFunctions.length(uGifts))){\r\n if((esIdx < _staticFunctions.length(esGifts) && uIdx >= _staticFunctions.length(uGifts))||\r\n (esIdx < _staticFunctions.length(esGifts) && uIdx < _staticFunctions.length(uGifts) && esGifts[esIdx].price/esGifts[esIdx].value < uGifts[uIdx].price/uGifts[uIdx].value)){\r\n this.gbasket.eItems[eItIdx] = esGifts[esIdx];\r\n prc += esGifts[esIdx].price;\r\n eItIdx++;\r\n esIdx++;\r\n }\r\n \r\n else if(uIdx < _staticFunctions.length(uGifts)){\r\n this.gbasket.uItems[uItIdx] = uGifts[uIdx];\r\n prc += uGifts[uIdx].price;\r\n uItIdx++;\r\n uIdx++;\r\n }\r\n \r\n }\r\n\r\n while(lIdx < _staticFunctions.length(lGifts) && prc < grlBudget){\r\n this.gbasket.lItems[lItIdx] = lGifts[lIdx];\r\n prc += lGifts[lIdx].price;\r\n lIdx++;\r\n lItIdx++;\r\n } \r\n \r\n if(lItIdx == 0 && ( lGifts[0].price <= (this.Budget - prc) ) ){\r\n this.gbasket.lItems[lItIdx] = lGifts[0]; \r\n }\r\n \r\n }", "public Basket getBasket() {\n\t\treturn theBasket;\n\t}", "ItemStack make();", "private C_TidyBag(Builder builder) {\n super(builder);\n }", "public void readFromNBT(NBTTagCompound par1NBTTagCompound)\n {\n super.readFromNBT(par1NBTTagCompound);\n NBTTagList var2 = par1NBTTagCompound.getTagList(\"Items\");\n this.furnaceItemStacks = new ItemStack[this.getSizeInventory()];\n\n for (int var3 = 0; var3 < var2.tagCount(); ++var3)\n {\n NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);\n byte var5 = var4.getByte(\"Slot\");\n\n if (var5 >= 0 && var5 < this.furnaceItemStacks.length)\n {\n this.furnaceItemStacks[var5] = ItemStack.loadItemStackFromNBT(var4);\n }\n }\n\n this.fuel = par1NBTTagCompound.getShort(\"Fuel\");\n this.furnaceCookTime = par1NBTTagCompound.getShort(\"CookTime\");\n this.direction = par1NBTTagCompound.getShort(\"Direction\");\n this.furnaceTimeBase = par1NBTTagCompound.getShort(\"TimeBase\");\n this.maxFuel = par1NBTTagCompound.getShort(\"MaxFuel\");\n sync();\n }", "public GMap<Integer, Stack> getStacks();", "ConcurrentMap<Integer, ItemStack> deserialize(String data) throws IOException;", "public void setup() {\r\n\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tthis.bag.add(new Gem(1));\r\n\t\t}\r\n\t\tthis.bag.add(new Crash());\r\n\t}", "public void dropBackpack()\n {\n itemLimit = 1;\n haveBackpack = false;\n }", "@Test\n public void testBagCodeExamples() {\n logger.info(\"Beginning testBagCodeExamples()...\");\n\n // Create an empty bag\n Bag<Integer> emptyBag = new Bag<>();\n\n // Create a bag with items in it\n Integer[] first = { 1, 5, 3 };\n Bag<Integer> firstBag = new Bag<>(first);\n\n // Create a second bag with items in it\n Integer[] second = { 4, 2, 6, 4 };\n Bag<Integer> secondBag = new Bag<>(second);\n\n // Create a third bag with all the items in it\n Integer[] third = { 1, 2, 3, 4, 4, 5, 6 };\n Bag<Integer> thirdBag = new Bag<>(third);\n\n // Merge a bag with the empty bag\n Bag<Integer> bag = Bag.aggregate(emptyBag, firstBag);\n assert bag.equals(firstBag);\n logger.info(\"{} merged with {} yields {}\", emptyBag, firstBag, bag);\n\n // Merge two bags with items in them\n bag = Bag.aggregate(firstBag, secondBag);\n assert bag.equals(thirdBag);\n logger.info(\"{} merged with {} yields {}\", firstBag, secondBag, bag);\n\n // Find the difference between an empty bag and one with items in it\n bag = Bag.difference(emptyBag, firstBag);\n assert bag.isEmpty();\n logger.info(\"The difference between {} and {} is {}\", emptyBag, firstBag, bag);\n\n // Find the difference between a bag with items in it and an empty one\n bag = Bag.difference(firstBag, emptyBag);\n assert bag.equals(firstBag);\n logger.info(\"The difference between {} and {} is {}\", firstBag, emptyBag, bag);\n\n // Find the difference between two bags with items in them\n bag = Bag.difference(thirdBag, firstBag);\n assert bag.equals(secondBag);\n logger.info(\"The difference between {} and {} is {}\", thirdBag, firstBag, bag);\n\n logger.info(\"Completed testBagCodeExamples().\\n\");\n }", "public BallContainer() {\n\t\tthis.contents = new LinkedList<Ball>();\n\t}", "public int getBackpack() {\n return backpack_;\n }", "public Integer getBallPackId() {\n return ballPackId;\n }", "public void writeEntityToNBT(NBTTagCompound tagCompound) {\n/* 165 */ tagCompound.setInteger(\"Life\", this.fireworkAge);\n/* 166 */ tagCompound.setInteger(\"LifeTime\", this.lifetime);\n/* 167 */ ItemStack var2 = this.dataWatcher.getWatchableObjectItemStack(8);\n/* */ \n/* 169 */ if (var2 != null) {\n/* */ \n/* 171 */ NBTTagCompound var3 = new NBTTagCompound();\n/* 172 */ var2.writeToNBT(var3);\n/* 173 */ tagCompound.setTag(\"FireworksItem\", (NBTBase)var3);\n/* */ } \n/* */ }", "public StringBag(){\n\n list = new ArrayList();\n\n\t}", "public static void main(String[] args) {\n Apple appleRp = new Apple(new BigDecimal(150.5), \"red\", Ripeness.RIPE, false);\n Banana bananaRp = new Banana(new BigDecimal(175.4), \"yellow\", Ripeness.RIPE, false);\n Orange orangeVerd = new Orange(new BigDecimal(200.0), \"yellow\", Ripeness.VERDANT, false);\n Orange orangeRp = new Orange(new BigDecimal(210.2), \"orange\", Ripeness.RIPE, false);\n Pear pearVerd = new Pear(new BigDecimal(180.9), \"green\", Ripeness.VERDANT, false);\n\n Carrot carrotRp = new Carrot(new BigDecimal(100.9), \"orange\", Ripeness.RIPE, false);\n Celery celeryVerd = new Celery(new BigDecimal(200.0), \"green\", Ripeness.VERDANT, false);\n Onion onionRp = new Onion(new BigDecimal(90.9), \"white\", Ripeness.RIPE, true);\n Potato potatoRp = new Potato(new BigDecimal(105.8), \"brown\", Ripeness.RIPE, false);\n\n // Main array of plants creation\n Plant[] basketContent = {carrotRp, orangeVerd, bananaRp, celeryVerd};\n\n // Extra array of plants creation\n Plant[] additionalBasketContent = {onionRp, appleRp, orangeRp, pearVerd, potatoRp};\n\n // Food processor creation\n FoodProcessor foodProcessor = new FoodProcessor();\n\n System.out.println(\" FRUITS&VEGETABLES\\n\\n\");\n\n // Total basket creation\n Basket basket = new Basket();\n\n // Filling the total basket by the main array of plants\n basket.put(basketContent);\n\n System.out.println(\"Basket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\");\n\n // Extra basket creation\n Basket additionalBasket = new Basket();\n\n // Filling the extra basket by the extra array of plants\n additionalBasket.put(additionalBasketContent);\n\n // Combining total and extra baskets\n basket.put(additionalBasket);\n\n System.out.println(\"\\nBasket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\");\n\n System.out.println(\"\\n\\n PEELING FRUITS:\\n\");\n\n // Weight of total basket\n BigDecimal oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before fruits peeling: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight of all fruits in total basket\n BigDecimal oldFruitsWeight = basket.getFruitsWeight();\n System.out.println(\"Fruits weight before peeling: \" + oldFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all fruits from total basket\n Fruit[] fruitsToProcess = basket.extractAllFruits();\n\n // Weight of fruits after peeling\n BigDecimal newFruitsWeight = foodProcessor.peelItems(fruitsToProcess);\n System.out.println(\"Fruits weight after peeling: \" + newFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of peeled fruits back to total basket\n basket.put(fruitsToProcess);\n BigDecimal newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after fruits peeling: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n PEELING VEGETABLES:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before vegetables peeling: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight of all vegetables in total basket\n BigDecimal oldVegetablesWeight = basket.getVegetablesWeight();\n System.out.println(\"Vegetables weight before peeling: \" + oldVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all vegetables from total basket\n Vegetable[] vegetablesToProcess = basket.extractAllVegetables();\n\n // Weight of vegetables after peeling\n BigDecimal newVegetablesWeight = new BigDecimal(0.0);\n\n try {\n newVegetablesWeight = foodProcessor.peelItems(vegetablesToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Vegetables weight after peeling: \" + newVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of peeled vegetables back to total basket\n basket.put(vegetablesToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after vegetables peeling: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n CUTTING VEGETABLES:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before vegetables cutting: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Current weight of vegetables in total basket\n oldVegetablesWeight = basket.getVegetablesWeight();\n System.out.println(\"Vegetables weight before cutting: \" + oldVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all vegetables from total basket\n vegetablesToProcess = basket.extractAllVegetables();\n\n try {\n // Weight of vegetables after cutting\n newVegetablesWeight = foodProcessor.cutAll(vegetablesToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Vegetables weight after cutting: \" + newVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of cuted vegetables back to total basket\n basket.put(vegetablesToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after vegetables cutting: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n SLICING FRUITS:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before fruits slicing: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Current weight of fruits in total basket\n oldFruitsWeight = basket.getFruitsWeight();\n System.out.println(\"Fruits weight before slicing: \" + oldFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all fruits from total basket\n fruitsToProcess = basket.extractAllFruits();\n\n try {\n // Weight of fruits after slicing\n newFruitsWeight = foodProcessor.sliceAll(fruitsToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Fruits weight after slicing: \" + newFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of sliced fruits back to total basket\n basket.put(fruitsToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after fruits slicing: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n NEW PLANT SLICING\\n\");\n\n // New plant creation\n Potato potatoRpPink = new Potato(new BigDecimal(120.9), \"pink\", Ripeness.RIPE, false);\n\n // Insertion to the end of total basket\n basket.put(potatoRpPink);\n System.out.println(\"Basket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n\n // Extraction element from the end of total basket\n Plant lastInBasket = basket.extract(basket.getBasketContent().length - 1);\n\n // Weight of plant before slicing\n BigDecimal oldlastInBasketWeight = lastInBasket.getWeight();\n BigDecimal newLastInBasketWeight = new BigDecimal(0.0);\n\n System.out.println(lastInBasket);\n\n try {\n // Weight of plant after slicing\n newLastInBasketWeight = foodProcessor.slice(lastInBasket);\n } catch (IllegalArgumentException e) {\n newLastInBasketWeight = lastInBasket.getWeight();\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Plant weight after slicing: \" + newLastInBasketWeight + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldlastInBasketWeight.subtract(newLastInBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of sliced plant back to total basket\n basket.put(lastInBasket);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after last element slicing: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n\n }", "public void writeEntityToNBT(NBTTagCompound tagCompound) {}", "public void updateToNBTTagStorage () {\r\n\t\t// no book saved?\r\n\t\tif (storage.getBoolean(\"isBook\") == null || storage.getBoolean(\"isBook\") == false)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tNBTTagCompound\ttag\t\t= new NBTTagCompound();\r\n\t\tString \t\t\tauthor\t= storage.getString\t(\"book-author\"\t);\r\n\t\tString\t\t\ttitle\t= storage.getString\t(\"book-title\"\t);\r\n\t\tint\t\t\t\tpages\t= storage.getInteger(\"book-pages\"\t);\r\n\t\tNBTTagList\t\tlist\t= new NBTTagList();\r\n\t\t\r\n\t\tfor (int i = 0; i < pages; i++) {\r\n\t\t\tString\t\t\tsiteContent\t= storage.getString(\"book-page-\"+i);\r\n\t\t\tNBTTagString\ttString\t\t= new NBTTagString(siteContent);\r\n\t\t\t\r\n\t\t\ttString.data\t= siteContent;\r\n\t\t\t\r\n\t\t\tlist.add(tString);\r\n\t\t}\r\n\t\t\r\n\t\ttag.setString\t(\"author\", \tauthor);\r\n\t\ttag.setString\t(\"title\",\ttitle);\r\n\t\ttag.set\t\t\t(\"pages\", \tlist);\r\n\t\tsetNBTTagCompound(tag);\r\n\t}", "public boolean saveNBTToDroppedItem() {\n return true;\n }", "ImmutableBag<T> toImmutable();", "public int getBackpack() {\n return backpack_;\n }", "public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }", "private void makeBag(final HashMap<Integer, Integer> legalGoods,\n final HashMap<Integer, Integer> illegalGoods) {\n if (!legalGoods.isEmpty()) {\n this.putLegalGoods(legalGoods);\n } else {\n this.putIllegalGood(illegalGoods);\n this.setDeclaredGood(0);\n }\n }", "public void readEntityFromNBT(NBTTagCompound tagCompund) {}", "int pack(int b2, int s1, int b0)\n {\n return (b2 << 24) | (s1 << 8) | b0;\n }", "@Override\n public void packageItem() {\n System.out.println(\"Fresh Produce packing : done\");\n }", "public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }", "@Override\n public void load(NBTTagCompound nbt)\n {\n\n }", "public final AstValidator.bag_type_return bag_type() throws RecognitionException {\n AstValidator.bag_type_return retval = new AstValidator.bag_type_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 BAG_TYPE104=null;\n CommonTree IDENTIFIER105=null;\n AstValidator.tuple_type_return tuple_type106 =null;\n\n\n CommonTree BAG_TYPE104_tree=null;\n CommonTree IDENTIFIER105_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:10: ( ^( BAG_TYPE ( IDENTIFIER )? ( tuple_type )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:12: ^( BAG_TYPE ( IDENTIFIER )? ( tuple_type )? )\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 BAG_TYPE104=(CommonTree)match(input,BAG_TYPE,FOLLOW_BAG_TYPE_in_bag_type1157); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n BAG_TYPE104_tree = (CommonTree)adaptor.dupNode(BAG_TYPE104);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(BAG_TYPE104_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:24: ( IDENTIFIER )?\n int alt27=2;\n int LA27_0 = input.LA(1);\n\n if ( (LA27_0==IDENTIFIER) ) {\n alt27=1;\n }\n switch (alt27) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:24: IDENTIFIER\n {\n _last = (CommonTree)input.LT(1);\n IDENTIFIER105=(CommonTree)match(input,IDENTIFIER,FOLLOW_IDENTIFIER_in_bag_type1159); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IDENTIFIER105_tree = (CommonTree)adaptor.dupNode(IDENTIFIER105);\n\n\n adaptor.addChild(root_1, IDENTIFIER105_tree);\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:36: ( tuple_type )?\n int alt28=2;\n int LA28_0 = input.LA(1);\n\n if ( (LA28_0==TUPLE_TYPE) ) {\n alt28=1;\n }\n switch (alt28) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:276:36: tuple_type\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_type_in_bag_type1162);\n tuple_type106=tuple_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, tuple_type106.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\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 ArrayListBag() {\n\t\tlist = new ArrayList<T>();\n\t}", "private void addBucketToInternalTank()\n {\n if (this.getStackInSlotByType(SlotContainerTypeEnum.INPUT_FILLEDBUCKET) == null)\n {\n return;\n }\n\n // Output 1 - Empty bucket returns from full one in input slot 1\n ItemStack bucketEmpty = new ItemStack(Item.bucketEmpty);\n ItemStack bucketWater = new ItemStack(Item.bucketWater);\n\n // Check if input slot 1 is a water bucket.\n if (!this.getStackInSlotByType(SlotContainerTypeEnum.INPUT_FILLEDBUCKET).isItemEqual(bucketWater))\n {\n return;\n }\n\n // Check if output slot 1 (for empty buckets) is above item stack limit.\n if (this.getStackInSlotByType(SlotContainerTypeEnum.OUTPUT_EMPTYBUCKET) != null)\n {\n int slot1Result = this.getStackInSlotByType(SlotContainerTypeEnum.OUTPUT_EMPTYBUCKET).stackSize + bucketEmpty.stackSize;\n boolean underStackLimit = (slot1Result <= getInventoryStackLimit() && slot1Result <= bucketEmpty.getMaxStackSize());\n if (!underStackLimit)\n {\n // If we are not under the minecraft or item stack limit for output slot 2 then stop here.\n return;\n }\n }\n\n // Check if the internal water tank has reached it\n if (this.getFluidAmount() >= this.getFluidCapacity())\n {\n return;\n }\n\n // Add empty water bucket to output slot 2.\n if (this.getStackInSlotByType(SlotContainerTypeEnum.OUTPUT_EMPTYBUCKET) == null)\n {\n this.setInventorySlotContentsByType(SlotContainerTypeEnum.OUTPUT_EMPTYBUCKET, bucketEmpty.copy());\n }\n else if (this.getStackInSlotByType(SlotContainerTypeEnum.OUTPUT_EMPTYBUCKET).isItemEqual(bucketEmpty))\n {\n this.getStackInSlotByType(SlotContainerTypeEnum.OUTPUT_EMPTYBUCKET).stackSize += bucketEmpty.stackSize;\n }\n\n // Add a bucket's worth of water into the internal tank.\n this.addFluidAmountByBucket(1);\n\n // Remove a filled bucket of water from input stack 1.\n this.decrStackSize(this.getSlotIDByType(SlotContainerTypeEnum.INPUT_FILLEDBUCKET), 1);\n }", "public Stack() {\r\n\t\tthis.items = new ArrayList<>();\t\r\n\t}", "public MyDynamicStack() {\r\n items = new LinkedList<>();\r\n }", "public void fillInventory(TheGroceryStore g);", "public void addItemTrackBagging(Item item, boolean bool) {\n\t\tthis.purchaseList.setItemTrackBagging(item, bool);\n\t}", "@ForgeSubscribe\n \tpublic void onLivingDeath(LivingDeathEvent event) {\n \t\t\n \t\tEntityLivingBase entity = event.entityLiving;\n \t\tif (entity.worldObj.isRemote) return;\n \t\tItemStack backpack = ItemBackpack.getBackpack(entity);\n \t\tif (backpack == null) return;\n \t\tPropertiesBackpack backpackData = ItemBackpack.getBackpackData(entity);\n \t\tif (backpackData.contents == null) return;\n \t\t\n \t\tboolean keepInventory = entity.worldObj.getGameRules().getGameRuleBooleanValue(\"keepInventory\");\n \t\tif ((entity instanceof EntityPlayer) && keepInventory) {\n \t\t\t\n \t\t\t// If keep inventory is on, instead temporarily save the contents\n \t\t\t// to the persistent NBT tag and get them back when the player respawns.\n \t\t\t\n \t\t\tEntityPlayer player = (EntityPlayer)entity;\n \t\t\tNBTTagCompound compound = player.getEntityData();\n \t\t\tNBTTagCompound persistent;\n \t\t\tif (!compound.hasKey(EntityPlayer.PERSISTED_NBT_TAG)) {\n \t\t\t\tpersistent = new NBTTagCompound();\n \t\t\t\tcompound.setTag(EntityPlayer.PERSISTED_NBT_TAG, persistent);\n \t\t\t} else persistent = compound.getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG);;\n \t\t\t\n \t\t\tNBTTagCompound backpackCompound = new NBTTagCompound();\n \t\t\tbackpackCompound.setInteger(\"count\", backpackData.contents.length);\n \t\t\tbackpackCompound.setTag(\"Items\", NbtUtils.writeItems(backpackData.contents));\n \t\t\tpersistent.setTag(\"Backpack\", backpackCompound);\n \t\t\t\n \t\t} else {\n \t\t\t\n \t\t\tfor (ItemStack stack : backpackData.contents)\n \t\t\t\tWorldUtils.dropStackFromEntity(entity, stack, 4.0F);\n \t\t\tbackpackData.contents = null;\n \t\t\t\n \t\t}\n \t\t\n \t}", "public ByteInValuePacking getByteInValuePacking() {\n return null;\n }", "public static void addItem(BackpackItem itemName) {\n\t\t\t\n\t\t\tfor (int i = 0; i <= backpackArr.length-1; i++) { //iterate through backpackArr\n\t\t\t\t\n\t\t\t\tif (backpackArr[i] == null) { // If there is no item in slot\n\t\t\t\t\tSystem.out.println(\"You added the \" + itemName + \" to your backpack.\");\n\t\t\t\t\tbackpackArr[i] = itemName; // puts new item into next empty BackpackItem index in backpackArr\n\t\t\t\t\tbreak; // breaks out of for loop (to prevent filling up all slots with the same item\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void readFromNBT(NBTTagCompound par1NBTTagCompound);", "@ForgeSubscribe\n \tpublic void onLivingUpdate(LivingUpdateEvent event) {\n \t\t\n \t\tEntityLivingBase entity = event.entityLiving;\n \t\tEntityPlayer player = ((entity instanceof EntityPlayer) ? (EntityPlayer)entity : null);\n \t\tItemStack backpack = ItemBackpack.getBackpack(entity);\n \t\t\n \t\tPropertiesBackpack backpackData;\n \t\tif (backpack == null) {\n \t\t\t\n \t\t\tbackpackData = EntityUtils.getProperties(entity, PropertiesBackpack.class);\n \t\t\tif (backpackData == null) return;\n \t\t\t\n \t\t\t// If the entity is supposed to spawn with\n \t\t\t// a backpack, equip it with one.\n \t\t\tif (backpackData.spawnsWithBackpack) {\n \t\t\t\t\n \t\t\t\tItemStack[] contents = null;\n \t\t\t\tif (entity instanceof EntityFrienderman) {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.enderBackpack);\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 0.0F); // Remove drop chance for the backpack.\n \t\t\t\t} else {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.backpack, 1, RandomUtils.getInt(120, 240));\n \t\t\t\t\tItemBackpack backpackType = (ItemBackpack)Item.itemsList[backpack.itemID];\n \t\t\t\t\tif (RandomUtils.getBoolean(0.15)) {\n \t\t\t\t\t\t// Give the backpack a random color.\n \t\t\t\t\t\tint r = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint g = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint b = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint color = (r << 16) | (g << 8) | b;\n \t\t\t\t\t\tbackpackType.func_82813_b(backpack, color);\n \t\t\t\t\t}\n \t\t\t\t\tcontents = new ItemStack[backpackType.getColumns() * backpackType.getRows()];\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 1.0F); // Set drop chance for the backpack to 100%.\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// If the entity spawned with enchanted armor,\n \t\t\t\t// move the enchantments over to the backpack.\n \t\t\t\tItemStack armor = entity.getCurrentItemOrArmor(CurrentItem.CHEST);\n \t\t\t\tif (armor != null && armor.isItemEnchanted()) {\n \t\t\t\t\tNBTTagCompound compound = new NBTTagCompound();\n \t\t\t\t\tcompound.setTag(\"ench\", armor.getTagCompound().getTag(\"ench\"));\n \t\t\t\t\tbackpack.setTagCompound(compound);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (contents != null) {\n \t\t\t\t\t// Add random items to the backpack.\n \t\t\t\t\tInventoryStacks inventory = new InventoryStacks(contents);\n \t\t\t\t\t// Add normal random backpack loot\n \t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\tRandomUtils.random, randomBackpackItems, inventory, 20);\n \t\t\t\t\t// With a chance of 10%, add some random dungeon loot\n \t\t\t\t\tif (RandomUtils.getDouble() < 0.1) {\n \t\t\t\t\t\tChestGenHooks info = ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST);\n \t\t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\t\tRandomUtils.random, info.getItems(RandomUtils.random), inventory, 5);\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tItemBackpack.setBackpack(entity, backpack, contents);\n \t\t\t\tbackpackData.spawnsWithBackpack = false;\n \t\t\t\t\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t// If the entity doesn't have a backpack equipped,\n \t\t\t\t// but still has some backpack data, drop the items.\n \t\t\t\tif (backpackData.contents != null) {\n \t\t\t\t\tfor (ItemStack stack : backpackData.contents)\n \t\t\t\t\t\tWorldUtils.dropStackFromEntity(entity, stack, 1.5F);\n \t\t\t\t\tbackpackData.contents = null;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\treturn;\n \t\t\t\n \t\t} else backpackData = ItemBackpack.getBackpackData(entity);\n \t\t\n \t\tbackpackData.prevLidAngle = backpackData.lidAngle;\n \t\tfloat lidSpeed = 0.2F;\n \t\tif (ItemBackpack.isBackpackOpen(entity))\n \t\t\tbackpackData.lidAngle = Math.min(1.0F, backpackData.lidAngle + lidSpeed);\n \t\telse backpackData.lidAngle = Math.max(0.0F, backpackData.lidAngle - lidSpeed);\n \t\t\n \t\tString sound = Block.soundSnowFootstep.getStepSound();\n \t\t// Play sound when opening\n \t\tif ((backpackData.lidAngle > 0.0F) && (backpackData.prevLidAngle <= 0.0F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 1.0F, 0.5F);\n \t\t// Play sound when closing\n \t\tif ((backpackData.lidAngle < 0.2F) && (backpackData.prevLidAngle >= 0.2F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 0.8F, 0.3F);\n \t\t\n \t}", "public static void main(String[] args) {\n\t\t\n\t\tItem[] itemArray = new Item[5];\n\t\titemArray[0] = new Item(\"Duster\", 20.0);\n\t\titemArray[1] = new Item(\"Pencil\", 10.0);\n\t\titemArray[2] = new Item(\"Stapler\", 75.5);\n\t\titemArray[3] = new Item(\"Sharpener\", 15.5);\n\t\titemArray[4] = new Item(\"Stencil\", 25.5);\n\t\t\n\t\tBag b1 = new Bag(\"VIP\", 5);\n\t\t\n\t\tint i = 0;\n\t\t\n\t\twhile (i < itemArray.length) {\n\t\t\tSystem.out.println(\"Adding item of index :\" + i + \"into bag now...\");\n\t\t\tb1.addItem(itemArray[i++]);\n\t\t}\n\t\t\n\t\tb1.printItems();\n\t\tb1.getTotal();\n\t}", "public BondFixedSecurityDefinition[] getDeliveryBasket() {\n return _deliveryBasket;\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Shape> shapes = new ArrayList<>();\n //System.out.println(\"Please enter the bin capacity\");\n Shape container = new Shape();\n container.containerPrompt();\n container.containerVolume();\n int binCapacity = container.containerVolume();\n //insert three items here\n System.out.println(\"How many cubes do want to store: 1, 2 or 3 \");\n int choice = scanner.nextInt();\n while (choice-- >0){\n Shape object = new Shape();\n object.objectPrompt();\n shapes.add(object);\n\n /*\n object.objectVolume();\n int one = object.containerVolume();*/\n }\n\n /*switch (choice){\n case 1:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n case 2:\n Shape shape2 = new Shape();\n shape2.objectPrompt();\n shape2.objectVolume();\n int two = shape2.containerVolume();\n\n Shape shape3 = new Shape();\n shape3.objectPrompt();\n shape3.objectVolume();\n int one = shape1.containerVolume();\n break;\n\n case 3:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n default:\n }*/\n List<Integer> items=new ArrayList<>();\n\n for (Shape shape: shapes){\n items.add(shape.containerVolume());\n System.out.println(shape.containerVolume());\n }\n\n\n\n //List<Integer> items = Arrays.asList(shapes.get(0).containerVolume());\n //insert the bin capacity\n // int binCapacity = 5;\n CheckBin algorithm = new CheckBin(items, binCapacity);\n algorithm.solvingBinPackingProblem();\n algorithm.showResults();\n // System.out.println(\"This is after committing\");\n\n\n }", "@Override\n public void readFromNBT(NBTTagCompound nbt)\n {\n super.readFromNBT(nbt);\n pokedexNb = nbt.getInteger(\"pokedexNb\");\n time = nbt.getInteger(\"time\");\n NBTBase temp = nbt.getTag(\"Inventory\");\n if (temp instanceof NBTTagList)\n {\n NBTTagList tagList = (NBTTagList) temp;\n for (int i = 0; i < tagList.tagCount(); i++)\n {\n NBTTagCompound tag = tagList.getCompoundTagAt(i);\n byte slot = tag.getByte(\"Slot\");\n\n if (slot >= 0 && slot < inventory.length)\n {\n inventory[slot] = ItemStack.loadItemStackFromNBT(tag);\n }\n }\n }\n }", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "public void loadTotsPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> totsPlayers = playerDAO.getTOTSPlayers();\n ArrayList<PackOpenerPlayer> otherPlayers = playerDAO.getNonTOTSPlayers();\n\n Collections.shuffle(totsPlayers);\n Collections.shuffle(otherPlayers);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n //adding one tots player\n tempPlayers.add(totsPlayers.get(0));\n\n //adding other remaining players\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 9) {\n if (otherPlayers.get(counter).getRating() > 83) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(otherPlayers.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(otherPlayers.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "private void bakeItemModels() {\n/* 754 */ Iterator<ResourceLocation> var1 = this.itemLocations.values().iterator();\n/* */ \n/* 756 */ while (var1.hasNext()) {\n/* */ \n/* 758 */ ResourceLocation var2 = var1.next();\n/* 759 */ ModelBlock var3 = (ModelBlock)this.models.get(var2);\n/* */ \n/* 761 */ if (func_177581_b(var3)) {\n/* */ \n/* 763 */ ModelBlock var4 = func_177582_d(var3);\n/* */ \n/* 765 */ if (var4 != null)\n/* */ {\n/* 767 */ var4.field_178317_b = var2.toString();\n/* */ }\n/* */ \n/* 770 */ this.models.put(var2, var4); continue;\n/* */ } \n/* 772 */ if (isCustomRenderer(var3))\n/* */ {\n/* 774 */ this.models.put(var2, var3);\n/* */ }\n/* */ } \n/* */ \n/* 778 */ var1 = this.field_177599_g.values().iterator();\n/* */ \n/* 780 */ while (var1.hasNext()) {\n/* */ \n/* 782 */ TextureAtlasSprite var5 = (TextureAtlasSprite)var1.next();\n/* */ \n/* 784 */ if (!var5.hasAnimationMetadata())\n/* */ {\n/* 786 */ var5.clearFramesTextureData();\n/* */ }\n/* */ } \n/* */ }", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "public Bag add(D elt) {\n return new SetBag_NonEmpty(elt);\n }", "public void addBeanBags(\r\n int num, String manufacturer, String name, String id, short year, byte month)\r\n throws IllegalNumberOfBeanBagsAddedException, BeanBagMismatchException, IllegalIDException,\r\n InvalidMonthException {\n Check.validID(id);\r\n BeanBag testBag = new BeanBag(name, id, manufacturer, year, month);\r\n Check.matchingIDs(testBag, stockList);\r\n // If the \"month\" byte variable is greater than 12 or less than or equal to 0.\r\n if (month <= 0 || month > 12) {\r\n // Throw exception \"InvalidMonthException\", as the month is not correctly formatted.\r\n throw new InvalidMonthException(\r\n month + \" is an invalid month. Please enter a valid month 1-12\");\r\n }\r\n // Ensures number of BeanBags passed to function (\"num\") is valid (Greater than or equal to 1).\r\n if (num >= 1) {\r\n // Repeat the following code \"num\" times.\r\n for (int i = 0; i < num; i++) {\r\n // Define a new \"BeanBag\" object with the following parameters.\r\n BeanBag tempBag = new BeanBag(name, id, manufacturer, year, month);\r\n // Add the new beanBag \"tempBag\" object to the \"stockList\".\r\n stockList.add(tempBag);\r\n }\r\n // If number of BeanBags passed to function (\"num\") is NOT greater than or equal to 1.\r\n } else {\r\n // Throw exception \"IllegalNumberOfBeanBagsAddedException\", as number passed to the function\r\n // is wrong.\r\n throw new IllegalNumberOfBeanBagsAddedException(\r\n \"Number of bags must be\" + \" must be a whole integer and greater then 0.\");\r\n }\r\n }", "public static void registerTags() {\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_RELAYS)\n\t\t\t.add(AllBlocks.SHAFT)\n\t\t\t.add(AllBlocks.COGWHEEL)\n\t\t\t.add(AllBlocks.LARGE_COGWHEEL)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllBlocks.GEARBOX)\n\t\t\t.add(AllBlocks.CLUTCH)\n\t\t\t.add(AllBlocks.GEARSHIFT)\n\t\t\t.add(AllBlocks.ENCASED_CHAIN_DRIVE)\n\t\t\t.add(AllBlocks.ADJUSTABLE_CHAIN_GEARSHIFT)\n\t\t\t.add(AllBlocks.SEQUENCED_GEARSHIFT)\n\t\t\t.add(AllBlocks.ROTATION_SPEED_CONTROLLER);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_SOURCES)\n\t\t\t.add(AllBlocks.HAND_CRANK)\n\t\t\t.add(AllBlocks.COPPER_VALVE_HANDLE)\n\t\t\t.add(AllBlocks.WATER_WHEEL)\n\t\t\t.add(AllBlocks.ENCASED_FAN)\n\t\t\t.add(AllBlocks.WINDMILL_BEARING)\n\t\t\t.add(AllBlocks.FURNACE_ENGINE)\n\t\t\t.add(AllBlocks.FLYWHEEL)\n\t\t\t.add(AllBlocks.CREATIVE_MOTOR);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_APPLIANCES)\n\t\t\t.add(AllBlocks.MILLSTONE)\n\t\t\t.add(AllBlocks.TURNTABLE)\n\t\t\t.add(AllBlocks.ENCASED_FAN)\n\t\t\t.add(AllBlocks.CUCKOO_CLOCK)\n\t\t\t.add(AllBlocks.MECHANICAL_PRESS)\n\t\t\t.add(AllBlocks.MECHANICAL_MIXER)\n\t\t\t.add(AllBlocks.MECHANICAL_CRAFTER)\n\t\t\t.add(AllBlocks.MECHANICAL_DRILL)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.MECHANICAL_PUMP)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllBlocks.MECHANICAL_PISTON)\n\t\t\t.add(AllBlocks.ROPE_PULLEY)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.GANTRY_SHAFT)\n\t\t\t.add(AllBlocks.GANTRY_CARRIAGE)\n\t\t\t.add(AllBlocks.CLOCKWORK_BEARING)\n\t\t\t.add(AllBlocks.CRUSHING_WHEEL);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.FLUIDS)\n\t\t\t.add(AllBlocks.FLUID_PIPE)\n\t\t\t.add(AllBlocks.MECHANICAL_PUMP)\n\t\t\t.add(AllBlocks.FLUID_VALVE)\n\t\t\t.add(AllBlocks.SMART_FLUID_PIPE)\n\t\t\t.add(AllBlocks.HOSE_PULLEY)\n\t\t\t.add(AllBlocks.ITEM_DRAIN)\n\t\t\t.add(AllBlocks.SPOUT)\n\t\t\t.add(AllBlocks.PORTABLE_FLUID_INTERFACE)\n\t\t\t.add(AllBlocks.FLUID_TANK)\n\t\t\t.add(AllBlocks.CREATIVE_FLUID_TANK);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.ARM_TARGETS)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllBlocks.CHUTE)\n\t\t\t.add(AllBlocks.DEPOT)\n\t\t\t.add(AllBlocks.WEIGHTED_EJECTOR)\n\t\t\t.add(AllBlocks.BASIN)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.MECHANICAL_CRAFTER)\n\t\t\t.add(AllBlocks.MILLSTONE)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.BLAZE_BURNER)\n\t\t\t.add(AllBlocks.CRUSHING_WHEEL)\n\t\t\t.add(Blocks.COMPOSTER)\n\t\t\t.add(Blocks.JUKEBOX);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.LOGISTICS)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllItems.FILTER)\n\t\t\t.add(AllItems.ATTRIBUTE_FILTER)\n\t\t\t.add(AllBlocks.CHUTE)\n\t\t\t.add(AllBlocks.SMART_CHUTE)\n\t\t\t.add(AllBlocks.DEPOT)\n\t\t\t.add(AllBlocks.WEIGHTED_EJECTOR)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.ANDESITE_TUNNEL)\n\t\t\t.add(AllBlocks.BRASS_TUNNEL)\n\t\t\t.add(AllBlocks.CONTENT_OBSERVER)\n\t\t\t.add(AllBlocks.STOCKPILE_SWITCH)\n\t\t\t.add(AllBlocks.ADJUSTABLE_CRATE)\n\t\t\t.add(AllBlocks.CREATIVE_CRATE)\n\t\t\t.add(AllBlocks.PORTABLE_STORAGE_INTERFACE);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.DECORATION)\n\t\t\t.add(AllBlocks.NIXIE_TUBE)\n\t\t\t.add(AllBlocks.CUCKOO_CLOCK)\n\t\t\t.add(AllBlocks.WOODEN_BRACKET)\n\t\t\t.add(AllBlocks.METAL_BRACKET)\n\t\t\t.add(AllBlocks.ANDESITE_CASING)\n\t\t\t.add(AllBlocks.BRASS_CASING)\n\t\t\t.add(AllBlocks.COPPER_CASING);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CREATIVE)\n\t\t\t.add(AllBlocks.CREATIVE_CRATE)\n\t\t\t.add(AllBlocks.CREATIVE_FLUID_TANK)\n\t\t\t.add(AllBlocks.CREATIVE_MOTOR);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.SAILS)\n\t\t\t.add(AllBlocks.SAIL)\n\t\t\t.add(AllBlocks.SAIL_FRAME)\n\t\t\t.add(Blocks.WHITE_WOOL);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.REDSTONE)\n\t\t\t.add(AllBlocks.NIXIE_TUBE)\n\t\t\t.add(AllBlocks.REDSTONE_CONTACT)\n\t\t\t.add(AllBlocks.ANALOG_LEVER)\n\t\t\t.add(AllBlocks.REDSTONE_LINK)\n\t\t\t.add(AllBlocks.ADJUSTABLE_REPEATER)\n\t\t\t.add(AllBlocks.PULSE_REPEATER)\n\t\t\t.add(AllBlocks.ADJUSTABLE_PULSE_REPEATER)\n\t\t\t.add(AllBlocks.POWERED_LATCH)\n\t\t\t.add(AllBlocks.POWERED_TOGGLE_LATCH);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.MOVEMENT_ANCHOR)\n\t\t\t.add(AllBlocks.MECHANICAL_PISTON)\n\t\t\t.add(AllBlocks.WINDMILL_BEARING)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.CLOCKWORK_BEARING)\n\t\t\t.add(AllBlocks.ROPE_PULLEY)\n\t\t\t.add(AllBlocks.GANTRY_CARRIAGE)\n\t\t\t.add(AllBlocks.CART_ASSEMBLER);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CONTRAPTION_ASSEMBLY)\n\t\t\t.add(AllBlocks.LINEAR_CHASSIS)\n\t\t\t.add(AllBlocks.SECONDARY_LINEAR_CHASSIS)\n\t\t\t.add(AllBlocks.RADIAL_CHASSIS)\n\t\t\t.add(AllItems.SUPER_GLUE)\n\t\t\t.add(AllBlocks.STICKER)\n\t\t\t.add(Blocks.SLIME_BLOCK)\n\t\t\t.add(Blocks.HONEY_BLOCK);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CONTRAPTION_ACTOR)\n\t\t\t.add(AllBlocks.MECHANICAL_HARVESTER)\n\t\t\t.add(AllBlocks.MECHANICAL_PLOUGH)\n\t\t\t.add(AllBlocks.MECHANICAL_DRILL)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.PORTABLE_STORAGE_INTERFACE)\n\t\t\t.add(AllBlocks.PORTABLE_FLUID_INTERFACE)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.SEATS[0])\n\t\t\t.add(AllBlocks.REDSTONE_CONTACT)\n\t\t\t.add(Blocks.BELL)\n\t\t\t.add(Blocks.DISPENSER)\n\t\t\t.add(Blocks.DROPPER);\n\n\t}" ]
[ "0.73331034", "0.6135763", "0.58156836", "0.58156836", "0.58156836", "0.58156836", "0.58156836", "0.58156836", "0.56800437", "0.56777287", "0.5649987", "0.56327504", "0.5590919", "0.55379486", "0.54929835", "0.5429986", "0.5411196", "0.5399076", "0.53987753", "0.53276867", "0.53038055", "0.53030473", "0.5292151", "0.5271301", "0.5255315", "0.5243757", "0.52426356", "0.52361786", "0.51932967", "0.5189948", "0.51796293", "0.51760626", "0.5164651", "0.514432", "0.5101332", "0.50892943", "0.507122", "0.50661993", "0.5065043", "0.506111", "0.5052831", "0.504168", "0.50168616", "0.5004082", "0.499245", "0.49795625", "0.49624014", "0.4954548", "0.49524254", "0.49466813", "0.49422726", "0.4935951", "0.49258602", "0.4925343", "0.49136892", "0.49058458", "0.4902086", "0.48800683", "0.4871297", "0.4867346", "0.48665497", "0.48598662", "0.48593637", "0.48572713", "0.48551273", "0.48499554", "0.48442551", "0.48390368", "0.48220333", "0.48189065", "0.48087132", "0.48074082", "0.48071837", "0.48021492", "0.48010147", "0.47966033", "0.4788183", "0.47849733", "0.4784948", "0.4782846", "0.47813937", "0.47788477", "0.47730252", "0.47671762", "0.47633147", "0.4760549", "0.4754544", "0.47488075", "0.47461236", "0.474357", "0.47408602", "0.4738424", "0.47380263", "0.47364977", "0.47352213", "0.47333065", "0.47284502", "0.4725569", "0.47175267", "0.47122216", "0.47078267" ]
0.0
-1
Return the total cost of the items in the cart
public float totalCost() { float total = 0; for (int i=0; i<numItems; i++) { total += cart[i].getPrice(); } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public float totalCost() {\n\t\tttCost = 0;\n\t\tfor (int i = 0; i < itemsOrdered.size(); i++) {\n\t\t\tttCost += itemsOrdered.get(i).getCost();\n\t\t}\n\t\treturn ttCost;\n\t}", "public double totalPrice() {\n\t\tdouble result = 0.0;\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tresult += itemCart.getQuantity() * itemCart.getP().getPrice();\n\t\t}\n\t\treturn result;\n\t}", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "public float getTotalAmount() {\n float amt = 0.0f;\n for (Item e : cart) {\n amt += e.getQuantity() * getPrice(e.getName());\n }\n return amt;\n }", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public double getTotalCostOfOrder() {\n double total = 0;\n for (AbstractProduct item :\n this.itemsReceived) {\n total += item.getPrice();\n }\n return total;\n }", "double calculateDeliveryCost(Cart cart);", "public int totalCost()\n {\n int cost = 0;\n for (DessertItem item : dessertList) {\n cost += item.getCost();\n }\n return cost;\n }", "public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }", "public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }", "private BigDecimal calculateSubtotal(List<CartItem> cartItems) {\n BigDecimal total = BigDecimal.ZERO;\n for (CartItem cartItem : cartItems) {\n total = total.add(cartItem.getSalePrice().multiply(new BigDecimal(cartItem.getQuantity())));\n }\n return total;\n }", "public void calculateItemCost(CartItem cartItem) {\n cartItem.setCost((cartItem.getProduct().getPrice() * cartItem.getQuantity()) + cartItem.getTax());\n }", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "public BigDecimal getTotalPrice() {\n\t\t// the current total cost which the customer owes in the transaction\n\t\tBigDecimal total = new BigDecimal(0);\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\ttotal = total.add(this.getItemPrice(item));\n\t\t}\n\n\t\treturn total;\n\t}", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }", "private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }", "public double getTotalCartValue();", "public double getTotal() {\n return totalCost;\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "@Override\n\tpublic Double calculateTotalPurchasedItems(List<OnlineShoppingCartItem> onlineShoppingCartItem) {\n\t\tretailCustomerUserBill.setOnlineShoppingCartItem(onlineShoppingCartItem);\n\t\treturn getTotalBillCost(onlineShoppingCartItem);\n\t}", "public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "public java.math.BigDecimal getTotalCost () {\n\t\treturn totalCost;\n\t}", "private Double getTotalBillCost(List<OnlineShoppingCartItem> onlineShoppingItemsList) {\n\t\tdouble cost = 0.0;\n\n\t\tfor (OnlineShoppingCartItem shoppingItem : onlineShoppingItemsList) {\n\t\t\tcost += shoppingItem.getItemCost();\n\t\t}\n\t\treturn cost;\n\t}", "public Double getTotalPrice()\n {\n Double total = 0.0;\n for(DrinkAndQuantity d : drinksAndQuantities){\n Drink drink = d.getDrink();\n double tempPrice = drink.getPrice();\n Integer quantity = d.getQuantity();\n total += (tempPrice * quantity);\n }\n\n return total;\n }", "public double getTotalCost() {\r\n return totalCost;\r\n }", "public Float getSubTotal() {\n return item.getUnitCost() * quantity;\n }", "public double getTotal() {\n double total = 0.0;\n for (OrderItem i : getOrderItems()) {\n total += i.getOrderQuantity() * i.getPrice();\n }\n return total;\n }", "@Override\n public int getCost() {\n return iceCreamPrice + topPrice;\n }", "private CharSequence calculateTotalPrice() {\n float totalPrice = 0.0f;\n totalPrice += UserScreen.fishingRodQuantity * 25.50;\n totalPrice += UserScreen.hockeyStickQuantity * 99.99;\n totalPrice += UserScreen.runningShoesQuantity * 85.99;\n totalPrice += UserScreen.proteinBarQuantity * 5.25;\n totalPrice += UserScreen.skatesQuantity * 50.79;\n return Float.toString(totalPrice);\n }", "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "public double calculateSubTotal() {\n return candy.getPrice() * quantity;\n\n }", "public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}", "public float calcOrderTotal()\r\n\t{\r\n\t\tOrderItem temp;\r\n\t\tfloat total = 0;\r\n\t\t\r\n\t\t//iterate through list and get quantity and unit price of each item\r\n\t\t//then multiply together and add to running total\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++)\r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttotal = total + (temp.getProductQuant() * temp.getProductPrice());\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "public double getTotal() {\n double amount = 0;\n amount = (this.getQuantity() * product.getPrice().doubleValue());\n return amount;\n }", "private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "public float getTotalCost() {\n return this.totalCost;\n }", "double getTotalCost();", "public int getCost(BasketItem basketItem) {\n for (ItemPrice ip : priceList) {\n if (ip.getSku().equalsIgnoreCase(basketItem.getSku())) {\n\n if (ip.getDiscountQuantity() == 0 || (basketItem.getNumberPurchased() < ip.getDiscountQuantity())) {\n return ip.getUnitPrice() * basketItem.getNumberPurchased();\n } else {\n int multipleDiscount = basketItem.getNumberPurchased() / ip.getDiscountQuantity();\n if (multipleDiscount > 0) {\n int price = multipleDiscount * ip.getDiscountPrice();\n price += (basketItem.getNumberPurchased() % ip.getDiscountQuantity()) * ip.getUnitPrice();\n return price;\n }\n }\n }\n }\n\n return 0;\n }", "public float getPurchasedListSum()\r\n\t{\r\n\t\tfloat fTempSum = 0;\r\n\t\tfor(int i = 0 ; i < m_purechaseList.size() ; i++)\r\n\t\t{\r\n\t\t\tfTempSum += m_purechaseList.get(i).getPurchasItemCost();\r\n\t\t}\r\n\t\treturn fTempSum;\t\t\r\n\t}", "@Override\n\tpublic double getPrice() {\n\n\t\tfor(Car temPart:listPart){\n\t\t\tthis.totalCost +=temPart.getPrice();\n\t\t}\n\t\treturn totalCost;\n\t}", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public double getProductCost() {\r\n\t\treturn (this.getPricePerUnit() * this.getNumUnits());\r\n\t}", "public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }", "private static String getTotal(ArrayList<CatalogItem> items) {\n double dTotal = 0.0;\n for (CatalogItem item : items) {\n dTotal += item.getPrice();\n }\n\n dTotal += dTotal*0.0825;\n return \"$\" + df.format(dTotal);\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }", "public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }", "public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }", "public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\tcost += (Cheese - 1)*1.50;\n\t\tcost += Ham*1.50;\n\t\tcost += Pepperoni*1.50;\n\t\t\n\t\treturn cost;\t\t\n\t}", "@Test\r\n\tpublic void getTotal_4bc(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\tcart.add(new Item(ItemType.BC, BigDecimal.valueOf(110.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(760.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}", "public double calcTotal(){\n\t\tdouble total; // amount to be returned\n\t\t\n\t\t// add .50 cents for any milk that isn't whole or skim, and .35 cents for flavoring\n\t\tif ((milk != \"whole\" && milk != \"skim\") && flavor != \"no\"){\n\t\t\tcost += 0.85;\t\n\t\t}\n\t\t\n\t\t// add .35 cents for flavoring\n\t\telse if (flavor != \"no\"){\n\t\t\tcost += 0.35;\t\n\t\t}\n\t\t\n\t\t// add .50 cents for milk that isn't whole or skim\n\t\telse if (milk != \"whole\" && milk != \"skim\"){\n\t\t\tcost += 0.50;\n\t\t}\n\t\t\n\t\telse{\n\t\t}\n\t\t\n\t\t// add .50 cents for extra shot of espresso\n\t\tif (extraShot != false){\n\t\t\ttotal = cost + 0.50;\n\t\t}\n\t\telse\n\t\t\ttotal = cost;\n\t\t\n\t\treturn total;\n\t}", "public double calculatePrice() {\r\n\t\treturn menuItem.getPrice() * quantity;\t\r\n\t}", "public ItemPrice getItemsPriceByCartons(Item itm) {\n ItemPrice itmPrice = new ItemPrice();\n itmPrice.calculateTotalByCarton(itm);\n return itmPrice;\n }", "public int checkout(String items) throws ProductNotFoundException {\n Integer totalPrice = 0;\n\n HashMap<Character, Product> productTotalList = new HashMap<Character, Product>();\n for (Character c : items.toCharArray()) {\n if (productList.containsKey(c)) {\n Product product = (Product)productList.get(c);\n if (productTotalList.containsKey(c)) {\n Product totalProduct = productTotalList.get(c);\n totalProduct.setTotalNumberOfProducts(product.getTotalNumberOfProducts() + 1);\n }\n else {\n product.setTotalNumberOfProducts(product.getTotalNumberOfProducts() + 1);\n productTotalList.put(c, product);\n }\n }\n else {\n throw new ProductNotFoundException(\"Product '\" + c + \"' not found.\");\n }\n }\n\n for (Map.Entry<Character,Product> entry : productTotalList.entrySet()) {\n Product product = entry.getValue();\n totalPrice += product.calculateTotalPrice();\n }\n\n return totalPrice;\n }", "@Override\n public int getCost() {\n int price = (int) Math.round(this.weight * this.pricePerLbs); //get the price of the cookies in the form of an int\n return price; //return the price\n\n }", "public String getTotalCost() {\n return this.TotalCost;\n }", "@Test\r\n\tpublic void getTotal_oh_sk(){\n\t\tcart = new TourShoppingCart(MockRules.getRules());\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.OH, BigDecimal.valueOf(300.00)) );\r\n\t\t\r\n\t\tcart.add(new Item(ItemType.SK, BigDecimal.valueOf(30.00)) );\r\n\t\t\r\n\t\tassert cart.total().equals(BigDecimal.valueOf(300.00));\r\n\t\tSystem.out.println(cart.total());\r\n\t}", "String getTotalCost() {\n return Double.toString(totalCost);\n }", "public static void main(String[] args) {\n Item item1=new Item(\"cucumber\",2,5);\n Item item2=new Item(\"appl\",3,6);\n Item item3=new Item(\"orange\",3,5);\n Item item4=new Item(\"bananas\",2,6);\n\n ArrayList<Item>shoppingList=new ArrayList<>();\n shoppingList.addAll(Arrays.asList(item1,item2,item3,item4));\n double totalCost=0;\n for (Item each:shoppingList){\n totalCost +=each.calCost();\n }\n for(int i=0;i<shoppingList.size();i++){\n totalCost+=shoppingList.get(i).calCost();\n }\n System.out.println(\"total:\"+totalCost);\n\n\n\n\n //System.out.println(item1.calCost());\n\n // System.out.println(item1);\n\n\n\n\n\n }", "public double getCost() {\n double price = 0;\n price += this.numPizzas * this.pizzaType.getCost();\n if(this.numPizzas >= 20) // Discount if >=20 pizzas\n return price * 0.9;\n else if(this.numPizzas >= 10) // Discount if between 10 and 20 pizzas\n return price * 0.95;\n return price; // No discount\n }", "Optional<BigDecimal> getDiscountedTotalPrice(List<Item> items) throws CheckoutProcessingException;", "public double getCost() {\n return quantity*ppu;\n\n }", "@Override\n\tpublic double getSumOfCost() {\n\t String sql=\"SELECT SUM(cost) FROM supplier_product\";\n\t double total=this.getJdbcTemplate().queryForObject(sql, double.class);\n\t\treturn total;\n\t}", "public BigDecimal getTotalPrice() {\n\t\tBigDecimal total = new BigDecimal(\"0.00\");\n\t\tfor (Map.Entry<Integer, DishGeneral> entry : this.getOrderedDishes().entrySet()){\n\t\t\ttotal = total.add(new BigDecimal(entry.getValue().getAmount()).multiply(entry.getValue().getPrice()));\n\t\t}\n\t\tfor (Map.Entry<String, DishGeneral> entry : this.getOrderedTeppanyakiDishes().entrySet()){\n\t\t\tfor(Map.Entry<Integer, IngredientGeneral> ent : entry.getValue().getIngredients().entrySet()){\n\t\t\t\tBigDecimal p = new BigDecimal(ent.getValue().getGrams()).multiply(ent.getValue().getPricePerHundredGrams())\n\t\t\t\t\t\t.divide(new BigDecimal(100));\n\t\t\t\ttotal = total.add(p);\n\t\t\t}\n\t\t}\n\t\treturn total.setScale(2, RoundingMode.CEILING);\n\t}", "public float getSubtotal()\n {\n if ( donutTypeComboBox.getSelectionModel().isEmpty() || flavorComboBox.getSelectionModel().isEmpty() )\n {\n return -1f;\n } else\n {\n Donut donut = new Donut(donutTypeComboBox.getSelectionModel().getSelectedIndex(), flavorComboBox.getSelectionModel().getSelectedIndex());\n Float quantity = Float.parseFloat(quantityTextField.getText());\n\n\n return (donut.getItemPrice() * quantity);\n }\n }", "@Test\n\tpublic void getCostForItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\");\n\t\tassertTrue(Integer.compare(2, fc) == 0);\n\n\t}", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }", "float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "public static int calculateTotal(SQLiteDatabase db){\n // Retrieve only items with positive quantity\n Cursor c = db.query(StoreItems.TABLE_NAME, new String[] {StoreItems._ID, StoreItems.COLUMN_NAME_PRICE, StoreItems.COLUMN_NAME_QUANTITY}, StoreItems.COLUMN_NAME_QUANTITY + \">0\", null, null, null, null);\n \n // Add all items to total\n c.moveToFirst();\n int sum = 0;\n while(!c.isAfterLast())\n {\n sum += c.getInt(c.getColumnIndex(StoreItems.COLUMN_NAME_QUANTITY)) * c.getInt(c.getColumnIndex(StoreItems.COLUMN_NAME_PRICE));\n c.moveToNext();\n }\n return sum;\n }", "public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }", "@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}", "@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "public double getCost() {\n return this.product.getPrice() * quanity;\n }", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "public int sumEquipmentPrice(){\n int sum = 0;\n for (Equipment e: equipment){\n sum += e.getPrice();\n }\n return sum;\n }", "@GetMapping(\"/{id}/cost\")\n\tpublic Double getItemCost(@PathVariable Long id) {\n\t\treturn itemService.getItemCost(id);\n\t}", "public double calculateCost(Purchase purchase);", "@Override\n\tpublic Double getOnlineItemCost(List<OnlineShoppingCartItem> onlineShoppingCartItem) {\n\t\tdouble cost = 0.0;\n\t\tfor (OnlineShoppingCartItem onlineShoppingCartItemList : retailCustomerUserBill.getOnlineShoppingCartItem()) {\n\t\t\tif (OnlineShoppingCategoryProducts.SOFTWARES.equals(onlineShoppingCartItemList.getOnlineShoppingCategoryProducts())) {\n\t\t\t\tcost += onlineShoppingCartItemList.getItemCost();\n\t\t\t}\n\t\t}\n\n\t\treturn cost;\n\t}", "public synchronized int getNumberOfItems(){\n int totalItems=0;\n \n for(ShoppingCartItem item : getItems()){\n //we sum the quantity of products for each item\n totalItems += item.getQuantity();\n }\n \n return totalItems;\n }", "public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}", "public void calculateCost(){\n if(this.isChair){\n for(int i = 0; i < this.chairs.length; i++){\n this.cost += this.chairs[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isDesk){\n for(int i = 0; i < this.desks.length; i++){\n this.cost += this.desks[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isFiling){\n for(int i = 0; i < this.filingCabinets.length; i++){\n this.cost += this.filingCabinets[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isLamp){\n for(int i = 0; i < this.lamps.length; i++){\n this.cost += this.lamps[i].getPrice();\n }\n }\n }", "public static int calculateCartTotalFromProductList(List<Product> productListForCart) {\n\t\tint sum = 0;\n\n\t\tfor (Product p : productListForCart) {\n\t\t\tsum = sum + p.getPrice();\n\t\t}\n\n\t\treturn sum;\n\t}", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }" ]
[ "0.7846119", "0.76012677", "0.75672966", "0.7566194", "0.75564146", "0.7494559", "0.7481245", "0.74322695", "0.73787206", "0.72956896", "0.7278532", "0.7253395", "0.7235922", "0.72099805", "0.71282566", "0.71266097", "0.7113837", "0.7088841", "0.7023", "0.7001579", "0.6981674", "0.69776154", "0.69639164", "0.6943258", "0.6934133", "0.69201463", "0.69122005", "0.6874405", "0.6834141", "0.6827812", "0.6825427", "0.68229485", "0.682071", "0.6813475", "0.68078625", "0.6780981", "0.6767076", "0.6766588", "0.6765242", "0.67341584", "0.67262256", "0.6725495", "0.67253965", "0.67135966", "0.6711418", "0.67091304", "0.67057425", "0.6674642", "0.6670644", "0.6670272", "0.6668587", "0.66572046", "0.66477907", "0.66393185", "0.66299313", "0.66257006", "0.66182494", "0.66050816", "0.66045266", "0.65895647", "0.65882164", "0.6584521", "0.6583617", "0.65784204", "0.65733063", "0.65424025", "0.65350944", "0.6533408", "0.6529259", "0.65233195", "0.65110886", "0.65042347", "0.64983565", "0.6493621", "0.64810824", "0.6475127", "0.6456393", "0.6452746", "0.6448484", "0.6443193", "0.6442099", "0.64314044", "0.6422477", "0.64204", "0.64139247", "0.64024824", "0.6394929", "0.6380907", "0.6376083", "0.6373463", "0.636523", "0.6357268", "0.63571346", "0.63545746", "0.63371277", "0.6336576", "0.6331377", "0.63078946", "0.62991554", "0.6290435" ]
0.8619685
0
Adds Carryable object (bags or items) to the shopper's cart
public void addItem(Carryable g) { if (numItems < MAX_CART_ITEMS) cart[numItems++] = g; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "private void add(GroceryItem itemObj, String itemName) {\n\t\tbag.add(itemObj);\n\t\tSystem.out.println(itemName + \" added to the bag.\");\n\t}", "public void carry(Item item)\n {\n\n // Check if item to be added doesn't go over carry limit.\n if (!((getPerson(PLAYER).getWeight() + item.getWeight()) > getPerson(PLAYER).getCarryLimit())){\n getPerson(PLAYER).getInventory().getItems().add(item); \n\n removeRoomItem(item);\n System.out.println();\n System.out.println(item.getName() + \" has been added to your bag.\");\n System.out.println(\"You are carrying \" + getPerson(PLAYER).getWeight()+ \"kg.\");\n }\n else {\n System.out.println(\"Your bag is too heavy to add more items.\");\n }\n\n }", "@Override\n\tpublic void addItems(Workspace workspace) {\n//\t\tSession currentSession = sessionFactory.getCurrentSession();\n//\t\tfor(Cart_items myCart : workspace.getCartItems()) {\t\n//\t\t\tcurrentSession.save(myCart);\n//\t\t}\n\t}", "void addGroceryItem(String item) {\n\n\t}", "public void addCYOBToCart(MealEntity meal) {\n lineItems.add(new SaleTransactionLineEntity(meal, 1));\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Added to cart!\", null));\n totalAmount();\n FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(\"cartEmpty\", false);\n }", "public void add(CartItem cartItem){\n\t\tString book_id = cartItem.getBook().getBook_id();\n\t\tint count = cartItem.getCount();\n\t\t// if book exist in cart , change count\n\t\tif(map.containsKey(book_id)){ \n\t\t\tmap.get(book_id).setCount( map.get(book_id).getCount() + count); \n\t\t\t\t\t\n\t\t}else{\n\t\t\t// book not exist in cart, put it to map\n\t\t\tmap.put(cartItem.getBook().getBook_id(), cartItem);\n\t\t}\n\t\t\n\t}", "public void AddtoCart(int id){\n \n itemdb= getBooksById(id);\n int ids = id;\n \n for(Books k:itemdb){ \n System.out.println(\"Quantity :\"+k.quantity); \n if (k.quantity>0){\n newcart.add(ids);\n System.out.println(\"Added to cartitem list with bookid\"+ ids);\n setAfterBuy(ids);\n System.out.println(\"Quantity Updated\");\n setCartitem(newcart);\n System.out.println(\"setCartitem :\"+getCartitem().size());\n System.out.println(\"New cart :\"+newcart.size());\n test.add(k);\n }\n else{\n System.out.println(\"Quantity is not enough !\");\n }\n }\n setBookcart(test);\n }", "public void packBags() {\r\n GroceryBag[] packedBags = new GroceryBag[numItems];\r\n int bagCount = 0;\r\n\r\n GroceryBag currentBag = new GroceryBag();\r\n for (int i=0; i<numItems; i++) {\r\n GroceryItem item = (GroceryItem) cart[i];\r\n if (item.getWeight() <= GroceryBag.MAX_WEIGHT) {\r\n if (!currentBag.canHold(item)) {\r\n packedBags[bagCount++] = currentBag;\r\n currentBag = new GroceryBag();\r\n }\r\n currentBag.addItem(item);\r\n removeItem(item);\r\n i--;\r\n }\r\n }\r\n // Check this in case there were no bagged items\r\n if (currentBag.getWeight() > 0)\r\n packedBags[bagCount++] = currentBag;\r\n\r\n // Now create a new bag array which is just the right size\r\n pBags = new GroceryBag[bagCount];\r\n for (int i=0; i<bagCount; i++) {\r\n pBags[i] = packedBags[i];\r\n }\r\n\r\n // Add all grocery bags bag into cart\r\n for (int i = 0; i < bagCount; i++) {\r\n addItem(pBags[i]);\r\n }\r\n }", "public void addProduct(Product item)\n {\n stock.add(item);\n }", "public void addItemToCart(Item item) {\n itemList.add(item);\n this.totalTaxes = totalTaxes.add(item.getTaxes());\n this.totalPrices = totalPrices.add(item.getTtcPrice());\n }", "public Shopper() {\r\n cart = new Carryable[MAX_CART_ITEMS];\r\n numItems = 0;\r\n }", "public void addGroceryItem(String item){\n groceryList.add(item);\n }", "@When(\"^: Add them to the cart$\")\r\n\tpublic void add_them_to_the_cart() throws Throwable {\n\t\tobj.search();\r\n\t}", "@Override\n\tpublic boolean addBookToCart(ShoppingCart shoppingCart) {\n\t\tShoppingCart cart = dao.save(shoppingCart);\n\t\tif (cart != null) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}", "private void addProductToCart(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String productID = request.getParameter(\"ProductID\");\n\n HttpSession session = request.getSession();\n\n List<Product> cartProducts = (List<Product>) session.getAttribute(\"cartProducts\");\n\n if (productID != null) {\n\n int id = Integer.parseInt(productID);\n\n if (cartProducts != null) {\n\n if (getCartSize(cartProducts) < Constants.CART_LIMIT) {\n\n if (!productIsAlreadyInCart(id, cartProducts))\n cartProducts.add(productDAO.getProduct(id));\n else\n increaseProductCountInCart(id, cartProducts);\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n response.sendRedirect(Constants.PATH_CATALOG);\n } else\n response.getWriter().write(notifyCartIsFull());\n\n } else {\n cartProducts = new ArrayList<>();\n cartProducts.add(productDAO.getProduct(Integer.parseInt(productID)));\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n session.setAttribute(\"cartProducts\", cartProducts);\n response.sendRedirect(Constants.PATH_CATALOG);\n }\n }\n }", "public void addProduct(Product item){\n inventory.add(item);\n }", "@Override\n public boolean addItemInCart(final String authToken,\n final CartDto cartDto) throws Exception {\n boolean notPreset = false;\n validate(cartDto);\n String userId = getUserIdByToken(authToken);\n Cart cart = new Cart();\n cart.setUserId(userId);\n\n ProductResponse productResponse =\n getProductDetails(cartDto, authToken);\n setPrices(productResponse, cartDto);\n\n CartItem item = transformCartItem(cartDto);\n item.setCart(cart);\n cart.getCartItems().add(item);\n LOG.info(\"[CART] event prepared to be queued on messaging server.\");\n notPreset = true;\n\n try {\n LOG.info(\"[CART] about to save the event in database.\");\n Cart persistCart = cartRepository.save(cart);\n LOG.info(\"Publishing event to Queue [cartQueue].\");\n rabbitTemplate.convertAndSend(RabbitmqCartConfig.EXCHANGE_NAME_CART,\n RabbitmqCartConfig.ROUTING_KEY_CART,\n cart);\n if (persistCart != null) {\n LOG.info(\"Item persisted successfully into the database.\");\n return true;\n } else {\n LOG.info(\"Item could not be saved into the database.\");\n return false;\n }\n } catch (RuntimeException ex) {\n LOG.error(\"Item cannot be added into the cart. \", ex.getMessage());\n throw new RuntimeException(ex.getMessage());\n }\n\n }", "@Override\n public void addCart(Items cartItem) {\n cartItem.setItemQuantity(cartItem.getItemQuantity() + 1);\n Items menuItem = cartItem.getItemOriginalReference();\n menuItem.setItemQuantity(menuItem.getItemQuantity() + 1);\n updateCartMenu();\n }", "CatalogItem addCatalogItem(CatalogItem catalogItem);", "@Test\n\tpublic void testAddingItemsToShoppingCart() {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\ttry {\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), new BigDecimal(1));\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phoneCase.getProductId(), new BigDecimal(2));\n\t\t} catch (InsufficientStockException e) {\n\t\t\tfail(\"Inventory check failed while adding a product in shopping cart\");\n\t\t}\n\n\t\tPurchaseOrderAggregate purchaseOrderAggregate = shoppingCartAggregate.checkoutCart();\n\t\tassertNotNull(purchaseOrderAggregate);\n\n\t\tPurchaseOrder purchaseOrder = purchaseOrderAggregate.getPurchaseOrder();\n\t\tassertNotNull(purchaseOrder);\n\n\t\tassertEquals(2, purchaseOrder.getOrderItems().size());\n\n\t\tassertEquals(ShoppingCart.CartStatus.CHECKEDOUT, shoppingCartAggregate.getShoppingCart().getCartStatus());\n\t}", "@Override\n\tpublic Basket addBasket(Basket basket) {\n\t\treturn br.save(basket);\n\t}", "public void addToShoppingCart(BarcodedItem item, int quantity) {\n\t\t\n\t\tBarcodedProduct prod = ProductDatabases.BARCODED_PRODUCT_DATABASE.get(item.getBarcode());\n\t\ttry {\n\t\t\t\n\t\t\tSHOPPING_CART_ARRAY[i][0] = prod.getDescription();\n\t\t\tSHOPPING_CART_ARRAY[i][1] = Integer.toString(quantity);\n\t\t\tBARCODEDITEM_ARRAY[i] = item;\n\t\t\tBARCODE_ARRAY[i] = prod.getBarcode();\n\t\t\tupdateTotalPayment(item, quantity);\n\t\t\t\n\t\t\ttotalNumOfItems += quantity;\n\t\t\t\n\t\t} catch (NullPointerException e) {\n\t\t\tthrow new SimulationException(e);\n\t\t}\n\t\t\n\t\ti++;\n\n\t}", "@Override\n public String addToCart(TicketDTO buy) throws InvalidQuantityException, ProductNotFoundException {\n\n return catalogueRepository.addToCart(buy);\n }", "@Override\n\tpublic void addProductToCart(ShoppingCartItem cart_items) {\n\t\tthis.shoppingCartList.add(cart_items);\n\t}", "void addCpItem(ICpItem item);", "@Override\r\n public boolean add(Item item){\r\n if(item.stackable&&contains(item)){\r\n stream().filter(i -> i.name.endsWith(item.name)).forEach(i -> {\r\n i.quantity += item.quantity;\r\n });\r\n }else if(capacity<=size()) return false;\r\n else super.add(item);\r\n return true;\r\n }", "RecipeObject addRecipe(RecipeObject recipe);", "@Override\n public void onClick(View v)\n {\n Card.addtoCard(new CardItem(content.get(position).getName(),\n content.get(position).getDescription(),\n content.get(position).getPrice(),(long) 1,\"None\",\n content.get(position).getPrice()));\n Toast.makeText(RecycleViewAdapter.this.mContext,\"Added to Cart\",Toast.LENGTH_LONG).show();\n }", "public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }", "public Item add(Item item) {\n Item existing = getItem(item.getItemId());\n if (existing != null) {\n return existing.incrementQuantity(item.getQuantity());\n }\n else {\n items.add(item.setCart(this));\n return item;\n }\n }", "@Override\n public TicketDTO buyCart() throws InvalidQuantityException, IOException, ProductNotFoundException {\n\n return catalogueRepository.buyCart();\n }", "void add(Item item);", "public void addItemInCart(Item anItem, Integer aQuantity,boolean fromServer){\n if(!fromServer){\n postItemOnServer(new Pair<Item, Integer>(anItem,aQuantity));\n }\n boolean alreadyInCart = false;\n for(Pair<Item,Integer> itemInCart : itemsInCart){\n if(itemInCart.first.getId()== anItem.getId()){\n alreadyInCart = true;\n }\n }\n if(alreadyInCart){\n updateItemInCart(anItem,aQuantity,fromServer);\n }\n else{\n itemsInCart.add(Pair.create(anItem, aQuantity));\n }\n }", "ResponseEntity<Cart> addCartItem(CartFormData formData);", "public CartItem() {\n }", "Cart addToCart(String productCode, Long quantity, String userId);", "public Cart() {\n\t\tcart = new ArrayList<CartItem>();\n\t}", "public ShoppingCart() {\n\t\t_items = new ArrayList<Product>();\n\t}", "@Override\n public void addItem(P_CK t) {\n \n }", "@Override\n\tpublic void addInStock(Stock s) {\n\t\n\t}", "public void carry(Item item) {\n\t\trocketWeight += item.getWeight();\n\t}", "@Override\n public void onAddToCart(Product product) {\n }", "@Test\n\tpublic void testAddProductToCart() {\n\t\tdouble startBalance = cart.getBalance();\n\t\tassertEquals(0,startBalance,0.01);\n\t\t\n\t\t\n\t\t\t // 4. CHECK NUM ITEMS IN CART BEFORE ADDING PRODUCT\n\t\t\t // \t\t - PREV NUM ITEMS\n\t\t\n\t\tint StartingNumItems = cart.getItemCount();\n\t\tassertEquals(0,StartingNumItems);\n\t\t\n\t\t\t // 5. ADD THE PRODUCT TO THE CART \n\t\tcart.addItem(phone);\n\t\t\n\t\t\t // 6. CHECK THE UPDATED NUMBER OF ITEMS IN CART \n\t\t\t // \t\t-- EO: NUM ITEMS + 1\n\t\tassertEquals(StartingNumItems + 1, cart.getItemCount());\n\t\t\t // -----------------------\n\t\t\t // 7. CHECK THE UPDATED BALANCE OF THE CART\n\t\t\t // \t\t-- EO: PREVIOUS BALANCE + PRICE OF PRODUCT\n\t\t\n\t\tdouble expectedBalance = startBalance + phone.getPrice();\n\t\t\n\t\tassertEquals(expectedBalance,cart.getBalance(),0.01);\n\t\t\n\t\t\n\t\t\n\t}", "public void addToBasket(Product product){\n\n Purchaseitem purchaseitem = new Purchaseitem();\n purchaseitem.setProduct(product.getId());\n purchaseitem.setProductByProduct(product);\n boolean toAdd = false;\n if(basket.isEmpty()){\n purchaseitem.setQuantity(1);\n basket.add(purchaseitem);\n }else {\n for(int i = 0; i < basket.size(); i++){\n if(basket.get(i).getProduct() == product.getId()){\n basket.get(i).setQuantity(basket.get(i).getQuantity() + 1);\n return;\n } else {\n purchaseitem.setQuantity(1);\n toAdd = true;\n }\n }\n }\n if(toAdd){\n basket.add(purchaseitem);\n }\n }", "@Override\r\n\tpublic AbstractBagGift createBagGift() {\n\t\treturn new MerchantCollection();\r\n\t}", "@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n\t@Override\n\tpublic boolean addItemToCart(CartDTO cartItem) throws RetailerException, ConnectException {\n\t\t// function variables\n\t\tboolean itemAddedToCart = false;\n\t\tString retailerId = cartItem.getRetailerId();\n\t\tString productId = cartItem.getProductId();\n\t\tint quantity = cartItem.getQuantity();\n\t\t\n\t\t// hibernate access variables\n\t\tSession session = null;\n\t\tSessionFactory sessionFactory = null;\n\t\tTransaction transaction = null;\n\t\t\n\t\ttry {\n\t\t\t// IOException possible\n\t\t\texceptionProps = PropertiesLoader.loadProperties(EXCEPTION_PROPERTIES_FILE);\n\t\t\t\n\t\t\tsessionFactory = HibernateUtil.getSessionFactory();\n\t\t\tsession = sessionFactory.getCurrentSession();\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t\n\t\t\tQuery query = session.createQuery(HQLQuerryMapper.CART_ITEM_QTY_FOR_PRODUCT_ID);\n\t\t\tquery.setParameter(\"product_id\", productId);\n\t\t List<CartItemEntity> quant = (List<CartItemEntity>) query.list();\n\t\t \n\t\t Query query1 = session.createQuery(HQLQuerryMapper.GET_PRODUCT_QTY_FROM_DB);\n\t\t query1.setParameter(\"product_id\", productId);\n\t\t List<ProductEntity> availableQuants = (List<ProductEntity>) query1.list();\n\t\t \n\t\t if (quant.size() == 0) {\n\t\t \t// the user is adding this product to the cart for the first time\n\t\t\t if (quantity < availableQuants.get(0).getQuantity()) {\n\t\t\t \t// add this item to cart and reduce the quantity in PRODUCT table by quantity amount\n\t\t\t \tCartItemEntity obj = new CartItemEntity (retailerId, productId, quantity);\n\t\t\t \tsession.save(obj);\n\t\t\t \t\n\t\t\t \tQuery query3 = session.createQuery(HQLQuerryMapper. UPDATE_QTY_IN_PRODUCT);\n\t\t\t \tint availableQuantity = availableQuants.get(0).getQuantity();\n\t\t\t \tquery3.setParameter(\"quantity\", availableQuantity );\n\t\t\t \tquery3.setParameter(\"product_id\", productId);\n\t\t\t \tquery3.executeUpdate();\n\t\t\t \tavailableQuantity -= quantity;\n\t\t\t \titemAddedToCart = true;\n\t\t\t } else {\n\t\t\t \t// the requested number of items is not available\n\t\t\t \titemAddedToCart = false;\n\t\t\t \tGoLog.logger.error(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t\t\t\tthrow new RetailerException(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t\t }\n\t\t } else {\n\t\t \t// the user has previously added this item to his cart and is trying to increase quantity\n\t\t \tif (quantity < availableQuants.get(0).getQuantity()) {\n\t\t \t\t// add quantity to that already present in the cart and reduce the quantity in PRODUCT table by quantity amount\n\t\t \t\tQuery query4 = session.createQuery(HQLQuerryMapper.UPDATE_CART);\n\t\t \t\tint quantityPresent = quant.get(0).getQuantity();\n\t\t \t\tquery4.setParameter(\"product_id\", productId);\n\t\t \t\tquery4.executeUpdate();\n\t\t \t\tquantityPresent += quantity;\n\t\t \t\t\t \t\t\n\t\t\t \tQuery query3 = session.createQuery(HQLQuerryMapper. UPDATE_QTY_IN_PRODUCT);\n\t\t\t \tint availableQuantity = availableQuants.get(0).getQuantity();\n\t\t\t \tquery3.setParameter(\"quantity\", availableQuantity );\n\t\t\t \tquery3.setParameter(\"product_id\", productId);\n\t\t\t \tquery3.executeUpdate();\n\t\t\t \tavailableQuantity -= quantity;\n\t\t \t\titemAddedToCart = true;\n\t\t \t\t\n\t\t \t} else {\n\t\t \t\t// the requested quantity of items is not available \t\n\t\t \t\titemAddedToCart = false;\n\t\t \t\tGoLog.logger.error(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t\t\t\tthrow new RetailerException(exceptionProps.getProperty(\"prod_not_available\"));\n\t\t \t}\n\t\t }\t\t \n\t\t} catch (IOException e) {\n\t\t\tGoLog.logger.error(e.getMessage());\n\t\t\tthrow new RetailerException (\"Could not open Error Properties File\");\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t\treturn itemAddedToCart;\n\t}", "public ShoppingCart() {\r\n myShoppingCart = new HashMap<Item, BigDecimal>();\r\n }", "public void addBoat(Boat b){\r\n boats.add(b);\r\n }", "void carry(Item specifiedItem);", "public void addChildToShoppingCart() {\n System.out.println(this.offerTable.getSelectionModel().getSelectedItem());\n // TODO [assignment_final] pridani aktualniho vyberu do kosiku\n // - pri pridani prvku do kosiku aktualizuji hodnotu \"budgetu\" v UI\n }", "public void add(Item item) {\r\n\t\tcatalog.add(item);\r\n\t}", "@POST(\"V1/carts/mine/items\")\n Observable<CartProductItem> addItemToCart(@Body CartItemRequest CartItemRequest);", "public void addToCart(String userId ,ShoppingCartItem item) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\ttx.begin();\r\n\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, userId);\r\n\t\t\tcartdb.addItem(item);\r\n\t\t\ttx.commit();\r\n\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error updating cart \"+ item);\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error updating cart :\"+ item);\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t}", "public void addItem(Object obj) {\n items.add(obj);\n }", "public void addCostItem(CostItem item) throws CostManagerException;", "@PostMapping(value = { \"\", \"/cart\" })\n\tpublic void addCarItem(@RequestBody CarDto car) {\n\t\tLOGGER.info(\"ShoppingCartRestController.addCarItem() invocation started\");\n\t\ttheShoppingCartService.addToCart(car);\n\t}", "public static void addItem(int id,int quantity){\n\t\tif(userCart.containsKey(id)){\n\t\t\tint newQuantity = userCart.get(id).getQuantity() + quantity;\n\t\t\tuserCart.get(id).setQuantity(newQuantity);\n\t\t\tSystem.out.println(CartMessage.ALREADY_ADDED + newQuantity);\n\t\t}\n\t\telse{\n\t\t\tproducts.get(id).setQuantity(quantity);\n\t\t\tuserCart.put(id,products.get(id));\n\t\t\tSystem.out.println(CartMessage.ITEM_ADDED);\n\t\t}\n\t}", "public ArrayList addToCart(Book book, int quantity){\r\n\t\tif(cart == null){\r\n\t\t\tcart = new ArrayList();\r\n\t\t\tItem item = new Item(book, quantity);\r\n\t\t\tcart.add(item);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tObject items[] = cart.toArray();\r\n\t\t\tboolean find = false; //to check it item already exits\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<items.length;i++){\r\n\t\t\t\tItem temp = (Item)items[i];\r\n\t\t\t\t\r\n\t\t\t\tif(temp.getBook().getBook_id()==book.getBook_id()){\r\n\t\t\t\t\ttemp.setQuant(temp.getQuant()+quantity);\r\n\t\t\t\t\tfind = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!find){\r\n\t\t\t\tItem item = new Item(book, quantity);\r\n\t\t\t\ttotal+=item.getBook().getPrice()*quantity;\r\n\t\t\t\tcart.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn cart;\r\n\t}", "@PostMapping(\"/addToCart\")\n @PermissionStoreItemRead\n public String addToCart(@RequestParam long id,\n @RequestParam(required = false) int numberOfItems,\n HttpSession session,\n HttpServletRequest request,\n Model model,\n RedirectAttributes redirectAttributes,\n HttpServletRequest httpServletRequest) {\n String previousPage = PageUtilities.getPreviousPageByRequest(httpServletRequest).orElseThrow(() -> new RuntimeException(\"Previous page not found\"));\n ShoppingCart cart = (ShoppingCart) session.getAttribute(\"cart\");\n var item = itemService.findById(id).orElseThrow(() -> new RuntimeException(\"Item not found\"));\n if ( item.getStock() < numberOfItems ||\n item.getStock() < cart.getItemQuantity(item) + numberOfItems) {\n redirectAttributes.addFlashAttribute(\"error\", \"Not enough items\");\n return previousPage;\n //return \"redirect:/item/\" + id + \"/show\";\n }\n cart.addItem(item, numberOfItems);\n redirectAttributes.addFlashAttribute(\"success\", \"Item added to cart successfully\");\n log.debug(\"Total size of cart : \" + cart.numberOfItems());\n //return \"redirect:/item/\" + id + \"/show\";\n return previousPage;\n\n }", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "@Override\n\tpublic boolean addCart(Cart cart) {\n\t\treturn cartRepository.save(cart)==cart;\n\t}", "@RequestMapping(\"/addToCart/{id}\")\n public String addToCart(@PathVariable(\"id\") long id, Model model, Principal principal, Authentication authentication){\n model.addAttribute(\"product\", productRepository.findById(id).get());\n model.addAttribute(\"products\", productRepository.findAll());\n model.addAttribute(\"carts\", cartRepository.findAll());\n model.addAttribute(\"user_id\", userRepository.findByUsername(principal.getName()).getId());\n model.addAttribute(\"categories\", categoryRepository.findAll());\n\n\n\n if(cartRepository.findByEnabledAndUser(true, userService.getUser()) != null){\n Cart currentCart = cartRepository.findByEnabledAndUser(true, userService.getUser());\n// Set<Product> productsInCart = new HashSet<>();\n Set<Product> productsInCart = currentCart.getProductsInCart();\n productsInCart.add(productRepository.findById(id).get());\n currentCart.setProductsInCart(productsInCart);\n\n cartRepository.save(currentCart);\n }\n else {\n Cart currentCart = new Cart();\n currentCart.setEnabled(true); //sets this cart as \"active\"\n\n Set<Product> productsInCart = new HashSet<>();\n productsInCart.add(productRepository.findById(id).get());\n currentCart.setProductsInCart(productsInCart);\n\n currentCart.setUser(userService.getUser());\n\n cartRepository.save(currentCart);\n }\n\n return \"redirect:/\";\n\n }", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "public void addItemTrackBagging(Item item, boolean bool) {\n\t\tthis.purchaseList.setItemTrackBagging(item, bool);\n\t}", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public static void putCraftableItemInArrayList() {\n\n craftableItem.addItemToCraftableList(campfire);\n craftableItem.addItemToCraftableList(raft);\n craftableItem.addItemToCraftableList(axe);\n craftableItem.addItemToCraftableList(spear);\n }", "void add(RiceCooker riceCooker);", "@Override\n public void insertIntoAuthBooks(long cartid, long itemid) {\n wishListRepository.insertIntoAuthBooks(cartid, itemid);\n\n }", "public static void addToCart() {\n List<WebElement> buttonsAddItem = Browser.driver.findElements(ADD_TO_CART_BUTTON);\n buttonsAddItem.get(0).click();\n Browser.driver.navigate().refresh();\n }", "public interface Cart {\n Map<Product, Integer> items();\n\n void add(Product product);\n\n void add(Product product, String promo);\n\n Double total();\n\n String getPromoCode();\n}", "public void addProduct(Product product);", "void addProduct(Product product);", "public void addProduct(Product p){\n stock.add(p);\n }", "public ShoppingCart createCart() {\n\t\treturn save(new ShoppingCart());\n\t}", "@RequestMapping(value = \"/addToRentedShoppingCart\", method = RequestMethod.GET)\n public String addToShoppingCart(@RequestParam(\"categoryId\") int categoryId,\n @RequestParam(\"categoryName\") String categoryName,\n @RequestParam(value = \"checkMe\", required = false) boolean checkMe,\n @RequestParam(\"isbn\") String isbn, @RequestParam(\"type\") String type,\n @RequestParam(\"duration\") Integer duration,\n @RequestParam(\"cost\") Float cost, ModelMap modelMap,\n HttpServletRequest httpServletRequest, HttpSession httpSession)\n throws Exception {\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"addToShoppingCart method: START\");\n }\n LOGGER.error(\"duration:\" + duration);\n // LOGGER.error(\"cost:\"+cost);\n // List<RentedShoppingCartVO> shoppingCart=null;\n RentedShoppingCartVO shoppingCart = null;\n String forwardStr = null;\n\n try {\n\n shoppingCart = (RentedShoppingCartVO) modelMap.get(\"RentedShoppingCart\");\n\n shoppingCart = bookrentService.addRentedBookToCart(shoppingCart, isbn,\n type, duration, cost);\n modelMap.addAttribute(\"RentedShoppingCart\", shoppingCart);\n modelMap.addAttribute(\"userlogin\", new UserVO());\n\n } catch (SapeStoreSystemException ex) {\n LOGGER.error(\"addToShoppingCart method: ERROR: \" + ex);\n forwardStr = ApplicationConstants.FAILURE;\n }\n\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"addToShoppingCart method: END\");\n }\n LOGGER.error(\"duration2:\" + duration);\n return \"RentCart\";\n\n }", "public addproduct() {\n\t\tsuper();\n\t}", "void addFruit(Fruit item){\n\t\tfruitList.add(item);\n\t}", "@Override\n public void add(T car) {\n carsInGarage.add(car);\n }", "@RequestMapping(\"/addcart\")\n\tpublic String doAddCart(@RequestParam(\"id\") int id, HttpSession session) {\n\t\tPrice ip = menuService.fetchPrice(id);\n\t\t// add it into a list in session.\n\t\tList<Price> cart = (List<Price>) session.getAttribute(\"cart\");\n\t\tif(cart == null) {\n\t\t\tcart = new ArrayList<>();\n\t\t\tsession.setAttribute(\"cart\", cart);\n\t\t}\n\t\tcart.add(ip);\n\t\tSystem.out.println(cart);\n\t\treturn \"redirect:menu\";\n\t}", "@Override\n public void addShopcart(int uid) {\n int maxScid;\n if(shopcartsDao.getMaxScid()==null){\n maxScid = 0;\n }\n else{\n maxScid = shopcartsDao.getMaxScid();\n }\n Shopcarts shopcarts = new Shopcarts();\n shopcarts.setScid(maxScid+1);\n shopcarts.setUid(uid);\n shopcartsDao.addShopcarts(shopcarts);\n }", "void addToCart(String user, long id) throws MovieNotFoundException;", "public void add(Good good) {\n cargo.add(good);\n numOfGoods++;\n }", "public void addBasketItem(BasketItem newItem) {\n \n // If the sku already exists in the basket then update the quantity\n for(BasketItem item : basketItems) {\n if(item.getVariant().getSku().equals(newItem.getVariant().getSku())) {\n item.setQuantity(newItem.getQuantity() + item.getQuantity());\n return;\n }\n }\n \n // If the sku wasn't found above then add it to the basket\n basketItems.add(newItem);\n }", "public final void cook(){\n\t\t\n\t\tprepare();\n\t\t\n\t\tif(customerWantsMeat()){\t\t\n\t\t\taddMeat();\t\t\n\t\t}\n\t\t\n\t\tif(customerWantsVegetables()){\t\n\t\t\taddVegetables();\t\t\t\n\t\t}\n\t\n\t\tsaveToPlate();\n\t\t\n\t}", "public void add (Car car){\n\t\t}", "@Test\n public void addToCart() throws Exception {\n\n ReadableProducts product = super.readyToWorkProduct(\"addToCart\");\n assertNotNull(product);\n\n PersistableShoppingCartItem cartItem = new PersistableShoppingCartItem();\n cartItem.setProduct(product.getId());\n cartItem.setQuantity(1);\n\n final HttpEntity<PersistableShoppingCartItem> cartEntity =\n new HttpEntity<>(cartItem, getHeader());\n final ResponseEntity<ReadableShoppingCart> response =\n testRestTemplate.postForEntity(\n String.format(\"/api/v1/cart/\"), cartEntity, ReadableShoppingCart.class);\n\n // assertNotNull(response);\n // assertThat(response.getStatusCode(), is(CREATED));\n\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n /* HttpSession session = request.getSession();\n String idWork = request.getParameter(\"identifiant\");\n if(ShoppingCart.items.isEmpty()){\n for(Work work : Catalogue.listOfWorks){\n if(Integer.parseInt(idWork) == work.getId()){\n ShoppingCart.items.add(work);\n session.setAttribute(\"caddie\", ShoppingCart.items);\n }\n }\n }else{\n ShoppingCart.items = (Set<Work>) session.getAttribute(\"caddie\");\n for(Work work : Catalogue.listOfWorks){\n if(Integer.parseInt(idWork) == work.getId()){\n ShoppingCart.items.add(work);\n session.setAttribute(\"caddie\", ShoppingCart.items);\n }\n }\n }*/\n \n /*response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet AddToCartServlet</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Œuvre ajoutée au caddie (\" + ShoppingCart.items.size() + \")</h1>\");\n out.println(\"<a href='http://localhost:8080/frontoffice-1.0/catalogue'>Accès au catalogue des oeuvres</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }*/\n \n String idAsString = request.getParameter(\"identifiant\");\n long idAsLong = Long.parseLong(idAsString);\n \n ShoppingCart cart = (ShoppingCart)request.getSession().getAttribute(\"cart\");\n //On crée l'attribut de session cart si ce dernier n'existe pas\n if(cart == null){\n cart = new ShoppingCart();\n request.getSession().setAttribute(\"cart\", cart);\n }\n \n /*for(Work work : Catalogue.listOfWorks){\n if(work.getId() == idAsLong){\n cart.getItems().add(work);\n }\n }*/\n \n Optional<Work> optionalWork = Catalogue.listOfWorks.stream().filter(work -> work.getId() == idAsLong).findAny();\n \n if(optionalWork.isPresent()){\n cart.getItems().add(optionalWork.get());\n }\n \n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n out.println(\"<html>\");\n out.println(\"<body>\");\n out.println(\"<h1>Œuvre ajoutée au caddie (\" + cart.getItems().size() + \")</h1>\");\n out.println(\"<a href='http://localhost:8080/frontoffice-1.0/catalogue'>Accès au catalogue des oeuvres</a>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n }", "@Test(groups = \"suite2-2\")\n\tpublic void addItemToCart() {\n\t\tdriver = new FirefoxDriver();\n\n\t\tdriver.get(CART_URL);\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.presenceOfElementLocated(By\n\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"newempty\\\"]/DIV\")));\n\t\t} catch (NoSuchElementException e) {\n\t\t\tfail(\"Cart should be empty\");\n\t\t}\n\n\t\t// Find the button to do the search inside treasury objects\n\t\tWebElement searchButton = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"header\\\"]/DIV[@id=\\\"navigation-group\\\"]/FORM[@id=\\\"search-bar\\\"]/DIV/BUTTON[@id=\\\"search_submit\\\"]\")));\n\n\t\t// Find the text input field to do the search\n\t\tWebElement searchField = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"header\\\"]/DIV[@id=\\\"navigation-group\\\"]/FORM[@id=\\\"search-bar\\\"]/DIV/INPUT[@id=\\\"search-query\\\"]\"));\n\t\t// Search key\n\t\tsearchField.sendKeys(\"hat\");\n\n\t\tsearchButton.click();\n\n\t\tWebElement itemToBuy = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV/DIV/DIV/DIV[@id=\\\"primary\\\"]/UL/LI[1]/A\")));\n\n\t\titemToBuy.click();\n\n\t\tWebElement addToCartButton = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV/DIV/DIV/DIV[2]/DIV[1]/DIV[2]/DIV[3]/DIV[1]/FORM/SPAN/SPAN/INPUT\")));\n\n\t\taddToCartButton.click();\n\n\t\tWebElement itemInCartMessage = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"checkout-header\\\"]/H1\"));\n\n\t\tassertEquals(itemInCartMessage.getText().trim().substring(0, 1), \"1\",\n\t\t\t\t\"1 item expected in cart\");\n\t}", "public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}", "public void addItem(Product p) throws IOException, ClassNotFoundException {\n SortByName sortByName = new SortByName();\n Collections.sort(cartContents, sortByName.productSearch());\n\n int m = this.getQuantity(p);\n //check if in cart will exceed available amount\n if (p.getAvailableQuantity() > m)\n {\n cartContents.add(p);\n }\n saveCart();\n }", "void addList(ShoppingList _ShoppingList);", "protected Basket makeBasket() {\n\t\treturn new Basket();\n\t}", "@PostMapping(path = \"cart\")\n ShoppingCart addProductToCart(@RequestHeader(HttpHeaders.AUTHORIZATION) String token, @RequestBody ShoppingCartEntry entry);", "public synchronized void addItem(Product product){\n \n ShoppingCartItem item = carrito.get(product.getId());\n int new_quantity;\n \n if(item==null){\n carrito.set(product.getId(), new ShoppingCartItem(product));\n new_quantity = 1;\n }else{\n new_quantity = item.getQuantity()+1;\n }\n //even if it's added or not, we call update method to update the quantity of the product\n this.update(product,Integer.toString(new_quantity));\n }", "public void doShopping(IBasket basket,IArchiveBasket archiveBasket);", "public static void addPickUpToCart(Cart cart, PickUp pickUp) {\n\n cart.setPickup(pickUp);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n }", "public void addToDeck(Card c)\r\n\t{\r\n\t\tdeck.add(c);\r\n\t}", "public void onClick(View v)\n {\n // Add to cart model\n for (int i = 0; i < productQuantity; i++)\n {\n dbManager.addToCart(activeProduct.getID());\n }\n }", "public void add(final ItemOrder theOrder) {\r\n Objects.requireNonNull(theOrder, \"theOrder can't be null!\");\r\n myShoppingCart.put(theOrder.getItem(), theOrder.calculateOrderTotal());\r\n }" ]
[ "0.74120384", "0.655572", "0.6445846", "0.6296061", "0.6276998", "0.620243", "0.61700934", "0.6112805", "0.6092036", "0.6089159", "0.60830575", "0.6054119", "0.6009932", "0.5989262", "0.5986227", "0.5975673", "0.5961914", "0.5934837", "0.5895407", "0.5892105", "0.5877357", "0.5860923", "0.58595204", "0.5850766", "0.5844041", "0.5810241", "0.58096", "0.57998425", "0.5789992", "0.5781886", "0.57710177", "0.5768713", "0.57679224", "0.5762991", "0.5752937", "0.57474875", "0.5730354", "0.57229143", "0.5716343", "0.5708172", "0.57023317", "0.569501", "0.5691627", "0.5686877", "0.5682358", "0.5670237", "0.5661251", "0.5659946", "0.5659497", "0.5652859", "0.5642953", "0.5628581", "0.562483", "0.56246954", "0.561878", "0.5616212", "0.56160456", "0.5603685", "0.55980456", "0.5597588", "0.55965996", "0.55960274", "0.5589225", "0.55891305", "0.5585364", "0.5584361", "0.55759394", "0.55746776", "0.5574088", "0.5564754", "0.55640626", "0.5560644", "0.5559976", "0.55438787", "0.5540497", "0.55373937", "0.55362654", "0.5533314", "0.55329484", "0.55274427", "0.5521156", "0.55210876", "0.55175287", "0.5510223", "0.5502949", "0.5495002", "0.5475122", "0.5474599", "0.54705685", "0.54695153", "0.54625064", "0.5456567", "0.5445402", "0.54403704", "0.5438506", "0.5434644", "0.54317236", "0.5425103", "0.5420502", "0.5419739" ]
0.72167724
1
Removes Carryable object (Item or Bag) from cart
public void removeItem(Carryable g) { for (int i=0; i<numItems; i++) { if (cart[i] == g) { cart[i] = cart[numItems - 1]; numItems -= 1; return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeCartItem(int cartItemId);", "public void clearCart() {\n this.items.clear();\n }", "private void remove(GroceryItem itemObj, String itemName, double itemPrice) {\n\t\tif (!bag.remove(itemObj)) {\n\t\t\tSystem.out.println(\"Unable to remove, this item is not in the bag.\");\n\t\t} else {\n\t\t\tSystem.out.println(itemName + \" \" + itemPrice + \" removed.\");\n\t\t}\n\t}", "public void removeFromCart(final Item item) {\n for (Item f : cart) {\n if (f.getName().equals(item.getName())) {\n if (\n f.getQuantity() == item.getQuantity()) {\n cart.remove(f);\n return;\n }\n f.setQuantity(f.getQuantity() - item.getQuantity());\n return;\n }\n }\n }", "public void removeAllCartItems(Cart cart) {\n\t\t\t\r\n\t\t}", "ResponseEntity<Cart> removeCartItem(CartFormData formData);", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "@Override\r\n\tpublic void sellItem(AbstractItemAPI item) {\n\t\titems.remove(item);\r\n\t\t\r\n\t}", "@Test(groups = \"suite2-2\", dependsOnMethods = \"addItemToCart\")\n\tpublic void removeItemFromCart() {\n\n\t\tdriver.get(CART_URL);\n\n\t\tWebElement itemInCartMessage = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"checkout-header\\\"]/H1\"));\n\n\t\tassertEquals(itemInCartMessage.getText().trim().substring(0, 1), \"1\",\n\t\t\t\t\"1 item expected in cart\");\n\n\t\tWebElement clearButton = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/FORM[1]/H2/SPAN[2]/A\"));\n\n\t\tclearButton.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.presenceOfElementLocated(By\n\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"newempty\\\"]/DIV\")));\n\t\t} catch (NoSuchElementException e) {\n\t\t\tfail(\"Cart should be empty\");\n\t\t}\n\t}", "public static void removePickUpFromCart(Cart cart) {\n\n cart.setPickup(null);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n\n }", "public void removeGroceryItem(String item){\n int position = findItem(item);\n if(position > 0)\n myGrocery.remove(position);\n }", "public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}", "@Override\n public void removeCart(Items cartItem) {\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(cartItem);\n }\n Items menuItem = cartItem.getItemOriginalReference();\n menuItem.setItemQuantity(menuItem.getItemQuantity() - 1);\n updateCartMenu();\n }", "@Override\n public Car removeCar() {\n Car car = null;\n if (inDock) {\n car = transporter.removeCar(true, this);\n }\n return car;\n }", "protected abstract void removeItem();", "public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }", "@SuppressWarnings(\"unused\")\n\tpublic void removeFromShoppingCart(BarcodedItem item, int quantity) {\n\t\t\n\t\tBarcodedProduct prod = ProductDatabases.BARCODED_PRODUCT_DATABASE.get(item.getBarcode());\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tfor (int j = 0; j < SHOPPING_CART_ARRAY.length; j++) {\n\t\t\t\tif (prod.getDescription().equals(SHOPPING_CART_ARRAY[j][0]) && \n\t\t\t\t\t\tInteger.toString(quantity).equals(SHOPPING_CART_ARRAY[j][1])) {\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][0] = null;\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][1] = null;\n\t\t\t\t\ttotalNumOfItems = totalNumOfItems - quantity;\n\t\t\t\t\tdecreaseTotalPayment(item, quantity);\n\t\t\t\t\tBARCODE_ARRAY[j] = null;\n\t\t\t\t\tBARCODEDITEM_ARRAY[j] = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} \n\t\t} catch (NullPointerException e) {\n\t\t\tthrow new SimulationException(e);\n\t\t}\n\n\n\t}", "public void removeItem(){\n\t\tthis.item = null;\n\t}", "public void removeProduct(Product item) {\n inventory.remove(item);\n }", "void removeProduct(Product product);", "public void removeByObject()\r\n\t{\n\t}", "@Override\n\tpublic boolean deleteShopCartItem(int cart) {\n\t\treturn false;\n\t}", "@Test\r\n\tpublic void testRemoveItem() {\r\n\t\tVendingMachineItem test = new VendingMachineItem(\"test\", 10.0);\r\n\t\tvendMachine.addItem(test, \"B\");\r\n\t\tassertEquals(test, vendMachine.removeItem(\"B\"));\r\n\t}", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "public Objects removeObject(String itemName)\n {\n return items.remove(itemName);\n }", "public void removeFromSilkBag() {\r\n silkBag.remove(0);\r\n }", "public void hapusItem(Item objItem) {\n arrItem.remove(objItem); //buang item\n }", "private void removeYourCar(Car user) {\r\n\r\n cars.removeCar(user);\r\n checkCarIsListed(user);\r\n }", "public void removeItem(Product p) throws IOException {\n for(Product l: this.cartContents)\n System.out.println(l.getProductName());\n this.cartContents.remove(p);\n this.saveCart();\n }", "public void removeItem(int id);", "public static void removeItem(int id){\n\t\tif(!userCart.containsKey(id)){\n\t\t\tSystem.out.println(CartMessage.INVALID_ID);\n\t\t}\n\t\telse{\n\t\t\tuserCart.remove(id);\n\t\t\tSystem.out.println(CartMessage.ITEM_REMOVED);\n\t\t}\n\t}", "@Override\n public void removeFromCart(Publication book) {\n if(shoppingCart.contains(book)){\n shoppingCart.remove(book);\n } else throw new NoSuchPublicationException();\n }", "@Test\n public void testRemoveItem() throws Exception {\n \n System.out.println(\"RemoveItem\");\n \n /*ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n Product p3 = new Product(\"Teclado\", 5.5);\n Product p4 = new Product(\"Monitor 4K\", 550.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n fail(\"No existe\");\n \n }*/\n \n /*---------------------------------------------*/\n \n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n \n instance.addItem(p1);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n assertTrue(instance.isEmpty());\n \n }\n \n }", "public void remove(Car car){\n\t\t}", "@Override\n public void remove() {\n if (lastItem == null)\n throw new IllegalStateException();\n bag.remove(lastItem);\n lastItem = null;\n }", "public void removeItem(Item item)\n\t{\n\t\tinventory.remove(item);\n\t}", "ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);", "@Override\r\n public void uncall() {\r\n Player player = MbPets.getInstance().getServer().getPlayer(getOwner());\r\n if (player != null) {\r\n if (getEntity().getInventory().getDecor() != null) {\r\n if (player.getInventory().firstEmpty() >= 0) {\r\n player.getInventory().addItem(getEntity().getInventory().getDecor());\r\n } else {\r\n player.getWorld().dropItemNaturally(player.getLocation(),\r\n getEntity().getInventory().getDecor());\r\n }\r\n }\r\n }\r\n super.uncall();\r\n }", "void removeOrderItem(OrderItem target);", "public void remove(Car c){\n\t\tthis.cars.remove(c);\n\t}", "public void rmItem(Item item) {\n\t\titems.remove(item);\n\t}", "public Object removeItem (String key);", "@DeleteMapping(value = { \"\", \"/cart/{parent}/{child}\" })\n\tpublic void removeCarItem(@PathVariable(\"parent\") String parent, @PathVariable(\"child\") String child) {\n\t\tLOGGER.info(\"ShoppingCartRestController.removeCarItem() invocation started\");\n\t\ttheShoppingCartService.removeFromCart(parent, child);\n\t}", "@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }", "void removeRocket(RocketDTO rocket);", "public void removeItemCart(int code) {\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tif (itemCart.getP().getId() == code) {\n\t\t\t\tlistItemcart.remove(itemCart);\n\t\t\t}\n\t\t}\n\t}", "public void remove(Good good) {\n cargo.remove(good);\n numOfGoods--;\n }", "Cart deleteFromCart(String code, Long quantity, String userId);", "public void removeObject(java.lang.Object object) {}", "public void clear() {\r\n myShoppingCart = new HashMap<Item, BigDecimal>();\r\n }", "@Override\n\tpublic void removeOrderLine(int cartIndex) {\n\t\t\n\t}", "public void discard(Card card) {\n discardPile.add(card);\n }", "Object remove();", "public void removePresentCard() {\n storageCards.remove();\n }", "public void testNormalRemoveItem()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkRemove(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "public abstract boolean depleteItem();", "public void remove(RWDCar car) {\n game.removePlayer(car);\n }", "void remove( ModelObject object );", "private void removeAllWeightBasedProduct(Product product){\n total-= cartItems.get(product.name).cost();\n noOfItems--;\n cartItems.remove(product.name);\n }", "@Test\n public void testRemoveItem() throws Exception {\n System.out.println(\"removeItem\");\n Orcamentoitem orcItem = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n instance.removeItem(orcItem);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void removeItem(CargoItem item) {\n\t\t\n\t\tif (cargoList.contains(item))\n\t\t{\n\t\t\tcurrentWeight = currentWeight-item.getWeight();\n\t\t\tcurrentVolume = currentVolume-item.getVolume();\n\t\t\tcargoList.remove(item);\n\t\t\tSystem.out.println(\"Item removed\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Item not found\");\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic boolean deleteShopCart(int cart) {\n\t\treturn false;\n\t}", "public void removeItemInventory(Item item){\r\n playerItem.remove(item);\r\n System.out.println(item.getName() + \" was removed from your inventory\");\r\n }", "public abstract void remove(Class<?> entity, Object paramObject);", "public void removeOrder(){\n foods.clear();\n price = 0;\n }", "public Object remove();", "void deleteRecipe(RecipeObject recipe);", "private void EmptyCartButtonActionPerformed(java.awt.event.ActionEvent evt) {\n cartModel.removeAllElements(); // dmoore57\n // updates list on form to show that all items have been removed from list\n CartList.setModel(cartModel); // dmoore57\n }", "public void maybeRemove(RemoveRandom r, ObjectContainer container, ClientContext context);", "boolean removeObject(String id);", "void remove(GeometricalObject object);", "public void remove(Item item) {\r\n \t\tfor (ShoppingList list : shoppingLists)\r\n \t\t\tremoveItemFromList(item, list);\r\n \t\tpersistenceManager.remove(item);\r\n \r\n \t}", "void remove(Price Price);", "public void clear() {\n\t\tList<CartLine> cartLines = getCartLineList();\n\t\tcartLines.clear();\n\t}", "void delete(ShoppingBasket shoppingBasket);", "private void deleteCartAll() {\n cartTable.getItems().removeAll(componentsCart);\n\n //Clear ComponentsCart List\n componentsCart.clear();\n updateTotal();\n }", "public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }", "public void removeItemInventory(Item item){\n playerItem.remove(item);\n System.out.println(item.getName() + \" was removed from your inventory\");\n }", "@Override\n\tpublic void remove(Object entity) {\n\t\t\n\t}", "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "public void removeItem(Item item) {\r\n for (Iterator<Item> it = inventoryItems.iterator(); it.hasNext(); ) {\r\n Item i = it.next();\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() - 1);\r\n }\r\n if (i.getCount() <= 0) {\r\n it.remove();\r\n }\r\n }\r\n }", "public void removeCar(Car usedCar) {\n boolean wasRemoved = cars.remove(usedCar);\n // subtracts usedCar value to adjust totalValue if car removed\n if (wasRemoved) {\n totalValue -= usedCar.getPrice();\n }\n else {\n System.out.println(\"Car was not in lot.\");\n }\n }", "void remover(Object o);", "public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }", "public void emptyCart() {\n cart.clear();\n total = 0;\n }", "public void deleteBasketItem(String sku) { \n Iterator<BasketItem> iter = basketItems.iterator();\n \n while(iter.hasNext()) {\n BasketItem basketItem = (BasketItem) iter.next();\n if(basketItem.getVariant().getSku().equals(sku)) {\n iter.remove();\n }\n }\n }", "public void remove(Card card) {\r\n\t\tcards.remove(card);\r\n\t}", "void removeList(ShoppingList _ShoppingList);", "@Override\n\tpublic void removeItem(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Items here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id\n\t\t\tSystem.out.print(\"Enter Item Id to delete the item: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeItem(session,itemId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void removeAllVariantBasedProduct(Product product){\n /*\n Using for loop because we want to delete all the variants of that particular product\n */\n for(Variant variant : product.variants){\n String key = product.name + \" \" + variant.name;\n if(cartItems.containsKey(key)){\n total-= cartItems.get(key).cost();\n noOfItems--;\n cartItems.remove(key);\n }\n }\n }", "@Override\n public void onCollison(IDrawable id) {\n if (!(id instanceof IDestroyable) || (id instanceof PickUp)) {\n return;\n }\n IDestroyable des = (IDestroyable) id;\n des.Damage(damage);\n Level().RemoveObject(this);\n }", "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}", "@Test\n public void testRemovePositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n\n Assert.assertTrue(itemDao.delete(item.getName()));\n Assert.assertNull(itemDao.read(item.getName()));\n }", "public Item remove(@NonNull Item item) {\n if (items.contains(item) && item instanceof Valuable) {\n \titems.remove(item);\n return item;\n }\n return null;\n }", "for (Card ca : deck) {\n\t\tif (ca.suit == 'c') {\n\t\t\tdeck.remove(ca);\n\t\t}\n\t}", "@DeleteMapping(\"/{id}/shoppingcart\")\n public ShoppingCart removeBookFromShoppingCart(@PathVariable long id, @RequestBody Book book){\n Customer b = customerRepository.findById(id);\n ShoppingCart sc = b.getShoppingCart();\n sc.removeBook(book);\n b = customerRepository.save(b);\n \n return b.getShoppingCart();\n }", "public Item removeItem(int itemIndex) {\n\t\tItem itemRemoved = purchaseList.removeItem(itemIndex);\n\t\tif (itemRemoved instanceof PLUCodedItem || itemRemoved instanceof BarcodedItem) {\n\t\t\tProduct realProduct = this.getProductFromItem(itemRemoved);\n\t\t\tint inventory = this.productDatabase.getInventoryByProduct(realProduct);\n\t\t\tthis.productDatabase.setInventoryByProduct(realProduct, inventory + 1);\n\t\t}\n\t\treturn itemRemoved;\n\t}", "boolean removAble(InputItem item);", "public void resetSaleAndCostTracking() {\n for (int i = 0; i < stockList.size(); i++) {\r\n // If the beanBag object at the current position is \"isSold\" bool is true.\r\n if (((BeanBag) stockList.get(i)).isSold()) {\r\n // Remove beanBag object at that position from the \"stockList\".\r\n stockList.remove(i);\r\n }\r\n }\r\n }", "public void remove() {\n/* 1379 */ super.remove();\n/* 1380 */ this.inventoryMenu.removed(this);\n/* 1381 */ if (this.containerMenu != null) {\n/* 1382 */ this.containerMenu.removed(this);\n/* */ }\n/* */ }" ]
[ "0.70214707", "0.6797269", "0.67944425", "0.6642524", "0.66309804", "0.66255134", "0.64863247", "0.6468668", "0.63547015", "0.63265234", "0.6305907", "0.62920046", "0.62864476", "0.62541705", "0.62276083", "0.6222093", "0.61800706", "0.61509377", "0.61188686", "0.6108309", "0.6099732", "0.6080705", "0.6066057", "0.6057646", "0.6035673", "0.60148835", "0.5990284", "0.59883684", "0.59881544", "0.5986175", "0.5975368", "0.5971546", "0.5939021", "0.5932303", "0.59086514", "0.589734", "0.5896695", "0.5883623", "0.58616674", "0.58474207", "0.58468926", "0.5825814", "0.58206904", "0.58118933", "0.5810757", "0.5805079", "0.57976484", "0.5788369", "0.57879114", "0.5780014", "0.57796216", "0.57740575", "0.5758929", "0.57521003", "0.57285774", "0.5725855", "0.57248586", "0.57246834", "0.5701912", "0.5700218", "0.5692376", "0.56894696", "0.5670404", "0.5669557", "0.566541", "0.56603414", "0.56486493", "0.5643403", "0.56430423", "0.5642943", "0.56425637", "0.564126", "0.5634801", "0.5634092", "0.5633187", "0.5630351", "0.56267214", "0.5626111", "0.562453", "0.5623731", "0.56219465", "0.56197184", "0.5615127", "0.5613475", "0.56030923", "0.5602512", "0.56012124", "0.55917317", "0.55917186", "0.5584621", "0.5583755", "0.55826616", "0.5581782", "0.55764747", "0.5575261", "0.55726165", "0.5570292", "0.5568031", "0.55532205", "0.5549924" ]
0.7143666
0